hydra-sandbox

v0.1.0 suspicious
4.0
Medium Risk

Hardened Python sandbox for running untrusted code — subprocess, seccomp, landlock strategies with Z3 formal verification.

📦 Package Quality Overall: Medium (5.2/10)

✦ High Test Suite 9.0

Test suite present — 8 test file(s) found

  • Test runner config found: pyproject.toml
  • 8 test file(s) detected (e.g. test_audit.py)
◈ Medium Documentation 7.0

Some documentation present

  • Documentation URL: "Documentation" -> https://github.com/akaradje/hydra-sandbox
  • Detailed PyPI description (4243 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

  • 57 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 3.0

Found 2 network call pattern(s)

  • ython" try: req = urllib.request.Request( f"{_TELEMETRY_ENDPOINT}?{payload}",
  • thod="GET", ) urllib.request.urlopen(req, timeout=3.0) logger.debug("Telemetry pi
⚠ Code Obfuscation score 10.0

Found 6 obfuscation pattern(s)

  • alse try: return eval(expr_str, {"__builtins__": {}}, namespace) except Except
  • _compile_and_exec(): """``exec(compile('import subprocess', '', 'exec'))`` — blocked. subproc
  • """ code = """ try: exec(compile('import subprocess', '', 'exec')) print("ESCAPED: compi
  • ile_and_exec(): """``exec(compile('import subprocess', '', 'exec'))`` — blocked. subprocess: BLOCKED (compile+exec stil
  • code = """ try: exec(compile('import subprocess', '', 'exec')) print("ESCAPED: compile+exec bypass worked") except
  • import_via_dunder(): """``__import__('subprocess')`` — blocked by import guard. subprocess: BLOCKED (impo
⚠ Shell / Subprocess Execution score 10.0

Found 6 shell execution pattern(s)

  • port guard approach.") print("os.system() would execute shell commands in the subprocess strategy.")
  • system(): """``import os; os.system('...')`` — NOT blocked by import guard. The import guar
  • is ACCESSIBLE via import os; os.system()") print("This is a KNOWN LIMITATION of the subprocess
  • port subprocess result = subprocess.run( [sys.executable, "-m", "pytest", "tests/benchmarks"
  • try: proc = subprocess.run( [sys.executable, "-c", full_code],
  • Return kwargs to merge into ``subprocess.run()`` (e.g. ``preexec_fn``).""" ... def extract_b
⚠ Credential Harvesting score 10.0

Found 6 credential access pattern(s)

  • tc_passwd(): """Reading ``/etc/passwd`` from the sandbox. subprocess: OUT-OF-SCOPE on Linux
  • """ try: content = open('/etc/passwd', 'r').read() if content: print(f"ESCAPED: read
  • print(f"ESCAPED: read /etc/passwd ({len(content)} bytes)") else: print("OK: /etc/
  • else: print("OK: /etc/passwd is empty or unreadable") except FileNotFoundError: prin
  • NotFoundError: print("OK: /etc/passwd does not exist") except PermissionError: print("OK: per
  • pytest.skip( "/etc/passwd read succeeded — known limitation of subprocess "
✓ Typosquatting

No typosquatting candidates detected

✓ Registered Email Domain

No author email provided

✓ Suspicious Page Links

All external links appear legitimate

⚠ Git Repository History score 3.0

GitHub API error: 401

  • GitHub API error: 401
⚠ Maintainer History score 4.0

2 maintainer concern(s) found

  • Only one version has ever been released — brand new package
  • Author "Hydra Sandbox Contributors" 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 hydra-sandbox
Build a simple Python application using the hydra-sandbox package to demonstrate its core features.

💬 Discussion Feed

Leave a comment

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