cai/index.html

3347 lines
77 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!doctype html>
<html lang="en" class="no-js">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
<link rel="next" href="cai_installation/">
<link rel="icon" href="assets/imago.png">
<meta name="generator" content="mkdocs-1.6.1, mkdocs-material-9.6.11">
<title>Welcome - CAI</title>
<link rel="stylesheet" href="assets/stylesheets/main.4af4bdda.min.css">
<link rel="stylesheet" href="assets/stylesheets/palette.06af60db.min.css">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:300,300i,400,400i,700,700i%7CRoboto+Mono:400,400i,700,700i&display=fallback">
<style>:root{--md-text-font:"Roboto";--md-code-font:"Roboto Mono"}</style>
<link rel="stylesheet" href="assets/_mkdocstrings.css">
<link rel="stylesheet" href="stylesheets/extra.css">
<script>__md_scope=new URL(".",location),__md_hash=e=>[...e].reduce(((e,_)=>(e<<5)-e+_.charCodeAt(0)),0),__md_get=(e,_=localStorage,t=__md_scope)=>JSON.parse(_.getItem(t.pathname+"."+e)),__md_set=(e,_,t=localStorage,a=__md_scope)=>{try{t.setItem(a.pathname+"."+e,JSON.stringify(_))}catch(e){}}</script>
</head>
<body dir="ltr" data-md-color-scheme="default" data-md-color-primary="custom" data-md-color-accent="indigo">
<input class="md-toggle" data-md-toggle="drawer" type="checkbox" id="__drawer" autocomplete="off">
<input class="md-toggle" data-md-toggle="search" type="checkbox" id="__search" autocomplete="off">
<label class="md-overlay" for="__drawer"></label>
<div data-md-component="skip">
<a href="#cybersecurity-ai-cai" class="md-skip">
Skip to content
</a>
</div>
<div data-md-component="announce">
</div>
<header class="md-header md-header--shadow" data-md-component="header">
<nav class="md-header__inner md-grid" aria-label="Header">
<a href="." title="CAI" class="md-header__button md-logo" aria-label="CAI" data-md-component="logo">
<img src="assets/imago.png" alt="logo">
</a>
<label class="md-header__button md-icon" for="__drawer">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M3 6h18v2H3zm0 5h18v2H3zm0 5h18v2H3z"/></svg>
</label>
<div class="md-header__title" data-md-component="header-title">
<div class="md-header__ellipsis">
<div class="md-header__topic">
<span class="md-ellipsis">
CAI
</span>
</div>
<div class="md-header__topic" data-md-component="header-topic">
<span class="md-ellipsis">
Welcome
</span>
</div>
</div>
</div>
<label class="md-header__button md-icon" for="__search">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M9.5 3A6.5 6.5 0 0 1 16 9.5c0 1.61-.59 3.09-1.56 4.23l.27.27h.79l5 5-1.5 1.5-5-5v-.79l-.27-.27A6.52 6.52 0 0 1 9.5 16 6.5 6.5 0 0 1 3 9.5 6.5 6.5 0 0 1 9.5 3m0 2C7 5 5 7 5 9.5S7 14 9.5 14 14 12 14 9.5 12 5 9.5 5"/></svg>
</label>
<div class="md-search" data-md-component="search" role="dialog">
<label class="md-search__overlay" for="__search"></label>
<div class="md-search__inner" role="search">
<form class="md-search__form" name="search">
<input type="text" class="md-search__input" name="query" aria-label="Search" placeholder="Search" autocapitalize="off" autocorrect="off" autocomplete="off" spellcheck="false" data-md-component="search-query" required>
<label class="md-search__icon md-icon" for="__search">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M9.5 3A6.5 6.5 0 0 1 16 9.5c0 1.61-.59 3.09-1.56 4.23l.27.27h.79l5 5-1.5 1.5-5-5v-.79l-.27-.27A6.52 6.52 0 0 1 9.5 16 6.5 6.5 0 0 1 3 9.5 6.5 6.5 0 0 1 9.5 3m0 2C7 5 5 7 5 9.5S7 14 9.5 14 14 12 14 9.5 12 5 9.5 5"/></svg>
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M20 11v2H8l5.5 5.5-1.42 1.42L4.16 12l7.92-7.92L13.5 5.5 8 11z"/></svg>
</label>
<nav class="md-search__options" aria-label="Search">
<button type="reset" class="md-search__icon md-icon" title="Clear" aria-label="Clear" tabindex="-1">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"/></svg>
</button>
</nav>
</form>
<div class="md-search__output">
<div class="md-search__scrollwrap" tabindex="0" data-md-scrollfix>
<div class="md-search-result" data-md-component="search-result">
<div class="md-search-result__meta">
Initializing search
</div>
<ol class="md-search-result__list" role="presentation"></ol>
</div>
</div>
</div>
</div>
</div>
<div class="md-header__source">
<a href="https://github.com/aliasrobotics/cai" title="Go to repository" class="md-source" data-md-component="source">
<div class="md-source__icon md-icon">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 496 512"><!--! Font Awesome Free 6.7.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) Copyright 2024 Fonticons, Inc.--><path d="M165.9 397.4c0 2-2.3 3.6-5.2 3.6-3.3.3-5.6-1.3-5.6-3.6 0-2 2.3-3.6 5.2-3.6 3-.3 5.6 1.3 5.6 3.6m-31.1-4.5c-.7 2 1.3 4.3 4.3 4.9 2.6 1 5.6 0 6.2-2s-1.3-4.3-4.3-5.2c-2.6-.7-5.5.3-6.2 2.3m44.2-1.7c-2.9.7-4.9 2.6-4.6 4.9.3 2 2.9 3.3 5.9 2.6 2.9-.7 4.9-2.6 4.6-4.6-.3-1.9-3-3.2-5.9-2.9M244.8 8C106.1 8 0 113.3 0 252c0 110.9 69.8 205.8 169.5 239.2 12.8 2.3 17.3-5.6 17.3-12.1 0-6.2-.3-40.4-.3-61.4 0 0-70 15-84.7-29.8 0 0-11.4-29.1-27.8-36.6 0 0-22.9-15.7 1.6-15.4 0 0 24.9 2 38.6 25.8 21.9 38.6 58.6 27.5 72.9 20.9 2.3-16 8.8-27.1 16-33.7-55.9-6.2-112.3-14.3-112.3-110.5 0-27.5 7.6-41.3 23.6-58.9-2.6-6.5-11.1-33.3 2.6-67.9 20.9-6.5 69 27 69 27 20-5.6 41.5-8.5 62.8-8.5s42.8 2.9 62.8 8.5c0 0 48.1-33.6 69-27 13.7 34.7 5.2 61.4 2.6 67.9 16 17.7 25.8 31.5 25.8 58.9 0 96.5-58.9 104.2-114.8 110.5 9.2 7.9 17 22.9 17 46.4 0 33.7-.3 75.4-.3 83.6 0 6.5 4.6 14.4 17.3 12.1C428.2 457.8 496 362.9 496 252 496 113.3 383.5 8 244.8 8M97.2 352.9c-1.3 1-1 3.3.7 5.2 1.6 1.6 3.9 2.3 5.2 1 1.3-1 1-3.3-.7-5.2-1.6-1.6-3.9-2.3-5.2-1m-10.8-8.1c-.7 1.3.3 2.9 2.3 3.9 1.6 1 3.6.7 4.3-.7.7-1.3-.3-2.9-2.3-3.9-2-.6-3.6-.3-4.3.7m32.4 35.6c-1.6 1.3-1 4.3 1.3 6.2 2.3 2.3 5.2 2.6 6.5 1 1.3-1.3.7-4.3-1.3-6.2-2.2-2.3-5.2-2.6-6.5-1m-11.4-14.7c-1.6 1-1.6 3.6 0 5.9s4.3 3.3 5.6 2.3c1.6-1.3 1.6-3.9 0-6.2-1.4-2.3-4-3.3-5.6-2"/></svg>
</div>
<div class="md-source__repository">
aliasrobotics/cai
</div>
</a>
</div>
</nav>
</header>
<div class="md-container" data-md-component="container">
<main class="md-main" data-md-component="main">
<div class="md-main__inner md-grid">
<div class="md-sidebar md-sidebar--primary" data-md-component="sidebar" data-md-type="navigation" >
<div class="md-sidebar__scrollwrap">
<div class="md-sidebar__inner">
<nav class="md-nav md-nav--primary" aria-label="Navigation" data-md-level="0">
<label class="md-nav__title" for="__drawer">
<a href="." title="CAI" class="md-nav__button md-logo" aria-label="CAI" data-md-component="logo">
<img src="assets/imago.png" alt="logo">
</a>
CAI
</label>
<div class="md-nav__source">
<a href="https://github.com/aliasrobotics/cai" title="Go to repository" class="md-source" data-md-component="source">
<div class="md-source__icon md-icon">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 496 512"><!--! Font Awesome Free 6.7.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) Copyright 2024 Fonticons, Inc.--><path d="M165.9 397.4c0 2-2.3 3.6-5.2 3.6-3.3.3-5.6-1.3-5.6-3.6 0-2 2.3-3.6 5.2-3.6 3-.3 5.6 1.3 5.6 3.6m-31.1-4.5c-.7 2 1.3 4.3 4.3 4.9 2.6 1 5.6 0 6.2-2s-1.3-4.3-4.3-5.2c-2.6-.7-5.5.3-6.2 2.3m44.2-1.7c-2.9.7-4.9 2.6-4.6 4.9.3 2 2.9 3.3 5.9 2.6 2.9-.7 4.9-2.6 4.6-4.6-.3-1.9-3-3.2-5.9-2.9M244.8 8C106.1 8 0 113.3 0 252c0 110.9 69.8 205.8 169.5 239.2 12.8 2.3 17.3-5.6 17.3-12.1 0-6.2-.3-40.4-.3-61.4 0 0-70 15-84.7-29.8 0 0-11.4-29.1-27.8-36.6 0 0-22.9-15.7 1.6-15.4 0 0 24.9 2 38.6 25.8 21.9 38.6 58.6 27.5 72.9 20.9 2.3-16 8.8-27.1 16-33.7-55.9-6.2-112.3-14.3-112.3-110.5 0-27.5 7.6-41.3 23.6-58.9-2.6-6.5-11.1-33.3 2.6-67.9 20.9-6.5 69 27 69 27 20-5.6 41.5-8.5 62.8-8.5s42.8 2.9 62.8 8.5c0 0 48.1-33.6 69-27 13.7 34.7 5.2 61.4 2.6 67.9 16 17.7 25.8 31.5 25.8 58.9 0 96.5-58.9 104.2-114.8 110.5 9.2 7.9 17 22.9 17 46.4 0 33.7-.3 75.4-.3 83.6 0 6.5 4.6 14.4 17.3 12.1C428.2 457.8 496 362.9 496 252 496 113.3 383.5 8 244.8 8M97.2 352.9c-1.3 1-1 3.3.7 5.2 1.6 1.6 3.9 2.3 5.2 1 1.3-1 1-3.3-.7-5.2-1.6-1.6-3.9-2.3-5.2-1m-10.8-8.1c-.7 1.3.3 2.9 2.3 3.9 1.6 1 3.6.7 4.3-.7.7-1.3-.3-2.9-2.3-3.9-2-.6-3.6-.3-4.3.7m32.4 35.6c-1.6 1.3-1 4.3 1.3 6.2 2.3 2.3 5.2 2.6 6.5 1 1.3-1.3.7-4.3-1.3-6.2-2.2-2.3-5.2-2.6-6.5-1m-11.4-14.7c-1.6 1-1.6 3.6 0 5.9s4.3 3.3 5.6 2.3c1.6-1.3 1.6-3.9 0-6.2-1.4-2.3-4-3.3-5.6-2"/></svg>
</div>
<div class="md-source__repository">
aliasrobotics/cai
</div>
</a>
</div>
<ul class="md-nav__list" data-md-scrollfix>
<li class="md-nav__item md-nav__item--active md-nav__item--section md-nav__item--nested">
<input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_1" checked>
<label class="md-nav__link" for="__nav_1" id="__nav_1_label" tabindex="">
<span class="md-ellipsis">
Getting Started
</span>
<span class="md-nav__icon md-icon"></span>
</label>
<nav class="md-nav" data-md-level="1" aria-labelledby="__nav_1_label" aria-expanded="true">
<label class="md-nav__title" for="__nav_1">
<span class="md-nav__icon md-icon"></span>
Getting Started
</label>
<ul class="md-nav__list" data-md-scrollfix>
<li class="md-nav__item md-nav__item--active">
<input class="md-nav__toggle md-toggle" type="checkbox" id="__toc">
<label class="md-nav__link md-nav__link--active" for="__toc">
<span class="md-ellipsis">
Welcome
</span>
<span class="md-nav__icon md-icon"></span>
</label>
<a href="." class="md-nav__link md-nav__link--active">
<span class="md-ellipsis">
Welcome
</span>
</a>
<nav class="md-nav md-nav--secondary" aria-label="Table of contents">
<label class="md-nav__title" for="__toc">
<span class="md-nav__icon md-icon"></span>
Table of contents
</label>
<ul class="md-nav__list" data-md-component="toc" data-md-scrollfix>
<li class="md-nav__item">
<a href="#key-features" class="md-nav__link">
<span class="md-ellipsis">
Key Features
</span>
</a>
</li>
<li class="md-nav__item">
<a href="#cai-pro-professional-edition" class="md-nav__link">
<span class="md-ellipsis">
🚀 CAI PRO - Professional Edition
</span>
</a>
<nav class="md-nav" aria-label="🚀 CAI PRO - Professional Edition">
<ul class="md-nav__list">
<li class="md-nav__item">
<a href="#upgrade-to-unrestricted-ai-for-security-professionals" class="md-nav__link">
<span class="md-ellipsis">
Upgrade to Unrestricted AI for Security Professionals
</span>
</a>
</li>
</ul>
</nav>
</li>
<li class="md-nav__item">
<a href="#milestones" class="md-nav__link">
<span class="md-ellipsis">
🎯 Milestones
</span>
</a>
</li>
<li class="md-nav__item">
<a href="#package-attributes" class="md-nav__link">
<span class="md-ellipsis">
📦 Package Attributes
</span>
</a>
</li>
<li class="md-nav__item">
<a href="#research-backed-performance" class="md-nav__link">
<span class="md-ellipsis">
📊 Research-Backed Performance
</span>
</a>
<nav class="md-nav" aria-label="📊 Research-Backed Performance">
<ul class="md-nav__list">
<li class="md-nav__item">
<a href="#key-publications" class="md-nav__link">
<span class="md-ellipsis">
Key Publications
</span>
</a>
</li>
</ul>
</nav>
</li>
<li class="md-nav__item">
<a href="#motivation" class="md-nav__link">
<span class="md-ellipsis">
Motivation
</span>
</a>
<nav class="md-nav" aria-label="Motivation">
<ul class="md-nav__list">
<li class="md-nav__item">
<a href="#why-cai" class="md-nav__link">
<span class="md-ellipsis">
Why CAI?
</span>
</a>
</li>
<li class="md-nav__item">
<a href="#ethical-principles-behind-cai" class="md-nav__link">
<span class="md-ellipsis">
Ethical principles behind CAI
</span>
</a>
</li>
<li class="md-nav__item">
<a href="#popular-model-providers" class="md-nav__link">
<span class="md-ellipsis">
Popular Model Providers
</span>
</a>
</li>
<li class="md-nav__item">
<a href="#closed-source-alternatives" class="md-nav__link">
<span class="md-ellipsis">
Closed-source alternatives
</span>
</a>
</li>
</ul>
</nav>
</li>
<li class="md-nav__item">
<a href="#citation" class="md-nav__link">
<span class="md-ellipsis">
Citation
</span>
</a>
</li>
<li class="md-nav__item">
<a href="#acknowledgements" class="md-nav__link">
<span class="md-ellipsis">
Acknowledgements
</span>
</a>
</li>
</ul>
</nav>
</li>
<li class="md-nav__item">
<a href="cai_installation/" class="md-nav__link">
<span class="md-ellipsis">
Installation
</span>
</a>
</li>
<li class="md-nav__item">
<a href="cai_quickstart/" class="md-nav__link">
<span class="md-ellipsis">
Quickstart
</span>
</a>
</li>
<li class="md-nav__item">
<a href="cai_list_of_models/" class="md-nav__link">
<span class="md-ellipsis">
Available Models
</span>
</a>
</li>
<li class="md-nav__item md-nav__item--nested">
<input class="md-nav__toggle md-toggle md-toggle--indeterminate" type="checkbox" id="__nav_1_5" >
<label class="md-nav__link" for="__nav_1_5" id="__nav_1_5_label" tabindex="0">
<span class="md-ellipsis">
Model Providers
</span>
<span class="md-nav__icon md-icon"></span>
</label>
<nav class="md-nav" data-md-level="2" aria-labelledby="__nav_1_5_label" aria-expanded="false">
<label class="md-nav__title" for="__nav_1_5">
<span class="md-nav__icon md-icon"></span>
Model Providers
</label>
<ul class="md-nav__list" data-md-scrollfix>
<li class="md-nav__item">
<a href="providers/openrouter.md" class="md-nav__link">
<span class="md-ellipsis">
OpenRouter
</span>
</a>
</li>
<li class="md-nav__item">
<a href="providers/ollama/" class="md-nav__link">
<span class="md-ellipsis">
Ollama
</span>
</a>
</li>
<li class="md-nav__item">
<a href="providers/azure.md" class="md-nav__link">
<span class="md-ellipsis">
Azure OpenAI
</span>
</a>
</li>
</ul>
</nav>
</li>
</ul>
</nav>
</li>
<li class="md-nav__item">
<a href="cai_pro/" class="md-nav__link">
<span class="md-ellipsis">
🚀 CAI PRO
</span>
</a>
</li>
<li class="md-nav__item md-nav__item--section md-nav__item--nested">
<input class="md-nav__toggle md-toggle md-toggle--indeterminate" type="checkbox" id="__nav_3" >
<label class="md-nav__link" for="__nav_3" id="__nav_3_label" tabindex="">
<span class="md-ellipsis">
Core Concepts
</span>
<span class="md-nav__icon md-icon"></span>
</label>
<nav class="md-nav" data-md-level="1" aria-labelledby="__nav_3_label" aria-expanded="false">
<label class="md-nav__title" for="__nav_3">
<span class="md-nav__icon md-icon"></span>
Core Concepts
</label>
<ul class="md-nav__list" data-md-scrollfix>
<li class="md-nav__item">
<a href="cai_architecture/" class="md-nav__link">
<span class="md-ellipsis">
Architecture
</span>
</a>
</li>
<li class="md-nav__item">
<a href="agents/" class="md-nav__link">
<span class="md-ellipsis">
Agents
</span>
</a>
</li>
<li class="md-nav__item">
<a href="tools/" class="md-nav__link">
<span class="md-ellipsis">
Tools
</span>
</a>
</li>
<li class="md-nav__item">
<a href="handoffs/" class="md-nav__link">
<span class="md-ellipsis">
Handoffs
</span>
</a>
</li>
<li class="md-nav__item">
<a href="multi_agent/" class="md-nav__link">
<span class="md-ellipsis">
Multi-Agent Systems
</span>
</a>
</li>
</ul>
</nav>
</li>
<li class="md-nav__item md-nav__item--section md-nav__item--nested">
<input class="md-nav__toggle md-toggle md-toggle--indeterminate" type="checkbox" id="__nav_4" >
<label class="md-nav__link" for="__nav_4" id="__nav_4_label" tabindex="">
<span class="md-ellipsis">
Benchmarking
</span>
<span class="md-nav__icon md-icon"></span>
</label>
<nav class="md-nav" data-md-level="1" aria-labelledby="__nav_4_label" aria-expanded="false">
<label class="md-nav__title" for="__nav_4">
<span class="md-nav__icon md-icon"></span>
Benchmarking
</label>
<ul class="md-nav__list" data-md-scrollfix>
<li class="md-nav__item">
<a href="benchmarking/overview/" class="md-nav__link">
<span class="md-ellipsis">
Overview
</span>
</a>
</li>
<li class="md-nav__item">
<a href="benchmarking/running_benchmarks/" class="md-nav__link">
<span class="md-ellipsis">
Running Benchmarks
</span>
</a>
</li>
<li class="md-nav__item">
<a href="benchmarking/attack_defense/" class="md-nav__link">
<span class="md-ellipsis">
Attack & Defense CTFs
</span>
</a>
</li>
<li class="md-nav__item">
<a href="benchmarking/jeopardy_ctfs/" class="md-nav__link">
<span class="md-ellipsis">
Jeopardy CTFs
</span>
</a>
</li>
<li class="md-nav__item">
<a href="benchmarking/cyber_ranges/" class="md-nav__link">
<span class="md-ellipsis">
Cyber Ranges
</span>
</a>
</li>
<li class="md-nav__item">
<a href="benchmarking/knowledge_benchmarks/" class="md-nav__link">
<span class="md-ellipsis">
Knowledge Benchmarks
</span>
</a>
</li>
<li class="md-nav__item">
<a href="benchmarking/privacy_benchmarks/" class="md-nav__link">
<span class="md-ellipsis">
Privacy Benchmarks
</span>
</a>
</li>
</ul>
</nav>
</li>
<li class="md-nav__item md-nav__item--section md-nav__item--nested">
<input class="md-nav__toggle md-toggle md-toggle--indeterminate" type="checkbox" id="__nav_5" >
<label class="md-nav__link" for="__nav_5" id="__nav_5_label" tabindex="">
<span class="md-ellipsis">
Guides
</span>
<span class="md-nav__icon md-icon"></span>
</label>
<nav class="md-nav" data-md-level="1" aria-labelledby="__nav_5_label" aria-expanded="false">
<label class="md-nav__title" for="__nav_5">
<span class="md-nav__icon md-icon"></span>
Guides
</label>
<ul class="md-nav__list" data-md-scrollfix>
<li class="md-nav__item">
<a href="running_agents/" class="md-nav__link">
<span class="md-ellipsis">
Running Agents
</span>
</a>
</li>
<li class="md-nav__item">
<a href="continue_mode/" class="md-nav__link">
<span class="md-ellipsis">
Continue Mode
</span>
</a>
</li>
<li class="md-nav__item">
<a href="results/" class="md-nav__link">
<span class="md-ellipsis">
Working with Results
</span>
</a>
</li>
<li class="md-nav__item">
<a href="streaming/" class="md-nav__link">
<span class="md-ellipsis">
Streaming
</span>
</a>
</li>
<li class="md-nav__item">
<a href="tracing/" class="md-nav__link">
<span class="md-ellipsis">
Tracing & Debugging
</span>
</a>
</li>
<li class="md-nav__item">
<a href="context/" class="md-nav__link">
<span class="md-ellipsis">
Context Management
</span>
</a>
</li>
<li class="md-nav__item">
<a href="guardrails/" class="md-nav__link">
<span class="md-ellipsis">
Guardrails & Security
</span>
</a>
</li>
<li class="md-nav__item">
<a href="environment_variables/" class="md-nav__link">
<span class="md-ellipsis">
Environment Variables
</span>
</a>
</li>
<li class="md-nav__item">
<a href="cai/getting-started/packet_capture_wsl/" class="md-nav__link">
<span class="md-ellipsis">
Packet Capture on WSL2
</span>
</a>
</li>
</ul>
</nav>
</li>
<li class="md-nav__item md-nav__item--section md-nav__item--nested">
<input class="md-nav__toggle md-toggle md-toggle--indeterminate" type="checkbox" id="__nav_6" >
<label class="md-nav__link" for="__nav_6" id="__nav_6_label" tabindex="">
<span class="md-ellipsis">
Troubleshooting
</span>
<span class="md-nav__icon md-icon"></span>
</label>
<nav class="md-nav" data-md-level="1" aria-labelledby="__nav_6_label" aria-expanded="false">
<label class="md-nav__title" for="__nav_6">
<span class="md-nav__icon md-icon"></span>
Troubleshooting
</label>
<ul class="md-nav__list" data-md-scrollfix>
<li class="md-nav__item">
<a href="cai/troubleshooting/operator_feedback_reproduction/" class="md-nav__link">
<span class="md-ellipsis">
Operator Feedback Reproduction
</span>
</a>
</li>
<li class="md-nav__item">
<a href="cai/troubleshooting/platform_limitations/" class="md-nav__link">
<span class="md-ellipsis">
Platform Limitations
</span>
</a>
</li>
</ul>
</nav>
</li>
<li class="md-nav__item md-nav__item--section md-nav__item--nested">
<input class="md-nav__toggle md-toggle md-toggle--indeterminate" type="checkbox" id="__nav_7" >
<label class="md-nav__link" for="__nav_7" id="__nav_7_label" tabindex="">
<span class="md-ellipsis">
Case Studies
</span>
<span class="md-nav__icon md-icon"></span>
</label>
<nav class="md-nav" data-md-level="1" aria-labelledby="__nav_7_label" aria-expanded="false">
<label class="md-nav__title" for="__nav_7">
<span class="md-nav__icon md-icon"></span>
Case Studies
</label>
<ul class="md-nav__list" data-md-scrollfix>
<li class="md-nav__item">
<a href="cai/case-studies/operator-artifact-evidence/" class="md-nav__link">
<span class="md-ellipsis">
Operator Artifact Evidence
</span>
</a>
</li>
</ul>
</nav>
</li>
<li class="md-nav__item md-nav__item--section md-nav__item--nested">
<input class="md-nav__toggle md-toggle md-toggle--indeterminate" type="checkbox" id="__nav_8" >
<label class="md-nav__link" for="__nav_8" id="__nav_8_label" tabindex="">
<span class="md-ellipsis">
Mobile UI (iOS)
</span>
<span class="md-nav__icon md-icon"></span>
</label>
<nav class="md-nav" data-md-level="1" aria-labelledby="__nav_8_label" aria-expanded="false">
<label class="md-nav__title" for="__nav_8">
<span class="md-nav__icon md-icon"></span>
Mobile UI (iOS)
</label>
<ul class="md-nav__list" data-md-scrollfix>
<li class="md-nav__item">
<a href="mui/mui_index/" class="md-nav__link">
<span class="md-ellipsis">
Overview
</span>
</a>
</li>
<li class="md-nav__item">
<a href="mui/getting_started/" class="md-nav__link">
<span class="md-ellipsis">
Getting Started
</span>
</a>
</li>
<li class="md-nav__item">
<a href="mui/user_interface/" class="md-nav__link">
<span class="md-ellipsis">
User Interface
</span>
</a>
</li>
<li class="md-nav__item">
<a href="mui/gestures_shortcuts/" class="md-nav__link">
<span class="md-ellipsis">
Gestures & Shortcuts
</span>
</a>
</li>
<li class="md-nav__item">
<a href="mui/chat_features/" class="md-nav__link">
<span class="md-ellipsis">
Chat Features
</span>
</a>
</li>
</ul>
</nav>
</li>
<li class="md-nav__item md-nav__item--section md-nav__item--nested">
<input class="md-nav__toggle md-toggle md-toggle--indeterminate" type="checkbox" id="__nav_9" >
<label class="md-nav__link" for="__nav_9" id="__nav_9_label" tabindex="">
<span class="md-ellipsis">
Terminal UI (TUI) - Deprecated
</span>
<span class="md-nav__icon md-icon"></span>
</label>
<nav class="md-nav" data-md-level="1" aria-labelledby="__nav_9_label" aria-expanded="false">
<label class="md-nav__title" for="__nav_9">
<span class="md-nav__icon md-icon"></span>
Terminal UI (TUI) - Deprecated
</label>
<ul class="md-nav__list" data-md-scrollfix>
<li class="md-nav__item">
<a href="tui/tui_index/" class="md-nav__link">
<span class="md-ellipsis">
Overview
</span>
</a>
</li>
<li class="md-nav__item">
<a href="tui/getting_started/" class="md-nav__link">
<span class="md-ellipsis">
Getting Started
</span>
</a>
</li>
<li class="md-nav__item">
<a href="tui/user_interface/" class="md-nav__link">
<span class="md-ellipsis">
User Interface
</span>
</a>
</li>
<li class="md-nav__item">
<a href="tui/terminals_management/" class="md-nav__link">
<span class="md-ellipsis">
Terminals Management
</span>
</a>
</li>
<li class="md-nav__item">
<a href="tui/teams_and_parallel_execution/" class="md-nav__link">
<span class="md-ellipsis">
Teams & Parallel Execution
</span>
</a>
</li>
<li class="md-nav__item">
<a href="tui/sidebar_features/" class="md-nav__link">
<span class="md-ellipsis">
Sidebar Features
</span>
</a>
</li>
<li class="md-nav__item">
<a href="tui/keyboard_shortcuts/" class="md-nav__link">
<span class="md-ellipsis">
Keyboard Shortcuts
</span>
</a>
</li>
<li class="md-nav__item">
<a href="tui/commands_reference/" class="md-nav__link">
<span class="md-ellipsis">
Commands Reference
</span>
</a>
</li>
<li class="md-nav__item">
<a href="tui/advanced_features/" class="md-nav__link">
<span class="md-ellipsis">
Advanced Features
</span>
</a>
</li>
<li class="md-nav__item">
<a href="tui/troubleshooting/" class="md-nav__link">
<span class="md-ellipsis">
Troubleshooting
</span>
</a>
</li>
</ul>
</nav>
</li>
<li class="md-nav__item md-nav__item--section md-nav__item--nested">
<input class="md-nav__toggle md-toggle md-toggle--indeterminate" type="checkbox" id="__nav_10" >
<label class="md-nav__link" for="__nav_10" id="__nav_10_label" tabindex="">
<span class="md-ellipsis">
API Reference
</span>
<span class="md-nav__icon md-icon"></span>
</label>
<nav class="md-nav" data-md-level="1" aria-labelledby="__nav_10_label" aria-expanded="false">
<label class="md-nav__title" for="__nav_10">
<span class="md-nav__icon md-icon"></span>
API Reference
</label>
<ul class="md-nav__list" data-md-scrollfix>
<li class="md-nav__item md-nav__item--nested">
<input class="md-nav__toggle md-toggle md-toggle--indeterminate" type="checkbox" id="__nav_10_1" >
<label class="md-nav__link" for="__nav_10_1" id="__nav_10_1_label" tabindex="0">
<span class="md-ellipsis">
Agents
</span>
<span class="md-nav__icon md-icon"></span>
</label>
<nav class="md-nav" data-md-level="2" aria-labelledby="__nav_10_1_label" aria-expanded="false">
<label class="md-nav__title" for="__nav_10_1">
<span class="md-nav__icon md-icon"></span>
Agents
</label>
<ul class="md-nav__list" data-md-scrollfix>
<li class="md-nav__item">
<a href="ref/agent/" class="md-nav__link">
<span class="md-ellipsis">
Agent
</span>
</a>
</li>
<li class="md-nav__item">
<a href="ref/run/" class="md-nav__link">
<span class="md-ellipsis">
Runner
</span>
</a>
</li>
<li class="md-nav__item">
<a href="ref/tool/" class="md-nav__link">
<span class="md-ellipsis">
Tool
</span>
</a>
</li>
<li class="md-nav__item">
<a href="ref/result/" class="md-nav__link">
<span class="md-ellipsis">
Result
</span>
</a>
</li>
<li class="md-nav__item">
<a href="ref/stream_events/" class="md-nav__link">
<span class="md-ellipsis">
Stream Events
</span>
</a>
</li>
<li class="md-nav__item">
<a href="ref/handoffs/" class="md-nav__link">
<span class="md-ellipsis">
Handoffs
</span>
</a>
</li>
<li class="md-nav__item">
<a href="ref/lifecycle/" class="md-nav__link">
<span class="md-ellipsis">
Lifecycle
</span>
</a>
</li>
<li class="md-nav__item">
<a href="ref/items/" class="md-nav__link">
<span class="md-ellipsis">
Items
</span>
</a>
</li>
<li class="md-nav__item">
<a href="ref/run_context/" class="md-nav__link">
<span class="md-ellipsis">
Run Context
</span>
</a>
</li>
<li class="md-nav__item">
<a href="ref/usage/" class="md-nav__link">
<span class="md-ellipsis">
Usage
</span>
</a>
</li>
<li class="md-nav__item">
<a href="ref/exceptions/" class="md-nav__link">
<span class="md-ellipsis">
Exceptions
</span>
</a>
</li>
<li class="md-nav__item">
<a href="ref/guardrail/" class="md-nav__link">
<span class="md-ellipsis">
Guardrail
</span>
</a>
</li>
<li class="md-nav__item">
<a href="ref/model_settings/" class="md-nav__link">
<span class="md-ellipsis">
Model Settings
</span>
</a>
</li>
<li class="md-nav__item">
<a href="ref/agent_output/" class="md-nav__link">
<span class="md-ellipsis">
Agent Output
</span>
</a>
</li>
<li class="md-nav__item">
<a href="ref/function_schema/" class="md-nav__link">
<span class="md-ellipsis">
Function Schema
</span>
</a>
</li>
</ul>
</nav>
</li>
<li class="md-nav__item md-nav__item--nested">
<input class="md-nav__toggle md-toggle md-toggle--indeterminate" type="checkbox" id="__nav_10_2" >
<label class="md-nav__link" for="__nav_10_2" id="__nav_10_2_label" tabindex="0">
<span class="md-ellipsis">
Models
</span>
<span class="md-nav__icon md-icon"></span>
</label>
<nav class="md-nav" data-md-level="2" aria-labelledby="__nav_10_2_label" aria-expanded="false">
<label class="md-nav__title" for="__nav_10_2">
<span class="md-nav__icon md-icon"></span>
Models
</label>
<ul class="md-nav__list" data-md-scrollfix>
<li class="md-nav__item">
<a href="ref/models/interface/" class="md-nav__link">
<span class="md-ellipsis">
Interface
</span>
</a>
</li>
<li class="md-nav__item">
<a href="ref/models/openai_chatcompletions/" class="md-nav__link">
<span class="md-ellipsis">
OpenAI Chat Completions
</span>
</a>
</li>
<li class="md-nav__item">
<a href="ref/models/openai_responses/" class="md-nav__link">
<span class="md-ellipsis">
OpenAI Responses
</span>
</a>
</li>
</ul>
</nav>
</li>
<li class="md-nav__item md-nav__item--nested">
<input class="md-nav__toggle md-toggle md-toggle--indeterminate" type="checkbox" id="__nav_10_3" >
<label class="md-nav__link" for="__nav_10_3" id="__nav_10_3_label" tabindex="0">
<span class="md-ellipsis">
Extensions
</span>
<span class="md-nav__icon md-icon"></span>
</label>
<nav class="md-nav" data-md-level="2" aria-labelledby="__nav_10_3_label" aria-expanded="false">
<label class="md-nav__title" for="__nav_10_3">
<span class="md-nav__icon md-icon"></span>
Extensions
</label>
<ul class="md-nav__list" data-md-scrollfix>
<li class="md-nav__item">
<a href="ref/extensions/handoff_filters/" class="md-nav__link">
<span class="md-ellipsis">
Handoff Filters
</span>
</a>
</li>
<li class="md-nav__item">
<a href="ref/extensions/handoff_prompt/" class="md-nav__link">
<span class="md-ellipsis">
Handoff Prompt
</span>
</a>
</li>
</ul>
</nav>
</li>
</ul>
</nav>
</li>
<li class="md-nav__item md-nav__item--section md-nav__item--nested">
<input class="md-nav__toggle md-toggle md-toggle--indeterminate" type="checkbox" id="__nav_11" >
<label class="md-nav__link" for="__nav_11" id="__nav_11_label" tabindex="">
<span class="md-ellipsis">
Advanced
</span>
<span class="md-nav__icon md-icon"></span>
</label>
<nav class="md-nav" data-md-level="1" aria-labelledby="__nav_11_label" aria-expanded="false">
<label class="md-nav__title" for="__nav_11">
<span class="md-nav__icon md-icon"></span>
Advanced
</label>
<ul class="md-nav__list" data-md-scrollfix>
<li class="md-nav__item">
<a href="cai_development/" class="md-nav__link">
<span class="md-ellipsis">
Development
</span>
</a>
</li>
</ul>
</nav>
</li>
<li class="md-nav__item md-nav__item--section md-nav__item--nested">
<input class="md-nav__toggle md-toggle md-toggle--indeterminate" type="checkbox" id="__nav_12" >
<label class="md-nav__link" for="__nav_12" id="__nav_12_label" tabindex="">
<span class="md-ellipsis">
Research
</span>
<span class="md-nav__icon md-icon"></span>
</label>
<nav class="md-nav" data-md-level="1" aria-labelledby="__nav_12_label" aria-expanded="false">
<label class="md-nav__title" for="__nav_12">
<span class="md-nav__icon md-icon"></span>
Research
</label>
<ul class="md-nav__list" data-md-scrollfix>
<li class="md-nav__item">
<a href="research/" class="md-nav__link">
<span class="md-ellipsis">
Overview
</span>
</a>
</li>
</ul>
</nav>
</li>
<li class="md-nav__item md-nav__item--section md-nav__item--nested">
<input class="md-nav__toggle md-toggle md-toggle--indeterminate" type="checkbox" id="__nav_13" >
<label class="md-nav__link" for="__nav_13" id="__nav_13_label" tabindex="">
<span class="md-ellipsis">
Resources
</span>
<span class="md-nav__icon md-icon"></span>
</label>
<nav class="md-nav" data-md-level="1" aria-labelledby="__nav_13_label" aria-expanded="false">
<label class="md-nav__title" for="__nav_13">
<span class="md-nav__icon md-icon"></span>
Resources
</label>
<ul class="md-nav__list" data-md-scrollfix>
<li class="md-nav__item">
<a href="cai_faq/" class="md-nav__link">
<span class="md-ellipsis">
FAQ
</span>
</a>
</li>
<li class="md-nav__item">
<a href="cai_find_us/" class="md-nav__link">
<span class="md-ellipsis">
Find Us
</span>
</a>
</li>
<li class="md-nav__item">
<a href="cai_citation_and_acknowledgments/" class="md-nav__link">
<span class="md-ellipsis">
Citation & Acknowledgments
</span>
</a>
</li>
</ul>
</nav>
</li>
</ul>
</nav>
</div>
</div>
</div>
<div class="md-sidebar md-sidebar--secondary" data-md-component="sidebar" data-md-type="toc" >
<div class="md-sidebar__scrollwrap">
<div class="md-sidebar__inner">
<nav class="md-nav md-nav--secondary" aria-label="Table of contents">
<label class="md-nav__title" for="__toc">
<span class="md-nav__icon md-icon"></span>
Table of contents
</label>
<ul class="md-nav__list" data-md-component="toc" data-md-scrollfix>
<li class="md-nav__item">
<a href="#key-features" class="md-nav__link">
<span class="md-ellipsis">
Key Features
</span>
</a>
</li>
<li class="md-nav__item">
<a href="#cai-pro-professional-edition" class="md-nav__link">
<span class="md-ellipsis">
🚀 CAI PRO - Professional Edition
</span>
</a>
<nav class="md-nav" aria-label="🚀 CAI PRO - Professional Edition">
<ul class="md-nav__list">
<li class="md-nav__item">
<a href="#upgrade-to-unrestricted-ai-for-security-professionals" class="md-nav__link">
<span class="md-ellipsis">
Upgrade to Unrestricted AI for Security Professionals
</span>
</a>
</li>
</ul>
</nav>
</li>
<li class="md-nav__item">
<a href="#milestones" class="md-nav__link">
<span class="md-ellipsis">
🎯 Milestones
</span>
</a>
</li>
<li class="md-nav__item">
<a href="#package-attributes" class="md-nav__link">
<span class="md-ellipsis">
📦 Package Attributes
</span>
</a>
</li>
<li class="md-nav__item">
<a href="#research-backed-performance" class="md-nav__link">
<span class="md-ellipsis">
📊 Research-Backed Performance
</span>
</a>
<nav class="md-nav" aria-label="📊 Research-Backed Performance">
<ul class="md-nav__list">
<li class="md-nav__item">
<a href="#key-publications" class="md-nav__link">
<span class="md-ellipsis">
Key Publications
</span>
</a>
</li>
</ul>
</nav>
</li>
<li class="md-nav__item">
<a href="#motivation" class="md-nav__link">
<span class="md-ellipsis">
Motivation
</span>
</a>
<nav class="md-nav" aria-label="Motivation">
<ul class="md-nav__list">
<li class="md-nav__item">
<a href="#why-cai" class="md-nav__link">
<span class="md-ellipsis">
Why CAI?
</span>
</a>
</li>
<li class="md-nav__item">
<a href="#ethical-principles-behind-cai" class="md-nav__link">
<span class="md-ellipsis">
Ethical principles behind CAI
</span>
</a>
</li>
<li class="md-nav__item">
<a href="#popular-model-providers" class="md-nav__link">
<span class="md-ellipsis">
Popular Model Providers
</span>
</a>
</li>
<li class="md-nav__item">
<a href="#closed-source-alternatives" class="md-nav__link">
<span class="md-ellipsis">
Closed-source alternatives
</span>
</a>
</li>
</ul>
</nav>
</li>
<li class="md-nav__item">
<a href="#citation" class="md-nav__link">
<span class="md-ellipsis">
Citation
</span>
</a>
</li>
<li class="md-nav__item">
<a href="#acknowledgements" class="md-nav__link">
<span class="md-ellipsis">
Acknowledgements
</span>
</a>
</li>
</ul>
</nav>
</div>
</div>
</div>
<div class="md-content" data-md-component="content">
<article class="md-content__inner md-typeset">
<h1 id="cybersecurity-ai-cai">Cybersecurity AI (<code>CAI</code>)</h1>
<p>A lightweight, ergonomic framework for building bug bounty-ready Cybersecurity AIs (CAIs).</p>
<div align="center">
<p>
<a align="center" href="" target="https://github.com/aliasrobotics/CAI">
<img
width="100%"
src="https://github.com/aliasrobotics/cai/raw/main/media/cai.png"
>
</a>
</p>
</div>
<h2 id="key-features">Key Features</h2>
<ul>
<li>🤖 <strong>300+ AI Models</strong>: Support for OpenAI, Anthropic, DeepSeek, Ollama, and more</li>
<li>🔧 <strong>Built-in Security Tools</strong>: Ready-to-use tools for reconnaissance, exploitation, and privilege escalation</li>
<li>🏆 <strong>Battle-tested</strong>: Proven in HackTheBox CTFs, bug bounties, and real-world security case studies</li>
<li>🎯 <strong>Agent-based Architecture</strong>: Modular framework design to build specialized agents for different security tasks</li>
<li>🛡️ <strong>Guardrails Protection</strong>: Built-in defenses against prompt injection and dangerous command execution</li>
<li>📚 <strong>Research-oriented</strong>: Research foundation to democratize cybersecurity AI for the community</li>
</ul>
<hr />
<h2 id="cai-pro-professional-edition">🚀 CAI PRO - Professional Edition</h2>
<div class="highlight-box">
<h3 id="upgrade-to-unrestricted-ai-for-security-professionals">Upgrade to Unrestricted AI for Security Professionals</h3>
<p><strong>CAI PRO</strong> delivers the power you need for professional security testing:</p>
<ul>
<li><strong>Unlimited <code>alias1</code> tokens</strong> - Our state-of-the-art cybersecurity model that beats GPT-5 in benchmarks</li>
<li><strong>Mobile User Interface (iOS)</strong> - Native iOS app for security testing on the go - <strong><a href="https://testflight.apple.com/join/nXZZD4Z5">Join TestFlight Beta</a></strong></li>
<li><strong>Terminal User Interface (TUI)</strong> - Multi-agent parallel execution with visual monitoring <em>(Deprecated - Use Mobile UI)</em></li>
<li><strong>Zero Refusals</strong> - Unrestricted AI specifically trained for offensive security</li>
<li><strong>European Hosting</strong> - GDPR &amp; NIS2 compliant with guaranteed data privacy</li>
<li><strong>Professional Support</strong> - Dedicated technical assistance from security experts</li>
</ul>
<p><strong>Pricing</strong>: €350/month · Commercial license included · Cancel anytime</p>
<p><strong><a href="cai_pro/">Learn More &amp; Upgrade to CAI PRO →</a></strong></p>
</div>
<hr />
<table>
<thead>
<tr>
<th>CAI with <code>alias0</code> on ROS message injection attacks in MiR-100 robot</th>
<th>CAI with <code>alias0</code> on API vulnerability discovery at Mercado Libre</th>
</tr>
</thead>
<tbody>
<tr>
<td><a href="https://asciinema.org/a/dNv705hZel2Rzrw0cju9HBGPh"><img alt="asciicast" src="https://asciinema.org/a/dNv705hZel2Rzrw0cju9HBGPh.svg" /></a></td>
<td><a href="https://asciinema.org/a/9Hc9z1uFcdNjqP3bY5y7wO1Ww"><img alt="asciicast" src="https://asciinema.org/a/9Hc9z1uFcdNjqP3bY5y7wO1Ww.svg" /></a></td>
</tr>
</tbody>
</table>
<table>
<thead>
<tr>
<th>CAI on JWT@PortSwigger CTF — Cybersecurity AI</th>
<th>CAI on HackableII Boot2Root CTF — Cybersecurity AI</th>
</tr>
</thead>
<tbody>
<tr>
<td><a href="https://asciinema.org/a/713487"><img alt="asciicast" src="https://asciinema.org/a/713487.svg" /></a></td>
<td><a href="https://asciinema.org/a/713485"><img alt="asciicast" src="https://asciinema.org/a/713485.svg" /></a></td>
</tr>
</tbody>
</table>
<h2 id="milestones">🎯 Milestones</h2>
<p>
<a href="https://app.hackthebox.com/users/2268644"><img src="https://img.shields.io/badge/HTB_ranking-top_90_Spain_(5_days)-red.svg" alt="HTB top 90 Spain (5 days)"></a>
<a href="https://app.hackthebox.com/users/2268644"><img src="https://img.shields.io/badge/HTB_ranking-top_50_Spain_(6_days)-red.svg" alt="HTB ranking top 50 Spain (6 days)"></a>
<a href="https://app.hackthebox.com/users/2268644"><img src="https://img.shields.io/badge/HTB_ranking-top_30_Spain_(7_days)-red.svg" alt="HTB ranking top 30 Spain (7 days)"></a>
<a href="https://app.hackthebox.com/users/2268644"><img src="https://img.shields.io/badge/HTB_ranking-top_500_World_(7_days)-red.svg" alt="HTB ranking top 500 World (7 days)"></a>
<a href="https://ctf.hackthebox.com/event/2000/scoreboard"><img src="https://img.shields.io/badge/HTB_Human_vs_AI_CTF-top_1_(AIs)_world-red.svg" alt="HTB Human vs AI CTF top 1 (AIs) world"></a>
<a href="https://ctf.hackthebox.com/event/2000/scoreboard"><img src="https://img.shields.io/badge/HTB_Human_vs_AI_CTF-top_1_Spain-red.svg" alt="HTB Human vs AI CTF top 1 Spain"></a>
<a href="https://ctf.hackthebox.com/event/2000/scoreboard"><img src="https://img.shields.io/badge/HTB_Human_vs_AI_CTF-top_20_World-red.svg" alt="HTB Human vs AI CTF top 20 World"></a>
<a href="https://ctf.hackthebox.com/event/2000/scoreboard"><img src="https://img.shields.io/badge/HTB_Human_vs_AI_CTF-750_$-yellow.svg" alt="HTB Human vs AI CTF 750 $"></a>
<a href="https://lu.ma/roboticshack?tk=RuryKF"><img src="https://img.shields.io/badge/Mistral_AI_Robotics_Hackathon-2500_$-yellow.svg" alt="Mistral AI Robotics Hackathon 2500 $"></a>
<a href="https://github.com/aliasrobotics/cai"><img src="https://img.shields.io/badge/Bug_rewards-250_$-yellow.svg" alt="Bug rewards 250 $"></a>
</p>
<h2 id="package-attributes">📦 Package Attributes</h2>
<p>
<a href="https://badge.fury.io/py/cai-framework"><img src="https://badge.fury.io/py/cai-framework.svg" alt="version"></a>
<a href="https://pypistats.org/packages/cai-framework"><img src="https://img.shields.io/pypi/dm/cai-framework" alt="downloads"></a>
<a href="https://github.com/aliasrobotics/cai"><img src="https://img.shields.io/badge/Linux-Supported-brightgreen?logo=linux&logoColor=white" alt="Linux"></a>
<a href="https://github.com/aliasrobotics/cai"><img src="https://img.shields.io/badge/OS%20X-Supported-brightgreen?logo=apple&logoColor=white" alt="OS X"></a>
<a href="https://github.com/aliasrobotics/cai"><img src="https://img.shields.io/badge/Windows-Supported-brightgreen?logo=windows&logoColor=white" alt="Windows"></a>
<a href="https://github.com/aliasrobotics/cai"><img src="https://img.shields.io/badge/Android-Supported-brightgreen?logo=android&logoColor=white" alt="Android"></a>
<a href="https://discord.gg/fnUFcTaQAC"><img src="https://img.shields.io/badge/Discord-7289DA?logo=discord&logoColor=white" alt="Discord"></a>
<a href="https://arxiv.org/pdf/2504.06017"><img src="https://img.shields.io/badge/arXiv-2504.06017-b31b1b.svg" alt="arXiv"></a>
</p>
<hr />
<h2 id="research-backed-performance">📊 Research-Backed Performance</h2>
<p>CAI's capabilities are validated through rigorous peer-reviewed research demonstrating state-of-the-art performance:</p>
<div class="admonition tip">
<p class="admonition-title">Research Highlights</p>
<ul>
<li>🚀 <strong><a href="https://arxiv.org/pdf/2504.06017">3,600× faster</a></strong> than manual security testing in specific scenarios</li>
<li>🎯 <strong><a href="https://arxiv.org/pdf/2510.17521">54.3% patching success</a></strong> in real-world CTF defense scenarios</li>
<li>📊 <strong><a href="https://arxiv.org/pdf/2510.24317">Superior benchmark performance</a></strong> via CAIBench meta-framework evaluation</li>
<li>🛡️ <strong><a href="https://arxiv.org/pdf/2508.21669">Four-layer guardrails</a></strong> against prompt injection attacks</li>
</ul>
</div>
<h3 id="key-publications">Key Publications</h3>
<ul>
<li>📊 <a href="https://arxiv.org/pdf/2510.24317"><strong>CAIBench</strong></a> - Modular meta-benchmark framework for evaluating cybersecurity AI agents</li>
<li>🎯 <a href="https://arxiv.org/pdf/2510.17521"><strong>Agentic Cybersecurity Evaluation</strong></a> - Real-world CTF performance validation</li>
<li>🚀 <a href="https://arxiv.org/pdf/2504.06017"><strong>CAI Framework</strong></a> - Core architecture demonstrating 3,600× speedup</li>
<li>🛡️ <a href="https://arxiv.org/pdf/2508.21669"><strong>Prompt Injection Defense</strong></a> - Security guardrails for AI agents</li>
<li>📚 <a href="https://arxiv.org/pdf/2508.13588"><strong>CAI Fluency</strong></a> - Educational framework for democratizing AI security</li>
<li>🤖 <a href="https://www.arxiv.org/pdf/2506.23592"><strong>Automation vs Autonomy</strong></a> - 6-level taxonomy for cybersecurity AI</li>
</ul>
<p><strong>📖 Explore all 24+ papers:</strong> <a href="https://aliasrobotics.com/research-security.php#papers">Alias Robotics Research Library →</a></p>
<hr />
<blockquote>
<p>⚠️ CAI is in active development, so don't expect it to work flawlessly. Instead, contribute by raising an issue or <a href="https://github.com/aliasrobotics/cai/pulls">sending a PR</a>.</p>
<p>Access to this library and the use of information, materials (or portions thereof), is <strong><u>not intended</u>, and is <u>prohibited</u>, where such access or use violates applicable laws or regulations</strong>. By no means the authors encourage or promote the unauthorized tampering with running systems. This can cause serious human harm and material damages.</p>
<p><em>By no means the authors of CAI encourage or promote the unauthorized tampering with compute systems. Please don't use the source code in here for cybercrime. <u>Pentest for good instead</u></em>. By downloading, using, or modifying this source code, you agree to the terms of the <a href="LICENSE"><code>LICENSE</code></a> and the limitations outlined in the <a href="DISCLAIMER"><code>DISCLAIMER</code></a> file.</p>
</blockquote>
<h2 id="motivation">Motivation</h2>
<h3 id="why-cai">Why CAI?</h3>
<p>The cybersecurity landscape is undergoing a dramatic transformation as AI becomes increasingly integrated into security operations. <strong>We predict that by 2028, AI-powered security testing tools will outnumber human pentesters</strong>. This shift represents a fundamental change in how we approach cybersecurity challenges. <em>AI is not just another tool - it's becoming essential for addressing complex security vulnerabilities and staying ahead of sophisticated threats. As organizations face more advanced cyber attacks, AI-enhanced security testing will be crucial for maintaining robust defenses.</em></p>
<p>This work builds upon prior efforts[1] and similarly, we believe that democratizing access to advanced cybersecurity AI tools is vital for the entire security community. That's why we're releasing Cybersecurity AI (<code>CAI</code>) as an open source framework. Our goal is to empower security researchers, ethical hackers, and organizations to build and deploy powerful AI-driven security tools. By making these capabilities openly available, we aim to level the playing field and ensure that cutting-edge security AI technology isn't limited to well-funded private companies or state actors.</p>
<p>Bug Bounty programs have become a cornerstone of modern cybersecurity, providing a crucial mechanism for organizations to identify and fix vulnerabilities in their systems before they can be exploited. These programs have proven highly effective at securing both public and private infrastructure, with researchers discovering critical vulnerabilities that might have otherwise gone unnoticed. CAI is specifically designed to enhance these efforts by providing a lightweight, ergonomic framework for building specialized AI agents that can assist in various aspects of Bug Bounty hunting - from initial reconnaissance to vulnerability validation and reporting. Our framework aims to augment human expertise with AI capabilities, helping researchers work more efficiently and thoroughly in their quest to make digital systems more secure.</p>
<h3 id="ethical-principles-behind-cai">Ethical principles behind CAI</h3>
<p>You might be wondering if releasing CAI <em>in-the-wild</em> given its capabilities and security implications is ethical. Our decision to open-source this framework is guided by two core ethical principles:</p>
<ol>
<li>
<p><strong>Democratizing Cybersecurity AI</strong>: We believe that advanced cybersecurity AI tools should be accessible to the entire security community, not just well-funded private companies or state actors. By releasing CAI as an open source framework, we aim to empower security researchers, ethical hackers, and organizations to build and deploy powerful AI-driven security tools, leveling the playing field in cybersecurity.</p>
</li>
<li>
<p><strong>Transparency in AI Security Capabilities</strong>: Based on our research results, understanding of the technology, and dissection of top technical reports, we argue that current LLM vendors are undermining their cybersecurity capabilities. This is extremely dangerous and misleading. By developing CAI openly, we provide a transparent benchmark of what AI systems can actually do in cybersecurity contexts, enabling more informed decisions about security postures.</p>
</li>
</ol>
<p>CAI is built on the following core principles:</p>
<ul>
<li><strong>Cybersecurity oriented AI framework</strong>: CAI is specifically designed for cybersecurity use cases, aiming at semi- and fully-automating offensive and defensive security tasks.</li>
<li><strong>Open source, free for research</strong>: CAI is open source and free for research purposes. We aim at democratizing access to AI and Cybersecurity. For professional or commercial use, including on-premise deployments, dedicated technical support and custom extensions <a href="mailto:research@aliasrobotics.com">reach out</a> to obtain a license.</li>
<li><strong>Lightweight</strong>: CAI is designed to be fast, and easy to use.</li>
<li><strong>Modular and agent-centric design</strong>: CAI operates on the basis of agents and agentic patterns, which allows flexibility and scalability. You can easily add the most suitable agents and pattern for your cybersecurity target case.</li>
<li><strong>Tool-integration</strong>: CAI integrates already built-in tools, and allows the user to integrate their own tools with their own logic easily.</li>
<li><strong>Logging and tracing integrated</strong>: using <a href="https://github.com/Arize-ai/phoenix"><code>phoenix</code></a>, the open source tracing and logging tool for LLMs. This provides the user with a detailed traceability of the agents and their execution.</li>
<li><strong>Multi-Model Support</strong>: more than 300 supported and empowered by <a href="https://github.com/BerriAI/litellm">LiteLLM</a>. The most popular providers:</li>
</ul>
<h3 id="popular-model-providers">Popular Model Providers</h3>
<ul>
<li><strong>Anthropic</strong>: <code>Claude 3.7</code>, <code>Claude 3.5</code>, <code>Claude 3</code>, <code>Claude 3 Opus</code></li>
<li><strong>OpenAI</strong>: <code>O1</code>, <code>O1 Mini</code>, <code>O3 Mini</code>, <code>GPT-4o</code>, <code>GPT-4.5 Preview</code></li>
<li><strong>DeepSeek</strong>: <code>DeepSeek V3</code>, <code>DeepSeek R1</code></li>
<li><strong>Ollama</strong>: <code>Qwen2.5 72B</code>, <code>Qwen2.5 14B</code>, And many more</li>
</ul>
<h3 id="closed-source-alternatives">Closed-source alternatives</h3>
<p>Cybersecurity AI is a critical field, yet many groups are misguidedly pursuing it through closed-source methods for pure economic return, leveraging similar techniques and building upon existing closed-source (<em>often third-party owned</em>) models. This approach not only squanders valuable engineering resources but also represents an economic waste and results in redundant efforts, as they often end up reinventing the wheel. Here are some of the closed-source initiatives we keep track of and attempting to leverage genAI and agentic frameworks in cybersecurity AI:</p>
<ul>
<li><a href="https://www.runsybil.com">Runsybil</a></li>
<li><a href="https://www.selfhack.fi">Selfhack</a></li>
<li><a href="https://www.sxipher.com/">Sxipher</a> (seems discontinued)</li>
<li><a href="https://staris.tech/">Staris</a></li>
<li><a href="https://www.terra.security">Terra Security</a></li>
<li><a href="https://xint.io/">Xint</a></li>
<li><a href="https://www.xbow.com">XBOW</a></li>
<li><a href="https://www.zeropath.com">ZeroPath</a></li>
<li><a href="https://www.zynap.com">Zynap</a></li>
</ul>
<hr />
<p>[1] Deng, G., Liu, Y., Mayoral-Vilches, V., Liu, P., Li, Y., Xu, Y., ... &amp; Rass, S. (2024). {PentestGPT}: Evaluating and harnessing large language models for automated penetration testing. In 33rd USENIX Security Symposium (USENIX Security 24) (pp. 847-864).</p>
<h2 id="citation">Citation</h2>
<p>If you want to cite our work, please use the following:</p>
<div class="language-bibtex highlight"><pre><span></span><code><span id="__span-0-1"><span class="nc">@article</span><span class="p">{</span><span class="nl">mayoral2025cai</span><span class="p">,</span>
</span><span id="__span-0-2"><span class="w"> </span><span class="na">title</span><span class="p">=</span><span class="s">{CAI: An Open, Bug Bounty-Ready Cybersecurity AI}</span><span class="p">,</span>
</span><span id="__span-0-3"><span class="w"> </span><span class="na">author</span><span class="p">=</span><span class="s">{Mayoral-Vilches, V{\&#39;\i}ctor and Navarrete-Lozano, Luis Javier and Sanz-G{\&#39;o}mez, Mar{\&#39;\i}a and Espejo, Lidia Salas and Crespo-{\&#39;A}lvarez, Marti{\~n}o and Oca-Gonzalez, Francisco and Balassone, Francesco and Glera-Pic{\&#39;o}n, Alfonso and Ayucar-Carbajo, Unai and Ruiz-Alcalde, Jon Ander and Rass, Stefan and Pinzger, Martin and Gil-Uriarte, Endika}</span><span class="p">,</span>
</span><span id="__span-0-4"><span class="w"> </span><span class="na">journal</span><span class="p">=</span><span class="s">{arXiv preprint arXiv:2504.06017}</span><span class="p">,</span>
</span><span id="__span-0-5"><span class="w"> </span><span class="na">year</span><span class="p">=</span><span class="s">{2025}</span>
</span><span id="__span-0-6"><span class="p">}</span>
</span><span id="__span-0-7">
</span><span id="__span-0-8"><span class="nc">@article</span><span class="p">{</span><span class="nl">mayoral2025automation</span><span class="p">,</span>
</span><span id="__span-0-9"><span class="w"> </span><span class="na">title</span><span class="p">=</span><span class="s">{Cybersecurity AI: The Dangerous Gap Between Automation and Autonomy}</span><span class="p">,</span>
</span><span id="__span-0-10"><span class="w"> </span><span class="na">author</span><span class="p">=</span><span class="s">{Mayoral-Vilches, V{\&#39;\i}ctor}</span><span class="p">,</span>
</span><span id="__span-0-11"><span class="w"> </span><span class="na">journal</span><span class="p">=</span><span class="s">{arXiv preprint arXiv:2506.23592}</span><span class="p">,</span>
</span><span id="__span-0-12"><span class="w"> </span><span class="na">year</span><span class="p">=</span><span class="s">{2025}</span>
</span><span id="__span-0-13"><span class="p">}</span>
</span><span id="__span-0-14">
</span><span id="__span-0-15"><span class="nc">@article</span><span class="p">{</span><span class="nl">mayoral2025fluency</span><span class="p">,</span>
</span><span id="__span-0-16"><span class="w"> </span><span class="na">title</span><span class="p">=</span><span class="s">{CAI Fluency: A Framework for Cybersecurity AI Fluency}</span><span class="p">,</span>
</span><span id="__span-0-17"><span class="w"> </span><span class="na">author</span><span class="p">=</span><span class="s">{Mayoral-Vilches, V{\&#39;\i}ctor and Wachter, Jasmin and Chavez, Crist{\&#39;o}bal RJ and Schachner, Cathrin and Navarrete-Lozano, Luis Javier and Sanz-G{\&#39;o}mez, Mar{\&#39;\i}a}</span><span class="p">,</span>
</span><span id="__span-0-18"><span class="w"> </span><span class="na">journal</span><span class="p">=</span><span class="s">{arXiv preprint arXiv:2508.13588}</span><span class="p">,</span>
</span><span id="__span-0-19"><span class="w"> </span><span class="na">year</span><span class="p">=</span><span class="s">{2025}</span>
</span><span id="__span-0-20"><span class="p">}</span>
</span><span id="__span-0-21">
</span><span id="__span-0-22"><span class="nc">@article</span><span class="p">{</span><span class="nl">mayoral2025hacking</span><span class="p">,</span>
</span><span id="__span-0-23"><span class="w"> </span><span class="na">title</span><span class="p">=</span><span class="s">{Cybersecurity AI: Hacking the AI Hackers via Prompt Injection}</span><span class="p">,</span>
</span><span id="__span-0-24"><span class="w"> </span><span class="na">author</span><span class="p">=</span><span class="s">{Mayoral-Vilches, V{\&#39;\i}ctor and Rynning, Per Mannermaa}</span><span class="p">,</span>
</span><span id="__span-0-25"><span class="w"> </span><span class="na">journal</span><span class="p">=</span><span class="s">{arXiv preprint arXiv:2508.21669}</span><span class="p">,</span>
</span><span id="__span-0-26"><span class="w"> </span><span class="na">year</span><span class="p">=</span><span class="s">{2025}</span>
</span><span id="__span-0-27"><span class="p">}</span>
</span><span id="__span-0-28">
</span><span id="__span-0-29"><span class="nc">@article</span><span class="p">{</span><span class="nl">mayoral2025humanoid</span><span class="p">,</span>
</span><span id="__span-0-30"><span class="w"> </span><span class="na">title</span><span class="p">=</span><span class="s">{Cybersecurity AI: Humanoid Robots as Attack Vectors}</span><span class="p">,</span>
</span><span id="__span-0-31"><span class="w"> </span><span class="na">author</span><span class="p">=</span><span class="s">{Mayoral-Vilches, V{\&#39;\i}ctor}</span><span class="p">,</span>
</span><span id="__span-0-32"><span class="w"> </span><span class="na">journal</span><span class="p">=</span><span class="s">{arXiv preprint arXiv:2509.14139}</span><span class="p">,</span>
</span><span id="__span-0-33"><span class="w"> </span><span class="na">year</span><span class="p">=</span><span class="s">{2025}</span>
</span><span id="__span-0-34"><span class="p">}</span>
</span><span id="__span-0-35">
</span><span id="__span-0-36"><span class="nc">@article</span><span class="p">{</span><span class="nl">balassone2025evaluation</span><span class="p">,</span>
</span><span id="__span-0-37"><span class="w"> </span><span class="na">title</span><span class="p">=</span><span class="s">{Cybersecurity AI: Evaluating Agentic Cybersecurity in Attack/Defense CTFs}</span><span class="p">,</span>
</span><span id="__span-0-38"><span class="w"> </span><span class="na">author</span><span class="p">=</span><span class="s">{Balassone, Francesco and Mayoral-Vilches, V{\&#39;\i}ctor and Rass, Stefan and Pinzger, Martin and Perrone, Gaetano and Romano, Simon Pietro and Schartner, Peter}</span><span class="p">,</span>
</span><span id="__span-0-39"><span class="w"> </span><span class="na">journal</span><span class="p">=</span><span class="s">{arXiv preprint arXiv:2510.17521}</span><span class="p">,</span>
</span><span id="__span-0-40"><span class="w"> </span><span class="na">year</span><span class="p">=</span><span class="s">{2025}</span>
</span><span id="__span-0-41"><span class="p">}</span>
</span><span id="__span-0-42">
</span><span id="__span-0-43"><span class="nc">@article</span><span class="p">{</span><span class="nl">mayoral2025caibench</span><span class="p">,</span>
</span><span id="__span-0-44"><span class="w"> </span><span class="na">title</span><span class="p">=</span><span class="s">{CAIBench: A Meta-Benchmark for Evaluating Cybersecurity AI Agents}</span><span class="p">,</span>
</span><span id="__span-0-45"><span class="w"> </span><span class="na">author</span><span class="p">=</span><span class="s">{Mayoral-Vilches, V{\&#39;\i}ctor and Balassone, Francesco and Navarrete-Lozano, Luis Javier and Sanz-G{\&#39;o}mez, Mar{\&#39;\i}a and Crespo-{\&#39;A}lvarez, Marti{\~n}o and Rass, Stefan and Pinzger, Martin}</span><span class="p">,</span>
</span><span id="__span-0-46"><span class="w"> </span><span class="na">journal</span><span class="p">=</span><span class="s">{arXiv preprint arXiv:2510.24317}</span><span class="p">,</span>
</span><span id="__span-0-47"><span class="w"> </span><span class="na">year</span><span class="p">=</span><span class="s">{2025}</span>
</span><span id="__span-0-48"><span class="p">}</span><span class="w"> </span>
</span></code></pre></div>
<h2 id="acknowledgements">Acknowledgements</h2>
<p>CAI was initially developed by <a href="https://aliasrobotics.com">Alias Robotics</a> and co-funded by the European EIC accelerator project RIS (GA 101161136) - HORIZON-EIC-2023-ACCELERATOR-01 call. The original agentic principles are inspired from OpenAI's <a href="https://github.com/openai/swarm"><code>swarm</code></a> library and translated into newer prototypes. This project also makes use of other relevant open source building blocks including <a href="https://github.com/BerriAI/litellm"><code>LiteLLM</code></a>, and <a href="https://github.com/Arize-ai/phoenix"><code>phoenix</code></a>.</p>
</article>
</div>
<script>var target=document.getElementById(location.hash.slice(1));target&&target.name&&(target.checked=target.name.startsWith("__tabbed_"))</script>
</div>
</main>
<footer class="md-footer">
<div class="md-footer-meta md-typeset">
<div class="md-footer-meta__inner md-grid">
<div class="md-copyright">
</div>
</div>
</div>
</footer>
</div>
<div class="md-dialog" data-md-component="dialog">
<div class="md-dialog__inner md-typeset"></div>
</div>
<script id="__config" type="application/json">{"base": ".", "features": ["content.code.copy", "content.code.select", "navigation.path", "navigation.sections", "navigation.expand", "content.code.annotate"], "search": "assets/javascripts/workers/search.f8cc74c7.min.js", "tags": null, "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}, "version": null}</script>
<script src="assets/javascripts/bundle.c8b220af.min.js"></script>
</body>
</html>