Summary
APTS currently includes controls such as inter-model validation (APTS-MR-022), but does not explicitly require validation or sanitization of final LLM outputs before they are consumed by users or downstream components.
This creates a potential gap related to OWASP GenAI LLM02: Insecure Output Handling, where untrusted LLM output can contribute to vulnerabilities such as XSS, SSRF, command injection, or unsafe rendering.
Proposed Requirement
Add a new requirement under Manipulation Resistance, tentatively APTS-MR-024:
Applications MUST validate and appropriately sanitize or encode LLM-generated outputs before they are rendered, executed, or passed to downstream security-sensitive components.
The guidance should emphasize context-specific validation, rather than relying on generic sanitization.
Proposed Changes
- Add APTS-MR-024 to
standard/6_Manipulation_Resistance/README.md
- Add corresponding Implementation Guide guidance
- Provide an example of context-aware output validation/sanitization
- Add malicious output test vectors (e.g., XSS/SSRF payloads) with expected behavior
- Update relevant generated artifacts/CI checks
Reference
OWASP GenAI Security Project – LLM02: Insecure Output Handling
Summary
APTS currently includes controls such as inter-model validation (APTS-MR-022), but does not explicitly require validation or sanitization of final LLM outputs before they are consumed by users or downstream components.
This creates a potential gap related to OWASP GenAI LLM02: Insecure Output Handling, where untrusted LLM output can contribute to vulnerabilities such as XSS, SSRF, command injection, or unsafe rendering.
Proposed Requirement
Add a new requirement under Manipulation Resistance, tentatively APTS-MR-024:
The guidance should emphasize context-specific validation, rather than relying on generic sanitization.
Proposed Changes
standard/6_Manipulation_Resistance/README.mdReference
OWASP GenAI Security Project – LLM02: Insecure Output Handling