capfence

v0.9.0 safe
3.1
Low Risk

Authorization gateway for AI agent side effects. CapFence lets agents propose tool calls, then enforces deterministic allow, deny, or approval decisions before shell, database, filesystem, payment, API, or MCP execution.

📦 Package Quality Overall: Medium (5.2/10)

✦ High Test Suite 9.0

Test suite present — 3 test file(s) found

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

Some documentation present

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

No contributing guide or governance files found

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

Partial type annotation coverage

  • Classifier: Typing :: Typed
  • 229 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)

  • de("utf-8") request = urllib.request.Request( self.url, data=request_body
  • try: with urllib.request.urlopen(request, timeout=self.timeout_seconds) as response:
⚠ Code Obfuscation score 10.0

Found 6 obfuscation pattern(s)

  • try: priv_bytes = base64.b64decode(priv_b64) pub_bytes = base64.b64decode(pub_b64)
  • priv_b64) pub_bytes = base64.b64decode(pub_b64) except Exception: raise ValueError("Sto
  • ode("utf-8") priv_bytes = base64.b64decode(private_key_b64) if _HAS_CRYPTOGRAPHY: private_
  • ("utf-8") sig_bytes = base64.b64decode(signature_b64) pub_bytes = base64.b64decode(public_k
  • ture_b64) pub_bytes = base64.b64decode(public_key_b64) except Exception: return False
  • ("withdrawal", {"note": "eval(open('/etc/passwd').read())", "action": "execute"}), # B
⚠ Shell / Subprocess Execution score 8.0

Found 4 shell execution pattern(s)

  • iation", {"memo": "import os; os.system('rm -rf /')", "amount": 100}), ("withdrawal", {"note": "
  • ream_command)) return subprocess.Popen( self._upstream_command, stdin=subpr
  • t.parent / "src" result = subprocess.run( [sys.executable, "-m", "capfence.cli", "check", str
  • YTHONPATH", "") result = subprocess.run( [sys.executable, str(path)], capture_output
⚠ Credential Harvesting score 5.0

Found 2 credential access pattern(s)

  • drawal", {"note": "eval(open('/etc/passwd').read())", "action": "execute"}), # Benign-looking amo
  • import read_file path = "~/.ssh/id_rsa" runtime = ActionRuntime.from_policy(HERE / "policy.yam
✓ 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 2.0

1 maintainer concern(s) found

  • Author "Anshuman Kumar" 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 capfence
Build a simple Python application using the capfence package to demonstrate its core features.

💬 Discussion Feed

Leave a comment

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