Skip to content
mentoor

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

See where you stand

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?

Choose one answer

Check yourself · 2 of 5

Why can a change to AGENTS.md be dangerous even though it is a Markdown file?

Choose one answer

Check yourself · 3 of 5

Which allow-list entry is the broadest risk?

Choose one answer

Check yourself · 4 of 5

Which workflow setup is the clearest risk?

Choose one answer

Check yourself · 5 of 5

What can happen when you trust a freshly cloned folder without reading it?

Choose one answer

Topics

  1. 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
  2. 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
  3. 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
  4. 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
  5. 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

110 questions · last verified 2026-12