A pre-deployment security layer for AI agents, alongside runtime guardrails and red-teaming

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.

No runtimeNo LLM callsNo data leaves your environment
analysis flow
Repositorygit clone / local path01
Framework DetectionLangGraph · CrewAI · MCP02
Capability Discoveryagents · tools · memory03
Risk Analysisrules · evidence04
Trust Score0–100 rating05
HTML / SARIF / JSONreports & diffs06
Runs Completely OfflineCI/CD ReadyExplainable FindingsAI Supply Chain SecurityApache-2.0 LicenseCommunity Driven
Our Mission

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.

A Question for Builders

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?

The Reality

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.

Framework+ Prompt+ Tools+ MCP+ Memory+ Workflow+ Identity+ External APIs
= Powerful Agent = Fast + Messy

SafeAI helps make the capability surface visible.

Why SafeAI

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 discover --capabilities
→Discover AI frameworks and agents
→Map capabilities and permissions
→Analyze prompts, workflows, and memory
→Inspect MCP servers and integrations
→Generate explainable trust scores
→Run entirely offline

SafeAI helps developers understand these AI capabilities before deployment through fast, offline, explainable analysis that integrates naturally into CI/CD pipelines.

The Visibility Problem

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.

Agents Frameworks Workflows Prompts Tools Skills Models Memory MCP servers Identities External APIs Databases Cloud services Browser automation Shell capabilities Filesystem access Delegation Planning

The goal is not simply to produce a vulnerability list.

The goal is to create a capability picture of the AI system.

Capability Graph

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

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.

Framework Selection

Security should be part of the framework decision.

safeai criteria --framework
  • 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.

Scanner Pipeline

From source code to signed reports

01Source Code
02Framework Discovery
03Semantic Analysis
04Capability Mapping
05Risk Rules
06Trust Score
07Reports
JSON SARIF HTML Capability Graph Capability Diff Trust Score
Example Report

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.

2 Critical6 HighTrust 73 / 100
safeai report --format html
Risk Score73
Frameworks
• LangGraph• CrewAI
Capabilities
ShellFilesystemPlannerMCP
Findings
  • CRITICALPrompt Injection
  • HIGHMissing Human Approval
  • HIGHShell Execution
  • MEDIUMPersistent Memory
Capability Escalation

Your agent changed. Did its authority change too?

Before

GitHub Tool — READ

Pull Request
After

GitHub Tool — WRITE

CAPABILITY ESCALATION
Before

No MCP server

Pull Request
After

Production MCP server + external tools

NEW CAPABILITY SURFACE

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.

Governance Lifecycle

From Agent Development to Agent Governance

01

BUILD

Develop your AI agent normally.

02

DISCOVER

Understand frameworks, agents, tools, prompts, memory, MCP and integrations.

03

ASSESS

Identify risk and governance signals.

04

REVIEW

Review capability changes in pull requests.

05

GOVERN

Apply policies, baselines and controlled exceptions.

06

CHANGE

Track how the agent evolves.

07

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.

Roadmap

Building the AI security stack, in the open

v1.7Shipped

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.

v1.8In Progress

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.

v1.9Planned

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.

CE 2.0Future

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 AuthorityPlanned

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.

CommunityShipped · Ongoing

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
QualityOngoing

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.

Enterprise AI Governance

From individual agent evidence to organizational assurance

Future · Commercial

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.

Open Source

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 paths

Contributors

Open to all

License

Apache-2.0

Adapters

20 frameworks

Runs

100% offline

Community Mission

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.

AI developers Security engineers Platform engineers DevSecOps teams Researchers Framework maintainers Governance professionals Open-source contributors

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.

Contribute

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.

Architecture

A layered, deterministic analysis engine

01Source Code
02Framework Registry
03Multi Parser
04Capability Analyzer
05Prompt Analyzer
06Identity Analyzer
07Memory Analyzer
08MCP Analyzer
09Trust Engine
10Reports
Supported Frameworks

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.

Status LegendPartial Reliable detection and discovery with analysis across common patterns.Experimental Detection and basic artifact discovery with limited framework-specific analysis.
LangGraphPartial

Detects nodes, edges, tools, models and memory. Capability analysis includes planner, memory, shell, filesystem and external API patterns.

CrewAIPartial

Detects agents, tasks, tools, models and memory. Capability analysis includes multi-agent behavior, planner, memory, shell and external API patterns.

LangChainPartial

Detects agents, chains, tools, prompts, memory and models. Capability analysis includes planner, delegation, memory, external APIs, shell and filesystem patterns.

Semantic KernelPartial

Detects workflows, plugins, functions, skills, memory and models. Capability analysis includes planner, memory and external API patterns.

OpenAI Agents SDKPartial

Detects agents, tools, handoffs, MCP references, memory and models. Capability analysis includes multi-agent behavior, delegation, MCP, memory and external API patterns.

Claude CodePartial · Deep Analysis

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.

Microsoft Agent FrameworkExperimental

Detects agents, workflows, tools, memory and models.

Azure AI FoundryExperimental

Detects YAML-based agent configurations, tools, models and Azure cloud references.

Bedrock AgentExperimental

Detects JSON agent configurations and tool definitions.

Google ADKExperimental

Detects agents, workflows, tools and models.

MastraExperimental

Detects agents, workflows, tools and model references.

HaystackExperimental

Detects pipelines, agents, tools and generators.

LlamaIndexExperimental

Detects agents, tools, indexes and model references.

DifyExperimental

Detects workflow and agent configuration files, tools and models.

n8nExperimental

Detects workflow exports, nodes and connections.

Principles

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.

Community Challenge

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.