Flawrence
Open-source Rust tool that finds and validates security vulnerabilities in source code using LLM agents.
At a Glance
Self-hosted Flawrence core under the MIT license. LLM provider/API costs are external (bring your own keys).
Engagement
Available On
Listed Dec 2026
About Flawrence
Flawrence is an open-source, MIT-licensed command-line tool written in Rust that uses LLM agents to find security vulnerabilities in source code. It reads a codebase, builds a threat model, maps the attack surface and assigns a research agent to each entry point. Only findings with a verified reproducer are submitted, and a proof of concept is written for each. The latest listed release is v0.1.0.
What It Is
Flawrence is an agent-driven vulnerability research runner. You point flawrence-runner at a target directory and choose an agent such as security-review, and it runs a multi-agent pipeline against the code. It works with Anthropic, OpenAI, Cloudflare Workers AI and any OpenAI-compatible endpoint, including self-hosted open-weight models.
How a Review Works
The security-review pipeline runs in stages: threat modelling, attack-surface listing, finding a reliable way to run small reproducers, and one vulnerability-research agent per attack surface entry. A validation agent then checks each candidate and rejects false positives, and a proof-of-concept agent writes and runs an exploit for each confirmed issue. Duplicates are dropped, and the remaining findings are stored as artifacts. A GitHub Security Advisory draft is written for each submitted finding. The final report lists submitted, blocked, duplicate and false-positive findings along with open questions.
Other agents cover follow-up work: writing and verifying patches, filing GitHub private vulnerability reports, drafting Apache project security emails, and mining git history for past security fixes.
Setup and Safety Model
The project is built with Cargo and configured through environment variables or a .env file. A Docker image bundles the runner and common build toolchains. Agents run shell commands, build the target and execute proofs of concept, so the README advises running it in a container or VM and setting a cost cap (MAX_COST_USD). Findings stay local unless live submission is explicitly enabled through environment flags.
Extending Agents
Agents are Markdown files with YAML front matter that set the model, tools, artifact read/write permissions and allowed subagents, with the body serving as the system prompt. Permissions are closed by default. A tree-sitter code index supports Python, Rust, JS/TS, C/C++, Go, Java, Ruby and Kotlin. Optional dashboards include a terminal UI, a read-only web status page and a browser launcher.
Community Discussions
Be the first to start a conversation about Flawrence
Share your experience with Flawrence, ask questions, or help others learn from your insights.
Pricing
Open Source
Self-hosted Flawrence core under the MIT license. LLM provider/API costs are external (bring your own keys).
- MIT-licensed Rust CLI (flawrence-runner)
- Works with Anthropic, OpenAI, Cloudflare Workers AI and any OpenAI-compatible endpoint
- Set MAX_COST_USD to cap LLM token spend
- Self-hosted open-weight models supported as a cheaper alternative
- Harp icon is under the Flaticon license, not MIT
Capabilities
Key Features
- Threat model and attack surface mapping
- One research agent per attack surface entry
- Validation agent that rejects false positives
- Automatic proof-of-concept writing and execution
- Duplicate detection and finding submission
- GitHub Security Advisory draft generation
- Patch-writing agent with verification and bypass attempts
- Git history mining for past security fixes
- Cost cap and daily schedule window
- Terminal UI, web status page and browser launcher
- Markdown-defined custom agents and skills
- Docker image with build toolchains
