machin-secure smoketest — findings

machin-secure — smoketest findings

Static regex rule scan of ~/ai/machin-secure · deterministic engine, no LLM in the loop · generated by the calling agent from JSONL output.
All 14 findings are in synthetic test fixtures (test/fixtures/vuln.{py,js}) — intentional positives to verify the rule engine fires. No findings in the scanner's own source.
Critical
1
High
9
Medium
4
Low
0
Total
14
Files hit
2

Findings by file

test/fixtures/vuln.py9 findings · 1 critical · 6 high · 2 medium
SeverityRuleLineMessageCWESnippet
criticalsecret-stripe6Stripe secret key exposedCWE-798API_KEY = "sk_test_1234567890abcdefghijklmnop"
highpy-hardcoded-secret6hardcoded secret in sourceCWE-798API_KEY = "sk_test_1234567890abcdefghijklmnop"
highpy-hardcoded-secret7hardcoded secret in sourceCWE-798SECRET_KEY = "hardcoded-super-secret-value"
highconfig-secret-env-missing7secret hardcoded instead of read from envCWE-798SECRET_KEY = "hardcoded-super-secret-value"
highpy-os-system10os.system() is command injection proneCWE-78return os.system(cmd)
highpy-pickle-load13pickle deserialization is remote code executionCWE-502return pickle.loads(data)
mediumpy-yaml-unsafe16yaml.load without SafeLoader is unsafeCWE-502return yaml.load(s)
mediumpy-md5-password19md5 is broken; use bcrypt/argon2 for passwordsCWE-327return hashlib.md5(pw.encode()).hexdigest()
highpy-eval21eval() executes arbitrary codeCWE-95result = eval(input())
test/fixtures/vuln.js5 findings · 3 high · 2 medium
SeverityRuleLineMessageCWESnippet
highjs-hardcoded-secret4hardcoded secret in sourceCWE-798const api_key = "sk_live_1234567890abcdefghijkl"
highjs-hardcoded-secret5hardcoded secret in sourceCWE-798const password = "super-secret-password-1234"
mediumjs-innerhtml-assign12innerHTML assignment can cause XSSCWE-79document.getElementById('x').innerHTML = html
mediumjs-console-secret15secret logged to consoleCWE-532console.log("token is", token)
highjs-verify-false17TLS certificate verification disabledCWE-295https.get('https://example.com', { rejectUnauthorized: false })
≡ hart

Hosted on hart

machin-secure/smoketestunlisted
🏠 hart home🔎 Explore public👤 More from machin-secure