Securing coding agents and repositories
For engineers
Poisoned repos and issues, rules-file backdoors, auto-approve risks, agents in CI and project config that runs code on open
110 questions across four stages: Understand, Apply, Solve and Judge.
Try 5 questions
Practice items, not counted towards your mastery. No account needed.
Check yourself · 1 of 5
An agent reads an open issue from an unknown user while working. What is the main risk?
Check yourself · 2 of 5
Why can a change to AGENTS.md be dangerous even though it is a Markdown file?
Check yourself · 3 of 5
Which allow-list entry is the broadest risk?
Check yourself · 4 of 5
Which workflow setup is the clearest risk?
Check yourself · 5 of 5
What can happen when you trust a freshly cloned folder without reading it?
Topics
- Poisoned repositories, issues and pull requests5 min read · Injected instructions in READMEs, code comments, issues and dependency docs that a coding agent reads while working
- Rules-file backdoors and hidden Unicode5 min read · Tampered AGENTS.md, CLAUDE.md and editor rules files, invisible characters, and reviewing agent config changes like code
- Auto-approve modes and over-broad allow-lists5 min read · Skip-permission modes and allow-list entries such as broad shell, curl or script runners that quietly allow anything
- Coding agents in CI with write tokens6 min read · Workflows triggered by issue comments or pull requests from forks that let outsiders steer an agent holding secrets
- Project config that runs code on open5 min read · Repo-level MCP configs, hooks, editor tasks and workspace settings that start servers or commands when a folder is trusted
Start here
- Security (Claude Code) (opens in a new tab)DocsFree
How a vendor describes permissions, prompt-injection safeguards and trust prompts for a coding agent.
- Configure permissions (Claude Code) (opens in a new tab)DocsFree
How allow, ask and deny rules work, and why broad rules widen what the agent can run.
- Pillar Security: Rules File Backdoor in GitHub Copilot and Cursor (opens in a new tab)ArticleFree
A worked attack using hidden Unicode in rules files to steer code assistants.
Helps to know first
110 questions · last verified 2026-12