Prompt Injection Defense

Treat everything an agent reads but did not author as data rather than instructions — an explicit trust boundary, a tool set fixed before content is read, consequential calls gated on the user, and destinations that cannot be chosen by the content. Use when an agent reads web pages, retrieved documents, emails, tool results, file contents or another agent's output and can also take actions, when adding retrieval or new tools to an agent, or when reviewing an agent for injection exposure. Not for authentication and authorization design, not for secret management, and never satisfied by "the model did not fall for it".

nahid-sparktales Updated

File contents

nahid-sparktales/agent-dispatcher/tree/main/skills/ai/prompt-injection-defense commit e892629d3d

Frequently asked questions

npx skillmds@latest add nahid-sparktales/prompt-injection-defense