raptor README

README проекта с github.com/gadievron/raptor. Одним файлом markdown: README.md.

╔═══════════════════════════════════════════════════════════════════════════╗
║                                                                           ║
║             ██████╗  █████╗ ██████╗ ████████╗ ██████╗ ██████╗             ║
║             ██╔══██╗██╔══██╗██╔══██╗╚══██╔══╝██╔═══██╗██╔══██╗            ║
║             ██████╔╝███████║██████╔╝   ██║   ██║   ██║██████╔╝            ║
║             ██╔══██╗██╔══██║██╔═══╝    ██║   ██║   ██║██╔══██╗            ║
║             ██║  ██║██║  ██║██║        ██║   ╚██████╔╝██║  ██║            ║
║             ╚═╝  ╚═╝╚═╝  ╚═╝╚═╝        ╚═╝    ╚═════╝ ╚═╝  ╚═╝            ║
║                                                                           ║
║             Autonomous Offensive/Defensive Research Framework             ║
║             Based on Claude Code (v3.1.0)                                 ║
║                                                                           ║
║             Gadi Evron, Daniel Cuthbert, Thomas Dullien (Halvar Flake)    ║
║             Michael Bargury, John Cartwright                              ║
║                                                                           ║
╚═══════════════════════════════════════════════════════════════════════════╝

⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⣠⣤⣤⣀⣀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣾⣿⣿⠿⠿⠟
⠀⠀⠀⠀⠀⠀⠀⠀⢀⣀⣀⣀⣀⣀⣀⣤⣴⣶⣶⣶⣤⣿⡿⠁⠀⠀⠀
⣀⠤⠴⠒⠒⠛⠛⠛⠛⠛⠿⢿⣿⣿⣿⣿⣿⣿⣿⣿⣿⠟⠁⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠉⠛⣿⣿⣿⡟⠻⢿⡀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⣾⢿⣿⠟⠀⠸⣊⡽⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢸⡇⣿⡁⠀⠀⠀⠉⠁⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠈⠻⠿⣿⣧⠀ Get them bugs.....⠀⠀⠀⠀⠀

Authors: Gadi Evron, Daniel Cuthbert, Thomas Dullien (Halvar Flake), Michael Bargury, John Cartwright (@gadievron, @danielcuthbert, @thomasdullien, @mbrg, @grokjc)

Licence: MIT, see LICENSE. CodeQL and other third-party components have their own licence terms; see third-party notices and dependencies.

Repository: https://github.com/gadievron/raptor


What is RAPTOR?

Built by hackers, for hackers.

RAPTOR is an autonomous security research framework built on top of Claude Code (but not tied to it -- you can plug in your own analysis layer too). It chains together static analysis, binary analysis, LLM-powered vulnerability validation, exploit generation, and patch writing into a single workflow you can run against a codebase or binary.

It is not polished software. It was built in free time, held together with enthusiasm and duct tape, and it works well enough that we can't stop using it. If you want to make it better, open a PR.

RAPTOR supports security research and human review; its reports do not certify that a codebase is secure.

RAPTOR stands for Recursive Autonomous Penetration Testing and Observation Robot. We really wanted to call it RAPTOR.

How it's built

RAPTOR is mostly AI-generated code. The humans set direction, review output, and make design decisions; the AI writes the implementation. Mechanical verification (tests, static analysis, corpus calibration) keeps the quality bar where it needs to be regardless of who — or what — wrote the code.

Start here: Capabilities · Quick start · First run · Security · Documentation

What RAPTOR can do

Maturity varies by workflow. The complete catalogue lists commands and their status; the workflow index helps you choose a starting point.

Why RAPTOR?

Security model

The repository being analysed can attack the analyst: through malicious code, repo-controlled configuration, prompt injection, or content rendered in a report. RAPTOR addresses those surfaces with several boundaries:

Prompt injection remains possible. Guarantees differ between untrusted execution, trusted-tool entry points, platforms, and operator-selected profiles; these controls are not a claim that all agent actions are isolated. Containers add a deployment boundary. See sandbox guarantees and limitations, agent security, the threat model, and WSL requirements for the exact contracts and residual risks.

Prerequisites

See installation and dependencies for platform requirements and optional tools.

Accounts and costs

The shell's Claude Code login is independent of the credentials used for finding analysis, which can use Claude Code, another provider, or a local model.

Subscription-backed Claude Code analysis has no separate API bill; API-backed Claude Code and external providers follow their backend's billing. The source-review examples below each set a $5 main-run ceiling (/agentic defaults to $10). Optional helpers have separate ceilings, so this is not an end-to-end cap across all processes. See model setup and billing for details. Offline operation requires prepared tools/data and appropriate egress controls.

Quick Start

RAPTOR runs from your checkout. The Docker image supplies its tools and dependencies. Use the stable RAPTOR release (v3.1.0) for normal use. Contributors should follow the developer setup.

Run these commands in your terminal to mount the release checkout in the tools container. The image digest pins the tools environment separately from RAPTOR:

git clone --branch v3.1.0 https://github.com/gadievron/raptor.git
cd raptor
docker pull docker.io/danielcuthbert/raptor:latest@sha256:7fac1dc8ba3ad8dbcd714ebab33dd3a243ae790e9541ec9842ccbcc9f9c02ef3
docker run -it \
  -v "$PWD:/workspaces/raptor" \
  -v "/path/to/target-folder:/workspaces/target" \
  docker.io/danielcuthbert/raptor:latest@sha256:7fac1dc8ba3ad8dbcd714ebab33dd3a243ae790e9541ec9842ccbcc9f9c02ef3

Replace the target path with your own, or omit that mount. For an existing checkout, switch to v3.1.0 first. Inside the container, run raptor.

For setup without Docker, see manual installation. Local builds, VS Code devcontainers and debugger requirements are covered in container installation.

What to expect on a first run

Use slash commands inside a RAPTOR session; run Python commands in your terminal from the checkout with its environment activated.

Source code

/agentic /path/to/code --max-cost-usd 5

Read agentic-report.md and the generated PoCs and patches in the run directory. Patches are not applied to the target. Expect minutes to tens of minutes, depending on the target and model. See workflow and outputs. For a mechanical scan without LLM analysis, use /scan /path/to/code.

Optional: standalone audit

/audit /path/to/code --budget 50 --max-cost 5

For a dedicated systematic review, examine up to 50 functions, with tool evidence and coverage recorded alongside findings. See the audit output-file reference for the files written by a run.

Dependencies without an LLM or Claude Code

python3 raptor.py sca --repo /path/to/project --no-llm

The SCA scan writes findings, a report, an SBOM, and SARIF.

Binary investigation

/binary investigate /path/to/binary

The default investigation maps the artefact and ranks leads without executing or fuzzing it. See binary analysis for outputs and the explicit steps that add runtime evidence.

What a finding tells you

Corpus illustration: a condensed walkthrough of a labelled WebGoat regression case:

Candidate: SQL injection in SqlInjectionLesson13.java
Evidence:  The request value is bound with PreparedStatement.setString
           before the prepared query is executed.
Verdict:   False positive for SQL injection on this path (corpus label).
Limit:     This does not establish that other paths or the application are safe.

Compare the candidate and code evidence with the label and rationale.

How RAPTOR checks itself

RAPTOR dogfoods a fair bit of its own security tooling. Some controls block PRs, some run on a schedule, and others measure whether results are drifting:

CI controls documents the exact triggers, evidence, limitations, and reproduction commands.

Documentation

Next step Guide
Install or configure tools Installation
Choose a workflow or look up a command Guides and command catalogue
Diagnose a failed or stalled run Troubleshooting
Understand isolation and trust boundaries Security and sandbox
Contribute to RAPTOR Contributing and developer guide

Contributing

RAPTOR is open source; contributions are welcome. See contributor guidance for opportunities and development conventions.

Submit pull requests. Chat with us on the #raptor channel in the Prompt||GTFO Slack: https://join.slack.com/t/promptgtfo/shared_invite/zt-3v2b4sll3-SfyzFRw2lykx_XQX7F3uNQ

Licence

MIT -- Copyright (c) 2025-2026 Gadi Evron, Daniel Cuthbert, Thomas Dullien (Halvar Flake), Michael Bargury, John Cartwright.

See LICENSE for the full text. Third-party components retain their own terms; see third-party notices, dependencies, and the CodeQL licence terms.

Issues: https://github.com/gadievron/raptor/issues

raptor (gadievron/raptor)

Ищем в базе…

Что это такое?RAPTOR превращает сессию Claude Code в агента наступательной/оборонительной безопасности: правила Claude.md, субагенты и skills оркестрируют инструменты вроде radare2, Frida, Z3 и CodeQL для реверс-инжиниринга бинарников, исследования осуществимости эксплойтов и анализа цепочки поставок ПО (SCA).
Это отдельный инструмент или расширение Claude Code?Это не отдельное приложение. Это набор правил Claude.md, определений субагентов и skills, которые конфигурируют запущенную сессию Claude Code, управляемую слэш-командами вроде /binary investigate, /binary harness и /sca.
Как это запустить?Склонируйте репозиторий и загрузите его правила Claude.md, субагенты и skills в сессию Claude Code; дальше вы ведёте реверс-инжиниринг бинарников через /binary investigate, /binary trace-parser и /binary harness, а сканирование зависимостей — через /sca.
Нужен ли ключ API Anthropic или Claude Code для запуска?Да, RAPTOR работает внутри Claude Code, поэтому нужен Claude Code с доступом к API; radare2, Frida и CodeQL отвечают за анализ бинарников, а SMT-решатель Z3 — опциональное дополнение для проверок осуществимости.
Он действительно доказывает, что баг эксплуатируем?Нет, он намеренно остаётся консервативным: импорты, селекторы и рёбра вызовов остаются неподтверждёнными кандидатами, пока что-то механическое вроде трассировки Frida, краша фаззера, проверки Z3 или бинарного диффа не докажет больше, вместо того чтобы сразу заявлять 'эксплуатируемо'.
Может ли он работать в изолированной от сети среде?Да, кастомные правила Semgrep под engine/semgrep/rules/ полностью локальны и работают без сетевого доступа; подключения требуют только опциональные пакеты из реестров.
Что на самом деле проверяет команда /sca?Она находит манифесты зависимостей, lockfile-файлы, инлайн-команды установки и базовые образы контейнеров, затем обогащает их рекомендациями OSV, CISA KEV, EPSS, CISA Vulnrichment/SSVC, проверками достижимости и лицензионной политики, выдавая findings.json, report.md, SBOM в формате CycloneDX и SARIF-файл для CI.
Какие дополнительные улики могут усилить вывод по бинарнику?Наблюдения runtime от Frida, свидетельства крашей фаззера, явные проверки выполнимости Z3 и бинарные диффы можно наслаивать поверх статического анализа графа вызовов, чтобы превратить точку входа-кандидата в более весомый вывод.
Чем Z3 помогает в исследовании эксплойтов?Z3 предварительно проверяет пути потоков данных CodeQL на выполнимость, чтобы недостижимые пути отбрасывались до любого вызова LLM, а также ранжирует кандидатов one-gadget по тому, реально ли выполнимы их ограничения на регистры/память относительно состояния краша.
Понимает ли он конкретно бинарники macOS и Windows?Да, для приложений Mach-O доступен перечень слайсов, метаданные бандла и извлечение селекторов Objective-C/Swift, а для PE-файлов — чтение архитектуры из заголовка COFF плюс анализ экспортов DLL и диспетчеров драйверов Windows.
Автор
gadievron
Размер
112.1 MB
Звёзды
4K
Возраст
1 г
Коммиты · 90 дней