sec

sec is an agent for Claude Code from Everyone-Needs-A-Copilot/claude-copilot. It costs 35 tokens per session (2,199 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

Part of the claude-copilot plugin — 72 skills, 17 commands, 17 agents, 4 hooks shipped together

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.

agentmods
npx agentmods add agents/everyone-needs-a-copilot/claude-copilot/sec
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 72 skills, 17 commands, 17 agents, 4 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.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.svg" alt="Measured on agentmods" 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 2,199 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00035 $0.02199
Opus 5 $0.00017 $0.01099
Sonnet 5 $0.00007 $0.00440
Haiku 4.5 $0.00003 $0.00220

Measured today against content hash cfc1df0f10a3, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 today.

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 · 169 lines

How it starts

The opening of the file, as written. The whole thing — 169 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.

Methodology

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

@include .claude/skills/security/stride-dread/SKILL.md

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. @include .claude/skills/security/stride-dread/SKILL.md -- 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 · 169 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. today 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 (13 stars, last pushed today), licensed MIT. It adds 35 tokens to every session and 2,199 once invoked, about $0.0002 per session on Opus 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.