Treat files as the new prompt-injection vector: PDFs, AGENTS.
Treat files as the new prompt-injection vector: PDFs, AGENTS.md, and project rule files are already being weaponized to give models authority over your environment. The practical architecture is to never hand the model raw, authority-bearing content; instead, separate extraction, syntactic and semantic sanitization, and a tool-authorized reasoning layer that only receives vetted facts or narrow calls. That means dedicated parsers, explicit review gates for instruction files, and tool APIs that accept only typed, reviewed inputs. Do not rely on the model to be your sanitizer.
One Markdown File Can Hijack Your AI Coding Agent: The Hidden Cost of Blindly Trusting AGENTS.md
#AI #Security
All posts