Glossary/Prompt Engineering

What is Prompt Engineering?

Prompt engineering is the practice of designing the inputs given to a language model — system prompts, user prompts, examples, output schemas, structured templates — to reliably produce the desired output. Where traditional software engineering specifies behavior in code, prompt engineering specifies behavior in natural language directed at a model trained to follow it.

What prompt engineers actually do

A production prompt is rarely a single sentence. Modern prompt engineering involves:

Common patterns

Why it matters for security

Prompt engineering is the application's primary lever for shaping model behavior, which means it's also the primary target for attackers. Three security-relevant observations:

Limits of prompt engineering

The honest framing: prompt engineering bends model behavior probabilistically. It does not guarantee anything. For any production deployment with real adversaries, prompt engineering is the first layer — runtime guardrails, output validation, and continuous adversarial testing are the layers that make the deployment actually safe.