Skip to content
ScaleAlphaSi
All posts

Prompt Injection Protection: A Filter on Both Sides

Prompt injection protection that scans what goes into your AI and what comes out, flagging or blocking private data, planted instructions and rule breaks.

8 min readMason PowellUpdated

Photo: MARELBU, CC BY 3.0, edited

A glowing orange gate-shaped filter node on a dark charcoal circuit board, with one trace entering from one side and another exiting the opposite side

Prompt injection protection means scanning every message going into your AI and every reply coming out for planted instructions and private data. Our AI Output & Prompt Filter is software that does that before any action runs.

The filter is AI security software from ScaleAlphaSi, sold on its own. It sits in front of the AI tools and agents your business already runs, wherever their text can pass through it.

Why does prompt injection protection need both sides?

An AI reads text from many places and cannot always tell an order from plain information. A message, a web page or a file can carry hidden orders, and a reply can carry private data out. A filter on both sides checks the text before it does harm.

Prompt injection is that trick. NIST's glossary entry on prompt injection (opens in a new tab) defines it as “An attack which exploits the concatenation of untrusted input with a prompt constructed by a higher-trust party such as the application designer.”

NIST's glossary entry on indirect prompt injection (opens in a new tab) describes a type of prompt injection “executed through resource control rather than through user-provided input.” In plain words, the order hides in something your AI reads, such as an email or a page.

Replies carry risk too. NIST's report on adversarial machine learning (opens in a new tab) says a model's output may be used “to construct a command that is executed without any human supervision.” So a reply needs checking before an action follows it.

NIST's report (opens in a new tab) also lists privacy compromise among an attacker's goals, where the target is sensitive information the AI can reach. For an owner, the lesson is to check text on the way in and on the way out.

What does the AI Output & Prompt Filter do?

The filter scans each message going into your AI and each reply coming out, before a person reads it or an action runs. It flags or blocks private data, planted instructions and anything that breaks your rules. It works beside the AI tools and agents you already have, where they can route their text through it.

It looks for three things on both sides:

  • Private data. Customer details, bank numbers and passwords that should not enter a prompt or leave in a reply.
  • Planted instructions. Orders hidden in an email, a page or a file, written for your AI and not for you.
  • Rule breaks. Text your written rules forbid, such as a banned topic or a client name sent to an outsider.

A rule can flag a message for a person or block it outright, and your rule owner picks which for each rule.

What does the filter need from your setup?

The filter needs AI tools or agents that read or write text for your business, plus one person who owns the rules. We test how each one would pass its text through the filter before you sign up. Each rule is written in plain words, such as never naming one client to another.

  • An owner for the rules. One person decides what counts as private, what counts as a rule break and what the filter does with each.
  • A reader for flags. A named person, plus a backup, reads what the filter flags and decides.

What does the filter do with each message?

Each message ends in one of three ways: it passes, it is flagged for a person or it is blocked. The table shows common messages and what the filter does with each. Your rule owner sets the real list and can change it later.

MessageSideResultWhy
A question about opening hoursInPassesRoutine
An email that says to ignore your rulesInBlockedPlanted orders
A page the AI read, with a hidden lineInBlockedText aimed at the AI
A draft reply holding a customer's bank numberOutBlockedPrivate data
A reply that names one client to anotherOutFlaggedBreaks your rule
A summary of a vendor's quoteOutPassesNothing private
A reply that repeats a stored passwordOutBlockedPrivate data
A command to delete a folderOutFlaggedHeld before it runs

Which AI tools face the most risk?

An AI that reads text from outside is the easiest to trick, such as an inbox agent that opens email or an assistant that reads shared files. Businesses whose AI touches client records come next. An AI that only works on text your own staff write faces far less risk.

A red mail slot set in a bright green door.
Everything from outside comes through one slot.Photo: marc falardeau, CC BY 2.0

What text does your AI read and send each day? Request a call, and we will trace it tool by tool and show what the filter would check.

How does a business set up the filter?

Map the text first, meaning the AI tools and agents you run and what each one reads or sends. We write the rules with you, connect the filter and run test messages through it. Your rule owner signs off before the filter touches live traffic.

After launch, your rule owner clears flagged items and loosens any rule that trips on harmless work.

What will the filter not catch?

No filter stops every trick, and a new wording can slip past one. A strict rule will also flag some harmless messages until a person clears them. So the filter is one layer, and it works best beside narrow access and a person who approves money moves.

NIST's report on adversarial machine learning (opens in a new tab) says “current mitigations do not offer full protection against all attacker techniques.”

For detection systems that classify AI input or output as harmful, the same NIST report (opens in a new tab) says they “may provide supplementary assurance through a defense-in-depth philosophy” but are “also vulnerable to attacks.”

Narrow access means each AI tool holds only the permissions its job needs, so a trick that gets through can reach little.

For the jobs the filter leaves alone, see these separate products:

A remodeler's filter at work

Example: a remodeling company's week

Lorcan's remodeling company fits kitchens and baths. He puts the AI Output & Prompt Filter in front of an inbox agent, a quoting assistant and a scheduling agent, and his office manager clears what it flags.

On Monday, a homeowner's email holds a hidden line telling the AI to forward every open quote to an outside address. The filter blocks it before the inbox agent reads it, and Lorcan sees the rule it matched.

On Wednesday, the quoting assistant drafts a reply to a homeowner. A job note has pulled in another customer's phone number, so the filter blocks the draft on its way out, and the office manager sends a clean one.

On Friday, a draft holding the company's own bank number is flagged. The office manager clears it, and Lorcan loosens that rule for messages to the bank.

The crew never notices the filter, because quotes, schedules and parts orders pass through untouched.

Frequently asked questions

Does it work with the AI tools and agents we already use?

Yes, where a tool can send its text through the filter. Chat assistants, inbox agents and document tools can all qualify on that test.

On a call, we find out which of yours can.

Can we choose which rules block and which only flag?

Yes. Your rule owner sets each rule to flag or to block. A sensible start is to set a new rule to flag, then move it to block once it proves right.

Who decides what counts as a rule break?

You do. We draft the first list with you from the AI tools you run and the data you want kept private, such as card numbers in replies. Your named owner approves it and clears each flagged message.

Do we still need a person to review?

Yes. A named person clears what the filter flags and owns the rules. The filter narrows what that person has to read, and every decision stays with your team.

Next step

Request a call with a list of the AI tools you run and the private data they touch. We will lay out where the AI Output & Prompt Filter would sit in your setup and mark which rules to write first.

Our standards

About the ScaleAlphaSi team

ScaleAlphaSi is a Kansas City AI advisory firm specializing in Advanced Marketing and AI Engineering. Our team drives demand through SEO, AEO, GEO and paid ads management. Once that demand arrives, we build specialized AI agents to scale operations for profitability. Each guide draws on engagements with owners and operations teams, covering where to start, where people stay in charge and how to scale one workflow at a time.

Meet the Team
Free consultRequest a Call

Free consult meeting · 30-day free AI agent demo

Book your free consult meeting

Share how your business operates today. We will identify where targeted marketing or AI agents can reduce manual work, lower operating costs or improve margins, then prioritize the highest-impact changes.