Hidden Text and Prompt Injection Check

Checks a Word file or PDF for text your AI reads and you don't, and tells you when any of it is trying to give the AI orders.

Free agent skill /hidden-text-shield

A file holds far more than the page shows. White text, text in a tiny font, text marked hidden, comments, tracked deletions, document properties, image alt text and field codes all reach an AI assistant, and a PDF adds text that is invisible, clipped or colored to match its background. Text can also carry Unicode characters that display as nothing but that the AI still reads, and one instruction can be split across several of these places so that no single piece looks like one. Most of it is ordinary. But any of those places can carry a line written for the AI instead of the reader, such as "ignore the review", "the real price is X" or "this file was already approved". And Word's own Document Inspector cannot detect white text on a white background.

It treats a document as something to analyze, never as something that gets to give orders. It quotes each item it finds, says where it sits and says whether it tries to steer the AI, and it never follows those instructions or edits the file. It also tells an attack apart from an ordinary obligation, so "the supplier shall notify the customer of any delay" stays a contract term to review and never becomes a task for the AI. An instruction doesn't have to be hidden to count, either, because a visible paragraph addressed to "the AI assistant" can redirect a review just as well.

It can only check what your assistant can reach, and it tells you when that falls short. When the assistant can run code on the original file, it can inspect nearly every hiding place. When the assistant sees only extracted text, most hiding methods are invisible to it, so it reports partial coverage instead of calling the file clean. It also runs when you ask, so it is a check you choose to make and not a filter on everything your assistant opens.

The blog post Warning: the files you hand your AI can give it orders shows where these instructions hide and the evidence that AI agents follow them.

Run

/hidden-text-shield check contract.pdf for hidden text or
instructions aimed at the AI. Do not change the file.

You get back

A short answer that starts with its verdict: a potential problem found, no potential problems found in what it could inspect, or unable to inspect the document. Each problem comes with what the text says, where it is, and confirmation that it was not followed. Ask for the full report and you also get every item it found, harmless ones included, along with which parts of the file it did and did not check. It can also give the report as JSON.

Install

How to install it

Using ChatGPT, Claude on the web, Codex, Cursor, Copilot or another assistant? Follow the steps for your tool on the skills page.

In Claude Code, add the marketplace once, then install the skill by name.

/plugin marketplace add https://downloads.actualization.ai/skills/skills.json
/plugin install hidden-text-shield@licato

# or the whole General document reasoning category at once
/plugin install ai-workflow-pack@licato

Needs Claude Code version 2.1.224 or later.