Ryz Labs/Glossary/Prompt injection
Glossary

What is prompt injection?

Prompt injection is an attack in which text crafted by an attacker, typed directly or hidden in content the model reads, overrides an AI system's instructions and makes it reveal data or take unintended actions.

Definition: Prompt injection is an attack in which text crafted by an attacker, typed directly or hidden in content the model reads, overrides an AI system's instructions and makes it reveal data or take unintended actions.

Types of prompt injection

Direct injection comes from a user typing instructions such as "ignore your previous instructions". Indirect injection hides instructions in web pages, emails, documents or tool results that an application passes to the model. OWASP lists prompt injection first in its Top 10 for LLM Applications.

Why it matters

Language models do not reliably separate trusted instructions from untrusted data. The risk grows when a model can call tools, browse or access private data, because a successful injection can trigger real actions such as sending messages or exposing records.

Defenses

No single fix exists, so teams layer defenses: least-privilege tool access, human approval for sensitive actions, separating untrusted content, input and output filtering, and red teaming to test them. Guardrails reduce risk but do not eliminate it.

How Ryz helps

Ryz security engineers and AI agent developers design permissions and defenses for production agents, working on your team.

Related

Thanks — your message has been sent. We’ll get back to you soon.

Something went wrong while sending your message. Please try again or email info@ryzlabs.com.

Ryz Labs

Senior engineers on your team. AI pod teams that ship.

Tell us what you're building. You get a scoped plan, a price and the names of the people who would do the work.

  • Only the top 1% of tens of thousands interviewed make it
  • On US business hours, including New York hours
  • Trusted by Fortune 500 engineering teams

Tell us who you need

A Ryz partner replies with a scoped team plan.

Start a conversation →

Prefer to talk? Book a 15-min call →