security

security is an agent for Claude Code from nxtg-ai/forge-plugin. It costs 254 tokens per session (1,912 once invoked), scanned B, original, MIT.

A code-security reviewer that looks for vulnerabilities in dependencies, source code, authentication, and authorization. It also checks the OWASP Top 10, a widely used list of common web-security risks.

In plain words
What is it for?
Use it to review login and permission code, API endpoints, browser security settings, dependencies, and source files for secrets, then get severity ratings and suggested fixes.
Why use it?
It helps find security problems that a general test run or dependency audit may miss, such as unsafe token handling, exposed secrets, weak input checks, or overly open browser access rules.

Agent for Claude Code

Written for Claude Code: PreToolUse hook event. Also seen: model in frontmatter; names the TodoWrite tool; mentions Claude Code.

Part of the nxtg-forge plugin — 27 skills, 24 commands, 33 agents shipped together

Good fit Use it to review login and permission code, API endpoints, browser security settings, dependencies, and source files for secrets, then get severity ratings and suggested fixes.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/nxtg-ai/forge-plugin/security
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/nxtg-ai/forge-plugin

Made for: Claude Code.

Or install nxtg-forge, the plugin that ships this one along with the rest of its 27 skills, 24 commands, 33 agents.

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

README.md
[![agentmods](https://agentmods.dev/badge/agents/nxtg-ai/forge-plugin/security/github.svg)](https://agentmods.dev/agents/nxtg-ai/forge-plugin/security)
Your own site
<a href="https://agentmods.dev/agents/nxtg-ai/forge-plugin/security"><img src="https://agentmods.dev/badge/agents/nxtg-ai/forge-plugin/security/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

Your own site · 80×15
<a href="https://agentmods.dev/agents/nxtg-ai/forge-plugin/security"><img src="https://agentmods.dev/badge/agents/nxtg-ai/forge-plugin/security.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 254 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,912 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 4 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.00254 $0.01912
Opus 5.5 $0.00102 $0.00765
Sonnet 5.5 $0.00051 $0.00382
Haiku 4.5 $0.00025 $0.00191

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

Security

Grade B, and why

security scanned grade B with 4 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 1mo 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.

Asks for rootlowPrivilege escalation

A mod that escalates privileges can change anything on the machine, not only the project.

- **Command Guard**: Blocks `rm -rf /`, `chmod 777`, `curl|sh`, fork bombs, disk destruction

Downgraded: this mod is about security review, or the phrase is quoted, so it is likely naming the pattern rather than instructing it.

Recursive force deletemediumDestructive command

rm -rf with a variable or a broad path is one typo away from removing the wrong tree.

- **Command Guard**: Blocks `rm -rf /`, `chmod 777`, `curl|sh`, fork bombs, disk destruction

Downgraded: this mod is about security review, or the phrase is quoted, so it is likely naming the pattern rather than instructing it.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

- **Command Guard**: Blocks `rm -rf /`, `chmod 777`, `curl|sh`, fork bombs, disk destruction

Runs shell commandslowCapability

Expected in a hook, worth knowing in a rule or an instructions file.

- **Injection Guard**: Blocks `eval()`, `os.system()`, `subprocess(shell=True)`, `child_process.exec()`
plugins/nxtg-forge/agents/security.md · 180 lines

How it starts

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

Forge Security Agent — CRUCIBLE Security Pipeline

You are the Forge Security Agent — the most comprehensive free security scanner in the Claude Code ecosystem. You combine three detection layers: PREVENT (PreToolUse hooks), DETECT (Semgrep SAST), and ASSESS (deep LLM analysis).

Three-Phase Security Pipeline

Phase 1: PREVENT (Automatic — PreToolUse hooks)

These run automatically before every tool call. You don't invoke them — they protect the developer:

  • Command Guard: Blocks rm -rf /, chmod 777, curl|sh, fork bombs, disk destruction
  • Secret Shield: Blocks access to .env, *.pem, *.key, credentials, ~/.ssh/
  • Injection Guard: Blocks eval(), os.system(), subprocess(shell=True), child_process.exec()
  • SQL Guard: Blocks string concatenation with SQL keywords (use parameterized queries)

Phase 2: DETECT (Automatic + On-Demand — Semgrep SAST)

The PostToolUse semgrep-scan hook runs Semgrep on every file write/edit automatically.

For on-demand scanning, if the Semgrep MCP server is available, use these tools:

  • mcp__semgrep-mcp__semgrep_scan — Run Semgrep with auto config on a file or directory
  • mcp__semgrep-mcp__security_check — Quick security-focused scan
  • Check if Semgrep MCP is available by attempting a call; fall back to CLI if not.

CLI fallback (always available if semgrep is installed):

semgrep scan --config auto --json <path>
semgrep scan --config "p/owasp-top-ten" <path>
semgrep scan --config "p/javascript" --config "p/typescript" <path>

Phase 3: ASSESS (On-Demand — Deep LLM Analysis)

This is YOUR primary role. Combine tool results with deep code reasoning:

Security Scan Workflow

When asked to perform a security review, follow this exact workflow:

Step 1: Reconnaissance

# Project structure and tech stack
ls -la
cat package.json 2>/dev/null || cat Cargo.toml 2>/dev/null || cat requirements.txt 2>/dev/null

# Dependency audit
npm audit --json 2>/dev/null
pip audit --json 2>/dev/null 2>/dev/null
cargo audit --json 2>/dev/null

Read the full file on GitHub · 180 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. 1mo ago Changed · +39 lines · +254 tokens per session scan A → B 6dd2bb4e13b2
  2. 1mo ago First seen · 141 lines · 0 tokens per session scan A 4acef2bea166

Subscribe to this mod's changes

security is an agent published in the GitHub repository nxtg-ai/forge-plugin (6 stars, last pushed 4d ago), licensed MIT. It adds 254 tokens to every session and 1,912 once invoked, about $0.0010 per session on Opus 5.5. A static security scan graded it B with 4 findings (asks for root, recursive force delete, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other agents, from other repositories