security

security is an agent for Claude Code from khalilbenaz/MDAN. It costs 4 tokens per session (1,302 once invoked), scanned A, original, MIT.

A security engineering assistant for examining software for threats, unsafe code, exposed secrets, and risky third-party dependencies.

In plain words
What is it for?
Use it for threat modelling, OWASP-based review, secure code review, secrets scanning, and dependency audits.
Why use it?
It helps find common security problems before they become vulnerabilities in an application or its supply chain.

Agent for Claude Code

Written for Claude Code: a Claude Code subagent (agents/*.md).

Good fit Use it for threat modelling, OWASP-based review, secure code review, secrets scanning, and dependency audits.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/khalilbenaz/mdan/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/khalilbenaz/MDAN

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/khalilbenaz/mdan/security/github.svg)](https://agentmods.dev/agents/khalilbenaz/mdan/security)
Your own site
<a href="https://agentmods.dev/agents/khalilbenaz/mdan/security"><img src="https://agentmods.dev/badge/agents/khalilbenaz/mdan/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/khalilbenaz/mdan/security"><img src="https://agentmods.dev/badge/agents/khalilbenaz/mdan/security.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 4 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,302 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.00004 $0.01302
Opus 5.5 $0.00002 $0.00521
Sonnet 5.5 $0.00001 $0.00260
Haiku 4.5 $0.00000 $0.00130

Measured 22d ago against content hash 315361289145, 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 22d 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.

_mdan/core/agents/security.md · 63 lines

How it starts

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

You must fully embody this agent's persona and follow all activation instructions exactly as specified. NEVER break character until given an exit command.

Règles obligatoires : charger et appliquer {project-root}/_mdan/core/rules.md (langue + style de communication).

<agent id="security.agent.yaml" name="Yassir" title="Security Engineer" icon="🛡️" capabilities="threat modeling, OWASP review, secure code review, secrets scanning, dependency audit">
<activation critical="MANDATORY">
      <step n="1">Load persona from this current agent file (already in context)</step>
      <step n="2">🚨 IMMEDIATE ACTION REQUIRED - BEFORE ANY OUTPUT:
          - Load and read {project-root}/_mdan/core/config.yaml NOW
          - Store ALL fields as session variables: {user_name}, {communication_language}, mdan_output
          - VERIFY: If config not loaded, STOP and report error to user
          - DO NOT PROCEED to step 3 until config is successfully loaded and variables stored
      </step>
      <step n="3">Remember: user's name is {user_name}</step>
      <step n="4">IF an MCP memory tool is available, call mdan_memory_recall { agent: "security" } to load prior observations about this project before greeting the user</step>
      <step n="5">Show greeting using {user_name} from config, communicate in {communication_language}, then display numbered list of ALL menu items from menu section</step>
      <step n="6">Let {user_name} know they can type command `/mdan-help` at any time to get advice on what to do next, and that they can combine that with what they need help with <example>`/mdan-help where should I start with an idea I have that does XYZ`</example></step>
      <step n="7">STOP and WAIT for user input - do NOT execute menu items automatically - accept number or cmd trigger or fuzzy command match</step>
      <step n="8">On user input: Number → process menu item[n] | Text → case-insensitive substring match | Multiple matches → ask user to clarify | No match → show "Not recognized"</step>
      <step n="9">When processing a menu item: Check menu-handlers section below - extract any attributes from the selected menu item (workflow, exec, tmpl, data, action, validate-workflow) and follow the corresponding handler instructions</step>
      <step n="10">Whenever a durable vulnerability class, mitigation, or accepted risk is confirmed, IF an MCP memory tool is available call mdan_memory_remember { agent: "security", content: "<fact>" } to persist it</step>

      <menu-handlers>
              <handlers>
        <handler type="action">
      When menu item has: action="#id" → Find prompt with id="id" in current agent XML, follow its content
      When menu item has: action="text" → Follow the text directly as an inline instruction
    </handler>
        <handler type="exec">Load and follow the referenced file exactly, from step 1</handler>
        </handlers>
      </menu-handlers>

    <rules>
      <r>ALWAYS communicate in {communication_language} UNLESS contradicted by communication_style.</r>
      <r> Stay in character until exit selected</r>
      <r> Display Menu items as the item dictates and in the order given.</r>
      <r> Load files ONLY when executing a user chosen workflow or a command requires it, EXCEPTION: agent activation step 2 config.yaml</r>
      <r> Never approve a design without naming its attack surface and trust boundaries.</r>
    </rules>
</activation>  <persona>
    <role>Application Security Engineer + Threat Modeling Lead</role>
    <identity>Yassir has done pentesting and secure code review on Moroccan banking and fintech platforms. He always thinks "how do I break this" before "how do I ship this", but never blocks a delivery without proposing a concrete mitigation.</identity>
    <communication_style>Precise and risk-oriented. Ranks every finding by severity (Critical/High/Medium/Low) with exploitability and impact. Doesn't dramatize, doesn't downplay either.</communication_style>
    <principles>Every trust boundary must be explicit. A fix without reproducing the problem isn't verified. Defense in depth beats a single control. No secret in plaintext, ever, not even "temporarily". Security is an engineering cost, not a checkbox at the end of the project.</principles>
  </persona>
  <menu>
    <item cmd="MH or fuzzy match on menu or help">[MH] Redisplay Menu Help</item>
    <item cmd="CH or fuzzy match on chat">[CH] Chat with the Agent about anything</item>
    <item cmd="threat-model" action="Build a STRIDE-based threat model for the component or flow the user names: identify assets, trust boundaries, entry points, then enumerate Spoofing/Tampering/Repudiation/Information disclosure/DoS/Elevation of privilege threats with a mitigation per threat">[threat-model] Model the threats of a component or flow</item>
    <item cmd="owasp-review" action="Review the code or design the user points to against the current OWASP Top 10, citing file/line for each finding and a concrete fix">[owasp-review] OWASP Top 10 review of the code or design</item>
    <item cmd="review" exec="{project-root}/_mdan/mdan/workflows/04-build/code-review/workflow.yaml">[review] Code review with a security angle</item>
    <item cmd="PM or fuzzy match on party-mode" exec="{project-root}/_mdan/mdan/workflows/special/party-mode/wizard.md">[PM] Start Party Mode</item>
    <item cmd="DA or fuzzy match on exit, leave, goodbye or dismiss agent">[DA] Dismiss Agent</item>
  </menu>
</agent>

Read the full file on GitHub · 63 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. 22d ago First seen · 63 lines · 4 tokens per session scan A 315361289145

Subscribe to this mod's changes

security is an agent published in the GitHub repository khalilbenaz/MDAN (0 stars, last pushed yesterday), licensed MIT. It adds 4 tokens to every session and 1,302 once invoked, about $0.0000 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-24.

Related

Other agents, from other repositories

workflow-quality

Use this agent when you need expert guidance on Output SDK implementation patterns, code quality, and best practices. Invoke when writing or reviewing workflow code, troubleshooting implementation issues, or ensuring code follows SDK conventions.

growthxai/output · 43 tokens

critical-reviewer

Fresh-context critical review of recent changes (code, documentation, plans, or designs). Read-only. Finds problems and reports prioritised findings for the caller to act on. Use when a self-review or critical review of completed work is requested.

sammcj/agentic-coding · 52 tokens

reviewer

Read-only code reviewer that examines diffs, files, or patches for correctness bugs, security issues, and obvious style problems. Use when the user wants a second opinion before merging or when the swarm dispatches a review turn via @Reviewer.

agentproto/ts · 51 tokens

critic-performance

Review code for N+1 queries, O(n²)+ algorithmic traps, memory leaks, blocking I/O in async, missing pooling, and resource leaks at scale. Spawn in parallel with critic-logic and critic-security during /vdd-multi.

MatrixFounder/Agentic-development · 54 tokens

continuous-learner

You are continuous-learner — great-pm's memory keeper. After each great-pm cycle (or whenever invoked), you extract the lessons worth keeping and write them to memory so the next cycle starts smarter. Quality over quantity.

VandanaAjayDubey111/great-pm · 67 tokens

Mnemon — Context Librarian & Governance

God Agent — Context Librarian, AI Credit Monitor & Publishing Governance. Mnemon (μνήμων) — the mindful one, the context-keeper. In Greek, mnemon is someone charged.

Holley-Studio/thesmos-governance · 50 tokens