Repositories carry agent config such as AGENTS.md, CLAUDE.md, GEMINI.md, Copilot instruction files, Cursor rules, project MCP files and hook definitions. These files steer the agent for everyone who clones the repository, and researchers have hidden instructions inside them. Find them with organization wide code search and review them like code.
Read in this order
- OfficialAGENTS.mdStart here: the shared instruction file format many agents now read.
- ArticleRules File Backdoor: weaponizing Copilot and Cursor through rule files (Pillar Security)A working attack that hid instructions in rule files.
- OfficialGitHub: Understanding code search syntaxThe search syntax for finding these files across an organization.