command-shield

v0.1.1 safe
3.1
Low Risk

Deterministic command and code security analysis — capability classification, structural decomposition, and pattern matching

📦 Package Quality Overall: Low (4.4/10)

✦ High Test Suite 9.0

Test suite present — 19 test file(s) found

  • 19 test file(s) detected (e.g. test_capabilities_corpus.py)
◈ Medium Documentation 5.0

Some documentation present

  • Detailed PyPI description (819 chars)
○ Low Contributing Guide 2.0

No contributing guide or governance files found

  • No CONTRIBUTING, CODE_OF_CONDUCT, or governance files found
◈ Medium Type Annotations 5.0

Partial type annotation coverage

  • 345 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

No suspicious network call patterns found

⚠ Code Obfuscation score 8.0

Found 4 obfuscation pattern(s)

  • body is constructed at shell-eval (not resolvable) interactive interpreter invoked withou
  • ne: r = inspect_code("eval('2+2')", language="python") assert r.code_intel is n
  • _INTENTFRAME_REF_PATTERN = re.compile( r"\.intentframe\b" r"|~/\.intentframe\b" r"|/intentframe/" r"|\bgateway\.sock\b" r"|\bexecutor\.sock\b" ) _SUSPICIOUS_CALLS: dict[str, str] = { "
  • — eval / exec / compile / __import__ (critical) DANGEROUS_CALL_os_<method> — os.system / popen / exe
⚠ Shell / Subprocess Execution score 6.0

Found 3 shell execution pattern(s)

  • e python -c "import os; os.system(...)" referenced python foo.py (r
  • "python3 -c \"import os; os.system('sudo rm -rf /')\"" ).is_catastrophic def test_
  • [] try: result = subprocess.run( [_SHELLCHECK_BIN, "--shell=bash", "-f", "json1"
⚠ Credential Harvesting score 10.0

Found 6 credential access pattern(s)

  • /etc/hosts capability:system_mutate:privilege_config — visudo
  • /etc/passwd, /etc/shadow,
  • /etc/passwd, /etc/shadow, /etc
  • wall``), DNS-hijack writes to /etc/hosts (``hosts_file``), # sudoers / pam.d / passwd / shadow /
  • ewall rules, kernel tunables, /etc/hosts). " " Emitted as ``capability:system_mutate:*``."
  • -L 2 src", "stat /etc/hosts", "file /usr/bin/python3", "du -sh
✓ Typosquatting

No typosquatting candidates detected

✓ Registered Email Domain

No author email provided

⚠ Suspicious Page Links score 2.0

Found 1 suspicious link(s) on the package page

  • Non-HTTPS external link: http://evil.sh
⚠ 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 "IntentFrame 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 command-shield
Build a simple Python application using the command-shield package to demonstrate its core features.

💬 Discussion Feed

Leave a comment

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