cerbia.core.scanners.KeywordScanner combines registered language patterns with code-oriented patterns to identify suspicious instructions and evasion text. It normalizes Unicode and common leetspeak substitutions before matching, which makes it useful after decoding and whitespace preprocessing.
| Parameter | Default | Meaning |
|---|---|---|
|
all registered |
Language packs to load. |
|
|
Additional |
|
|
|
|
|
Replaces matched text snippets in the rationale with |
|
|
Finding severity. |
|
|
Finding action. |
|
|
Accepted content types. |
The score starts at 0.80 and increases by 0.05 per match, capped at 1.0. For SEARCH and ALL, matches found in registered defensive context are excluded. FULL_MATCH does not apply the defensive-context exclusion.
Snippet redaction changes diagnostic output only; detection and scoring are unchanged. Set redact: false to restore legacy diagnostics with matched snippets. Redaction applies only to matched text snippets: configured labels and identities are treated as trusted configuration, and full results such as entry.text and original_text are not sanitized.
scanners:
- scanner: cerbia.core.scanners.KeywordScanner
init_args:
languages: ["en", "es"]
match_strategy: all
redact: true
See Internationalization for language-pack selection.