T09 · Insecure Skill Coding Practices
- Location
main.py:32- Finding
Trivial Obfuscation Bypasses Security Detection and Produces a False SAFE Result
- Content
View full analysis
= 3 or total >= 3: risk_level = "HIGH RISK" else: risk_level = "MEDIUM RISK" ``` ### Technical Analysis The scanner detects risks exclusively through exact, case-sensitive substring comparisons. It performs no lexical normalization, tokenization, abstract syntax tree analysis, alias resolution, constant folding, or semantic examination. Consequently, dangerous behavior can evade detection when represented through aliases, split string literals, dynamic attribute lookup, dynamic imports, escaped identifiers, or alternative APIs. When no literal pattern matches, the scanner unconditionally assigns `SAFE`, even though the result only establishes that none of the limited configured strings occurred verbatim. For example, the following command-execution expression avoids the configured `os.system`, `exec(`, `eval(`, and `subprocess` strings: ```python getattr(__import__("o" + "s"), "sys" + "tem")("id") ``` The vulnerability is in the scanner's classification logi ...[truncated 1291 chars]- Remediation
View remediation
