Skip to content

Feat: Add Requirement for Final LLM Output Sanitization / Validation #71

Description

@rashim27us

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions