shannon README

The project's README from github.com/KeygraphHQ/shannon. As one markdown file: README.md.

[!NOTE] Shannon 3.0 is live: deeper security code analysis, more thoroughly vetted findings, a rebuilt CLI, native CI/CD, professional PDF reports, and SARIF.

Shannon, AI Pentester for Web Apps and APIs, by Keygraph

KeygraphHQ%2Fshannon | Trendshift

Shannon is an autonomous, AI pentester for web applications and APIs.

It analyzes your source code, identifies attack paths, and executes real exploits to prove vulnerabilities before they reach production. No exploit, no report.

This repository is Shannon Open Source: the full agent, run locally from your command line.

Launch Shannon

npx @keygraph/shannon@latest

The interactive launcher will guide you through setup and your first pentest.


Join Discord      Visit Keygraph.io


[!TIP] AI agents and LLMs: start with llms.txt for a concise map of this repository, or use llms-full.txt for the README and docs combined into one file.

Table of Contents

What is Shannon?

Shannon is an autonomous AI pentester developed by Keygraph. It performs security testing of web applications and their underlying APIs by combining source-code analysis with live exploitation.

Shannon analyzes your web application's source code to identify potential attack vectors, then uses browser automation and command-line tools to execute real exploits against the running application and its APIs. Only vulnerabilities with a working proof-of-concept are included in the final report.

Shannon is the agent. This repository is Shannon Open Source, the standalone pentester you run yourself. The same Shannon also powers the Keygraph platform, Keygraph's commercial pentesting product. See Editions for how the two compare.

Why Shannon Exists

Thanks to tools like Claude Code and Cursor, your team ships code non-stop. But your penetration test? That happens once a year. This creates a massive security gap. For the other 364 days, you could be unknowingly shipping vulnerabilities to production.

Shannon closes that gap by providing on-demand, automated penetration testing that can run against every build or release.

Why "Shannon"?

It's named after Claude Shannon, the father of information theory. At its core, pentesting is an information problem: every probe reduces uncertainty about a system's state. The best tools maximize the signal gained from every request, turning those bits of knowledge into an exploit path.

Also, we wanted you to be able to say, "Hey Claude, run Shannon" to find all the security flaws in your vibe-coded app.

Not a replacement for human pentesters

Shannon is built to work alongside expert pentesters and red teamers, not replace them. Great pentesters understand the business, chain attacks in ways nobody anticipated, and bring years of judgment that current models can't match.

Shannon solves a different problem: there is far more software to test than security teams have time to cover. Critical systems get periodic expert assessments, while the long tail of internal apps, APIs, and fast-moving services rarely gets tested at all.

Shannon shifts pentesting left into the software development lifecycle (SDLC). Use it to run exploitation-backed tests against staging environments and releases at the cadence they actually ship, and save expert human time for the risks that need someone who knows the organization.

Shannon in Action

Shannon running an autonomous pentest

These reports are from Shannon Open Source scans of Photoview 2.4.0, one of the applications in Doyensec's comparison of Aikido and XBOW. We ran Shannon against the same application version and evaluated its results separately. Read the Doyensec study and our Shannon follow-up comparison for the methodology, limitations, costs, and results.

Model Report SARIF
DeepSeek v4 Flash View report SARIF
Grok 4.6 View report SARIF
Claude Opus 5 View report SARIF

Quick Start

Prerequisites

Run Shannon

[!WARNING] Shannon actively executes exploits. Run it only against applications and environments you own or have explicit written authorization to test. Do not run Shannon against production systems.

# Configure credentials with the interactive wizard.
npx @keygraph/shannon@latest setup

# Run a pentest against a source-available target.
npx @keygraph/shannon@latest start \
  -u https://your-app.com \
  -r /path/to/your/repo

Shannon pulls the worker image from Docker Hub, starts the required local infrastructure, mounts the target repository read-only inside an ephemeral worker container, and writes results to a local workspace.

For source builds, authenticated scans, provider-specific setup, and platform notes, see Documentation.

[!TIP] Prefer to use a subscription instead of API credits?

Key Capabilities

CI/CD Integrations

Shannon can run continuously against deployed staging and development environments through official integrations for GitHub Actions and GitLab CI/CD.

Both integrations:

A code-analysis hypothesis does not fail the pipeline. Severity gates count only findings with status: exploited.

GitHub Actions

name: Shannon Pentest

on:
  workflow_dispatch:

permissions:
  security-events: write

jobs:
  pentest:
    runs-on: ubuntu-latest

    steps:
      - uses: actions/checkout@v4

      - name: Run Shannon
        uses: KeygraphHQ/shannon-action@v1
        with:
          url: https://staging.example.com
          api-key: ${{ secrets.SHANNON_AI_API_KEY }}
          fail-on-severity: high
          upload-sarif: true

The Action defaults repo to the checked-out GitHub workspace. It uploads one artifact containing the security assessment reports and SARIF, plus a separate run artifact containing scan and agent logs. Enabling upload-sarif publishes supported findings to GitHub code scanning.

Requirements:

See the Shannon GitHub Action documentation and GitHub Marketplace listing.

Editions

Shannon Open Source is a complete autonomous pentester, especially well suited to individual developers and small teams running focused security tests locally or in CI/CD.

Keygraph Enterprise Platform is for organizations that need a shared platform for continuous agentic pentesting/AppSec across many teams, repositories, and environments. It centralizes deeper analysis, vulnerability management, remediation, verification, governance, and reporting so teams do not have to assemble and maintain those workflows themselves.

Learn about the Keygraph Enterprise Platform and compare editions →

Architecture

Shannon combines multi-stage security code analysis with live reconnaissance and exploitation:

flowchart TD
    S["Source code"] --> EXISTING["Recon + vulnerability analysis"]
    S --> SAST["Agentic security code analysis"]

    EXISTING -- "Pentest candidates" --> REC["Finding reconciliation<br/>(merge + deduplicate)"]
    SAST -- "SAST candidates" --> REC

    REC -- "Reconciled exploitation queue" --> EXP["Exploitation agents"]
    APP["Running application"] --> EXP

    EXP -- "Exploit demonstrated" --> REPORT["Reporting<br/>PDF · Markdown · SARIF"]
    EXP -- "No exploit demonstrated" --> DROP["Discard"]

    REPORT --> CICD["CI/CD gate"]

Stage by stage:

  1. Recon and vulnerability analysis explores the running application, ties runtime behavior back to the source, and runs specialized agents across Injection, XSS, SSRF, Authentication, and Authorization.
  2. Agentic security code analysis maps the application's architecture, trust boundaries, exposed interfaces, dependencies, data flows, and high-risk assets, then opens targeted investigations against them.
  3. Finding reconciliation merges both streams of candidates, deduplicates the overlap, and groups what remains into an exploitation queue.
  4. Exploitation agents attempt real proof-of-concept attacks against the running application.
  5. Validation throws out every candidate Shannon can't demonstrate.
  6. Reporting produces PDF and Markdown reports with the evidence attached, plus structured JSON and SARIF for downstream systems.

Only live-validated vulnerabilities become Shannon pentest findings or count toward CI/CD severity gates.

Each scan runs in an ephemeral Docker container with an isolated workspace and per-invocation orchestration.

Documentation

Use these guides for operational detail:

Guide Use it for
Source build and CLI commands Cloning, building, common commands, output paths, and local development.
Configuration Authenticated testing, login flows, rules of engagement, and report filters.
AI providers Selecting the model, the supported providers (Anthropic, OpenAI, xAI, AWS Bedrock, and any other Pi-supported provider), and custom LLM gateways.
Platforms and networking Windows/WSL2, Linux, macOS, Docker networking, local apps, and custom hostnames.
Workspaces and resuming Naming workspaces, resuming interrupted scans, and workspace storage.
Safety and limitations Authorized-use requirements, non-production guidance, mutative effects, cost, and model caveats.
Coverage and roadmap Current vulnerability coverage and planned work.
Keygraph Enterprise Platform Exhaustive agentic SAST, continuous pentesting, full-lifecycle finding management, remediation, targeted verification, enterprise governance, and on-premises deployment.

Safety, Scope, and Limitations

Shannon is not a passive scanner. Its exploitation agents can create users, submit forms, mutate application state, trigger outbound requests, and otherwise affect the target system. Use sandboxed, staging, or local development environments with disposable data.

You are responsible for using Shannon legally and ethically. Do not point Shannon at systems, repositories, or applications you do not own or do not have explicit authorization to test.

Important limitations:

shannon (KeygraphHQ/shannon)

Searching Database…

Что это такое?Shannon — это автономный ИИ-пентестер, который анализирует исходный код вашего веб-приложения, строит карту векторов атак, а затем выполняет реальные эксплойты против работающего приложения, чтобы доказать уязвимости до того, как они попадут в продакшн — «нет эксплойта, нет отчёта».
Это просто сканер уязвимостей или он действительно атакует моё приложение?Он выходит за рамки сканирования: сочетает анализ исходного кода с эксплуатацией через браузер и CLI в реальном времени и включает в отчёт находки только тогда, когда есть работающий эксплойт-доказательство (PoC).
Как запустить первое сканирование?Запустите интерактивный CLI-лаунчер (рекомендуется через npx): он проведёт вас через настройку, загрузит образ воркера из Docker Hub, смонтирует репозиторий цели только для чтения во временный одноразовый контейнер и запишет результаты в локальное рабочее пространство.
Что нужно установить перед запуском?Docker для контейнера воркера, Node.js 18+ для сценария через npx и собственные учётные данные API у поставщика ИИ (Anthropic, OpenAI, xAI, AWS Bedrock или совместимый шлюз) — Shannon работает по принципу «свой ключ» (bring-your-own-key).
Безопасно ли запускать это на любом приложении?Нет — Shannon активно выполняет реальные эксплойты, поэтому его можно запускать только на приложениях, которыми вы владеете или на тестирование которых у вас есть явное разрешение, и никогда на продакшн. Кроме того, такие провайдеры, как Anthropic и OpenAI, могут прервать сканирование на середине из-за собственных механизмов киберзащиты.
Работает ли это на Windows, а также на Mac и Linux?Да, в документации описана настройка для Windows/WSL2, Linux и macOS, а каждое сканирование выполняется в изолированном контейнере Docker независимо от ОС хоста.
Куда попадают мой исходный код и данные сканирования?Всё остаётся в вашей инфраструктуре: репозиторий цели монтируется только для чтения в локальный одноразовый контейнер, результаты записываются локально, а запросы к модели идут напрямую от вас к выбранному поставщику ИИ — Keygraph не пропускает этот трафик через себя.
Shannon просто ищет уязвимости или он действительно их эксплуатирует?Он идёт дальше сканирования: агенты эксплуатации пытаются выполнить реальные PoC-атаки на работающее приложение, а любой кандидат, который Shannon не может реально продемонстрировать, отбрасывается до формирования отчёта.
Можно ли использовать локальную модель ИИ вместо облачного API?Да, помимо Anthropic, OpenAI, xAI и AWS Bedrock, Shannon поддерживает локальные модели, которые работают через Ollama, vLLM или LM Studio.
Выдаёт ли Shannon результаты, которые можно передать в другие инструменты безопасности?Он формирует отчёты в PDF и Markdown, а также структурированные JSON и SARIF 2.1.0; SARIF включён по умолчанию для сканирований в режиме эксплуатации, поэтому находки можно передавать в GitHub code scanning.
Почему проект назван Shannon?Он назван в честь Клода Шеннона, отца теории информации, потому что пентест по сути связан со снижением неопределённости о системе с каждой проверкой.
What are similar projects?strix, Cybermes, VulnHunter, redamon, nuclei, Decepticon, 0, Claude-Red
Creator
KeygraphHQ
Size
90.6 MB
Stars
49K
Age
1y
Commits · 90 Days