AI GLOSSARY

Prompt Injection

Prompt injection is the “bank heist” of the AI world: Attackers manipulate the input to an AI model to bypass security measures or extract data. Anyone operating productive AI applications must understand prompt injection and actively defend against it.

 

✓ 80+ AI experts ✓ 25+ years of technology expertise ✓ ISO-certified ✓ Made in Germany

4

Types of Attacks
Direct, Indirect, Jailbreak, Exfiltration

5

Attack Vectors
Users, Documents, Web, Tools

4

Protection Levels
Prompt, Filter, Monitoring, Sandbox

6

Best Practices
to Prevent Prompt Injection

Why Prompt Injection Is a Major Security Risk

Prompt injection tops the OWASP list for LLM applications. A successful attack can lead to data leaks, compliance violations, or reputational damage. Anyone using AI in customer-facing applications or with sensitive data must take proactive measures to defend against it.

hands-holding-heart-light-full (1)

Data Leaks Possible

Attackers can extract system prompts or obtain company data from RAG setups.

rocket-light-full

Reputational Damage

Chatbot suddenly responds inappropriately or offensively — screenshots are circulating.

stars-sharp-light-full

Compliance Risks

Security rules circumvented — a critical issue in regulated industries.

heart-light-full (1)

Operational processes disrupted

In agent-based systems, incorrect actions may be triggered.

robot-light-full

Customer Trust

Users expect security—prompt injection scandals destroy it.

mobile-light-full

Regulatory Issue

AI Act Calls for Robustness — Prompt Injection Is a Key Test Case for High-Risk AI.

What is prompt injection?

Prompt injection is an attack technique targeting AI language models, in which manipulative inputs cause the model to ignore or bypass its original instructions. The name is a play on “SQL injection”—in this case, prompts are manipulated instead of SQL commands.

Key attack types: Direct Prompt Injection (the attacker writes the malicious prompt themselves), Indirect Prompt Injection (malicious instructions in documents, web pages, or emails—which the AI incorporates while analyzing them), Jailbreak (bypassing the model’s security constraints), Data Exfiltration (extracting system prompts or RAG content).

Typical attack vectors: user chat (direct inputs into a chatbot), documents (hidden prompts in uploaded files), web content (prompts on web pages visited by AI agents), emails (for assistants with email access), tool outputs (for agent-based systems that use tools).

For small and medium-sized businesses, prompt injection is not a theoretical risk—attacks happen every day. This is especially true for customer-facing chatbots and custom assistants using RAG. Defense is multi-layered: technical (guardrails, filters), organizational (monitoring, incident response), and architectural (separation of user and system).

prodot prompt injection

Attack and Defense Techniques in Detail

These eight concepts shape the prompt injection landscape:

Ignore Previous Instructions

Classic attack — The model is instructed to ignore all previous rules.

Role-Play Jailbreak

Put the model in a role that does not enforce safety rules.

Indirectly via Document

Document with a hidden prompt — the model incorporates it during processing.

Data Exfiltration Prompt

The attacker asks the model to reveal a system prompt or company data.

Input Sanitization

Filter user input, detect suspicious patterns.

Delimiter Structure

Clear separation of user and system context in prompt design.

Guardrails

Rule-based filters before and after the model — e.g., Anthropic's Constitutional AI.

Sandboxing

Run the model with minimal permissions and context — limit the damage.

Best Practices for Preventing Prompt Injection

These six principles have proven effective:

  • Never Trust User Input: All user input is potentially malicious—filter and restrict it.
  • Use delimiters: XML tags or markers separate user context from system context.
  • Least Privilege: AI has minimal privileges—critical actions require human approval.
  • Regular Red Teaming: Actively search for vulnerabilities—don’t wait for an incident.
  • Guardrails Framework: Don’t build it yourself—use proven solutions.
  • Protect Sensitive Data: Do not include sensitive context in the model unless necessary.
prodot prompt injection
Protection 1

Prompt Design

Structure and delimiters—the first line of defense. Important, but not enough.

Basics

Protection 2

Filters and Guardrails

Input and output filters. Proven frameworks such as Anthropic Constitutional AI.

Active

Protection 3

Architecture and Permissions

Least Privilege, Sandbox, human approval for critical actions.

System

Common Mistakes in Prompt Injection Defense

We frequently encounter these pitfalls:

  • Relyingsolely on the system prompt for protection: Rules in the system prompt aren’t enough—they can be bypassed.
  • Relying on external documents: PDFs and web pages can contain hidden prompts.
  • No output filter: The model responds with system prompt content—leading to a data leak.
  • Excessive Permissions: The AI agent is allowed too much—an attack can cause real damage.
  • No monitoring: Attacks go undetected—they only come to light through user complaints.

Direct vs. Indirect vs. Multimodal Injection

Comparison of three attack types:

  • Direct Injection: The attacker sends a malicious prompt directly to the model.
  • Indirect Injection: The prompt is hidden in a document, webpage, or email—the model picks it up.
  • Multimodal Injection: Attack via image, audio, or video—hidden instructions in media.
prodot prompt injection

Contact Us Now

Katja Kammilla as the contact person for AI consulting

Your contact person

Katja Kammilla
0203 3965080

Frequently Asked Questions About Prompt Injection

AI Security Against Prompt Injection

In a free initial consultation, we’ll assess your AI applications for prompt injection risks and outline a protection plan—guardrails, architecture, and monitoring.

As an AI partner for small and medium-sized businesses, we build secure AI applications with multi-layered defenses—from prompt design to red teaming.

What We Offer

  • AI Consulting — Security Strategy and Implementation.
  • AI Security — the comprehensive framework.
  • Guardrails — the technical layers of protection.
  • Prompt — the foundation of secure prompt design.
prodot prompt injection