prompt-defense-audit

v0.1.0 safe
2.8
Low Risk

Deterministic regex scanner for dangerous payloads in LLM responses — Python port of the npm package, with byte-for-byte parity.

📦 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
  • 3 test file(s) detected (e.g. run_py_fixtures.py)
◈ Medium Documentation 5.0

Some documentation present

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

  • Type checker (mypy / pyright / pytype) referenced in project
  • 12 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 1.5

Found 1 network call pattern(s)

  • "python -c 'import socket;socket.create_connection((\"x\",1))'", ], ) def test_reverse_shell(se
⚠ Code Obfuscation score 10.0

Found 6 obfuscation pattern(s)

  • ppet", [ "eval(request.body)", # The rule requires the user-inp
  • "exec(user)", "eval(query)", "exec(input)", ], ) def
  • high", pattern=re.compile( r"(?:eval|exec)\s*\(\s*(?:request|req|input|user|data|body|params|query|ar
  • ppet", [ "__import__('os')", '__import__("subprocess")', "__im
  • import__('os')", '__import__("subprocess")', "__import__('socket')", ], )
  • ("subprocess")', "__import__('socket')", ], ) def test_python_dynamic_import(self,
⚠ Shell / Subprocess Execution score 2.0

Found 1 shell execution pattern(s)

  • s_fixtures.mjs" ts_proc = subprocess.run( ["node", str(runner)], capture_output=True,
⚠ Credential Harvesting score 5.0

Found 2 credential access pattern(s)

  • , [ "../../etc/passwd", "../../etc/shadow", "../../../pro
  • tc/passwd", "../../etc/shadow", "../../../proc/self/environ", # T
✓ Typosquatting

No typosquatting candidates detected

✓ Registered Email Domain

Email domain looks legitimate: gmail.com>

✓ 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 6.0

3 maintainer concern(s) found

  • Only one version has ever been released — brand new package
  • 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 prompt-defense-audit
Build a simple Python application using the prompt-defense-audit package to demonstrate its core features.

💬 Discussion Feed

Leave a comment

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