explaingit

amazon-science/cyber-zero

Analysis updated 2026-05-18

87PythonAudience · researcherComplexity · 4/5Setup · hard

TLDR

A research framework that generates synthetic CTF training data to teach AI agents cybersecurity skills.

Mindmap

mindmap
  root((Cyber-Zero))
    What it does
      Simulates CTF interactions from writeups
      Generates synthetic training trajectories
      Evaluates trajectory quality with an LLM
    Tech stack
      Python
      litellm
      EnIGMA agent scaffolding
    Use cases
      Train AI agents on CTF challenges
      Benchmark cybersecurity agents
      Avoid costly live challenge environments
    Audience
      Security researchers
      AI agent researchers

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

Generate synthetic CTF training trajectories from public writeups instead of live environments

USE CASE 2

Evaluate the quality of generated training trajectories with a language model

USE CASE 3

Benchmark a cybersecurity AI agent using the patched EnIGMA scaffolding

USE CASE 4

Train an AI agent to solve Capture the Flag challenges without spinning up real infrastructure

What is it built with?

PythonlitellmSWE-agent

How does it compare?

amazon-science/cyber-zerothealgorithms/scriptsitalozucareli/zabbix-observability
Stars878885
LanguagePythonPythonPython
Last pushed2023-10-04
MaintenanceDormant
Setup difficultyhardeasymoderate
Complexity4/51/53/5
Audienceresearcherops devopsops devops

Figures from each repo's GitHub metadata at analysis time.

How do you get it running?

Difficulty · hard Time to first run · 1day+

Requires access to language model APIs via litellm and CTF challenge metadata to generate training data.

The README does not state a license.

In plain English

Cyber-Zero is a research framework from Amazon Science that trains AI agents to solve cybersecurity challenges, specifically CTF (Capture the Flag) competitions, without needing a live computer environment to practice in. CTF competitions are hacking contests where participants find hidden flags by exploiting vulnerabilities, reverse-engineering software, or breaking cryptographic schemes. The usual way to train an AI agent for this is to let it interact with real challenge environments, but those environments are often unavailable, expensive to spin up, or too slow to generate enough training data. Cyber-Zero solves this by using a language model to simulate what those interactions would look like. It reads publicly available CTF writeups (step-by-step solutions written by humans after solving challenges) and uses an AI to reconstruct realistic multi-step interaction sequences as if the agent had been running real commands. These synthetic conversations become training data. Models trained on this data achieved up to 13.1 percentage point improvements on three established CTF benchmarks. The framework includes a pipeline with three steps: generating simulated interaction trajectories from CTF challenge metadata, evaluating the quality of those trajectories using a language model, and reformatting them into the training format needed. It also ships a patched version of the EnIGMA agent scaffolding, built on top of SWE-agent, that can evaluate hundreds of CTF challenges in hours rather than days. A researcher building or benchmarking cybersecurity AI agents would use this. The tech stack is Python with litellm for multi-provider language model access.

Copy-paste prompts

Prompt 1
Explain how Cyber-Zero turns a CTF writeup into synthetic training data
Prompt 2
Walk me through running the three-step pipeline in this repo on my own CTF challenge set
Prompt 3
Show me how to evaluate an AI agent against the CTF benchmarks mentioned in this repo
Prompt 4
Help me set up the patched EnIGMA agent scaffolding from this repo for benchmarking

Frequently asked questions

What is cyber-zero?

A research framework that generates synthetic CTF training data to teach AI agents cybersecurity skills.

What language is cyber-zero written in?

Mainly Python. The stack also includes Python, litellm, SWE-agent.

What license does cyber-zero use?

The README does not state a license.

How hard is cyber-zero to set up?

Setup difficulty is rated hard, with roughly 1day+ to a first successful run.

Who is cyber-zero for?

Mainly researcher.

Open on GitHub → Explain another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.