bashkit

v0.20.2 suspicious
4.8
Medium Risk

A sandboxed bash interpreter for AI agents

📦 Package Quality Overall: Low (4.8/10)

✦ High Test Suite 9.0

Test suite present — 31 test file(s) found

  • Test runner config found: pyproject.toml
  • 31 test file(s) detected (e.g. differential.py)
◈ Medium Documentation 5.0

Some documentation present

  • Detailed PyPI description (25825 chars)
○ Low Contributing Guide 4.0

No contributing guide or governance files found

  • Development Status classifier >= Beta
◈ Medium Type Annotations 5.0

Partial type annotation coverage

  • 100 type-annotated function signatures detected in source
○ Low Multiple Contributors 1.0

Could not retrieve contributor data from GitHub

  • GitHub API error: 401

🔬 Heuristic Checks

⚠ Outbound Network Calls score 9.0

Found 6 network call pattern(s)

  • c("python3 -c 'import socket; socket.create_connection((\"8.8.8.8\", 53))'") assert r.exit_code != 0 d
  • cs": r''' import requests r = requests.get("https://api.test/json", params={"q": "a b", "n": [1, 2]}) p
  • oding, r.json(), r.url) print(requests.post("http://api.test/echo", json={"k": 1, "u": "é"}).text) print
  • k": 1, "u": "é"}).text) print(requests.post("http://api.test/echo", data={"a": "1 2", "b": ["x", "y"]}).
  • "b": ["x", "y"]}).text) print(requests.put("http://api.test/echo", data=b"raw").text, requests.patch("h
  • est/echo", data=b"raw").text, requests.patch("http://api.test/echo", data="s").text) print(requests.delet
⚠ Code Obfuscation score 10.0

Found 6 obfuscation pattern(s)

  • sh.execute_sync('python3 -c \'eval("__import__(\\"os\\").system(\\"echo pwned\\")")\'')
  • expression}) result = eval(expression) # noqa: S307 — demo only return str(res
  • """deepagents.py must not use eval() or exec().""" for i, line in enumerate(_DEEPAGENTS
  • continue if "eval(" in stripped or "exec(" in stripped: pytest
  • filename, module): code = compile(source, filename, "exec", dont_inherit=True) exec(code, module.__dict__) def
  • ute_sync('python3 -c \'code = compile("import os", "<str>", "exec"); exec(code)\'') # Should fail at compile, exec, o
⚠ Shell / Subprocess Execution score 10.0

Found 6 shell execution pattern(s)

  • o_os_system(self): """os.system() must not exist in Monty.""" bash = Bash()
  • _sync("python3 -c 'import os; os.system(\"echo pwned\")'") assert "pwned" not in r.stdout
  • _sync("python3 -c 'import os; os.system(\"echo escaped\")'") assert "escaped" not in r.stdou
  • se UPSTREAM_SIDE)) proc = subprocess.run([sys.executable, "-I", "-c", prelude + code],
  • thon3 -c \'import subprocess; subprocess.run(["echo", "pwned"])\'') assert "pwned" not in r.stdou
  • TH", ""), } result = subprocess.run( [sys.executable, "-c", script], timeout=10,
⚠ Credential Harvesting score 10.0

Found 6 credential access pattern(s)

  • bash.execute_sync("ln -s /etc/passwd /tmp/escape_link 2>/dev/null") r = bash.execute_syn
  • sh.execute_sync(f"cat /{chain}/etc/passwd 2>/dev/null") assert "root:x:0" not in r.stdout
  • _sync("python3 -c 'f = open(\"/etc/passwd\"); print(f.read())'") assert "root:" not in r.stdo
  • content = Path("/tmp/../../../etc/passwd").read_text()\n' " print(content)\n"
  • """VFS must not expose host /etc/passwd.""" bash = Bash() r = bash.execute_sync("cat /etc/p
  • r = bash.execute_sync("cat /etc/passwd") # Should either fail or return VFS-only content (not
✓ Typosquatting

No typosquatting candidates detected

✓ Registered Email Domain

Email domain looks legitimate: chaliy.name>

⚠ Suspicious Page Links score 2.0

Found 1 suspicious link(s) on the package page

  • Non-HTTPS external link: http://127.0.0.1:8080
⚠ Git Repository History score 3.0

GitHub API error: 401

  • GitHub API error: 401
⚠ Maintainer History score 4.0

2 maintainer concern(s) found

  • Author name is missing or very short
  • Author "" appears to have only 1 package on PyPI (new or inactive account)
✓ Known CVE Vulnerabilities

No known vulnerabilities found in OSV database.

💡 AI App Starter Prompt

Use this prompt to build a project with bashkit
Build a simple Python application using the bashkit package to demonstrate its core features.

💬 Discussion Feed

Leave a comment

No discussion yet. Be the first to share your thoughts!