llmpromptdefender

v0.4.0 safe
2.6
Low Risk

Static security scanner for LLM and agentic source code — finds prompt-injection, context-leak, PII, RAG, and agent-tool vulnerabilities before deployment.

📦 Package Quality Overall: Low (4.8/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_adversarial.py)
◈ Medium Documentation 5.0

Some documentation present

  • Detailed PyPI description (6538 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

  • 240 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 4.5

Found 3 network call pattern(s)

  • .get", "httpx.post", "urllib.request.urlopen", "fetch", "fetch_from_url", "load_url",
  • , ) try: with urllib.request.urlopen(server.url + "healthz", timeout=2) as response:
  • decode() == "ok" with urllib.request.urlopen(server.url, timeout=2) as response: body
⚠ Code Obfuscation score 4.0

Found 2 obfuscation pattern(s)

  • , "subprocess", "os.system", "eval(", "exec(")): return True return False
  • ) _EXEC_TOOL_RE = re.compile( r"""(?:exec|execSync|execFile|spawn|spawnSync|shellExec)\s*\(""", re.IGNORECASE,
⚠ Shell / Subprocess Execution score 10.0

Found 6 shell execution pattern(s)

  • erable[Finding]: """``subprocess.run(cmd, shell=True)`` and friends — any time shell=True
  • try: output = subprocess.check_output( ["git", "-C", str(repo), "diff", "--name-on
  • es. try: output = subprocess.check_output( ["git", "-C", str(repo), "diff", "--name-only"]
  • """``subprocess.run(cmd, shell=True)`` and friends — any time shell=True appears in a s
  • rue)`` and friends — any time shell=True appears in a subprocess call inside an LLM-app code
  • (plain ``def`` body with shell=True) and CrewAI ``@tool`` patterns. """ if not
✓ Credential Harvesting

No credential harvesting patterns detected

✓ 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 "llmpromptdefender 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 llmpromptdefender
Build a simple Python application using the llmpromptdefender package to demonstrate its core features.

💬 Discussion Feed

Leave a comment

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