Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
S

shannon

> AI 编程
Open source

Shannon is an AI pentester for web applications and APIs. It analyzes your source code, identifies attack vectors, and executes real exploits to prove vulnerabi

46.3K stars0 likes5 views
WebsiteGitHub

About

Shannon is an AI pentester for web applications and APIs. It analyzes your source code, identifies attack vectors, and executes real exploits to prove vulnerabi

[!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.

[!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

  • Table of Contents
  • What is Shannon?
    • Why Shannon Exists
    • Why "Shannon"?
    • Not a replacement for human pentesters
  • Shannon in Action
  • Quick Start
    • Prerequisites
    • Run Shannon
  • Key Capabilities
  • CI/CD Integrations
    • GitHub Actions
  • Editions
  • Architecture
  • Documentation
  • Safety, Scope, and Limitations
  • License
  • Acknowledgements
  • About Keygraph
  • Community and Support
  • Common Questions
    • Can I self-host Shannon?
    • Does Shannon support bring your own key (BYOK)?
    • Does Shannon output SARIF?
    • Which AI providers does Shannon support?
    • Can I run Shannon on a local or self-hosted model?
    • Does Shannon actually exploit vulnerabilities, or just scan?

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

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

  • Docker: required for the worker container.
  • Node.js 18+: required for the recommended npx workflow.
  • AI provider credentials: Shannon runs on Anthropic, OpenAI, xAI, AWS Bedrock, and any other provider in the harness catalogue — each of which you can point at a proxy or LLM gateway through a custom base URL, and a model the catalogue does not yet carry can be described with a custom model configuration. You bring your own key, and Keygraph never proxies your model traffic. Shannon is provider-agnostic. See AI providers for suggested model IDs.
  • Cyber safeguards cleared with your provider: Anthropic and OpenAI apply real-time safeguards to cyber-security workloads, which can interrupt a scan mid-run. Complete their guidance for legitimate security testers before your first run - see AI providers.

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.

bash
# 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?

  • OpenAI Codex: The latest version of Shannon supports ChatGPT Plus and Pro subscriptions. Follow the OpenAI Codex subscription setup guide to get started.
  • xAI (Grok): The latest version of Shannon supports xAI subscriptions. Follow the xAI subscription setup guide to get started.
  • Claude Code: The latest version of Shannon does not support Claude Code subscriptions. Follow the Claude Code subscription setup guide to use version 1.9.0, which is the final release built on the Claude Agent SDK.

Key Capabilities

  • No exploit, no report: Reports only vulnerabilities confirmed with a reproducible proof of concept, reducing speculative scanner noise.
  • Advanced code analysis: Maps architecture, trust boundaries, interfaces, data flows, and critical assets before sending credible attack paths to live pentesting agents.
  • Autonomous execution: Runs reconnaissance, analysis, exploitation, and reporting from a single command.
  • Live terminal experience: Simplifies scan setup and shows agent progress and results without exposing orchestration logs.
  • Authenticated testing: Supports credentials, login flows, TOTP, email authentication, focus areas, and rules of engagement through configuration.
  • OWASP-focused coverage: Tests for exploitable injection, XSS, SSRF, broken authentication, and broken authorization.
  • Resumable workspaces: Resumes interrupted scans without repeating completed work.
  • Native CI/CD integrations: Runs through the official GitHub Action or GitLab CI/CD component, preserves artifacts, publishes findings, and gates releases on proven vulnerabilities.
  • Multi-format reports: Produces evidence-rich PDF and Markdown reports plus JSON and SARIF 2.1.0. SARIF is enabled by default for exploit-mode scans.
  • Provider agnostic and BYOK: Supports Anthropic, OpenAI, xAI, AWS Bedrock, compatible APIs and LLM gateways, and local models served through Ollama, vLLM, or LM Studio.
  • Private by design: Runs in your infrastructure, stores results locally, and sends model requests directly to your chosen endpoint. A local endpoint keeps data inside your environment.

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:

  • analyze the checked-out source repository while attacking a running target;
  • preserve PDF, Markdown, and SARIF reports as pipeline artifacts;
  • preserve scan and agent logs for debugging, including incomplete runs;
  • support pull-request, release, and scheduled pentests;
  • distinguish an incomplete assessment from a completed scan with no findings; and
  • optionally fail the pipeline when Shannon exploits a vulnerability at or above a configured severity threshold.

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

GitHub Actions

yaml
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:

  • a private repository;
  • a runner with Docker and Docker Compose v2;
  • access to the running staging or development target; and
  • a model-provider credential stored as a GitHub Actions secret.

See the [Shannon GitHub Action documentation](h

Issues· 24 open

View all issuesOpen on GitHub
  • #472

    [BUG]: ReconciliationIoError silently drops classes to a partial scan despite externally-exploitable findings

    Updated Sep 25, 2026
  • #465

    [FEATURE]: Host-allowlist for external connections

    Updated Sep 24, 2026
  • #469

    Browser-driven phases fail on AppArmor Linux hosts: Chromium sandbox denied in worker (no way to pass apparmor=unconfined / --no-sandbox)

    Updated Sep 23, 2026
  • #453

    [FEATURE]: Token-based auth for API-only, non-browser targets (OAuth client_credentials / bearer)

    Updated Sep 21, 2026
  • #468

    [FEATURE]: Attach a static custom header (not just the auth token) to every scan request

    Updated Sep 21, 2026
  • #459

    [BUG]: The capella research timeout is too short

    Updated Sep 21, 2026
  • #463

    [BUG]: Windows: start crashes with SHANNON_UNEXPECTED_ERROR — directory fsync throws EISDIR

    Updated Sep 21, 2026
  • #462

    [BUG]: Shannon doesn't work with litellm proxy

    Updated Sep 16, 2026
  • #457

    [FEATURE]: Issue IDs in the PDF should link to the according detail page

    Updated Sep 13, 2026
  • #448

    Feature: interactive TUI dashboard (opencode-style) for managing scans

    Updated Sep 6, 2026

> Tags

TypeScriptagentsai-penetration-testingai-securitycybersecurity

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 29, 2026
CategoryAI 编程
PricingOpen source

> Related tools

G
GitHub Copilot
GitHub 官方 AI 编程助手,覆盖补全、Chat 与 Agent 模式。
C
Cursor
AI 原生代码编辑器,对话改代码、多文件 Agent 与规则体系是其核心。
S
skills
Skills for Real Engineers. Straight from my .agents directory.