Skip to main content

Interface: ThreatDetectionConfig

Defined in: validators.ts:410 Per-detector toggles for detectThreatPatterns. Defaults: XSS, SQL, NoSQL, path-traversal, and homoglyph detectors are on; command injection is off (false-positive prone). Pass false to disable a detector or true to force-enable checkCommandInjection.

Properties

checkCommandInjection?

optional checkCommandInjection?: boolean
Defined in: validators.ts:418 Default false — opt in only when input reaches a shell.

checkHomoglyphs?

optional checkHomoglyphs?: boolean
Defined in: validators.ts:422 Default true.

checkNoSQLInjection?

optional checkNoSQLInjection?: boolean
Defined in: validators.ts:416 Default true.

checkPathTraversal?

optional checkPathTraversal?: boolean
Defined in: validators.ts:420 Default true.

checkSQLInjection?

optional checkSQLInjection?: boolean
Defined in: validators.ts:414 Default true.

checkXSS?

optional checkXSS?: boolean
Defined in: validators.ts:412 Default true.