Skip to main content

open-agent-security

Find known-dangerous AI agent setups in a repository, in seconds. Part of the BRACE framework for securing AI agents.

It reads files and matches fixed patterns. It starts no server, runs no model, sends nothing over the network and needs no dependencies beyond Python 3.11 or newer.

Install and run

uvx open-agent-security .            # or: pipx run open-agent-security .
uvx open-agent-security . --host     # also check the agent settings on this machine
pip install open-agent-security      # to install the command
open-agent-security . --fail-on high # exit 1 on a high or worse finding

Each problem is reported with its file and line, why it matters and how to fix it.

The BRACE tools: brace

The same package installs a second command, brace, for teams that keep a BRACE sign-off record. brace scan is the scanner above. The other commands need the [record] extra (PyYAML and jsonschema); without it they exit 2 and say so:

pip install "open-agent-security[record]"
brace init                          # create the .brace/ record
brace check --approvals off         # check it against the 53 BRACE items
brace map build . -o brace-topology.cdx.json   # CycloneDX map of what the agent connects to
brace plan brace-findings.json brace-topology.cdx.json -o brace-action-plan.md
brace --help                        # every command

The scanner itself never imports PyYAML, jsonschema or the brace tools.

Rules

ID Severity Problem
AP01 high Agent runs with all permission checks turned off
AP02 critical Unattended agent in CI with permission checks turned off
AP03 critical Agent workflow triggered by pull_request_target
AP04 high MCP server installed from an unpinned package
AP05 high Secret written directly in agent configuration
AP06 high Agent allowed to run any shell command (Claude Code, Gemini CLI and Cursor CLI settings)
AP07 medium Remote MCP server reached over plain HTTP
AP08 high Agent tool container can take over the host
AP09 medium Lethal combination: untrusted input, private data and a way out (inferred, marked likely)
AP10 low Agent image not pinned to a digest
AP20 medium Agent tools approved automatically, without review
AP21 high Agent workflow anyone can trigger with a comment or issue
AP22 high Hidden Unicode characters in agent instructions
AP23 high Hook or skill runs code fetched from the internet

Details and fixes: https://braceframework.org/anti-patterns/

Outputs

Text (default), JSON, SARIF 2.1.0 for GitHub code scanning, a Markdown summary, a GitLab SAST report and JUnit XML. Secrets are redacted in all of them. Use --output NAME=FILE, for example --output sarif=results.sarif. Exit code 0 means nothing at or above the threshold, 1 means findings or an incomplete scan.

Silence a reviewed finding with open-agent-security: ignore on the line, an .open-agent-security-ignore file or .open-agent-security.toml; suppressed findings stay visible in SARIF and JSON.

Documentation

Full guide (options, configuration, GitHub Action, pre-commit, GitLab CI, limits): https://braceframework.org/tools/brace/SCAN.md (rules in detail: https://braceframework.org/tools/brace/SCAN-DETAILS.md). Website: https://braceframework.org

A clean scan means none of these patterns was found. It is not a security review and not BRACE compliance. For that, use BRACE Starter or the sign-off checklist.

Licence

Code: Apache License 2.0 (see LICENSE and NOTICE). BRACE documentation: CC BY 4.0.

Metadata

Release files for open-agent-security 3.4.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for open-agent-security 3.4.1
File Size Uploaded Provenance Actions
open_agent_security-3.4.1.tar.gz 315.7 kB Without provenance Details for open_agent_security-3.4.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for open-agent-security 3.4.1
File Interpreter ABI Platform Actions
open_agent_security-3.4.1-py3-none-any.whl Python 3 none any Details for open_agent_security-3.4.1-py3-none-any.whl

Total release size: 659.3 kB

Release files / open_agent_security-3.4.1.tar.gz

Download URL open_agent_security-3.4.1.tar.gz
Size 315.7 kB
Tags Source
SHA-256 checksum
How to use checksums
c65e99dd121bd5ddad9b96241e74608fa7eae90780beecbf062ffc3683638c2b
BLAKE2b-256 checksum
How to use checksums
28e8e1fb74c06c6ef37b9d3301dafdb5b61c74fbf5d59e7d9f446d8a5264d12e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.19 {"installer":{"name":"uv","version":"0.11.19","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / open_agent_security-3.4.1-py3-none-any.whl

Download URL open_agent_security-3.4.1-py3-none-any.whl
Size 343.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6b81e623c434bebbde3a4778d6b525bdf454de7b05cf5909802cc8ceddd27531
BLAKE2b-256 checksum
How to use checksums
fed8eb96f894da04c153e0648faa0c9278679cc1de87cb406aae19d18cb359fc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.19 {"installer":{"name":"uv","version":"0.11.19","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Security for open-agent-security 3.4.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page