Skip to main content
Application‑security detection catches code‑execution and injection patterns that ride into AI systems through prompts, tool arguments, and request bodies. It runs in‑process (no external calls) and is detection‑only — whether a match blocks is decided by the policy that references it.
DetectorSlugSidesProtocolsMutable
Code Sanitationcode_sanitationinputall

Code Sanitation — code_sanitation

Detects dangerous code‑injection patterns by language in the request and reports each match as a finding (signal.type: "code_injection"). It never rewrites the payload. Built‑in languages: javascript, python, php, sql, shell, html.

Settings

FieldTypeDefaultNotes
apply_all_languagesbooleanfalseEnable every built‑in language pattern set.
languagesarray<{ language, enabled }>Enable specific languages (language is one of the built‑ins).
custom_patternsarray<{ name, pattern, description }>Your own regex signatures (pattern required, must compile).
A detector is detection‑only — you choose whether it Monitors or Blocks, and on which phase, when you add it to a policy’s Detectors tab. See Policies.

When to use

  • Put this in front of any system that forwards prompt/tool content into databases, shells, templating engines, or downstream APIs.
  • Start with the Monitor action to baseline false positives on real traffic, then promote the policy rule to Block.
  • It is pattern‑based and complementary to the LLM‑aware content‑security detectors — run both.