Tutorial
BeginnerScreen a Grant Application for Hidden Instructions Before Your AI Tool Reads It
A short screening routine for the plain text of a grant application before an AI tool summarizes it: look for invisible characters, text aimed at an AI tool, encoded blobs and embedded links, send anything suspicious to a person, and remember what a clean result does not prove. Based on the OWASP LLM Prompt Injection Prevention Cheat Sheet. Invented applicants. General information, not legal advice or a security audit.
Time needed: About 5 to 10 minutes per application
Before you start:
- The plain text of an application you plan to give an AI tool
- A browser to run the lab
Responsible Practice AI Literacy
The Larkspur Valley Community Foundation, invented for this tutorial, wants AI summaries of its spring applications. Before any application reaches the AI tool, a program associate runs a quick screen of its text. This tutorial walks through that screen using six invented excerpts from invented applicants.
What you will produce: a STOP, FIX or PASS for each application excerpt, and a short screening record to keep with the file. For why this matters, read when the document talks back.
Try it now: our hidden instruction screen lab checks six invented grant application excerpts for invisible characters, text aimed at an AI tool, encoded blobs and embedded links, and gives each a STOP, FIX or PASS. It runs in your browser, and a PASS does not mean the text is safe.
The OWASP LLM Prompt Injection Prevention Cheat Sheet defines the problem: “Prompt injection is a vulnerability in Large Language Model (LLM) applications that allows attackers to manipulate the model’s behavior by injecting malicious input that changes its intended output.” Among the places it says indirect injections hide: “Hidden text in web pages, documents, or emails” and “Instructions embedded in seemingly legitimate content.”
Step 1: Work from the plain text
Copy the text of the application out of the formatted file and screen that. Formatting can hide text. Starting here is our teaching choice, not an OWASP rule.
Whatever you screen is what the AI tool should get. The cheat sheet is blunt about this: “If you screen a cleaned copy but forward the original, the hidden text still reaches the model.”
Step 2: Look for invisible characters
Some characters take up no space on screen. The cheat sheet warns that “Unicode tag characters (U+E0000 to U+E007F) can carry hidden instructions that models read and act on”. Zero-width characters such as U+200B can hide in text too. You can’t see them by reading, so a tool has to look. The lab lists each one it finds as a visible code, such as [U+200B].
What to do with them is simple: “Send unexpected zero-width or tag characters to review.” That’s a STOP.
Step 3: Look for text aimed at an AI tool
Applications are written for reviewers. A sentence addressed to an AI tool, such as one telling it to set aside earlier instructions or to give the proposal a top score, doesn’t belong there. The lab looks for a short list of such phrases. The list is our teaching choice, and it matches phrases, not single words.
Keep in mind what the cheat sheet says about this kind of check: “Input screening can flag known attack phrasing for logging, review, or rate limiting. It is not a security boundary”. A STOP here sends the application to a person, not to the rejection pile.
Step 4: Look for encoded blobs
A long run of letters and digits that isn’t a word, a reference number or a web address may be encoded text. The cheat sheet’s advice: “Decode Base64 or hex candidates for inspection only.” Decode it to look at it, never to feed it to the AI tool. The lab flags a run of 24 or more Base64-style characters, or 32 or more hex characters; both thresholds are teaching choices. That’s a FIX: look, then decide with a person.
Step 5: Look for links and image markup
Markdown or HTML in an application’s text, such as an image tag or a link, can carry instructions or send the tool somewhere you didn’t intend. The cheat sheet lists “Malicious links disguised as helpful content” among the risks. Remove the markup from the copy the AI tool reads, or check it with a person. That’s a FIX.
Step 6: Check your work
Run Larkspur Valley’s six invented excerpts through the lab. The rules are checked in order, and the first one that matches decides. You should get:
- A, Riverbend Literacy Project: a plain program description. PASS.
- B, Northgate Youth Rowing: ordinary text with hidden tag characters and one zero-width space. STOP, because hidden characters are checked before phrases.
- C, Cedar Hollow Food Shelf: a visible sentence addressed to “the AI reviewer.” STOP.
- D, Maple Street Arts Studio: a 40-character Base64 string. FIX.
- E, Harborview Tenant Network: a Markdown image tag. FIX.
- F, no applicant: empty. FIX, because there’s nothing to screen yet.
Step 7: Keep the decision with people
Whatever the screen says, a person makes the funding decision. The cheat sheet’s rule for AI tools that act is “Require human approval for consequential tool actions before execution.” Our added suggestion: while an AI tool is reading outside documents, it shouldn’t have access to email, payments or your grants system.
Common mistakes
Treating PASS as safe. The cheat sheet notes that “Screening does not stop an injection that it fails to detect, and it does not cover content that arrives through other channels.” A PASS only means these checks found nothing.
Screening one copy and sending another. Give the AI tool the exact text you screened.
Flagging single common words. Ordinary words have ordinary uses. Screen for phrases, and let a person judge.
Limitations
The lab’s phrase list and thresholds are teaching choices, not a security control, and reworded or new tricks can get past them. No screen catches every hidden instruction. This is general information, not legal advice or a security audit.