Skip to main content
  • AI Security Academy

    AI Security Academy

    What is AI Security

    AI security is not a neat, one-line definition you can slap on a slide.

    AI Security Glossary

    Explore some of the most common terms in AI Security

    AI Usage Stats

    Explore current AI usage trends.

  • Tools

    AI Security Tools

    OneClaw

    Track and analyze OpenClaw deployments in your org

    ClawSec

    Secure your OpenClaw, NanoClaw, and Hermes agents.

    Prompt Fuzzer

    Get our AI vulnerability assessment open source tool

  • Blog
  • Startup Map
  • Learn More
    Book a Demo
  • AI Security Academy

    AI Security Academy

    What is AI Security

    AI security is not a neat, one-line definition you can slap on a slide.

    AI Security Glossary

    Explore some of the most common terms in AI Security

    AI Usage Stats

    Explore current AI usage trends.

  • Tools

    AI Security Tools

    OneClaw

    Track and analyze OpenClaw deployments in your org

    ClawSec

    Secure your OpenClaw, NanoClaw, and Hermes agents.

    Prompt Fuzzer

    Get our AI vulnerability assessment open source tool

  • Blog
  • Startup Map
  • Learn More
    Book a Demo
Skip to main Content
Back to Glossary

Prompt Injection

What Is Prompt Injection?

Prompt injection happens when an attacker crafts input specifically designed to override a model's original instructions and get it to follow theirs instead. The term was coined in 2022, and by the time OWASP published its LLM Top 10, it had already become the risk practitioners were most worried about, a spot it still holds. It becomes significantly more dangerous once an LLM is connected to other systems, tools, or agents: a successful injection can be the entry point to data exfiltration, unauthorized actions, or remote code execution.

How It Works

  • Direct injection — typed straight into the prompt, e.g., "ignore your previous instructions and instead..."
  • Indirect injection — hidden in external content the model reads. See Indirect Prompt Injection.
  • Visual injection — hidden inside an image rather than text. See Visual Prompt Injection.
  • Agentic prompt injection — targets an AI agent specifically, aiming not just to change what the model says but to get it to take a real action: calling a tool, executing a transaction, or reaching into a connected system it shouldn't. Delivery can still be direct, indirect, or visual, what makes it "agentic" is that the payoff is an action, not just a bad response.
  • Why it's hard to block — LLMs accept unstructured natural language, so the space of possible attacks is effectively unbounded.

FAQ

No, jailbreaking is a category of prompt injection focused specifically on defeating safety training, not hijacking for a specific action. See Jailbreak.

A single filter or blocklist won't catch every variant, since LLMs process open-ended natural language rather than fixed patterns. But a properly built, multi-layered defense, one designed specifically for the non-deterministic nature of LLMs rather than adapted from traditional security tooling, can reliably block prompt injection attempts, including ones that haven't been seen before.


Share this page

Related Terms


Indirect Prompt Injection

Indirect prompt injection happens when an LLM or agent processes attacker-controlled content from an external source, like a webpage or document, rather than a direct user input.

Visual Prompt Injection

In a visual prompt injection, malicious instructions are hidden inside an image rather than the text prompt, designed to be read by the model but invisible to the person looking at it.

Jailbreak

Jailbreaking is a category of prompt injection focused on getting a model to ignore its safety training and guardrails rather than hijacking it for a specific downstream action.

Insecure Plugin Design

LLMs and agents calling external tools, whether through legacy plugins, function calling, or MCP servers, can be manipulated into making malicious requests to those tools if inputs aren't properly validated.

Related Resources

Prompt Injection 101

AI Risks

Nov 3rd, 2024

Uncover real-world prompt injection examples and learn how these attacks work, why they’re hard to block & what you can do to protect AI systems.

The Agentic AI Attack Surface: Where Risk Lives Beyond the Prompt

AI Risks

May 5th, 2026

Technical analysis of agentic AI security boundaries covering content ingestion, context translation, tool execution, and behavioral constraints in AI runtimes.

Why AI Browsers Create a New, Unavoidable Security Risk

Agentic AI

Jan 22nd, 2026

AI browsers introduce structural security risks driven by prompt injection and autonomous actions. Learn why enterprises can't fully secure AI browsers, for now

ps-fuzz

Test system prompt resilience

Test and harden your system prompt against dynamic LLM-based attacks. Supports 16 providers and 16 attack types.

View on Github

Video Resource

Demo: Stateful Protection for Homegrown AI Apps

Log In
Learn More
Book a Demo

Resources

Blog
AI Security Glossary
What is AI Security?
PromptCast: The Voice of AI & Security
ClawSec
OneClaw
Prompt Fuzzer
AI Security Startup Map
© {{year}} Prompt Security. All Rights Reserved.
Privacy Policy
Terms of Service

Follow Us