A deterministic ontology for red-team science.
"Entropy is not a feature of reality. It is a confession of incomplete measurement."
AFT is a framework for systematic, reproducible adversarial research against AI browser agents. It treats the red-team pipeline as a mathematical field — a deterministic manifold where every point is reachable via a seed, every trajectory is checksum-verifiable, and every observation is URL-addressable.
This repository contains:
- Taxonomy — structured intent/technique/evasion classification (
browser_agent_subset.json) - Workbench — interactive HTML dashboard for exploring attack chains (
dashboard/) - Tactic Engine — deterministic payload generation with seeded derivation (
redteam/scripts/) - Attack Chains — YAML-defined multi-stage priming + exploit chains (
redteam/chains/) - Walkthroughs — step-by-step guides for hands-on red teaming (
redteam/walkthroughs/) - References — deep-dive mechanics, defensive mirror, and study guides (
references/)
# Clone the repo
git clone https://github.com/peterpodj/AFT.git
cd AFT
# Run the interactive red loop (no dependencies required)
python3 redteam/scripts/redloop.py
# Or explore the workbench locally
cd dashboard
python3 -m http.server --bind 0.0.0.0 8000
# Open http://localhost:8000 in your browserThe AFT interactive workbench is hosted at:
- Adversarial Currents — p5.js visualisation of the attack taxonomy
- Walkthroughs — guided tutorials from first payload to multi-stage chains
- References — mechanics, defenses, and study guides
- Chains — gallery of attack chain definitions
AFT/
├── AFT.md # Full theory document (526 lines)
├── README.md # This file
├── dashboard/
│ ├── index.html # Main taxonomy browser
│ ├── adversarial-currents.html # p5.js particle visualiser
│ ├── app.js, api.js # Dashboard logic + data
│ └── data/
│ ├── taxonomy.json # Full Arcanum PI taxonomy
│ └── taxonomy_data.js # JS-friendly processed data
├── redteam/
│ ├── browser_agent_subset.json # Subset taxonomy for browser agents
│ ├── chains/ # YAML attack chain definitions
│ │ ├── recon_then_exploit.yaml
│ │ ├── stealth_approval.yaml
│ │ ├── dos_then_exploit.yaml
│ │ ├── infra_attack.yaml
│ │ └── lakera_saturation.yaml
│ ├── data/
│ │ ├── research/ # Datasets, benchmarks, papers
│ │ └── wren_thistle/ # E-commerce test fixtures
│ ├── output/ # Pipeline results, logs, reports
│ ├── scripts/
│ │ ├── redloop.py # Interactive attack generator (CLI)
│ │ ├── workflow.py # Core deterministic pipeline
│ │ ├── generate.py # Taxonomy-aware payload generator
│ │ ├── evasions.py # 18 text-evasion transforms
│ │ ├── score_taxonomy.py # Tier scoring engine
│ │ ├── lakera_benchmark.py # Lakera Guard evaluator
│ │ └── wizard.sh # Legacy Chain Builder UI launcher
│ ├── templates/ # 100+ payload templates organised by intent
│ │ ├── attack_external_systems/
│ │ ├── business_integrity/
│ │ ├── denial_of_service/
│ │ ├── get_prompt_secret/
│ │ ├── jailbreak/
│ │ ├── order_approval/
│ │ ├── session/
│ │ ├── system_prompt_leak/
│ │ └── tool_enumeration/
│ ├── walkthroughs/ # Step-by-step guides
│ │ ├── 01_first_time_redteamer.md
│ │ ├── 02_saas_booking_attack.md
│ │ └── 03_document_review_attack.md
│ └── WORKFLOW.md # Pipeline architecture documentation
└── references/
├── deep-dive-mechanics.md # How evasions and chains work under the hood
├── defensive-mirror.md # Defensive counterpart to each technique
└── study-guide.md # Curriculum for learning AFT systematically
| Axiom | Statement |
|---|---|
| Determinism | ∀ inputs, seed: f(inputs, seed) → output is a pure function |
| Observability | Every operation exposes its lineage: seed, checksum, version |
| State Persistence | URL-as-canonical-state; localStorage is cache only |
| Robustness | No single failure mode cascades; graceful degradation |
| Self-Containment | Python stdlib only; Vanilla JS (Canvas 2D); zero external deps |
The pipeline runs entirely on seeded RNG — no Math.random() pollution, no global state:
import random
def derive_seed(master: int, branch: int, label: str) -> int:
"""Deterministic child-seed derivation."""
return master ^ (branch * 0x9e3779b97f4a7c15) ^ hash(label)
# Example usage
random.seed(derive_seed(180057, 0, "template_filter"))
# ...all downstream operations now reproducibleSee AFT.md sections III-V for full mathematical treatment.
- Python ≥ 3.11 (stdlib only — no pip install needed for core engine)
- Web browser with Canvas 2D (for dashboard visualisations)
- Lakera Guard API key (optional — for live benchmarking)
MIT — see LICENSE if included, otherwise treat as academic research tooling.
Built through dialogic co-creation with Hermes (Nous Research / Kimi K2.6) for the Hermes Agent Creative Hackathon 2025.