Search

Search Cadence Lab

AI tooling · Prompt injection controls

Limit what a manipulated prompt can reach and do.

Prompt injection is when text the AI reads (an email, a document, a web page) hides instructions that trick it into doing something it shouldn’t. One instruction or filter can’t stop it. What works: limit what the AI is allowed to do, keep your instructions separate from outside content, enforce the rules in code, and require a person’s approval before anything high-impact.

Visible signals

The risk becomes a business risk when the AI can reach real systems.

Tampered content matters most when it can get past your safeguards, reveal private information, misuse a tool, or trigger an action nobody approved.

The system prompt carries the whole policy

Sensitive rules and permissions live only in the AI’s instructions, which it can misread, reveal, or ignore.

Outside content looks like trusted instruction

Documents, websites, messages, and tool results get mixed in with your real instructions.

The model can reach too much

It has access to far more data, accounts, or tools than the task needs.

Approval happens after the action

People review a summary after the workflow has already sent, changed, disclosed, or deleted something.

Tests look for phrases, not outcomes

A filter catches known trick phrases but misses hidden instructions, tool misuse, or leaked data.

An incident can't be rebuilt

Nobody kept a record of where the content came from, what the AI saw and did, who approved it, or what happened.

Control layers

Put the hard limits outside the AI.

Instructions to the AI help, but they shouldn’t carry all the security. Stack several safeguards, so one bad call can’t cause real harm.

01

Trust

Which sources and instructions are trusted?

Label every source and track where it came from, so outside content never gets the same authority as your own instructions.

02

Task

What is the model allowed to decide?

Define what it may take in, what it should produce, what it must never do, and when to refuse or pass to a person.

03

Access

What is the least access this task needs?

Limit its accounts, records, tools, actions, and where it can send things, and for how long.

04

Policy

Which rules must code enforce?

Let your software, not the AI, check permissions, approved lists, data rules, and spending limits.

05

Approval

Which actions need informed human approval?

Require a person’s approval before high-impact actions, and show them the source, the action, the system, and what’s uncertain.

06

Testing

How will controls improve as the system changes?

Try real attacks (open, hidden, disguised, in images, or through tools) and check what harm they could actually cause.

Control path

Follow outside content all the way to what it could cause.

Follow one real interaction from what goes in to what happens. At each step, decide what the system trusts, what the AI can do, and which rule is enforced outside it.

  1. 01

    Ingest

    Where did the content come from?

    The source, how much to trust it, where it came from, and the rules for handling it.

  2. 02

    Interpret

    Which instructions should affect the task?

    What the tool is for, what the user is allowed to ask, the limits of the task, outside content, conflicts, and when to pass to a person.

  3. 03

    Decide

    Is the proposed output or action allowed?

    Your rules, permissions, the expected format, sensitive data, where it’s going, limits, and checks.

  4. 04

    Act

    What consequence can the system create?

    The tool, its permissions and accounts, spending limits, a person’s approval, whether it can be undone, and the effect.

  5. 05

    Review

    Can the team detect and learn from misuse?

    A record of what happened, blocked attempts, approvals, results, how incidents were handled, test results, and updated safeguards.

Evidence

Review the whole application, not only the prompt.

I look at every source of instructions, every system the AI can reach, the code enforcing the rules, the people approving actions, and the final result.

  • How the instructions are put together

    Your instructions, what users type, templates, memory, retrieved content, tool results, and the order they arrive in.

  • Outside content

    Web pages, files, messages, help content, images, and other material you don’t control.

  • Tools and permissions

    What it can call, which records, what each connection allows, where it can send data, limits, passwords and keys, and the code that checks permissions.

  • Outputs and downstream use

    Answers, data, links, code, where requests get sent, system updates, and the people or systems that rely on them.

  • Approval and recovery

    Where people check its work, what they’re shown, how to cancel or undo, who it goes to next, and who owns incidents.

  • Tests and outcomes

    Practice attacks, blocked attempts, false alarms, tool use, approvals, incidents, and the effect on customers.

No foolproof prompt layer

The goal is to reduce exposure, enforce limits, spot unsafe behavior, and contain the damage. No single instruction or filter removes the risk.

Common failure patterns

Safeguards fail when wording is treated as permission.

The weakest designs ask the AI to enforce rules that belong in login checks, policy, software, permissions, approvals, and incident response.

  • A filter becomes the only defense

    Filtering what comes in is the only protection, even though harmful instructions can arrive indirectly or look completely ordinary.

  • Outside content is labeled but still followed

    The application marks content as untrusted but gives the model the same context and permissions to act on it.

  • The model judges its own authority

    Written rules in plain English replace login checks, limited permissions, and rules enforced in code.

  • Human review becomes a confirmation click

    Approvers see a summary without the source, affected records, uncertainty, or reason for review.

  • Testing stops at direct jailbreaks

    Tests miss tampered documents, retrieved content, tool output, chains of actions, and data theft.

  • Controls stay fixed while the workflow grows

    New models, tools, sources, and permissions expand risk without a new review.

Practical outputs

Turn AI safety into safeguards your team runs.

You’ll see how the tool limits what the AI can do, checks important actions, involves people, keeps records, and adapts as threats change.

  • Map of what to trust

    Your instructions, outside content, what the AI sees, tools, data, people, systems, and where authority is unclear.

  • Layers of safeguards

    Task limits, keeping sources separate, only the access it needs, rules, checks, approvals, and recovery.

  • Plan for testing by attack

    Realistic attacks tied to real harm, including hidden instructions, tool misuse, leaked data, and dangerous chains of actions.

  • Monitoring and response plan

    What to record, when to raise an alarm, owners, how to contain and undo damage, evidence, and updates to safeguards.

Engagement fit

Use these controls when AI can affect more than its own answer.

This fits a specific AI tool that reads outside content and can reach sensitive data, tools, or important actions. It supports, but doesn’t replace, your security testing, privacy and legal review, or incident response.

Start a FitCheck™

Related diagnostic paths

Start with the process and the harm the safeguards must prevent.