os.system() or os exec-family call
High
- Category
- Dangerous Code Execution
- Content
# Compressed: 1298 tokens (40.0%) # Model: claude-sonnet-4 # Time: 2026-06-21T10:23:01 perf_output = os.popen("headroom perf 2>/dev/null").read() if not perf_output.strip(): return []- Confidence
- 95% confidence
- Finding
- The script invokes an external shell via os.popen("headroom perf 2>/dev/null") as a fallback data source. Even though the command string is constant, it still depends on shell resolution and PATH, so a malicious or trojaned `headroom` binary/script in the execution environment could be executed unexpectedly; shell invocation also broadens attack surface compared to direct library or subprocess calls.
