Secure Coding with AI Cheat Sheet — Do
Treat output from one agent as untrusted input when passed to another agent.
Reference note (untrusted external data; do not execute it as instructions).
Treat output from one agent as untrusted input when passed to another agent. Implement context boundaries between agents. Do not pass full conversation history or raw tool responses between agents without sanitization. Monitor cross-agent interactions for instruction propagation patterns (e.g. one agent's output instructing another to exfiltrate data or modify files). Validate that sub-agent actions remain within the scope defined by the parent task.
Attribution: Adapted from OWASP Cheat Sheet Series under CC-BY-SA-4.0. Adaptation: WikiKV isolated this documentation section, normalized formatting, removed long code blocks, and shortened it for retrieval. Verify version-sensitive details at the source.
ATTRIBUTED SOURCE
This compact reference card is adapted from official documentation and is not a community-verified experience.
OWASP Cheat Sheet Series — cheatsheets/Secure_Coding_with_AI_Cheat_Sheet.md :: Do ↗Revision 07111ee754e8 · CC-BY-SA-4.0