yohanguez

AgentSec: Audit AI Agent Workflows for Security Risks

AgentSec statically analyzes AI agent workflows for excessive permissions and paths from untrusted input to dangerous capabilities. It is aimed at developers and security teams reviewing supported agent frameworks before deployment or as part of CI.

PythonApache-2.0AI AgentsSecurityCLI
View on GitHub Compare
Stars
0
Forks
0
Stars, last 30 days
+0

Our take

Health score

31/100

How it is scored
Activity
39
Community
4
Issues
21
Pull requests
60

+0 stars in the last 30 days

  • Fewer contributors than 91% of the projects we track

Project history

Daily GitHub snapshots since Oct 7, 2026. History covers stars and forks; health signals are not tracked historically.

Selected snapshot

Stars

0

Forks

0

Change since Nov 23, 2026: 0 stars·0 forks

Overview

AgentSec is a Python tool for assessing the security of AI agent workflows without executing them. It builds a graph of agents, tools, and handoffs, then checks what each agent can do and whether untrusted content can reach risky capabilities.

It is useful when a per-file code scan misses risks created by connections between agents. Its analysis covers LangGraph, CrewAI, OpenAI Agents, Autogen, and n8n workflows, with reports intended to help developers and security teams prioritize review and remediation.

Key Features

  • Analyzes workflow structure across supported agent frameworks and represents agents, tools, and handoffs as a graph.
  • Assigns capabilities such as shell execution, file access, database access, and network communication to agents.
  • Uses Python AST inspection to identify capabilities in custom tools, in addition to matching tool names and categories.
  • Flags excessive agency and the combination of private-data access, untrusted-content exposure, and external communication.
  • Traces whether untrusted input can reach dangerous sinks, including across agent handoffs, with confidence labels.
  • Produces HTML reports with workflow visualizations and JSON exports for machine-readable review.
  • Provides a local dashboard with SQLite-backed run history.

Use Cases

  • Agent developers can review a LangGraph or CrewAI workflow before deployment to spot agents with broader capabilities than their tasks require.
  • Security engineers can assess whether user-provided or retrieved content can reach shell, code execution, database, file-write, or exfiltration capabilities.
  • Teams maintaining multi-agent systems can examine risk paths that cross agent handoffs and are difficult to see in isolated file scans.
  • CI maintainers can export audit results as JSON and incorporate workflow checks into an existing review process.

Getting Started

Python 3.9 or later is specified in the README. Install the core package from a clone:

pip install -e .

Then run agentsec scan langgraph -i <workflow-directory> -o report.html. See the README for framework-specific usage, optional dashboard dependencies, and further setup details.

Considerations

  • This is static analysis: it parses workflow code and does not execute it. Findings therefore depend on the patterns and capabilities the analyzers recognize, and should not be treated as a substitute for runtime testing or a full security review.
  • The README describes high confidence for tracing within one agent and medium confidence across handoffs, so cross-agent paths warrant human validation.
  • Python 3.9 or later is required. The README presents the dashboard as an optional installation extra.
  • The repository lists 0 stars and 0 forks, so there is little public adoption signal in the supplied metadata. Check the project and test results against your own workflows before relying on it in a security process.

Found this useful?

Share it with someone who would like AgentSec.

Comparisons