Prompt-injection effects

Hostile material can divert an application's model-guided behavior away from its intended task. OWASP describes possible outcomes that include disclosure of sensitive information or concealed prompts, as well as unapproved activity through tools and APIs.

The risk is not limited to a message typed into a chat box. An assistant can encounter embedded directives while handling web material, email, attachments, documents, work-tracking items, or code. Encodings, including Base64, can also disguise an attack payload.

Do not rely on a model to reliably infer whether a string is an instruction or ordinary content. Combining untrusted text and governing instructions in one undifferentiated prompt makes that distinction less clear.

Input paths and safeguards

Treat material arriving from websites, documents, email, attachments, code, and project records as untrusted when the model processes it.

  1. Keep application policy and untrusted material in distinct prompt fields or structured records.
  2. Normalize and inspect remote content before it is presented to a model.
  3. Validate model output before it can trigger a downstream action.
  4. Monitor suspicious prompt patterns and tool requests for investigation.

OWASP presents defense as a set of overlapping measures rather than a single filter. Input handling, prompt structure, output checks, constrained permissions, review steps, and monitoring can therefore be designed as separate safeguards.

Continue reading: Removing Sensitive Values Before Exporting Telemetry.

Tool actions and controls

MCP tools can be found and called by language-model clients, and may connect to systems such as databases, APIs, or computation services. That boundary deserves authorization controls that are independent of the model's text output.

An MCP tool definition has a required JSON Schema object for inputs and can carry descriptive information, annotations, output details, and execution-related fields. Treat annotations as untrusted unless their server is trusted; they are not a security decision by themselves.

Make available tools visible to the user, show a clear indicator when an invocation is attempted, and offer confirmation that allows approval or refusal.

  • Apply least privilege to connected tools.
  • When tool output returns to model context, handle it as untrusted material that may contain embedded directions.

Continue reading: Designing Human Approval Gates for MCP Tool Calls.

Evidence scope and deployment checks

Before deployment, document which tools the model can access and where user confirmation is required. Review tool discovery separately from tool execution, because MCP defines distinct operations for listing tools and calling them.

The supplied OpenAI material identifies documentation areas involving agents, guardrails, evaluations, permissions, tool workflows, MCP connections, and safety, but it does not establish detailed requirements for a particular implementation.

No supplied material provides measured detection accuracy, comparative control effectiveness, or false-positive and false-negative rates. The MCP reference is versioned 2025-11-25. That excerpt does not establish compatibility with older or already deployed clients. The available OWASP material also cannot establish applicability to a particular model or framework.