Why do some assignments have hidden text meant for AI?

Remove AI Tells

AI Writing Questions

Some teachers hide an extra instruction in an assignment prompt, usually in white text or a very small font, so it is invisible on the page but gets copied along with the prompt. If a student pastes the whole prompt into a chatbot, the AI may follow the hidden line (for example, by mentioning an unrelated topic), and that odd detail shows up in the submitted work. Teachers sometimes call this a "Trojan horse" prompt.

How it has been used

The idea spread widely in April 2024, when curriculum designer Daina Petronis posted a TikTok showing how to split an essay prompt into two paragraphs and put a white, smallest-size sentence between them (Newsweek, April 2024). In a later account, a history professor at Angelo State University described hiding an instruction to analyze a book "from a Marxist perspective," which flagged 33 of 122 submissions (The Cheat Sheet, December 2025).

Teachers who use it say the appeal is that it gives a concrete, explainable piece of evidence to discuss with a student, unlike an AI detector score.

Its limits

  • It only catches copy and paste. A student who retypes the prompt never sees the hidden line.
  • Screen readers read text no matter what color it is, so a student who uses one may hear the hidden instruction and follow it in good faith. Teachers should check hidden text against accessibility needs and their school's policies.
  • Hidden text can also end up in a prompt by accident, from templates or copied web content.

What students should do

Read the whole prompt, follow your class's AI policy, and do your own work. If you notice text in an assignment that looks out of place or doesn't fit the task, ask your instructor about it rather than guessing. For the wider topic, see our guide to hidden prompt injection.

Why do some assignments have hidden text meant for AI?2026-09-26T11:59:58-04:00

Published September 26, 2026 | AI Writing Questions