appsec.fyi

AI — A Practical Guide

A curated AppSec resource library covering XSS, SQLi, SSRF, IDOR, RCE, XXE, OSINT, and more.

AI: A Practical Guide

Curated and synthesized by . Last updated 2026-06-29. Synthesized from 526 of 526 curated resources. Browse all 526 AI resources →

Problem Framing: The Shifting Attack Surface in the Age of AI

The rapid integration of AI into application development and operations has fundamentally altered the security landscape. This shift is not merely about new types of vulnerabilities but about an expanded and more dynamic attack surface. AI agents, LLMs, and AI-generated code introduce novel vectors that traditional security tools and practices struggle to address. The core challenge lies in securing systems where the "attacker" can be an AI, the "code" is AI-generated and potentially flawed, and the "instructions" can be manipulated through natural language. This necessitates a paradigm shift from securing static code to securing dynamic, agentic workflows and the reasoning processes within AI systems. Concerns range from sophisticated prompt injection attacks that manipulate AI behavior to supply chain compromises within AI development pipelines, and the inherent risks of AI models themselves, such as data poisoning and model theft [1][2][3][4][5][6][7][8][9]. The sheer volume of AI adoption, with over 70% of cloud environments already utilizing AI [10], underscores the urgency of addressing these new security paradigms.

Core Mechanics: Understanding How AI Introduces New Risks

Prompt Injection: The Human Language Vulnerability

Prompt injection is a class of attacks where malicious instructions are embedded within data processed by an LLM, causing it to perform unintended actions or reveal sensitive information. This attack exploits the fundamental inability of transformer-based LLMs to reliably distinguish between data and instructions [3]. There are two primary forms:

Examples include tricking an AI into summarizing confidential emails [17], manipulating AI trading agents for financial fraud [18], or causing AI assistants to respond with misinformation or execute harmful commands [19]. Even seemingly benign actions, like processing a crafted GitHub comment, can lead to credential theft [20].

AI Agentic Vulnerabilities: The Expanding "Trust Boundary"

AI agents, empowered by LLMs and equipped with tools and access to external systems, represent a significant expansion of the attack surface. Their "reasoning loop" (Observe, Reason, Act, Learn) introduces new security control points and vulnerabilities [21].

Supply Chain Attacks in AI

The AI supply chain is complex, involving frameworks, models, IDE extensions, and third-party plugins. Compromising any link can have widespread consequences.

AI-Generated Code Security

Code generated by AI assistants like GitHub Copilot, Amazon Q, or Google Gemini is increasingly common. However, this code often contains vulnerabilities. Studies indicate a significant percentage of AI-generated code snippets include security flaws, with rates as high as 40% or more depending on the model and source [39][40][41][5]. Models trained on flawed code can inadvertently pass these vulnerabilities into their output [40]. Furthermore, "package hallucination" by AI tools can lead to attacks where the AI suggests non-existent or malicious packages [40].

Data Security and Privacy

AI systems often process vast amounts of data, including sensitive information.

Notable Techniques and Attack Vectors

Prompt Injection and Jailbreaking

This remains a primary concern. Techniques range from direct manipulation of LLM prompts to bypass safety rules [4][45] to sophisticated indirect methods where malicious instructions are hidden in external content [11][8][12][13]. Specific attacks include:

Agentic AI Exploitation

Beyond prompt injection, AI agents themselves are targets:

AI-Driven Vulnerability Discovery and Exploitation

AI models are increasingly capable of discovering and even exploiting zero-day vulnerabilities autonomously.

Securing AI-Generated Code

The security of code produced by AI assistants is a critical concern, as it frequently contains vulnerabilities.

Detection and Prevention: Building AI Security Posture

AI Security Posture Management (AI-SPM)

AI-SPM tools and processes aim to provide visibility into AI assets, assess risks, and prioritize critical AI-related security findings. This includes dynamically inventorying AI frameworks, models, IDE extensions, and agent configurations (AI Bill of Materials - AI-BOM) [10][55][56][7]. Key aspects include:

Securing the Agent Execution Loop

Governing AI agent behavior within their execution loop is a new security control point. This involves implementing controls before actions are executed, focusing on what agents use, do, and generate [21].

Mitigating Prompt Injection and Agent Exploitation

Securing AI-Generated Code

Supply Chain Security for AI

Tooling and Technologies

A growing ecosystem of tools is emerging to address AI security challenges:

Recent Developments and Emerging Trends

Where to Go Deeper

To further your understanding and practical application of AI security, consider the following resources:

Sources cited in this guide

  1. Prompt Injection Attacks Are Now in Production: What We Learned from Real Breaches — securityboulevard.com
  2. Agentic Security Threats: Prompt Injection Becomes Live Malware — aicerts.ai
  3. AI Agent Security Hits Its Reckoning: Prompt Injection May Be a Permanent Flaw Not a Patchable Bug — techtimes.com
  4. Introducing the Snyk AI Security Platform — snyk.io
  5. Meeting the AI Mandates with Confidence: Why Federal Teams Trust Snyk — snyk.io
  6. Secure by Design: The Future of Threat Modeling for AI-Native Applications — snyk.io
  7. Introducing the AI Security Fabric: Empowering Software Builders in the Era of AI — snyk.io
  8. Indirect Prompt Injection Exposes a Universal AI Security Flaw No Deployment Model Is Immune — futurumgroup.com
  9. LLM Security News: Risks Incidents Defenses — blockchain-council.org
  10. Wiz at Google Next: Machine-Speed Defense for Any Cloud, Any Platform, Any AI — wiz.io
  11. Prompt injection protection: Detecting and blocking malicious AI instructions — acronis.com
  12. Indirect Prompt Injection Is Now a Real-World AI Security Threat — techrepublic.com
  13. Indirect prompt injection is taking hold in the wild — helpnetsecurity.com
  14. Architecting Secure AI Agents: System-Level Defenses Against Indirect Prompt Injection — arxiv.org
  15. OWASP LLM Prompt Injection Prevention Cheat Sheet — cheatsheetseries.owasp.org
  16. LLM01:2025 Prompt Injection | OWASP Gen AI Security — genai.owasp.org
  17. Microsoft Copilot: From Prompt Injection to Exfiltration of Personal Information · Embrace The Red — embracethered.com
  18. Researchers Uncover 10 In-the-Wild Prompt Injection Payloads Targeting AI Agents — infosecurity-magazine.com
  19. Three Prompt Injection Patterns Your AI Security Detection Stack Misses — cybersecurity-insiders.com
  20. Agents hooked into GitHub can steal creds but Anthropic Google and Microsoft haven't warned users — theregister.com
  21. The New Security Control Point: Governing AI Agents Inside the Execution Loop — snyk.io
  22. ServiceNow's Virtual Agent Vulnerability Shows Why AI Security Needs Traditional AppSec Foundations — snyk.io
  23. Security for AI Agent Managers: Key Controls — blockchain-council.org
  24. harishsg993010/crossbow-agent: world's first Opensource fully Autonomous AI Security Engineer — github.com
  25. MCP Security: Tool Poisoning Attacks - Invariant Labs — invariantlabs.ai
  26. Poison Everywhere: No Output from Your MCP Server Is Safe - CyberArk — cyberark.com
  27. MCP Security Vulnerabilities: Prompt Injection and Tool Poisoning — practical-devsecops.com
  28. How Agentic Tool Chain Attacks Threaten AI Agent Security — crowdstrike.com
  29. MCP Supply Chain Advisory: RCE Vulnerabilities Across the AI Ecosystem — ox.security
  30. The Vulnerable MCP Project: Comprehensive MCP Security Database — vulnerablemcp.info
  31. How AI Red Teaming Fixes Vulnerabilities in Your AI Systems — invisibletech.ai
  32. How prompt injection broke Nvidia's sandboxed OpenClaw agent — bdtechtalks.substack.com
  33. Snyk Finds Prompt Injection in 36%, 1467 Malicious Payloads in a ToxicSkills Study of Agent Skills Supply Chain Compromise — snyk.io
  34. How a Malicious Google Skill on ClawHub Tricks Users Into Installing Malware — snyk.io
  35. Ultralytics AI Pwn Request Supply Chain Attack — snyk.io
  36. Weaponizing AI Coding Agents for Malware in the Nx Malicious Package Security Incident — snyk.io
  37. The (In)security Landscape of AI-Powered GitHub Actions (Part 2/2) — wiz.io
  38. The risk in malicious AI models: Wiz Research discovers critical vulnerability in AI-as-a-Service provider, Replicate — wiz.io
  39. Secure AI-Generated Code at Speed with Snyk and ServiceNow — snyk.io
  40. Welcome-to-The New Era of AI-Driven Development — snyk.io
  41. AI Is Reshaping Software. Is Your Security Strategy Keeping Up? — snyk.io
  42. Defending Your Enterprise at the Speed of AI — snowflake.com
  43. EchoLeak: First Real-World Zero-Click Prompt Injection Exploit — arxiv.org
  44. 7 Serious AI Security Risks and How to Mitigate Them — wiz.io
  45. Six levels, one lesson: LLMs cannot keep a secret — infosecwriteups.com
  46. SearchLeak: How We Turned M365 Copilot Into a One-Click Data Exfiltration Weapon — varonis.com
  47. Red Teaming the Mind of the Machine: Evaluation of Prompt Injection and Jailbreak Vulnerabilities — arxiv.org
  48. LangChain Langflow LiteLLM: When AI's Foundation Code Becomes the Attack Surface — securityboulevard.com
  49. Indirect Prompt Injection: The Hidden Threat — lakera.ai
  50. Claude Mythos: Preparing for a World Where AI Finds and Exploits Vulnerabilities Faster Than Ever — wiz.io
  51. AI’s Hacking Skills Are Approaching an ‘Inflection Point’ — wired.com
  52. KeygraphHQ/shannon: Fully autonomous AI hacker to find actual exploits in your web apps. Shannon has achieved a 96.15% success rate on the hint-free, source-aware XBOW Benchmark. — github.com
  53. 5 security best practices for adopting generative AI code assistants like GitHub Copilot — snyk.io
  54. AI Code Generation: Code Security & Quality, Benefits, Risks & Top Tools — snyk.io
  55. Wiz AI-SPM model scanning: Securely innovate with AI community models — wiz.io
  56. Secure at Inception: Introducing New Tools for Securing AI-Native Development — snyk.io
  57. OpenAI Launches Lockdown Mode Against Prompt Injection Attacks — techbuzz.ai
  58. The Future of AI Agent Security Is Guardrails — snyk.io
  59. How Microsoft Defends Against Indirect Prompt Injection Attacks — microsoft.com
  60. Snyk announces Anthropic updates: Evo integrates with Claude Enterprise, and Snyk Desk comes to Claude Desktop — snyk.io
  61. Hunting Account Takeovers in the Wild West of MCP OAuth Servers" — blog.sicks3c.io
  62. fr0gger/proximity: Proximity is a MCP security scanner powered with NOVA — github.com
  63. The MCP Security Tool You Probably Need - MCP Snitch — adversis.io
  64. Nightfall AI and Snyk unite to deliver AI-powered secrets scanning for developers — snyk.io
  65. Snyk Security Solution Now Integrated into Google Cloud's Gemini Code Assist — snyk.io
  66. Building AI Trust with Snyk Code and Snyk Agent Fix — snyk.io
  67. Introducing the New Agentic Architecture for Snyk Agent Fix: Faster, Smarter, and More Secure — snyk.io
  68. Fix SCA issues at scale in your terminal with Snyk Remediation Agent in the CLI — snyk.io
  69. How Relay Network Adopted AI Coding Securely and Built the Foundation for Agentic Development — snyk.io
  70. Introducing Wiz AI Application Protection Platform (AI-APP) — wiz.io
  71. Why We Built Evo — From My Heart — snyk.io
  72. Protecting Against Indirect Prompt Injection Attacks in MCP — developer.microsoft.com
  73. The top 10 AI security articles you must read in 2024 — wiz.io
  74. Scaling AI Security: How Evo Complements New Agentic Tools — snyk.io
  75. Introducing Wiz Agents & Workflows: Security at the Speed of AI — wiz.io
  76. Auditing the Gatekeepers: Fuzzing "AI Judges" to Bypass Security Controls — unit42.paloaltonetworks.com
  77. Introducing the Wiz Red Agent- AI-Powered Attacker — wiz.io
  78. OWASP Top 10 for LLMs 2025 | DeepTeam Red Teaming Framework — trydeepteam.com
  79. Practical LLM Security Advice from the NVIDIA AI Red Team — developer.nvidia.com
  80. NVIDIA/garak: the LLM vulnerability scanner — github.com
  81. Microsoft Security Copilot is a new GPT-4 AI assistant for cybersecurity — theverge.com
  82. LLM Security Guide: OWASP GenAI Top-10 Risks — github.com
  83. Anatomy of an Indirect Prompt Injection — pillar.security
  84. Anthropic's Model Context Protocol includes a critical remote code execution vulnerability newly discovered exploit puts 200000 AI servers at risk — tomshardware.com
  85. The 'by design' security flaw of Model Context Protocol (MCP) — bdtechtalks.substack.com
  86. MCP Auto-Execution: From Git Clone to Cloud Compromise in Amazon Q VS Code Extension — wiz.io
  87. Probllama: Ollama Remote Code Execution Vulnerability (CVE-2024-37032) – Overview and Mitigations — wiz.io
  88. Wiz Research Finds Critical NVIDIA AI Vulnerability Affecting Containers Using NVIDIA GPUs, Including Over 35% of Cloud Environments — wiz.io
  89. NVIDIAScape - Critical NVIDIA AI Vulnerability: A Three-Line Container Escape in NVIDIA Container Toolkit (CVE-2025-23266) — wiz.io
  90. Wiz Research Uncovers Critical Vulnerability in AI Vibe Coding platform Base44 Allowing Unauthorized Access to Private Applications — wiz.io
  91. Prompt Injection Attacks on Agentic Coding Assistants: A Systematic Analysis — arxiv.org
  92. The Dark Side of LLMs: Agent-based Attacks for Complete Computer Takeover — arxiv.org
  93. 280+ Leaky Skills: How OpenClaw & ClawHub Are Exposing API Keys and PII — snyk.io
  94. How “Clinejection” Turned an AI Bot into a Supply Chain Attack — snyk.io
  95. Securing CI/CD in an agentic world: Claude Code Github action case — microsoft.com
  96. Prompt Injection in 2026 for Web3 Security — blockchain-council.org
  97. Six AI Vulnerabilities Three Attack Patterns One Dangerous Service Gap — msspalert.com
  98. You're Simulating the Wrong Attacker: Who Matters in AI Red Teaming — adversa.ai
  99. When AI Meets the Web: Prompt Injection Risks in Third-Party AI Chatbot Plugins — arxiv.org
  100. What Is Prompt Injection in AI? Examples & Prevention | EC-Council — eccouncil.org
  101. AI Security Projects for Practice: 10 Hands-On Labs — blockchain-council.org
  102. aress31/burpgpt — github.com
  103. SecGPT transforms cybersecurity through AI-driven insights. — medium.com
  104. I Used GPT-3 to Find 213 Security Vulnerabilities in a Single Codebase — medium.com
  105. HackGPT — kaneofthrones.medium.com
📚 This guide is synthesized from the full text of resources curated in the AI library, and refreshed as new material is added.