/security-principles:ai-era-securityfrom security-principles
Secures AI systems, LLM apps, and agentic AI with guidance on OWASP LLM/Agentic Top 10, MITRE ATLAS, NIST AI RMF, EU AI Act, prompt injection, MCP security, post-quantum cryptography, and modern frameworks (NIST CSF 2.0, CIS v8.1, FIDO2, SLSA/SBOM).
Ships in security-principles. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Traditional security fundamentals are the bedrock. AI-era security is a genuine extension, not a rebrand. The data/instruction boundary collapse (prompt injection), autonomous action (agentic AI), and models as supply-chain artifacts all require layering new controls on top of — not instead of — the proven foundations.
Three clocks are running simultaneously:
First major revision since 2014. Headline change: sixth core function Govern (GV) added to Identify, Protect, Detect, Respond, Recover.
Why it matters: Governance and C-SCRM are now first-class board-level concerns, not IT concerns.
Iterative update aligning to NIST CSF 2.0.
Restructured Annex A into 4 themes (Organizational, People, Physical, Technological) and 93 controls total, with 11 new controls including:
Transition deadline: certifications against the 2013 version expired during the transition window ending in 2025.
CNAPP (Cloud-Native Application Protection Platform) unifies CSPM + CWPP + CIEM + DSPM + KSPM + IaC scanning.
Market leaders:
DSPM (Data Security Posture Management) discovers/classifies sensitive data (PII/PHI/PCI), maps data flows and exposure paths, and ties data risk to identity and infrastructure context.
The mature, vendor-neutral stack:
Scale of threat: Sonatype discovered 454,648 new malicious open-source packages in 2025 (cumulative: 877,522+ since 2019). Threats evolved from "spam and stunts" into "sustained, industrialized campaigns."
Critical rule: pin dependencies by commit SHA, not tag.
Watershed events: GhostAction GitHub Actions compromise, Ultralytics PyPI compromise.
3-2-1-1-0 backup rule: 3 copies, 2 media types, 1 offsite, 1 offline/immutable/air-gapped, 0 errors after verification.
Root cause: LLMs process instructions and data in the same channel with no separation.
Two forms:
XPIA is especially dangerous because it requires no user interaction — the model fetches and executes attacker-controlled content autonomously.
See Section 4 (OWASP Agentic Top 10) and Section 5 (real-world incidents).
The de facto US AI governance vocabulary. Four functions:
A cross-sectoral profile issued per Executive Order 14110. Defines 12 GAI risk categories including:
The adversarial AI ATT&CK analog.
Current scope:
Usage rule: OWASP for risk prioritization; ATLAS for technique mapping and red-teaming.
Two new entries vs. 2023/24 (marked new):
| # | Risk |
|---|---|
| LLM01 | Prompt Injection |
| LLM02 | Sensitive Information Disclosure |
| LLM03 | Supply Chain |
| LLM04 | Data & Model Poisoning |
| LLM05 | Improper Output Handling |
| LLM06 | Excessive Agency |
| LLM07 | System Prompt Leakage (new) |
| LLM08 | Vector & Embedding Weaknesses (new) |
| LLM09 | Misinformation |
| LLM10 | Unbounded Consumption |
Critical: LLM07 means the system prompt is NOT a security control (see production security guidance below).
See full Section 4 below.
The world's first certifiable AI Management System (AIMS) standard. Plan-Do-Check-Act structure.
Phased implementation timeline:
Fines: up to €35M or 7% of global annual turnover, whichever is higher.
Action: classify all AI systems against Annex III before Aug 2, 2026. Any high-risk use case requires a full AI risk management system.
Released December 9, 2025. Developed with 100+ security researchers; review board includes NIST, Microsoft AI Red Team, AWS, Oracle.
| ID | Risk | Real-World Example |
|---|---|---|
| ASI01 | Agent Goal Hijack | EchoLeak (CVE-2025-32711) |
| ASI02 | Tool Misuse | Amazon Q |
| ASI03 | Identity & Privilege Abuse | — |
| ASI04 | Agentic Supply Chain Vulnerabilities | GitHub MCP exploit |
| ASI05 | Unexpected Code Execution | AutoGPT RCE |
| ASI06 | Memory & Context Poisoning | Gemini memory attack |
| ASI07 | Insecure Inter-Agent Communication | — |
| ASI08 | Cascading Failures | — |
| ASI09 | Human-Agent Trust Exploitation | — |
| ASI10 | Rogue Agents | Replit meltdown |
The agentic analog of prompt injection. An attacker redirects an agent's objective at runtime. EchoLeak (CVE-2025-32711) is the canonical example: a crafted email caused M365 Copilot to exfiltrate data automatically, with no user interaction.
An agent invokes tools beyond their intended scope. Amazon Q incident demonstrated an agent using cloud-management tools it shouldn't have accessed. Defense: strict tool allowlisting, not blocklisting.
Agents inheriting excessive permissions, or attackers impersonating agents. Treat every agent as a non-human identity; apply same rigor as human privileged accounts.
Compromised MCP servers, plugins, or orchestration frameworks introduce malicious behavior. The GitHub MCP exploit demonstrated supply-chain compromise in an agentic context.
Agents that can write and execute code are vulnerable to unintended RCE. AutoGPT RCE is the documented example. Defense: sandbox all code execution environments.
Attacking an agent's persistent memory to alter future behavior. The Gemini memory attack demonstrated poisoning that persisted across sessions. Defense: validate/bound agent memory; treat stored memory as untrusted input.
In multi-agent architectures, messages between agents lack authentication or integrity protection. Currently, both A2A and MCP protocols lack enforced token expiration and central verification.
One agent's failure or compromise propagates to dependent agents. In multi-agent pipelines, a blast radius can span the entire system. Defense: circuit breakers, timeouts, and independent failure domains.
Social-engineering tactics adapted for AI agents — manipulating users into trusting malicious agent outputs, or agents into trusting manipulated human instructions.
Agents that deviate from their intended objectives, whether due to manipulation or emergent behavior. The Replit meltdown is the documented example of runaway agent behavior.
Microsoft Entra Agent ID (GA April 2026) is the current gold standard for enterprise agent identity:
Important caveat: There is no single ratified cross-vendor OAuth-for-agents standard as of mid-2026. OWASP is working on Agentic Identity / an Agentic Naming Service. Flag agent identity as an emerging, fragmented area.
Layer all available guardrail types — no single guardrail is sufficient:
Layer cloud-native input filters + specialized output/hallucination checks + library-level controls, ideally enforced at a gateway, not in the model.
The system prompt is NOT a security control. OWASP LLM07 (System Prompt Leakage) makes this explicit. Enforce all security constraints deterministically outside the model in code.
MAESTRO (Multi-Agent Environment, Security, Threat, Risk, and Outcome) is a seven-layer agentic threat modeling framework developed by Ken Huang/CSA (February 2025). Used by OWASP's Multi-Agentic System Threat Modeling Guide. Use it for structured threat modeling of agentic architectures, layered with MITRE ATLAS technique mapping.
LangChain, LlamaIndex, and AutoGen all require explicit hardening:
"Harvest now, decrypt later" is an active threat: adversaries archive today's encrypted traffic to decrypt once they have a quantum computer. Any data with a >10-year confidentiality requirement is already at risk.
Inventory all cryptographic usage, abstract algorithms behind interfaces, and ensure you can swap algorithms without architectural changes. This is more valuable than any single algorithm choice.
Apply this checklist to every agentic system before production deployment.
1. Non-human identity with human sponsor Every agent has a registered identity (Entra Agent ID or equivalent), a named human sponsor who owns accountability, and scoped short-lived credentials — no standing broad permissions.
2. Least privilege + complete mediation Validate every tool call against policy in a deterministic layer outside the LLM. Allowlist permitted tools and egress domains. Apply Saltzer & Schroeder's Complete Mediation principle: every access, every time.
3. Treat prompt as hostile, output as untrusted Apply input filtering before the LLM and output validation after. Check groundedness. Never trust that the model will enforce security constraints itself.
4. Blast-radius containment Sandbox all tool execution in isolated environments. Segment agent permissions so one compromised agent cannot pivot. Cap spend and request rate to defend against Denial of Wallet (LLM10: Unbounded Consumption).
5. Human-in-the-loop for irreversible/high-stakes actions Define which actions require human confirmation before execution. Automate the reversible; gate the irreversible. This is the highest-leverage single control against runaway agent behavior (ASI10).
6. XPIA defense across all data ingestion paths Treat every document, email, web page, database row, and tool output as potentially adversarial. Do not blindly pass retrieved content into the agent context as instructions. Validate, sanitize, and isolate untrusted external content from instructions.
7. Memory protection Validate and bound agent memory at read and write. Protect against context poisoning (ASI06) — stored memory is an attack surface, not a trusted source. Treat retrieved memory as untrusted input requiring the same scrutiny as external data.
8. Inter-agent authentication and trust boundaries Sign inter-agent messages. Enforce mutual authentication between agents. Define explicit trust boundaries. Use time-boxed tokens. Do not assume messages from other agents are trustworthy by virtue of origin.
9. Audit logging and observability for all agent actions Log all prompts (or prompt hashes), tool calls, parameters, responses, and decisions. This is non-negotiable for incident response and for detecting drift or rogue behavior. LLM observability platforms (Langfuse, Helicone, etc.) or native platform logging.
10. Regular threat modeling with MAESTRO and MITRE ATLAS Run a CSA MAESTRO layered analysis at design time. Map attacks to MITRE ATLAS techniques. Re-run threat models when agent capabilities, tools, or integrations change. Purple-team agentic scenarios.
| STRIDE | AI/Agentic Mapping |
|---|---|
| Spoofing | Agent impersonation, identity abuse (ASI03) |
| Tampering | Prompt/RAG/memory poisoning (LLM04, ASI06), tool definition rug-pulls (ASI04) |
| Repudiation | Missing audit logs for agent actions and tool calls |
| Information disclosure | Sensitive info leakage (LLM02), system-prompt leakage (LLM07), data exfiltration via XPIA |
| Denial of service | Unbounded consumption / Denial of Wallet (LLM10), cascading failures (ASI08) |
| Elevation of privilege | Excessive agency (LLM06), tool misuse (ASI02), privilege abuse (ASI03) |
Augment STRIDE with MITRE ATLAS technique mapping and CSA MAESTRO layered analysis for comprehensive agentic threat models.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub theviziusgroup/vibe-engineering-skills --plugin security-principles4 skills in this plugin
/ai-security-practicesAI security and cybersecurity best practices for software development (Python and TypeScript/Next.js) covering prompt injection defense, OWASP LLM Top 10 2025, agentic AI risks (OWASP ASI Top 10), MCP security, RAG attack vectors, output sanitization, guardrail architectures (NeMo Guardrails, LLM Guard), secrets management for AI APIs, Denial of Wallet prevention, supply-chain security (SLSA/Sigstore/SBOMs), critical Next.js/React CVEs, and NIST AI RMF. Use when advising on securing AI systems, LLM applications, agent architectures, or web application security in Python/TypeScript stacks./cybersecurity-principlesUse when explaining cybersecurity foundations, the Saltzer-Schroeder design principles, CIA triad, Zero Trust architecture, defense in depth, AAA model, threat intelligence, NIST CSF 2.0, CIS Controls, ISO 27001, modern IAM (FIDO2/passkeys/PAM), SASE, incident response, or building a security mental model. Use for any conceptual cybersecurity question, when grounding security decisions in first principles, when explaining why a security control exists, when evaluating security trade-offs, or when mapping principles to AI-era security challenges. Triggers on least privilege, fail-safe defaults, defense in depth, zero trust, CIA triad, authentication vs authorization, phishing-resistant MFA, NIST CSF, or "why do we need X security control" questions./threat-modeling-playbookUse when conducting threat modeling, creating STRIDE analysis, running threat assessment workshops, designing secure architectures, or identifying attack vectors. Use for any security design review, architecture threat analysis, or security risk assessment. Triggers on threat model, attack surface, STRIDE, PASTA, MITRE ATT&CK, attack tree, misuse story, trust boundary, data flow diagram, "what could go wrong" security questions, or security review of a new system or feature.2 plugins ship this exact skill · first indexed Aug 12, 2026