For AI agents: A markdown version of this page is available at https://docs.datadoghq.com/security/default_rules/def-000-i19.md. A documentation index is available at /llms.txt.

HTTP requests containing cross-site scripting patterns

Goal

Detect HTTP requests whose query strings contain common cross-site scripting patterns, including when responses succeed.

Strategy

This rule monitors OCSF HTTP query strings for XSS-oriented payloads and correlates with successful HTTP responses where applicable, grouped by @ocsf.src_endpoint.ip.

Triage and response

  • Check whether payloads are reflected in responses or stored and served to other users.
  • Remediate output encoding or input validation on affected routes.