Skip to content
ASCIT31Public

About

Open-source autonomous AI penetration testing. 50 specialist agents across web, API, cloud, Active Directory, Kubernetes, CI/CD and AI/LLM (OWASP LLM Top 10), with an evidence-checked attack-path graph. Runs on a local LLM behind a Privacy Gateway. Integrates with GitHub, GitLab, Jenkins, VS Code, JetBrains, n8n, Grafana & Splunk.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

1.3k stars

Watchers

12 watching

Forks

DarkMoon — autonomous AI penetration testing on a local model

DarkMoon

Open-source autonomous AI penetration testing — finds, exploits and qualifies every vulnerability on your own infrastructure

GitHub stars Latest release License AGPLv3 Made with local LLM Autonomous AI pentesting

⭐ Star DarkMoon · 🚀 Quick Start · 🧩 Integrations · 📊 Benchmark · 🔬 Research · 🔒 Darkmoon Pro · ▶️ Install & Run (OSS) · ▶️ Demo (Pro)

Important

License change. Darkmoon Community is moving from the GNU GPL v3.0 to the GNU AGPL v3.0. Every commit published up to edfe9cb (27 October 2026) stays under the GNU GPL v3.0; master is under the AGPL v3.0 since 19 November 2026 (PR #59), and v1.7.0 (20 November 2026) is the first AGPL release (v1.6.0 and earlier stay GPL v3.0). The contributions made by outside contributors before the switch also stay under the GNU GPL v3.0 (they are not relicensed). Details: LICENSING.md.

DarkMoon is autonomous AI penetration testing for your own infrastructure. Point it at an authorized target and it runs the whole assessment on its own, then documents every finding with the exact command and raw output.

  • 🟢 Truly open source. AGPLv3 and self-hosted, every agent's methodology is plain Markdown you can read, diff and fork.
  • 🎯 Finds AND proves. Each vulnerability ships with the exact command and raw output (exploitation is agent-asserted; the Pro remediation retest is the machine-verified step), so there is almost nothing to triage.
  • 🔒 Runs on a local LLM + Privacy Gateway. The gateway tokenizes your real IPs, hosts and credentials locally, so the model reasons on placeholders while real values stay on your perimeter.
  • 🕸️ An attack-path graph you can check. Agents declare what enabled what; the server keeps each link as a hypothesis (Possible Attack Path) and promotes it to Evidence-Backed only on its own records, with no model call to qualify it. Paths, their limits and the research behind them, including our local expert-AI prototype (research, not shipped): Attack paths · Research.
  • 🧩 Everywhere you build. Run it from GitHub, GitLab, Jenkins, VS Code, JetBrains, n8n, Grafana or Splunk — the open-source edition works with the CLI-based ones. See the integrations ↓

See the open source engine (CLI)

The open source Darkmoon is a command line tool. This is what you get when you clone the repo. You launch an assessment from the command line and watch every agent, command and finding stream past in real time.

Launching a DarkMoon assessment from the command line with a single TARGET line

Kick off a run from the CLI. One TARGET line and DarkMoon takes over the whole assessment.

Then explore the results in the Terminal Explorer (type /explore in the console):

Terminal Explorer workspace view in the Darkmoon console: grade, coverage sentence, first actions and frameworks line

Workspace. Executive block of a campaign.

Terminal Explorer Prioritized Treatment Plan with one action per asset and weakness class

Prioritized Treatment Plan.

Terminal Explorer framework technical assessment for ISO 27001, GDPR, NIS2 and AI Act controls

Framework technical assessment.

Terminal Explorer attack-path view listing Possible Attack Paths

Attack paths (Possible in Community).

Community edition captures, data from a campaign on a local DVGA lab.

A DarkMoon sub-agent state machine in the terminal detecting CVE-2019-9978 and moving straight to exploitation

Autonomous agents reason and exploit, live in your terminal. Here a sub-agent flags CVE-2019-9978 and pivots straight to exploitation.

DarkMoon recon and environment model summary printed in the terminal

Recon and environment model. DarkMoon fingerprints the stack and confirms the attack surface before it strikes.

Live MCP output stream in the terminal with timestamped commands and raw responses

Live MCP stream. Every command the agent runs and its raw output, timestamped, with ./darkmoon.sh --log <session>.

Signal detection matrix in the terminal mapping detected technologies to the agents DarkMoon dispatches

Signal to agent dispatch. DarkMoon decides which specialist agents to deploy from exactly what it detects on the target.


Quick Start

git clone https://github.com/ASCIT31/Dark-Moon.git
cd Dark-Moon
./install.sh

install.sh configures your LLM provider interactively (no need to edit docker-compose.yml) and builds the full stack:

./install.sh           # skip form if .opencode.env already configured
./install.sh --init    # force reconfiguration (cloud or local model)
./install.sh --help    # show usage

Supports cloud providers (Anthropic, OpenAI, OpenRouter…), local models (Ollama, llama.cpp, any OpenAI-compatible URL) and Azure AI Foundry / Azure OpenAI in native mode (configuration; which models finish a campaign: Compatible Models & Hardware).

Re-running install.sh on an existing install lists what the rebuild would delete (custom or modified agents included), asks Continue? [y/N] (default No), and on yes moves data, darkmoon-settings and workflows to timestamped *.backup-<date> folders instead of deleting them. Unattended: ./install.sh --yes or DARKMOON_ASSUME_YES=1. Details.

Then run your first assessment and watch it live (--log streams the session's commands while they run):

./darkmoon.sh "TARGET: example.com"
./darkmoon.sh --log <session_id>

Prerequisites: Docker & Docker Compose, and an LLM API key (or a local model). GPU setup, environment variables and the full flags reference live in the Full Documentation.


Feature grid

🧠 50 specialist agents One agentic system reasons, plans and dispatches specialist agents across every surface it discovers.
🌐 Every surface Web, APIs, Active Directory, Kubernetes, cloud (AWS, Azure, GCP), CI/CD, databases, IoT firmware and AI/LLM endpoints, chained end to end.
🔒 Privacy Gateway Reversible local tokenization turns real IPs, hosts, URLs and credentials into deterministic placeholders, rehydrated only locally at the moment a tool runs.
🏠 Local model Run the whole assessment on a local LLM (Ollama, llama.cpp) so your infrastructure values stay on your own perimeter.
🧾 Evidence, not scores Every finding ships with the exact command and raw output; the Pro retest re-runs the exploit to confirm a fix.
🛡️ Security by design The AI never runs a command directly, every action flows through a controlled, logged MCP interface.
🤖 Pentests your AI too A dedicated LLM agent probes AI/LLM inference endpoints for the OWASP LLM Top 10 with garak-backed probes.
♾️ CI/CD native Trigger a pentest in the pipeline and get findings back as artifacts.
🔌 MCP Orchestrate 140+ offensive tools over MCP.
🔧 Fix it (Pro) The paid Pro tier turns findings into human-reviewed pull requests, retested against the original exploit.

Built for security teams, DevSecOps engineers, red teamers and ethical hacking professionals.


Terminal Explorer, attack paths and reports (Community)

  • Terminal Explorer. Type /explore in the Darkmoon console (or press <leader>d) for a read-only view of projects, campaigns, findings, the Prioritized Treatment Plan, the framework assessment, attack paths and reports. It reads the local store, makes no model call and masks evidence before display. Docs
  • Attack paths (architecture D). Agents may declare that one finding enabled another; the server validates each declaration and labels a path by its weakest link: Evidence-Backed only when every step is supported by the server's own records, otherwise Possible. Community has no observation layer, so every path it shows is a Possible Attack Path (declared by an agent or inferred from the topology), a lead and never a proof. Docs · Research
  • Markdown reports. Every campaign gets a local Markdown report (darkmoon-report/v2): Cyber Score, coverage, treatment plan, framework assessment, attack paths, findings with their raw evidence, and limitations. The only model-written prose, the executive summary, is labelled « not verified by the server ». Docs
  • Privacy: prompt tokenization. The console plugin conf/plugins/darkmoon-privacy.ts replaces real values in each message you type with the same placeholders the Privacy Gateway uses for tool calls and outputs, before the model sees it, and fails closed. Only values its detectors recognise are replaced. Docs

Terminal Explorer captures: see the open source engine above.


🧩 DarkMoon everywhere

DarkMoon integrations: GitHub, GitLab, Jenkins, VS Code, JetBrains, n8n, Grafana, Splunk — OSS + Pro

Run DarkMoon where you already build — in CI/CD, your IDE, automation and SecOps. Integrations marked OSS + Pro work with the open-source edition (local CLI + JSON); the Pro-only ones consume the DarkMoon Pro REST API (live dashboard, remediation→PR).

Platform What it does Get it Edition Tutorial
GitHub Actions Fail the pipeline on findings by severity GitHub Marketplace OSS + Pro ▶ Watch
GitLab CI/CD Findings as Code Quality + SAST reports CI/CD Catalog OSS + Pro ▶ Watch
Jenkins Findings as Warnings-NG issues in the build Plugin .hpi (Releases) OSS + Pro ▶ Watch
VS Code Browse and launch assessments from the editor VS Code Marketplace OSS + Pro ▶ Watch
JetBrains Findings in an IDE tool window JetBrains Marketplace OSS + Pro ▶ Watch
n8n Automate campaigns, retests and alerts npm n8n-nodes-darkmoon Pro ▶ Watch
Grafana Security-posture dashboards Self-host (Releases) Pro ▶ Watch
Splunk SOC ingestion (HEC) + "Send to Darkmoon" alert action App (Releases) — Splunkbase pending OSS + Pro ▶ Watch
SDK / CLI Build your own integration on the shared contract npm @darkmoon_ai/client OSS + Pro ▶ Watch

Every integration emits safe metadata only (severity, status, MITRE, ids) — never evidence, secrets or tokens. Full guides on docs.dark-moon.org; source under ASCIT31.


🔒 Darkmoon Pro — paid edition: web dashboard and automated remediation

🔒 These are Darkmoon Pro features (paid). The open source edition is the CLI shown above; the web dashboard and the automated remediation to pull requests are not in the open source build.

The screenshots below are the paid Darkmoon Pro web dashboard. They are not part of the open source repository you clone. The open source edition is the command line tool shown in the section above.

Darkmoon Pro campaign map of the anonymised OWASP Juice Shop campaign: Internet, Edge, Application and Data zones holding 43 assets (target host, open ports, technologies, API routes and endpoints, databases), edges labelled contains, stack, endpoint, runs and root, and per-asset finding counts with the Juice Shop Express application carrying 8 findings

Pro: campaign map. Every asset the agents found, placed in its zone (Internet, Edge, Application, Data) and wired with labelled edges (contains, stack, endpoint, runs, root), with the finding count on each asset. Shown here: an anonymised real OWASP Juice Shop campaign, 43 assets and 57 findings.

Darkmoon Pro orbital 3D infrastructure map of the OWASP Juice Shop campaign: assets on Internet and Edge, Application and Data rings, with API routes such as /rest/user, /api/Users and /api/Feedbacks, Prometheus Metrics, FTP Directory, Swagger UI, JWT Public Key, Application Config and the Juice Shop Express application with 8 findings labelled with their finding counts, and the list of eleven inferred attack paths and 43 assets in the side rail

Pro: orbital 3D infrastructure map. The same campaign as a three.js scene: assets on Internet / Edge, Application and Data rings, the assets that carry findings labelled with their counts, and the attack paths in the side rail. Renders in the browser and in VR.

Darkmoon Pro attack paths view of the OWASP Juice Shop campaign: eleven possible attack paths marked Inferred in the side rail, an explanation that no path could be proven from the evidence, and the first inferred path drawn as a dashed three-step route on the zoned map

Pro: attack paths. Paths are labelled by provenance: proven paths come from chained evidence, possible paths are inferred from topology and confirmed findings and are marked Inferred, never shown as proof. The selected path is drawn step by step on the map.

Darkmoon Pro dashboard: 3 projects, 3 targets, 14 campaigns and 371 vulnerabilities, vulnerabilities by severity with percentages, a security posture table with Cyber Score grade, latest assessment and first action per project (OWASP Juice Shop first), and the start of the Last campaigns table with per-severity counts, risk, date and comparison with the previous scan

Pro: live web dashboard with campaign history. Projects, targets, campaigns and vulnerabilities at a glance, findings split by severity, a security posture table giving each project its Cyber Score grade, latest assessment and first treatment action, and every campaign with its counts and a comparison with the previous scan.

Darkmoon Pro project sunburst of the OWASP Juice Shop project: latest campaign of 29 Sep with 31 findings across 37 assets, rings from Internet to the host, service, application and one segment per finding coloured by severity, assets with no finding in green, and a Findings per campaign chart tracking critical, high, medium and low counts across 11 campaigns from 26 Apr to 29 Sep

Pro: project sunburst and history. The latest campaign at a glance, from the zone in the centre out to host, service, application and one segment per finding coloured by severity, and Findings per campaign tracking how the counts move over time. Here: 11 anonymised real campaigns against OWASP Juice Shop.

Darkmoon Pro campaign overview: campaign header with Map, Attack paths, Findings, Overview and Reports tabs, status chips, and an executive Cyber Score block with grade, what holds the grade, the weakness classes that weigh most, and the first three actions

Pro: campaign overview with an executive Cyber Score. The campaign header (map, attack paths, findings, reports) above an executive block: grade out of 100, what holds the grade, which weakness classes weigh most, and the first actions to take.

Darkmoon Pro prioritized treatment plan: one action per weakness class and asset, status chips from proposed to reproduced at retest, and a table with findings, attack paths, controls, priority and verification status per action

Pro: prioritized treatment plan. One action per weakness class and asset, ranked by priority, with the findings, attack paths and controls it addresses, and a tracked status from proposed through retest verification, risk accepted or deferred.

Darkmoon Pro Security Assessment Report in the browser: contents rail, report header with risk, target, date and finding count, Export PDF, Markdown and Frameworks buttons, and thirteen section tabs from Cyber Score to Limitations

Pro: exportable assessment reports. A full Security Assessment Report in the browser (Cyber Score, executive summary, critical risks, framework assessment, treatment plan, attack paths, detailed findings, evidence and limitations), exportable to PDF and Markdown.

Darkmoon Pro finding detail: asset tree rail with exploited findings, a critical SQL injection with Exploited status and CVSS 9.8, description, evidence and a details rail with CVSS vector, endpoint, asset and agent

Pro: findings with CVSS, proof and ATT&CK mapping. Each finding sits in its asset tree with severity, proof status (Exploited), CVSS score and vector, evidence, remediation, classification (MITRE ATT&CK, ISO 27001) and a link to its attack path.

Darkmoon Pro frameworks technical assessment: ISO 27001 Annex A, GDPR Art. 32 and 25, NIS2 Art. 21(2) and EU AI Act cards with controls assessed, weakness observed, none observed, not tested and not assessable counts, plus ATT&CK techniques and Annex A controls tiles

Pro: frameworks technical assessment. Findings mapped to ISO 27001 Annex A, GDPR, NIS2 and the EU AI Act, with per-framework counts of controls with a weakness observed, none observed, not tested and not assessable, plus ATT&CK technique coverage. A technical reading of one tested scope, not an audit.

Darkmoon Pro campaign scheduler: target field with Schedule, Details, Attack Strategy, Settings and Remediation options, a schedule panel with date, time and recurrence, and the list of scheduled campaigns

Pro: scheduled recurring runs. Pick a target, a date and a recurrence, set the attack strategy, settings and remediation, and Darkmoon runs the campaign automatically.

🔒 Pro: from finding to fix (automated remediation, paid)

🔒 Paid Pro feature. The open source engine finds and proves vulnerabilities. Automated remediation into pull requests is available only in Darkmoon Pro.

In the paid Pro tier, every finding flows finding → sandbox-validated fix → human-reviewed pull request, retested against the original exploit, and is never auto-merged. On our OWASP Juice Shop demo run, the Pro remediation agent fixed findings end-to-end with a clean live exploit-retest (a fix only counts when the original exploit is re-run and confirmed closed). See the remediation benchmark, the remediation agent docs and the 57 open PRs on ASCIT31/juice-shop.

Watch the demo of the Darkmoon Pro web dashboard running a full autonomous penetration test

▶️ Watch the demo (shows the Darkmoon Pro web dashboard)

🔒 Pro: deploy on any cloud in one click — no box, no marketplace

🔒 Paid Pro feature. The open source edition is the CLI shown above. One-click cloud provisioning ships with Darkmoon Pro (a valid Pro license key is required) and is not part of the open source build.

AWS     Google Cloud     Azure     OVHcloud

"Do you sell a hardware box?" No. One command turns any cloud VM into a dedicated Darkmoon Pro appliance in your own tenancy — it creates the machine, opens the dashboard port and installs everything for you. No proprietary hardware, no cloud marketplace, no lock-in — the same packaged Docker images run on every cloud and on your own bare metal.

# one command, from your cloud's browser shell (AWS / GCP / Azure / OVH)
curl -fsSL https://portal.dark-moon.org/deploy | bash -s -- aws --license <KEY> --api-key <LLM_KEY>

What is DarkMoon?

DarkMoon is an open-source AI penetration testing platform. Point it at a target you are authorized to test, and it runs the whole assessment on its own: it reasons, plans, and dispatches 50 specialist agents that execute real offensive operations through a controlled MCP layer, then reports every vulnerability with the exact command, the raw output and the proof behind it.

It does not replace the pentester. It clears the repetitive part of an assessment with evidence, so your experts spend their time on judgment, not toil.


📊 Benchmark: 57 real vulnerabilities on OWASP Juice Shop

A single black-box run against OWASP Juice Shop with Claude Opus 4.6 (Anthropic, cloud frontier model), made by the Darkmoon team on 2026-04-26. It has not been independently reproduced, and only a summary page is published (no raw run evidence); our research repository records it with evidence label UNKNOWN (EXP-004). DarkMoon also runs fully local (Ollama / llama.cpp) behind the Privacy Gateway — so nothing leaves your infrastructure; local-model coverage depends on the model you run.

Metric Result
Vulnerabilities found 57 (8 critical / 24 high / 21 medium / 4 low)
Wall-clock time 28.5 min
Proof-of-exploitation command + raw output per finding
LLM Claude Opus 4.6 (Anthropic, cloud); local models supported

Source: the run page in ASCIT31/Darkmoon-Benchmarks, which includes a dated correction note on its sources. You can run DarkMoon against your own Juice Shop instance and compare.

🆚 How DarkMoon compares

DarkMoon strix shannon PentAGI
Runs on local LLM (data never leaves) ✅ ❌ cloud ❌ cloud partial
Privacy Gateway (local tokenization) ✅ ❌ ❌ ❌
Active Directory + Kubernetes ✅ ❌ ❌ partial
Proof-of-exploitation ✅ ✅ ✅ ✅
Open source ✅ AGPL-3.0 ✅ ✅ ✅

Compiled from public repos/docs (2026-08); corrections welcome via PR.


How It Works

DarkMoon operates as a strategic AI security agent orchestrator aligned with ISO 27001, NIST SP 800-115, and MITRE ATT&CK methodologies.

When you provide a target, the platform automatically:

  1. 🔍 Discovers the target environment (ports, services, protocols)
  2. 🧠 Fingerprints the technology stack (frameworks, CMS, APIs)
  3. 🎯 Models the attack surface
  4. 🚀 Deploys specialized sub-agents based on detected technologies
  5. 🔬 Executes an intelligent vulnerability scanning loop with reactive adaptation
  6. ✅ Validates findings with evidence (requests, payloads, responses)
  7. 📝 Generates a structured audit report

Sub-Agent Orchestration

DarkMoon dynamically selects and dispatches specialized agents depending on the technologies discovered:

Detected Technology Agent Triggered
WordPress, Drupal, Joomla, Magento, PrestaShop, Moodle CMS-specific agent
PHP, Node.js, Flask, ASP.NET, Spring Boot, Ruby on Rails, Go Stack-specific agent
GraphQL GraphQL agent
LLM / AI inference endpoint (OpenAI-compatible, Ollama, vLLM, TGI) LLM agent
Active Directory AD agent
Kubernetes Kubernetes agent
AWS, Azure, GCP Cloud-provider agent
Entra ID (Microsoft identity) Identity agent
GitHub, GitLab, Jenkins SCM & CI/CD agent
Terraform, Ansible Infrastructure-as-Code agent
Docker, container registries Container agent
HashiCorp Vault Secrets agent
PostgreSQL, MySQL, MSSQL, Oracle Database agent
Redis, RabbitMQ, Kafka, MQTT Messaging & cache agent
Firmware / IoT images Firmware agent
Headless browser required Headless browser agent

Multiple agents can execute in parallel across hybrid architectures.

Planes that require credentials to be meaningful (cloud accounts, CI/CD, secret stores, databases, Active Directory, Kubernetes) are never dispatched on inference. They fire only when a concrete artifact is found (a key, a token, a reachable metadata endpoint) or when you authorize them explicitly, and are otherwise flagged in the report.

The orchestrator dispatches its specialists natively, through opencode's task tool: it picks from the list of installed agents (name and description), and each specialist runs with its own playbook.

Custom agents. The shipped agents always come from the image, so an update always brings their new version. Put your own agents in darkmoon-settings/agents/: a new file adds an agent; a file named like a shipped one (for example aws.md) replaces it. To customise a shipped agent, copy it there and edit it:

docker compose exec opencode cat /opt/darkmoon/default-agents/aws.md > darkmoon-settings/agents/aws.md
docker compose restart opencode

Upgrading an older install: at the first start, darkmoon-settings/agents is backed up to darkmoon-settings/agents-backup-<date>/, unmodified copies of shipped agents are removed from it, and your modified files are kept and listed in the start log. An old docker-compose.yml that still mounts the agents folder keeps working with a warning: run git pull, then docker compose up -d.

Note: For the complete list of agents, their structure, lifecycle, and how to create custom agents, see Full Documentation, AI Agents.

Architecture Overview

User ──> DarkmoonCLI ──> OpenCode (AI Brain) ──> MCP (Security Gatekeeper) ──> Docker Toolbox (Real Tools)
sequenceDiagram
  participant U as User
  participant O as OpenCode
  participant A as AI Agent
  participant M as MCP Darkmoon
  participant T as Docker Toolbox

  U->>O: User prompt
  O->>A: Delegate task
  A->>M: MCP function call
  M->>T: Execute real tool
  T-->>M: Results
  M-->>A: Structured output
  A-->>O: Next decision
  O-->>U: Summary / result
Loading

The AI reasons and plans. The MCP controls what can be executed. The Toolbox runs isolated tools inside Docker. The AI never directly touches the system, this is security by design.

Note: For the full architecture breakdown (deployment diagrams, network flows, security boundaries), see Full Documentation, Architecture.


Scope Definition

DarkMoon supports flexible scope definition directly from the command line.

Quick pentest (zero config):

./darkmoon.sh "TARGET: http://172.19.0.3:3000"

Bug bounty mode (flags activate automatically):

./darkmoon.sh "TARGET: http://172.19.0.3:3000 PROGRAM=\"Juice Shop\" FOCUS=sqli,xss,idor NOISE=moderate FORMAT=h1"

Key flags include FOCUS, EXCLUDE, CREDS, TOKEN, NOISE, SEVERITY, FORMAT, and more, all interpreted naturally by the AI.

Note: For the complete flags reference, asset types, EXCLUDE/FOCUS free-form syntax, and advanced multi-target scoping, see Full Documentation, Scope Definition.


Integrated Toolbox

DarkMoon ships with a purpose-built Docker image containing 140+ security tools compiled and optimized in a multi-stage build:

Category Tools (examples)
Port scanning Naabu (discovery), nmap (targeted service probes)
Web scanning Nuclei, ffuf, dirb, sqlmap, Arjun, wafw00f
Recon & crawling Subfinder, Katana, Waybackurls, httpx
CMS WPScan, CMSeeK, WhatWeb
Active Directory NetExec, BloodHound, Impacket (30+ scripts)
Kubernetes kubectl, Kubescape, Kubeletctl, kube-bench, rbac-police
Cloud CLIs aws, az, gcloud, gsutil, bq
Databases & cache psql, mysql, redis-cli, sqlite3
Firmware / IoT binwalk, unsquashfs, sasquatch, firmwalker
Cracking hashcat, john, 7z2john
Network Hydra, curl, dig, SNMP tools
Browser Lightpanda (headless)

All tools are directly accessible, no path configuration needed.

Note: For the complete tools list with installation details and how to add new tools, see Full Documentation, Toolbox.


📖 Documentation Guide

DarkMoon's Full Documentation covers everything you need to operate the platform. Here is a quick reference to the most important sections:

Topic What You'll Find Link
GPU & Driver Setup NVIDIA troubleshooting for Docker, WSL, and native Linux GPU Guide
Environment Variables LLM provider configuration, API keys, model selection Environment Config
Startup & Build install.sh behavior, docker compose build, stack management Build & Launch
Scope & Flags TARGET syntax, bug bounty mode, FOCUS/EXCLUDE, credentials Scope Definition
Assessment Workflow Step-by-step: discovery, fingerprinting, agents, reporting Assessment Engine
Real-Time Session Logs Monitor commands executed by the MCP server live Session Logs
AI Agents Agent structure, lifecycle, how to create or modify agents AI Agents
Architecture Deployment diagrams, security boundaries, execution flow Architecture
Toolbox Complete tool list, adding tools, Docker image internals Toolbox
MCP Workflows Workflow structure, creating custom workflows, best practices MCP Workflows
Available Tools List Full table of 142 security tools with paths and sources Tools List
Privacy Gateway Reversible local tokenization of tool calls, outputs and the prompt you type Privacy
Terminal Explorer /explore keys and views, the same data as JSON from a shell Terminal Explorer
Executive security Cyber Score, Prioritized Treatment Plan, framework assessment, report sections Executive security
Attack paths Declared, Evidence-Backed and Possible paths, and their limits Attack paths
Training Labs Recommended vulnerable labs to train DarkMoon Pentester Labs
Remediation Agent (Pro) Findings → sandbox-validated fix → pull request for human review (never merged) Remediation Agent
n8n (Pro) Community node to trigger a pentest, pull findings and review fix PRs from an n8n workflow n8n Node

Research, Benchmarks & Technical Publications

Darkmoon's design choices are documented in the open, negative results included. Statements in the research repositories carry an evidence label (verified, observed, simulated, hypothesis).

Resource Research area Description Links
darkmoon-attack-paths-research Attack paths, evidence and causality How findings are linked into attack paths: architectures A to D, the evidence model, 61 experiments (failures included) and measured limits Repository · Results
darkmoon-visualization-research Data visualization, UX and terminal interfaces Dashboard redesign, attack-path graph layouts, orbital map and the Terminal Explorer, with before/after captures and rejected attempts Repository · Benchmarks
Darkmoon-Benchmarks Benchmarks LLM pentest study on OWASP Juice Shop, per-configuration results and individual runs, including the 57-finding Claude Opus 4.6 run Repository · Juice Shop run
darkmoon-research Evidence corpus Lab reports across cloud, identity, CI/CD, IaC, databases and IoT firmware, validated on public labs Repository
darkmoon-attack-surface-research Attack-surface visualization Earlier research notes on spatial, progressive, WebXR-capable attack-surface views (no source code) Repository
darkmoon-integrations-docs Integrations Integration guides across CI/CD, IDEs, automation and SecOps Guides · GitHub Action (OSS) · darkmoon-action · Jenkins · GitLab · MCP server · SDK
docs.dark-moon.org Documentation Online product documentation Docs
demo.dark-moon.org Demo Live demo of the Darkmoon Pro web interface on synthetic data Demo

Technical Articles & Research Notes

The research series on the Darkmoon blog (English): A architecture and attack paths (1–8), B data visualization and UX (9–13), C OpenCode and TUI (14–17), D open source and licence (18–20), E website and recognition (21–23).

Article Research Topic Related GitHub Repository Benchmarks / Evidence Read Article
1. From Vulnerability Findings to Attack Paths: DarkMoon's Research Journey Attack-path architectures A→D darkmoon-attack-paths-research Experiment registry Read
2. Agent-Native Attack Graphs: Why We Let AI Agents Declare Dependencies Agent-declared dependencies darkmoon-attack-paths-research Agent-native graphs Read
3. Attack Graphs, Knowledge Graphs and Causal Reasoning: What Is Actually Different? Attack graphs vs knowledge graphs vs causality darkmoon-attack-paths-research Scientific positioning Read
4. Building an Expert-System-Inspired Architecture with LLM Agents Expert systems and LLM agents darkmoon-attack-paths-research Expert-system notes Read
5. Why Our First Attack-Path Architectures Failed Negative results darkmoon-attack-paths-research Failed experiments Read
6. Declared vs Proven Attack Paths: A Practical Evidence Model Evidence model: declared vs proven darkmoon-attack-paths-research Evidence model Read
7. Measuring Attack-Path Reliability: Benchmarks, False Positives and Limitations Reliability, false positives, limits darkmoon-attack-paths-research Measured results Read
8. Cross-Agent Dependencies and the Common-Root-Cause Problem Cross-agent links, common root cause darkmoon-attack-paths-research Measured results Read
9. Redesigning a Cybersecurity Dashboard Around Attack Paths Dashboard redesign around attack paths darkmoon-visualization-research · darkmoon-attack-paths-research Angular evolution Read
10. Visualizing Cyber Attack Paths: From Node-Link Diagrams to Orbital Graphs Attack-path graph layouts (2D to orbital) darkmoon-visualization-research · darkmoon-attack-paths-research Graph layouts Read
11. Progressive Disclosure in Vulnerability Management Interfaces Progressive disclosure (HCI) darkmoon-visualization-research HCI notes Read
12. Designing Explainable Security Graphs Without Misrepresenting Evidence Explainable graphs, evidence labels darkmoon-visualization-research · darkmoon-attack-paths-research Data visualization Read
13. Our UI Experiments: What Worked, What Failed and Why UI experiments and rejections darkmoon-visualization-research Failed UI experiments Read
14. Bringing DarkMoon to the Terminal: Building an OpenCode Explorer Terminal Explorer (OpenCode plugin) darkmoon-visualization-research · darkmoon-attack-paths-research TUI architecture Read
15. From Angular to TUI: Designing Two Interfaces Around the Same Security Data One data model, two interfaces darkmoon-visualization-research Terminal interfaces Read
16. Designing a Premium Terminal Interface with OpenTUI Terminal UI design (OpenTUI) darkmoon-visualization-research TUI iterations Read
17. Visualizing Attack Paths in ASCII and Unicode Attack paths in ASCII / Unicode darkmoon-attack-paths-research · darkmoon-visualization-research TUI rendering Read
18. Why DarkMoon Community Is Moving from GPLv3 to AGPLv3 Licensing: GPLv3 to AGPLv3 darkmoon-attack-paths-research · darkmoon-visualization-research LICENSING.md Read
19. AGPLv3, Open Source and Commercial Editions: Understanding the Tradeoffs Open source and commercial editions darkmoon-attack-paths-research LICENSING.md Read
20. Building DarkMoon in the Open: Research, Benchmarks, Failures and Reproducibility Open research and reproducibility darkmoon-attack-paths-research · darkmoon-visualization-research Darkmoon-Benchmarks Read
21. Our Website dark-moon.org Receives an Awwwards Honorable Mention Website recognition (Awwwards) darkmoon-visualization-research · darkmoon-attack-paths-research — Read
22. Behind the Honorable Mention: the Design and Engineering of dark-moon.org Website design and engineering darkmoon-visualization-research · darkmoon-attack-paths-research — Read
23. From an Award-Winning Website to the Product: How dark-moon.org's Visual Research Shapes the DarkMoon Dashboard and Terminal Explorer From website to product interfaces darkmoon-visualization-research · darkmoon-attack-paths-research Before/after captures Read

Use Cases

DarkMoon is designed as a versatile security testing platform for:

  • 🔒 Security teams, run continuous automated penetration testing across your infrastructure
  • ⚙️ DevSecOps pipelines, integrate AI-driven security research into CI/CD workflows
  • 🎯 Bug bounty hunters, accelerate ethical hacking with autonomous target analysis
  • 🔬 Security researchers, explore attack surfaces with an AI cybersecurity platform that adapts in real time
  • 🎓 Training & education, learn offensive security with guided, reproducible assessments

Example Prompts

# Web application pentest
./darkmoon.sh "TARGET: http://172.19.0.3:3000"

# Active Directory assessment
./darkmoon.sh "TARGET: 192.168.1.10"

# Bug bounty with specific focus
./darkmoon.sh "TARGET: https://app.example.com PROGRAM=\"Example BB\" FOCUS=sqli,rce,ssrf EXCLUDE=H1 FORMAT=h1"

Note: For more prompt examples including DVGA, Juice Shop, and headless browser scenarios, see Full Documentation, Prompt Examples.


Contributing

DarkMoon is open source and welcomes contributions. Whether you want to add new agents, integrate tools, create workflows, or improve documentation, see CONTRIBUTING.md for guidelines.


License

Darkmoon Community is licensed under the GNU Affero General Public License v3.0 (AGPL-3.0-only). See LICENSE and LICENSING.md for what this means for users, service operators and contributors. master is under the AGPL-3.0 since 19 November 2026 (PR #59); v1.7.0 (20 November 2026) is the first AGPL release. Every commit up to edfe9cb (27 October 2026), including release v1.6.0, remains under the GNU GPL v3.0.


Built by ASC-IT with 💚 for the global security community

🔒 Open Source · 🤖 AI-Powered · 🇫🇷 Made in France

⭐ Star us on GitHub · 📖 Full Documentation · ▶️ Watch the Demo (Pro dashboard)

About

Open-source autonomous AI penetration testing. 50 specialist agents across web, API, cloud, Active Directory, Kubernetes, CI/CD and AI/LLM (OWASP LLM Top 10), with an evidence-checked attack-path graph. Runs on a local LLM behind a Privacy Gateway. Integrates with GitHub, GitLab, Jenkins, VS Code, JetBrains, n8n, Grafana & Splunk.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

1.3k stars

Watchers

12 watching

Forks

Releases

Packages

Contributors

Languages