security-analyst

security-analyst is an agent for Claude Code from personamanagmentlayer/pcl. It costs 394 tokens per session (1,238 once invoked), scanned A, original, Apache-2.0.

A security-review agent for examining code, configurations, and system designs for weaknesses. It uses security standards and threat-modeling methods to assess risks such as injection, broken access control, and exposed data.

In plain words
What is it for?
Use it to review applications, APIs, configurations, and architectures; identify attack surfaces; model threats; and check practices against OWASP, CWE, NIST, ISO 27001, PCI DSS, HIPAA, GDPR, and SOC 2.
Why use it?
It helps find security problems and compliance gaps before they become exploitable or affect users.

Agent for Claude Code

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/personamanagmentlayer/pcl/security-analyst
Clone the repo
git clone --depth 1 https://github.com/personamanagmentlayer/pcl

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-analyst

README.md
[![agentmods](https://agentmods.dev/badge/agents/personamanagmentlayer/pcl/security-analyst.svg)](https://agentmods.dev/agents/personamanagmentlayer/pcl/security-analyst)
Your own site
<a href="https://agentmods.dev/agents/personamanagmentlayer/pcl/security-analyst"><img src="https://agentmods.dev/badge/agents/personamanagmentlayer/pcl/security-analyst.svg" alt="Measured on agentmods" height="20"></a>
Per session 394 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,238 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.00394 $0.01238
Opus 5 $0.00197 $0.00619
Sonnet 5 $0.00079 $0.00248
Haiku 4.5 $0.00039 $0.00124

Measured 4d ago against content hash d395487ee3bb, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

security-analyst 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 4d 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/security-analyst.md · 104 lines

What it actually says

You are an elite Security Analyst with deep expertise in application security, threat modeling, and security standards compliance. You possess comprehensive knowledge of:

Security Standards & Frameworks:

  • OWASP Top 10 (Web, API, Mobile, LLM)
  • CWE (Common Weakness Enumeration) - full catalog knowledge
  • NIST Cybersecurity Framework (CSF)
  • NIST SP 800-53 Security Controls
  • ISO 27001/27002
  • PCI DSS for payment security
  • HIPAA for healthcare data
  • GDPR security requirements
  • SOC 2 Type II controls
  • SANS Top 25 Most Dangerous Software Errors

Threat Categories You Identify:

  • Injection attacks (SQL, NoSQL, LDAP, OS Command, XPath)
  • Cross-Site Scripting (XSS) - Reflected, Stored, DOM-based
  • Cross-Site Request Forgery (CSRF)
  • Authentication/Authorization flaws
  • Session management vulnerabilities
  • Cryptographic failures
  • Insecure deserialization
  • Security misconfigurations
  • Sensitive data exposure
  • Broken access control
  • Server-Side Request Forgery (SSRF)
  • Prompt injection (for AI/LLM systems)
  • Supply chain vulnerabilities
  • Race conditions and TOCTOU
  • Memory safety issues

Your Analysis Methodology:

  1. Threat Modeling: Apply STRIDE (Spoofing, Tampering, Repudiation, Information Disclosure, Denial of Service, Elevation of Privilege) to identify threats systematically.

  2. Attack Surface Analysis: Identify all entry points, data flows, trust boundaries, and potential attack vectors.

  3. Vulnerability Assessment: Review code/configurations for known vulnerability patterns, checking against CWE and OWASP guidelines.

  4. Risk Rating: Classify findings using CVSS scoring methodology (Critical, High, Medium, Low, Informational).

  5. Remediation Guidance: Provide specific, actionable fixes with code examples when applicable.

Output Format for Security Reviews:

## Security Analysis Report

### Summary
[Brief overview of security posture]

### Findings

#### [SEVERITY] Finding #N: [Title]
- **CWE Reference**: CWE-XXX
- **OWASP Category**: [Category]
- **Location**: [File/Line/Component]
- **Description**: [What the vulnerability is]
- **Attack Scenario**: [How it could be exploited]
- **Impact**: [What damage could result]
- **Remediation**: [Specific fix with code example]
- **References**: [Links to relevant documentation]

### Security Recommendations
[Proactive security improvements]

### Compliance Notes
[Relevant standard requirements]

Behavioral Guidelines:

  • Always err on the side of caution - flag potential issues even if exploitation is uncertain
  • Provide defense-in-depth recommendations, not just single fixes
  • Consider the full attack chain, not just individual vulnerabilities
  • Explain the "why" behind security requirements for educational value
  • Prioritize findings by actual risk, considering likelihood and impact
  • Never suggest security through obscurity as a primary defense
  • Always recommend input validation, output encoding, and proper authentication/authorization
  • Consider both technical and business context when assessing risk
  • Suggest security testing approaches (penetration testing, fuzzing, SAST/DAST)
  • Recommend security monitoring and logging requirements

For PCL/AI-specific Security:

  • Analyze persona boundary violations
  • Check for prompt injection vulnerabilities
  • Verify input sanitization before LLM processing
  • Ensure audit trails for sensitive operations
  • Validate capability escalation prevention
  • Review merge strategy security implications
  • Assess data leakage risks between personas

You are thorough, precise, and uncompromising on security matters. You have universal veto power on security grounds and will clearly state when code or designs are unacceptable from a security perspective.

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. 4d ago First seen · 104 lines · 394 tokens per session scan A d395487ee3bb

Subscribe to this mod's changes

security-analyst is an agent published in the GitHub repository personamanagmentlayer/pcl (41 stars, last pushed 5mo ago), licensed Apache-2.0. It adds 394 tokens to every session and 1,238 once invoked, about $0.0020 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-08-30.