Secure AI systems before they run
SafeAI is an open-source static analyzer for AI applications. It discovers agents, prompts, workflows, skills, MCP servers, tools, models, identities, memory, and integrations directly from source code — before deployment.
We help teams see and review what their AI agents are allowed to do before it ships.
AI agent development is moving incredibly fast. Frameworks, tools, MCP servers, skills, memory, workflows and autonomous capabilities are becoming easier to assemble every day. But capability is growing faster than governance. SafeAI exists to help the community understand what an AI agent can do, what changed, and where risk signals exist — before that agent becomes someone else's production problem.
How did you choose your AI agent framework?
Was security one of your criteria?
When choosing an agent framework, developers naturally compare features, performance, ecosystem, integrations and developer experience. But how often do we ask what capabilities the framework introduces — and how those capabilities should be governed?
Fast and Messy — Almost Everyone's Agent Story
AI agents are being assembled from frameworks, prompts, tools, MCP servers, skills, memory, APIs and workflows. A developer can create powerful agent capabilities in hours. But without a deliberate approach to capability discovery and governance, the resulting architecture can become difficult to understand, review and control.
SafeAI helps make the capability surface visible.
Building trustworthy AI starts with understanding what an AI system can do
As AI applications become more autonomous, understanding their capabilities becomes just as important as understanding their source code.
SafeAI is a free, open-source static analysis tool (SAST) for AI agents that maps your agent's attack surface — capabilities, tool permissions, MCP integrations, and prompt risks — and gives clear mitigation steps before deployment.
Designed to be lightweight, explainable, and community-driven, SafeAI aims to become an open foundation for AI capability and risk analysis.
SafeAI helps developers understand these AI capabilities before deployment through fast, offline, explainable analysis that integrates naturally into CI/CD pipelines.
Before you govern an agent, know what it can do.
SafeAI helps discover the full capability surface of an AI application directly from source — without running it, without calling an LLM, and without sending data anywhere.
The goal is not simply to produce a vulnerability list.
The goal is to create a capability picture of the AI system.
What SafeAI discovers
See what your AI agents can do, with evidence, before you deploy. Hover or tap a node to inspect it.
Hover a capability to see its description, risk and examples.
Know Your Agent
Before asking whether an agent is secure, first understand what the agent is, what it can access, what capabilities it declares, and how those capabilities change over time.
WHO?
- Agent
- Framework
- Model
WHAT?
- Tools
- Skills
- MCP
- Memory
CAN DO WHAT?
- Shell
- Filesystem
- Database
- Cloud
- APIs
- Browser
WHAT CHANGED?
- Capability Diff
- PR Review
WHAT EVIDENCE?
- Findings
- Confidence
- Provenance
WHAT DECISION?
- Policy
- Review
- Governance
KYA turns static analysis into an evolving understanding of your agent portfolio.
Static evidence of declared and discovered capabilities — not proof of runtime behavior.
Security should be part of the framework decision.
- What capabilities does it make easy to introduce?
- How are tools granted to agents?
- How is MCP configured?
- Can agents access files or execute commands?
- How does the framework handle memory?
- Does it support human approval?
- Can agents delegate to other agents?
- What external systems can they reach?
- How easy is it to inspect these capabilities?
- Can capability changes be detected during code review?
- Can security analysis run automatically in CI/CD?
SafeAI helps turn these questions into something you can inspect automatically.
From source code to signed reports
Evidence-based findings, not black-box scores
Every scan produces a deterministic report you can commit, diff and review — trust score, framework inventory, capabilities and prioritized findings.
- CRITICALPrompt Injection
- HIGHMissing Human Approval
- HIGHShell Execution
- MEDIUMPersistent Memory
Your agent changed. Did its authority change too?
GitHub Tool — READ
GitHub Tool — WRITE
No MCP server
Production MCP server + external tools
A pull request can change much more than application logic. It can change what an agent is allowed to access, which tools it can invoke, and what external systems it can influence. SafeAI helps identify meaningful capability changes during development and review.
From Agent Development to Agent Governance
BUILD
Develop your AI agent normally.
DISCOVER
Understand frameworks, agents, tools, prompts, memory, MCP and integrations.
ASSESS
Identify risk and governance signals.
REVIEW
Review capability changes in pull requests.
GOVERN
Apply policies, baselines and controlled exceptions.
CHANGE
Track how the agent evolves.
REASSESS
Detect newly introduced capabilities and risks.
Governance should become part of the development lifecycle — not a review performed after the agent is already deployed.
Building the AI security stack, in the open
Agent & Component Governance Foundations
Released. Current release: v2.16.0.
Strengthen SafeAI's understanding of the agent environment, MCP exposure, policies and reusable AI components.
- IDE-scoped MCP discovery (Cursor, Windsurf, VS Code)
- Named policy profiles (developer, strict-ci, mcp, rag, production-agent)
- Registry freshness indicators
- Strict suppression enforcement (--strict-suppressions, CI failure for invalid/stale suppression conditions)
- Component registry persistence
- Component registry schema v3
- Component snapshots
- Component-change diffs
- Self-comparison / component diff correctness
v1.7 represents the foundation for deeper AI component governance.
True Authority & Complete Lifecycle
Curated · In Progress
Make SafeAI able to explain not only that a risky capability exists, but where it is declared, where it is implemented, how it changed, and whether the associated finding remains valid.
- Finding lifecycle event engine (finding_lifecycle, schema v4, lifecycle history, recurring-risk detection, ESC_RECURRING_RISK)
- Stale suppression guard (fingerprint-bound waivers, detect stale suppressions, prevent silent survival across changed code)
- Agent enrichment (agent metadata, safeai registry metadata set, agent_metadata registry table, enrich KYA records with ownership/context)
- Tool → implementation mapping (declaration → implementation → capability → finding)
- Command-aware MCP resolution (assurance: resolved vs unresolved-command)
- Target taxonomy engine (Database, Object Storage, SaaS API)
- Deeper prompt risk analysis (multi-line, cross-file, indirect injection, XML injection, HTML injection)
- Deeper data leakage analysis (private keys, JWTs, AWS credentials, connection strings, base64/hex encoded secrets, per-pattern severity)
- Cross-component analysis (Skill → Tool → Workflow → MCP → Model, Component Graph)
Exit criterion: a reviewer should be able to see, for any tool or MCP server — where it is declared, where it is implemented, what capability it provides, whether declaration and implementation match, and whether related findings have valid lifecycle history.
Component Depth & Ecosystem Foundations
Planned · Curated
Extend SafeAI from component discovery and analysis toward reusable component intelligence and a broader community security ecosystem.
- AI component depth (version tracking, hashes, identity, manifests, unpinned component detection, unsafe composition detection)
- Component impact analysis (safeai registry components — "Where is this component used?", "What would be affected if it changes?")
- Remaining capability surface work (governance signals, heuristic data-flow analysis, framework adapter completion, improved capability attribution)
- CE 2.0 foundations (safeai init, custom rule authoring, rule-pack development, security policy development, test fixtures, expected-findings validation)
- Security taxonomy mappings (OWASP Top 10 for Agentic Applications, OWASP Top 10 for LLM Applications, NIST AI RMF 1.0)
- Portable KYA registry (export, import, portable inventory, history portability, suppression portability)
- Rule / plugin versioning (track exact rule-set version per scan; future per-parser/plugin version recording)
Taxonomy, policy selection and prioritisation mappings — not compliance certification. SafeAI does not claim OWASP or NIST compliance.
Community Security Ecosystem
Future
Turn SafeAI into a community-driven ecosystem for AI agent security analysis.
- Community rule registry
- Versioned security rules
- Policy packs
- Custom organizational rules
- Framework-specific rules
- Agent / MCP / RAG security packs
- OWASP-aligned mappings
- NIST AI RMF mappings
- Portable rule/policy packages
- Community-contributed test fixtures
- Security research contributions
This ecosystem does not yet exist. SafeAI does not currently ship a vulnerability database or reputation service, and remains offline / local-first.
Static Capability → Authority Correlation
Planned
Compare what an AI agent declares it can do with authority represented in infrastructure and deployment configuration.
Potential analysis
- Terraform
- CloudFormation
- Helm
- Kubernetes manifests
- Serverless configuration
- IAM-related configuration
Detect
- Capability without authority — the agent appears to require a capability that infrastructure may not grant
- Authority without capability — infrastructure appears to grant authority that the agent does not appear to require
This is STATIC correlation. Repository IaC is NOT proof of what is actually deployed. The assurance boundary must preserve this distinction.
Community Scan Programme
Supporting quality initiative
Governed scanning of public third-party agent frameworks.
- Target manifest
- Scan methodology
- Sanitisation pipeline
- Responsible disclosure workflow
- Community scan validation
Security & Supply Chain
Supporting quality initiative
Hardening and supply-chain integrity for SafeAI itself.
- OpenSSF Scorecard analysis
- Fuzz testing
- Security-focused CI
- GitHub Action hardening
These are supporting quality initiatives, not separate product phases.
From individual agent evidence to organizational assurance
Extend KYA and static evidence from individual repositories to organization-wide AI governance. This is a future commercial direction — it is not part of the current offline Community scanner.
EE1 · Organizational Evidence Registry
- Central KYA inventory
- Repository and agent portfolio
- Team ownership
- Business ownership
- Environment tracking
- Lifecycle status
- Review dates
- Approval state
- Portfolio-level capability diffs
- SSO
- RBAC
- Audit logs
- Coverage reporting
- Stale/drifted repository detection
EE2 · Policy Governance & Evidence Integrity
- Private rule registries
- Central policy management
- Version-pinned policies
- Central baselines
- Approved exceptions
- Signed attestations
- Tamper-evident evidence
- Reproducibility metadata
- DevSecOps integrations
- Trend analysis
- Executive reporting
EE3 · Live Authority Reconciliation
- AWS IAM
- Azure Managed Identity
- GCP IAM
- Kubernetes RBAC
- Service accounts
- Network policies
Compare declared/static capability against live granted authority. Includes continuous drift detection, dev/staging/prod comparison, and optional runtime-evidence correlation. Represented as a separate component with scoped read-only access.
EE4 · Regulated Industry Content & Federation
- HIPAA / patient-data policy packs
- PCI / transaction security packs
- GDPR / data protection mappings
- EU AI Act mappings
- Organization-specific packs
- Control-mapped evidence exports
- Federated KYA registry
- Optional component reputation intelligence
Enterprise AI Governance is a future commercial direction. SafeAI provides policy mappings, evidence and governance support — it does not claim certification, and does not make an organization compliant. The current open-source scanner does not perform live IAM reconciliation.
Local by default
No account, server, daemon, telemetry or external network calls for Community Edition scanning.
Source-private by default
SafeAI works from local project evidence rather than uploading raw source code.
Static truth only
Detected evidence must be distinguished from unknown runtime state.
No compliance certification claims
SafeAI provides analysis, evidence and mappings — not declarations that an AI agent is safe or compliant.
Community built. Open source. Early preview.
SafeAI is built in the open because AI security evolves faster than any single vendor. The community should define how AI systems are inspected, understood and secured.
We invite researchers, engineers and organizations to contribute scanners, framework adapters, detection rules and security test packs.
Explore contribution pathsContributors
Open to all
License
Apache-2.0
Adapters
20 frameworks
Runs
100% offline
Let's make safer agents together.
SafeAI is being built in the open because AI agent security should not become knowledge locked inside a single vendor. We invite contributions from across the community.
Framework Adapters
Add detection and analysis for new agent frameworks.
Capability Detectors
Teach SafeAI how to recognize new agent capabilities.
Security Rules
Contribute new risk and governance rules.
Test Projects
Test SafeAI against real-world AI applications.
Security Research
Explore new agentic AI risks and analysis techniques.
Documentation
Improve examples, guides and explanations.
Ways to shape the standard
Framework Adapter
Create support for new AI frameworks.
Rule Packs
Add new security detection rules.
Capability Detection
Improve discovery accuracy.
Documentation
Improve guides and references.
Bug Reports
Improve reliability.
Research
Publish AI security findings.
Testing
Provide real-world projects.
A layered, deterministic analysis engine
Growing coverage across the Agentic AI ecosystem
SafeAI currently detects and analyzes 20 AI agent frameworks and platforms, with coverage ranging from reliable partial analysis to experimental support. Coverage is intentionally reported conservatively: detection does not mean full semantic or risk coverage.
Detects nodes, edges, tools, models and memory. Capability analysis includes planner, memory, shell, filesystem and external API patterns.
Detects agents, tasks, tools, models and memory. Capability analysis includes multi-agent behavior, planner, memory, shell and external API patterns.
Detects agents, chains, tools, prompts, memory and models. Capability analysis includes planner, delegation, memory, external APIs, shell and filesystem patterns.
Detects workflows, plugins, functions, skills, memory and models. Capability analysis includes planner, memory and external API patterns.
Detects agents, tools, handoffs, MCP references, memory and models. Capability analysis includes multi-agent behavior, delegation, MCP, memory and external API patterns.
Analyzes repository-local .claude/settings.json, .claude/settings.local.json, .mcp.json, CLAUDE.md, .claude/commands/*.md, .claude/agents/*.md, lifecycle hooks, permission grants, MCP grants, wildcard permissions, slash commands and subagents. Repository-scoped — does NOT inspect user-level or machine-global Claude configuration.
Detects agents, workflows, tools, memory and models.
Detects YAML-based agent configurations, tools, models and Azure cloud references.
Detects JSON agent configurations and tool definitions.
Detects agents, workflows, tools and models.
Detects agents, workflows, tools and model references.
Detects pipelines, agents, tools and generators.
Detects agents, tools, indexes and model references.
Detects workflow and agent configuration files, tools and models.
Detects workflow exports, nodes and connections.
How SafeAI is engineered
Static First
Never executes the code it scans. Analysis happens entirely from source.
Offline by Default
No cloud dependency. No data ever leaves your environment.
Explainable
Every finding includes evidence and remediation guidance.
Developer Friendly
Built for CI/CD with SARIF, JSON and exit codes.
We have a simple question for the community:
Do you know what your agent can actually do?
Scan an AI agent project with SafeAI. Look at the capabilities it discovers. Review what changed. Decide whether those capabilities are intentional.
Help build the AI security standard
SafeAI is building the open-source foundation for AI capability discovery and AI supply chain security. Join researchers, platform engineers, AI developers and security professionals.