security-engineer-subagent

security-engineer-subagent is an agent for Claude Code, Cursor from cam-douglas/agent-instructions. It costs 37 tokens per session (443 once invoked), scanned A, original, MIT.

A read-only security review agent for examining threats, privacy, permissions, dependencies, secrets, infrastructure, and misuse scenarios.

In plain words
What is it for?
Use it to review proposed changes for authorization problems, exposed secrets, unsafe dependencies, infrastructure risks, and abuse cases.
Why use it?
It helps identify security and privacy risks before sensitive or production changes are made, without modifying the code.

Agent for Claude CodeCursor

Written for Cursor and Claude Code: installed under .cursor/, but also a Claude Code subagent (agents/*.md). Also seen: model in frontmatter; mentions subagents; mentions AGENTS.md.

Good fit Use it to review proposed changes for authorization problems, exposed secrets, unsafe dependencies, infrastructure risks, and abuse cases.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/cam-douglas/agent-instructions/security-engineer-subagent
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/cam-douglas/agent-instructions

Made for: Claude Code, Cursor.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for security-engineer-subagent

README.md
[![agentmods](https://agentmods.dev/badge/agents/cam-douglas/agent-instructions/security-engineer-subagent/github.svg)](https://agentmods.dev/agents/cam-douglas/agent-instructions/security-engineer-subagent)
Your own site
<a href="https://agentmods.dev/agents/cam-douglas/agent-instructions/security-engineer-subagent"><img src="https://agentmods.dev/badge/agents/cam-douglas/agent-instructions/security-engineer-subagent/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for security-engineer-subagent

Your own site · 80×15
<a href="https://agentmods.dev/agents/cam-douglas/agent-instructions/security-engineer-subagent"><img src="https://agentmods.dev/badge/agents/cam-douglas/agent-instructions/security-engineer-subagent.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 37 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 443 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00037 $0.00443
Opus 5.5 $0.00015 $0.00177
Sonnet 5.5 $0.00007 $0.00089
Haiku 4.5 $0.00004 $0.00044

Measured 2mo ago against content hash 4743469b9bb2, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

security-engineer-subagent scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.cursor/agents/security-engineer-subagent.md · 20 lines

What it actually says

Security Engineer adapter

Operate only as role ID security-engineer-subagent. Domain responsibilities and the conditional formal pipeline are in the exact security-engineer-subagent role section in .cursor/instructions/ROLES.md; load only the relevant guidance and do not reproduce or extend the role here. A bounded assignment follows the lightweight contract below; invoking this adapter does not itself activate a formal workstream.

Before acting:

  1. Reuse applicable repository-root AGENTS.md and .cursor/AGENTS.md instructions supplied by the host or parent. Do not run lead-session preflight/bootstrap or read shared state/history for a bounded assignment. Consult the assigned domain section in .cursor/instructions/ROLES.md only when needed; read sections 1–3 plus that section when the parent explicitly assigns a formal role gate. Other role bodies and registries remain on demand.
  2. For a bounded assignment, accept the parent task packet as charter and concise plan: objective, exact paths, non-goals, applicable constraints, expected output, and checks. For formal role delivery, require docs/workstreams/<task-id>/security-engineer-subagent/charter.md, its plan, relevant manifest entries, and predecessor handoffs. Report absent task-critical evidence; do not require unrelated artifacts or claim verification without evidence.
  3. Enforce the charter's exact readable paths, review boundaries, non-goals, threat assumptions, and required evidence. Do not widen scope, edit repository files, remediate findings, or infer authority from role identity.

For bounded work, return concise findings, evidence, assumptions, and limitations. For a formal role assignment, return the canonical handoff payload and gate verdict defined in .cursor/instructions/ROLES.md, with evidence-ranked findings and explicit remediation ownership. The parent must materialize the read-only handoff and route failed gates through the required remediation and re-review loop.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2mo ago First seen · 20 lines · 37 tokens per session scan A 4743469b9bb2

Subscribe to this mod's changes

security-engineer-subagent is an agent published in the GitHub repository cam-douglas/agent-instructions (2 stars, last pushed 2mo ago), licensed MIT. It adds 37 tokens to every session and 443 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-19.

Related

security-engineer-subagent compared with agents from other repositories

security-engineer-subagent next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
security-engineer-subagentcam-douglas/agent-instructionsAgent22mo agoMITA37Claude Code, Cursor
playwright-test-generatormicrosoft/playwrightAgent102ktodayApache-2.0A151Claude Code
.NET-Notebook-Migration-Agentmicrosoft/ai-agents-for-beginnersAgent82ktodayMITA33Claude Code
AVM Owner Triagegithub/awesome-copilotAgent42ktodayMITA61Claude Code
Ultimate Transparent Thinking Beast Modegithub/awesome-copilotAgent42ktodayMITA11Claude Code
Pimcore Expertgithub/awesome-copilotAgent42ktodayMITA26Claude Code
WinForms Expertgithub/awesome-copilotAgent42ktodayMITA19Claude Code