security

security is an agent for Claude Code from rjmurillo/ai-agents. It costs 0 tokens per session (821 once invoked), scanned A, original, Apache-2.0.

A security-review agent that examines changes before implementation and verifies them afterward.

In plain words
What is it for?
Use it for changes involving authentication, secrets, file uploads, archive extraction, shell commands, dynamic code, new dependencies, or continuous-integration workflows.
Why use it?
It identifies common risks such as unauthorized access, exposed secrets, unsafe file paths, command injection, code injection, and insecure dependencies.

Agent for Claude Code

Written for Claude Code: argument-hint in frontmatter. Also seen: model in frontmatter; reads .claude/ paths.

Good fit Use it for changes involving authentication, secrets, file uploads, archive extraction, shell commands, dynamic code, new dependencies, or continuous-integration workflows.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/rjmurillo/ai-agents/security.compressed
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/rjmurillo/ai-agents

Made for: Claude Code.

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/rjmurillo/ai-agents/security.compressed/github.svg)](https://agentmods.dev/agents/rjmurillo/ai-agents/security.compressed)
Your own site
<a href="https://agentmods.dev/agents/rjmurillo/ai-agents/security.compressed"><img src="https://agentmods.dev/badge/agents/rjmurillo/ai-agents/security.compressed/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/rjmurillo/ai-agents/security.compressed"><img src="https://agentmods.dev/badge/agents/rjmurillo/ai-agents/security.compressed.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 821 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.00000 $0.00821
Opus 5.5 $0.00000 $0.00328
Sonnet 5.5 $0.00000 $0.00164
Haiku 4.5 $0.00000 $0.00082

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

Security

Grade A, and why

security 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 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.

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.

.project-toolkit/prototypes/agents/security.compressed.md · 67 lines

How it starts

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

Security (compressed prototype, 30K-corpus pattern)

Defense first. All PRs go through security review. Two phases: analyze before, verify after.

Stop criteria (BLOCKING)

If any trigger fires: produce a threat model before approving.

  • Auth, authz, session, or token code.
  • Secret handling, env vars, config files matching *.env* or **/*.secrets.*.
  • Path joining from user input, file uploads, archive extraction.
  • Subprocess invocation, shell commands, dynamic eval.
  • New third-party dependency or GitHub Action.
  • Workflow files under .github/workflows/**.

Priority CWEs (scan every PR)

CWE Pattern Mitigation
CWE-22 / CWE-23 Path traversal Resolve and contain under allowed root
CWE-78 / CWE-77 OS command injection Use list args, never shell strings
CWE-79 / CWE-89 XSS / SQLi Parameterize, encode at output
CWE-94 / CWE-95 Code injection / eval Refuse dynamic eval on untrusted input
CWE-284 / CWE-862 / CWE-863 Missing or wrong authz Centralize authz checks
CWE-287 / CWE-306 Broken auth MFA, session rotation, no default creds
CWE-502 Insecure deserialization Allowlist types, sign payloads
CWE-522 / CWE-798 / CWE-532 Credential leakage Scan staged diffs, scrub logs
CWE-326 / CWE-327 Weak crypto Use platform-vetted libraries only

Reference: .agents/steering/security-practices.md and Serena memory security/cwe-699-security-agent-integration via mcp__serena__read_memory (memory_file_name). Fallback if MCP is unavailable: read .serena/memories/security/cwe-699-security-agent-integration.md.

Workflow security (BLOCKING for .github/workflows/**)

  • Pin actions to 40-char commit SHA with # v<x>.<y>.<z> comment, never @v4 tags.
  • Avoid pull_request_target unless review-gated. Use secrets.* (masked), not env.*.

Two-phase review

  • Phase 1, pre-impl: file .project-toolkit/security/SR-NNN-<scope>.md (assets, actors, vectors, controls).
  • Phase 2, PIV (MANDATORY): file .project-toolkit/security/PIV-<feature>.md. Run security tests on staged code. Block merge until PIV approved.

Read the full file on GitHub · 67 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 2484f2f3eddd
  2. 3mo ago First seen · 67 lines · 0 tokens per session scan A 66d0af7eb917

Subscribe to this mod's changes

security is an agent published in the GitHub repository rjmurillo/ai-agents (50 stars, last pushed today), licensed Apache-2.0. It costs nothing until one of its globs matches a file; then it loads 821 tokens. 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-08-30.

Related

security compared with agents from other repositories

security next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
securityrjmurillo/ai-agentsAgent50todayApache-2.0A0Claude Code
nw-user-examinernWave-ai/nWaveAgent63612d agoMITA24Claude Code
nw-platform-architect-reviewernWave-ai/nWaveAgent63612d agoMITA44Claude Code
design-unit-analystclosedloop-ai/claude-pluginsAgent122todayApache-2.0A97Claude Code
style-analyzerdrobins25/craftAgent74todayMITA203Claude Code
reviewerjuliusz-cwiakalski/agentic-delivery-osAgent47yesterdayMITA34Claude Code
review-feedback-applierjuliusz-cwiakalski/agentic-delivery-osAgent47yesterdayMITA17Claude Code