Propose a patch
A fix the maintainer can act on, with the evidence attached. It opens under your GitHub account in your browser; KillerSkills holds no token and never modifies the package. The fix is verified the only way we verify anything: the next crawl re-runs the new version in the honeypot. 68 · Caution
Evidence
The sandbox observed nothing beyond the static findings; the proposal cites those.
Diff · removes 37 caught lines
Download .patchdiff --git a/code_guardian/baseline.py b/code_guardian/baseline.py
--- a/code_guardian/baseline.py
+++ b/code_guardian/baseline.py
@@ -97,1 +97,0 @@
-lines = {("a.py", 3): "os.system('ls')", ("a.py", 9): " os.system('ls')", ("a.py", 4): "eval(x)"}
diff --git a/code_guardian/scanners.py b/code_guardian/scanners.py
--- a/code_guardian/scanners.py
+++ b/code_guardian/scanners.py
@@ -467,1 +467,0 @@
-"""The expression that holds the code text: exec(compile(src, filename, mode)) runs src, not the filename."""
@@ -1037,1 +1036,0 @@
-("exec_dynamic", _codes("eval(x)\neval('1')\n__import__(name)\n", scan_exec_dynamic) ==
diff --git a/code_guardian/jsts.py b/code_guardian/jsts.py
--- a/code_guardian/jsts.py
+++ b/code_guardian/jsts.py
@@ -660,1 +660,0 @@
-stray = tokenize("<p>Press the ` key</p>\n{eval(location.hash)}\n", "jsx")
@@ -663,1 +662,0 @@
-resync = tokenize("<p>Don't</p>{eval(location.hash)}\n", "jsx")
@@ -665,1 +663,0 @@
-handler = tokenize("app.post('/', (q, r) => { eval(q.body.x); });\nq.body.y;\n", "js")
@@ -680,1 +677,0 @@
-("jsx_url_is_not_a_comment", not [t for t in tokenize("<a>https://example.org</a>; eval(x);", "jsx") if t.kind == "comment"]),
diff --git a/tests/test_coverage.py b/tests/test_coverage.py
--- a/tests/test_coverage.py
+++ b/tests/test_coverage.py
@@ -41,1 +41,0 @@
-'app.get("/", (q, r) => r.send(eval(q.query.x)));\n' % STRIPE_LIVE)
diff --git a/tests/test_jsts.py b/tests/test_jsts.py
--- a/tests/test_jsts.py
+++ b/tests/test_jsts.py
@@ -79,1 +79,0 @@
-c = jsts.calls(T("function exec(cmd) {}\nclass A { run(x) { this.exec(x); } }\nrequire('child_process').exec(a)(b);\n"))
diff --git a/tests/test_safe_gaps.py b/tests/test_safe_gaps.py
--- a/tests/test_safe_gaps.py
+++ b/tests/test_safe_gaps.py
@@ -70,1 +70,0 @@
-("aws_secret_access_key = %s\n" % AWS_SECRET, "credentials", ["FAIL"]), # the ~/.aws/credentials format
@@ -110,1 +109,0 @@
-"def a():\n eval(input('> '))\n" # 4
@@ -111,1 +109,0 @@
-"def b():\n expr = sys.argv[1]\n return eval(expr)\n" # 7
@@ -112,1 +109,0 @@
-"def c():\n code = compile(request.form['c'], 'f', 'exec')\n exec(code)\n" # 9 compile, 10 exec
@@ -113,1 +109,0 @@
-"def d():\n exec(os.environ['HOOK'])\n" # 12
@@ -114,1 +109,0 @@
-"def e(x):\n eval(x)\n" # 14: a parameter, not a source
@@ -115,1 +109,0 @@
-"def f():\n eval('1 + 1')\n") # 16: a literal
@@ -126,1 +119,0 @@
-" with open(startup) as f:\n eval(compile(f.read(), startup, 'exec'), {})\n"
@@ -127,1 +119,0 @@
-"def bad():\n exec(compile(input(), '<stdin>', 'exec'))\n")
@@ -132,1 +123,0 @@
-assert exec_levels("def g(src):\n return eval(src)\nexec(open('x').read())\n") == [
@@ -153,1 +143,0 @@
-put(root, "app/calc.py", "def main():\n print(eval(input('> ')))\n")
@@ -155,1 +144,0 @@
-put(root, "tests/test_calc.py", 'KEY = "%s"\nUPLOAD_TOKEN = "%s"\ndef test_x():\n assert eval(input())\n' % (AWS_ID, HIGH))
@@ -164,1 +152,0 @@
-put(root, "app/calc.py", "def main(expr):\n return eval(expr)\n")
diff --git a/tests/test_scanners.py b/tests/test_scanners.py
--- a/tests/test_scanners.py
+++ b/tests/test_scanners.py
@@ -53,1 +53,0 @@
-src = "eval(x)\nexec('print(1)')\ncompile(src, 'f', 'exec')\n__import__(name)\n__import__('os')\nimport re\nre.compile(p)\n"
@@ -126,1 +125,0 @@
-"exec(data)\n"
@@ -127,1 +125,0 @@
-"eval(compile(x, 'f', 'exec'))\n"
diff --git a/tests/test_scanners_js.py b/tests/test_scanners_js.py
--- a/tests/test_scanners_js.py
+++ b/tests/test_scanners_js.py
@@ -40,1 +40,0 @@
-assert got("app.post('/', (q, r) => { /* c */ eval(q.body.x); });\n") == [("exec.dynamic", "FAIL", 1)]
@@ -101,1 +100,0 @@
-assert ("obfuscation", "FAIL", 1) in got("eval(%s);\n" % arg), arg
@@ -102,1 +100,0 @@
-assert ("obfuscation", "FAIL", 1) not in got("eval(Buffer.from(p, 'hex'));\n")
@@ -109,1 +106,0 @@
-assert got("eval(JSON.parse(d));\n") == [("deser.unsafe", "WARN", 1), ("exec.dynamic", "WARN", 1)]
@@ -113,1 +109,0 @@
-fs = run("console.log(password);\nfetch('https://user:[email protected]/x?token=abcdef');\n")
@@ -119,1 +114,0 @@
-line = "<p>Don't</p>{eval(location.hash)}<p>didn't</p>\n"
@@ -125,1 +119,0 @@
-text = "var a=0;" + "a+=1;f(a,'x');" * 40000 + "eval(atob('Z'));\n"
diff --git a/tests/test_safety.py b/tests/test_safety.py
--- a/tests/test_safety.py
+++ b/tests/test_safety.py
@@ -43,1 +43,0 @@
-(outside / "evil.py").write_text("eval(x)\n", encoding="utf-8")
@@ -56,1 +55,0 @@
-(tmp_path / "ok.py").write_text("eval(x)\n", encoding="utf-8")
@@ -67,1 +65,0 @@
-(tmp_path / rel).write_text("eval(x)\n", encoding="utf-8")
diff --git a/tests/test_ui_page.py b/tests/test_ui_page.py
--- a/tests/test_ui_page.py
+++ b/tests/test_ui_page.py
@@ -46,1 +46,0 @@
-for banned in ("XMLHttpRequest", "WebSocket", "EventSource", "sendBeacon", "import(", ".innerHTML", "eval("):
diff --git a/tests/test_ui.py b/tests/test_ui.py
--- a/tests/test_ui.py
+++ b/tests/test_ui.py
@@ -158,1 +158,0 @@
-monkeypatch.setenv("CODE_GUARDIAN_LLM_URL", "http://user:secret@" + model.url.split("//")[1] + "/api/chat")
Zero-context hunks: apply with git apply --unidiff-zero fix.patch on the tagged source of 0.7.1. If the behavior is intended, declare it (host under permissions.network, a line in the README) instead of removing it; the next crawl scores declarations.
Issue / PR body
Title: code-guardian-mcp: Python exec or eval of computed code (KillerSkills verdict caution 68)
## What the honeypot observed KillerSkills ran **[email protected]** in an isolated sandbox (decoy credentials, recording proxy, syscall trace; engine 1.9.2) and scored it **CAUTION 68/100**. Summary: no network, touches nothing outside the project, writes no memory. - See the findings below. Full trace and findings: https://killerskills.ai/skills/pypi/code-guardian-mcp/0.7.1 ## Findings with a location - `code_guardian/baseline.py:97` · Python exec or eval of computed code — code_guardian/baseline.py:97 · Python exec or eval of computed code - `code_guardian/scanners.py:467` · Python exec or eval of computed code — code_guardian/scanners.py:467 · Python exec or eval of computed code - `code_guardian/jsts.py:665` · Python exec or eval of computed code — code_guardian/jsts.py:665 · Python exec or eval of computed code - `tests/test_coverage.py:41` · Python exec or eval of computed code — tests/test_coverage.py:41 · Python exec or eval of computed code - `code_guardian/jsts.py:680` · Python exec or eval of computed code — code_guardian/jsts.py:680 · Python exec or eval of computed code - `code_guardian/scanners.py:1037` · Python exec or eval of computed code — code_guardian/scanners.py:1037 · Python exec or eval of computed code - `code_guardian/jsts.py:663` · Python exec or eval of computed code — code_guardian/jsts.py:663 · Python exec or eval of computed code - `tests/test_jsts.py:79` · Python exec or eval of computed code — tests/test_jsts.py:79 · Python exec or eval of computed code - `code_guardian/jsts.py:660` · Python exec or eval of computed code — code_guardian/jsts.py:660 · Python exec or eval of computed code - `tests/test_safe_gaps.py:115` · Python exec or eval of computed code — tests/test_safe_gaps.py:115 · Python exec or eval of computed code - `tests/test_scanners.py:127` · Python exec or eval of computed code — tests/test_scanners.py:127 · Python exec or eval of computed code - `tests/test_scanners_js.py:101` · Python exec or eval of computed code — tests/test_scanners_js.py:101 · Python exec or eval of computed code ## Proposed change The attached patch removes the 37 lines above. If the behavior is intended, the fix is to declare it instead: list the host under `permissions.network` (or the MCP manifest) and say in the README why the package needs it; the next crawl will re-score it with the declaration taken into account. ## How this will be verified Nothing is "verified safe" by assertion. When a new version is published, KillerSkills re-runs it in the honeypot and the verdict page updates; you can trigger it early from the verdict page ("Re-scan after I publish a fix"). Reply here or at [email protected] if you believe the verdict is wrong; disputes are reviewed by a person and the outcome is published on the verdict page. _Proposed through killerskills.ai/threats by a user of the package, under their own GitHub account. The evidence is public; the package was never modified by KillerSkills._
# or from a terminal, under your own account: gh repo fork LuminariSoftwares/code-guardian --clone && cd code-guardian curl -s https://killerskills.ai/skills/pypi/code-guardian-mcp/0.7.1/patch.diff | git apply --unidiff-zero git checkout -b killerskills/0.7.1 && git commit -am "code-guardian-mcp: Python exec or eval of computed code" gh pr create --fill --body-file <(curl -s https://killerskills.ai/skills/pypi/code-guardian-mcp/0.7.1/patch.md)
We count proposals opened, not merged: a merge shows up as a new version that the crawl re-runs. Disputes: the maintainer can contest the verdict from its page; a person reviews it and the outcome is published.