Definition

System prompt

Instructions passed to an AI model before the user's message, typically used to define the model's persona, constraints, and task context. System prompts are often treated as authoritative, but they are not a security boundary — prompt injection can cause the model to override or ignore system prompt instructions. OWASP and Microsoft's security guidance both emphasize that security-critical constraints must be enforced in deterministic code, not in system prompt text.

Related terms

Deep dive

Basic knowledge

What is prompt injection?

Prompt injection is not just a clever string. It is any input that changes a model's behavior in a way the system designer did not intend, especially when the model can reach tools, data, and accounts.

Scan a skill before you install it

TrustSkills detects the threats described in this glossary before you install a ClawHub skill. Free. No account required.

Run a free scan