Static AI Capability & Risk Analyzer for AI agents and workflows. Detects prompt injection, data leakage, excessive agency, MCP misconfigurations, and credential/capability mismatches — entirely offline and static. This release adds the Security Scorecard, the Community Scan programme (private pilot), and a hardened GitHub Action.
pip install SafeAI-Static-Analyzersafeai scan /path/to/project
safeai scan /path/to/project --json results.json --html report.html
safeai scan /path/to/project --scorecard scorecard.md --scorecard-fail-under 7.0- uses: ikaruscareer/SafeAI@v1
with:
path: .
fail-on: critical- Security Scorecard — deterministic 0–10 score with per-category
breakdown and
pass/warn/failoutcome. Flags:--scorecard,--scorecard-json,--scorecard-summary,--scorecard-fail-under. - Community Scan (private pilot) — governed workflow for scanning public third-party agent frameworks with responsible disclosure; private by default.
- CLI version support —
safeai --version/-V. - Action hardening — dynamic version source of truth, hermetic installs, output-injection protection.
| Category | Examples |
|---|---|
| Prompt Injection | User input in prompts, missing delimiters, system prompt leaks |
| Data Leakage | Hardcoded API keys, tokens, passwords (masked in all outputs) |
| Excessive Agency | Shell exec, filesystem access, HTTP, database, code exec, autonomous loops |
| MCP Misconfig | Missing auth, weak permissions, exposed endpoints, hardcoded secrets |
| Capability Escalation | Per-tool authority diffs between scans (14 ESC_* rules) |
| Dependency Correlation | Undeclared capabilities, orphaned tools (DEP_*) |
| Supply Chain | AI framework dependency detection |
LangGraph, CrewAI, LangChain, Semantic Kernel, OpenAI Agents, Microsoft Agent, Azure AI Foundry, Bedrock Agent, Claude Code, Google ADK, Mastra, Haystack, LlamaIndex, Dify, n8n (15 adapters).
- Terminal (human-readable)
- JSON (machine-readable)
- SARIF 2.1.0 (GitHub Advanced Security)
- HTML (self-contained interactive report)
- KYA manifest (
safeai-manifest.json) - PR comment (reviewer-facing escalation summary)
- Security Scorecard (Markdown / JSON)
safeai_static_analyzer-1.6.0-py3-none-any.whlsafeai_static_analyzer-1.6.0.tar.gz