An agent instruction file tells an AI coding agent how to behave in a codebase, including which tools to run, which conventions to follow, and when human approval is required. A malicious change can silently alter behavior across the development workflow. section 4.5.1
Treat instruction files as security-sensitive artifacts:
- Include changes in code review and require approval from a security-aware reviewer before they take effect. section 4.5.1
- Use CODEOWNERS or an equivalent to require internal sign-off on changes, especially in repositories that accept outside contributions. section 4.5.1
- Flag non-printable Unicode in configuration files; sanitize files from external sources before use. section 4.5.1

