claude-copilot: Agent for Claude Code

.claude/agents/sec.md

sec is an agent for Claude Code from Everyone-Needs-A-Copilot/claude-copilot. It costs 35 tokens per session (1,948 once invoked), scanned A, original, MIT.

A security-review agent that examines authentication, permissions, personal data handling, and other data-security risks using threat-modeling methods. Threat modeling maps how attackers might reach and misuse a system.

In plain words
What is it for?
Use it to review code and system boundaries, assess common security threats, and record prioritized security findings.
Why use it?
It helps find security weaknesses before they can be exploited and gives findings a severity and remediation priority.

Agent for Claude Code

Written for Claude Code: installed under .claude/. Also seen: model in frontmatter; reads .claude/ paths; mentions CLAUDE.md.

This is Everyone-Needs-A-Copilot/claude-copilot's own configuration. It tells Claude Code how to work on claude-copilot itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything claude-copilot configures →

Part of the claude-copilot plugin — 73 skills, 18 commands, 16 agents, 6 hooks shipped together

Reuse

Borrowing it

Nothing to install: this file belongs to Everyone-Needs-A-Copilot/claude-copilot. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/Everyone-Needs-A-Copilot/claude-copilot/main/.claude/agents/sec.md
Clone the repo
git clone --depth 1 https://github.com/Everyone-Needs-A-Copilot/claude-copilot

Made for: Claude Code.

Or install claude-copilot, the plugin that ships this one along with the rest of its 73 skills, 18 commands, 16 agents, 6 hooks.

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 sec

README.md
[![agentmods](https://agentmods.dev/badge/agents/everyone-needs-a-copilot/claude-copilot/sec/github.svg)](https://agentmods.dev/agents/everyone-needs-a-copilot/claude-copilot/sec)
Your own site
<a href="https://agentmods.dev/agents/everyone-needs-a-copilot/claude-copilot/sec"><img src="https://agentmods.dev/badge/agents/everyone-needs-a-copilot/claude-copilot/sec/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 sec

Your own site · 80×15
<a href="https://agentmods.dev/agents/everyone-needs-a-copilot/claude-copilot/sec"><img src="https://agentmods.dev/badge/agents/everyone-needs-a-copilot/claude-copilot/sec.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 35 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,948 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.00035 $0.01948
Opus 5.5 $0.00014 $0.00779
Sonnet 5.5 $0.00007 $0.00390
Haiku 4.5 $0.00003 $0.00195

Measured 6d ago against content hash af1491a8d69b, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

sec 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 6d 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.

.claude/agents/sec.md · 167 lines

How it starts

The opening of the file, as written. The whole thing — 167 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Security Engineer

Security engineer who identifies and mitigates security risks before exploitation. Applies STRIDE threat modeling and DREAD severity scoring to every review.

Read/apply .claude/agents/_shared/work-lifecycle.md once per task.

Methodology

Load the STRIDE+DREAD skill at the start of every session:

cc skill get stride-dread

This skill provides the full threat modeling process: trust boundary mapping, entry point enumeration, STRIDE classification, DREAD scoring, and remediation prioritization.

Workflow

  1. tc task get <taskId> --json -- verify task exists
  2. eval "$(cc env)" -- hydrate shared docs / knowledge env
  3. cc memory search "security vulnerability auth" -- recall prior security decisions
  4. cc skill get stride-dread -- load threat modeling methodology
  5. Iteration loop per CLAUDE.md shared behaviors (maxIterations: 10, rules: vulnerabilities_assessed, critical_issues_flagged)
  6. Map trust boundaries → enumerate entry points → classify threats (STRIDE) → score severity (DREAD)
  7. Review code for vulnerabilities, categorize by severity
  8. Store full findings: tc wp store --task <id> --type security-review --title "..." --content "..." --json

Warning Accumulation Threshold

WARNING_HALT_THRESHOLD = 3  # halt only after this many accumulated warnings

Do NOT halt or block progress on the first warning. Accumulate warnings and halt only when WARNING_HALT_THRESHOLD (3) warnings have been reached. This prevents over-flagging on minor advisory items that individually are not worth halting.

A "warning" is a finding that is not a Critical or High severity issue — something that warrants attention but does not constitute a definite vulnerability requiring immediate fix.

Core Behaviors

Always:

  • Load stride-dread SKILL.md before reviewing
  • Map trust boundaries FIRST before reviewing any code
  • Check OWASP Top 10: injection, auth, XSS, access control, crypto
  • Categorize by severity: Critical (block deploy), High (fix now), Medium (next cycle)
  • Provide specific remediation steps with code examples
  • Score every threat with DREAD before reporting severity
  • Confirm findings with evidence before flagging: "absence of evidence is not the finding"
  • Cite confirming evidence for every flag: source file + line number, or observable behavior
  • Accumulate warnings silently until WARNING_HALT_THRESHOLD (3) is reached, then halt

Read the full file on GitHub · 167 lines

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. 6d ago Changed af1491a8d69b
  2. 7d ago Changed · +2 lines 1327c04bb2f1
  3. 15d ago Changed f035a64df345
  4. 1mo ago Changed · -4 lines 1d008b2bfa57
  5. 1mo ago First seen · 169 lines · 35 tokens per session scan A cfc1df0f10a3

Subscribe to this mod's changes

sec is an agent published in the GitHub repository Everyone-Needs-A-Copilot/claude-copilot (14 stars, last pushed yesterday), licensed MIT. It adds 35 tokens to every session and 1,948 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-04.

Related

Other agents, from other repositories