pyatr

v0.5.0 safe
2.1
Low Risk

Python engine for Agent Threat Rules (ATR) -- the open detection standard for AI agents (like Sigma, but for prompt injection, tool poisoning, MCP attacks, and skill compromise). Bundles the ATR rule set.

📦 Package Quality Overall: Medium (5.6/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_runner.py)
◈ Medium Documentation 7.0

Some documentation present

  • Documentation URL: "Documentation" -> https://github.com/Agent-Threat-Rule/agent-threat-rules/tree
  • Detailed PyPI description (5315 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
  • 102 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)

  • http://").split(":") with socket.create_connection((host, int(port)), timeout=10) as conn: conn.sendall
  • ple[int, dict]: request = urllib.request.Request( url, data=body, headers={"Content-Type": "a
  • " ) try: with urllib.request.urlopen(request, timeout=10) as response: return
⚠ Code Obfuscation score 4.0

Found 2 obfuscation pattern(s)

  • for root_str, _dirs, files in __import__("os").walk(directory): for fname in sorted(files):
  • for root_str, _dirs, files in __import__("os").walk(RULES_DIR): for fname in files: if
✓ Shell / Subprocess Execution

No shell execution patterns detected

⚠ Credential Harvesting score 2.5

Found 1 credential access pattern(s)

  • tool_args": '{"command": "cat /etc/passwd"}', }, ) matches = engine.evalu
⚠ Typosquatting score 3.0

Possible typosquat of: pytz

  • "pyatr" is 2 edit(s) from "pytz"
✓ 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://127.0.0.1:8000/v1/moderations
⚠ 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 "ATR Community" 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 pyatr
Build a simple Python application using the pyatr package to demonstrate its core features.

💬 Discussion Feed

Leave a comment

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