Skip to main contentModule semantic
Source - AnalysisResult
- Aggregate output of
analyze. - AttackKeywords
- Keyword sets per attack category (xss, sql, command, path, template).
- AttackStructures
- Compiled structural regexes that detect attack syntax (HTML tags, function
calls, command chains, path traversal, URLs).
- SuspiciousPattern
- A structural pattern match with surrounding context.
- analyze
- Run all analysis passes on
content and return an AnalysisResult. - calculate_entropy
- Shannon entropy of byte distribution, in bits.
- detect_encoding_layers
- Count encoding layers present (URL, base64, hex, unicode escape, HTML entity).
- detect_obfuscation
- Heuristic check for obfuscated content based on entropy, encoding
layer count, special character ratio, and long unbroken sequences.
- get_threat_score
- Weighted aggregate of an
AnalysisResult into a single [0.0, 1.0]
threat score.