Sploitus

Exploit for Cybermes

githubexploit Β· 2026-08-19

Exploit Code

README369 lines
## https://sploitus.com/exploit?id=F8A13780-FD9A-5B0A-B49E-B32BAE77C6D0
# πŸ›‘οΈ Cybermes

### **Autonomous Offensive Security, Bug Bounty & Red Teaming Agent Framework**

[![License: Strict Source-Available](https://img.shields.io/badge/License-Source--Available%20Non--Commercial%20%26%20No--Derivatives-red.svg)](LICENSE)
[![Python: 3.11+](https://img.shields.io/badge/Python-3.11+-blue.svg)](https://www.python.org/)
[![Docker: Ready](https://img.shields.io/badge/Docker-Supported-2496ED.svg)](docker-compose.yml)
[![Hermes: Powered](https://img.shields.io/badge/Hermes%20Agent-Core-purple.svg)](https://github.com/anthropics)
[![Security: Authorized Scope](https://img.shields.io/badge/Security-Authorized%20Testing%20Only-brightgreen.svg)](scope.yaml)


  Cybermes is an enterprise-grade, autonomous security research agent designed for high-signal reconnaissance, attack surface discovery, authenticated vulnerability research, zero-false-positive exploit validation, and automated CVSS v3.1 reporting.





---

## πŸ“‘ Table of Contents

- [Overview](#-overview)
- [Architecture & Core Engine](#-architecture--core-engine)
- [Operational Methodology (Phases 1–6)](#-operational-methodology-phases-16)
- [Offensive Skills Layer (50+ Modules)](#-offensive-skills-layer-50-modules)
- [Integrated Security Knowledge Base](#-integrated-security-knowledge-base)
- [Toolchain & Integration](#-toolchain--integration)
- [Repository Structure](#-repository-structure)
- [Installation & Quick Start](#-installation--quick-start)
  - [Method 1: Docker & Docker Compose (Recommended)](#method-1-docker--docker-compose-recommended)
  - [Method 2: Native Host Setup](#method-2-native-host-setup)
- [Configuration & Scope Rules](#-configuration--scope-rules)
- [Local Validation with Mock Target](#-local-validation-with-mock-target)
- [βš–οΈ License & Strict Usage Terms](#️-license--strict-usage-terms)
- [⚠️ Legal & Ethical Disclaimer](#️-legal--ethical-disclaimer)
- [πŸ‘₯ Contributors](#-contributors)

---

## πŸ“– Overview

**Cybermes** bridges modern LLM reasoning with automated offensive security workflows. Built upon the **Hermes Agent** runtime, it empowers security teams and researchers to conduct deep, context-aware security assessments within authorized boundaries.

Unlike traditional heuristic scanners that generate noisy alerts, Cybermes combines:
- **Autonomous Multi-Step Reasoning**: Dynamically formulates attack plans based on observed server technologies and response signatures.
- **Deep Skill Matrix**: 50+ domain-specific skills covering authorization, business logic, injections, cryptographic flaws, and cloud vectors.
- **Multi-Source Knowledge Retrieval**: Integrated offline knowledge bases from *PayloadsAllTheThings*, *HackTricks*, *Claude-BugHunter*, and *Strix*.
- **Client-Side & Browser MCP Automation**: Full browser interaction via Playwright / Chromium for DOM inspection, SPA routing, and headless client verification.
- **Zero-Noise PoC Validation**: Every finding is validated programmatically with executable proof scripts before entering the final report.

---

## πŸ›οΈ Architecture & Core Engine

```text
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚                          CYBERMES CORE ENGINE                          β”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚  [ Operator Prompt / Target Queue ]  ──>  [ Scope Validator: scope.yaml ]
β”‚                                                     β”‚
β”‚                                                     β–Ό
β”‚  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”  β”‚
β”‚  β”‚                    Hermes Reasoning Loop                         β”‚  β”‚
β”‚  β”‚  - Context Window Memory       - Multi-Model LLM Orchestration   β”‚  β”‚
β”‚  β”‚  - Action Planning & Recovery  - Decision Confidence Grading     β”‚  β”‚
β”‚  β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜  β”‚
β”‚          β”‚                                         β”‚                   β”‚
β”‚          β–Ό                                         β–Ό                   β”‚
β”‚  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”             β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”  β”‚
β”‚  β”‚   50+ Security Skills   β”‚             β”‚  Curated Knowledge Base  β”‚  β”‚
β”‚  β”‚  - IDOR / BOLA / Auth   β”‚             β”‚  - PayloadsAllTheThings  β”‚  β”‚
β”‚  β”‚  - SSRF / XSS / SQLi    β”‚  β”‚  - HackTricks Wiki       β”‚  β”‚
β”‚  β”‚  - Cloud / K8s / SAML   β”‚             β”‚  - Claude-BugHunter      β”‚  β”‚
β”‚  β”‚  - Prompt Injection     β”‚             β”‚  - Strix Multi-Agent DB  β”‚  β”‚
β”‚  β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜             β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜  β”‚
β”‚          β”‚                                         β”‚                   β”‚
β”‚          β–Ό                                         β–Ό                   β”‚
β”‚  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”  β”‚
β”‚  β”‚                  Security Toolchain & MCP Bridge                 β”‚  β”‚
β”‚  β”‚  β€’ Recon: subfinder, amass, assetfinder, httpx                   β”‚  β”‚
β”‚  β”‚  β€’ Mining & Crawling: katana, gau, waybackurls, arjun            β”‚  β”‚
β”‚  β”‚  β€’ Fuzzing & Exploitation: ffuf, sqlmap, dalfox, nuclei, nmap    β”‚  β”‚
β”‚  β”‚  β€’ Headless Browser MCP: Chromium Playwright DOM Automation      β”‚  β”‚
β”‚  β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜  β”‚
β”‚                                     β”‚                                  β”‚
β”‚                                     β–Ό                                  β”‚
β”‚              [ Validated PoC Scripts & CVSS v3.1 Report ]              β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
```

---

## πŸ”„ Operational Methodology (Phases 1–6)

Cybermes operates through a structured six-phase pipeline:

```text
Phase 1: Recon & Port Surface     ──> Subdomain enumeration, DNS resolution, port probing
Phase 2: Endpoint & URL Mining   ──> Active crawling, historical URL scraping, SPA analysis
Phase 3: Fuzzing & Parameter Hunt ──> Directory discovery, hidden parameter mining, JS secret audit
Phase 4: Vulnerability Analysis   ──> Nuclei templating, OOB callback verification, DOM XSS checks
Phase 5: Logic, Auth & IDOR       ──> Dual-account matrix testing, JWT abuse, privilege escalation
Phase 6: Verification & Reporting ──> Reproducible PoC script execution, CVSS v3.1 scoring, remediation
```

1. **Phase 1 β€” Reconnaissance & Asset Discovery**: Subdomain discovery (`subfinder`, `amass`), DNS resolution, and live endpoint probing (`httpx`).
2. **Phase 2 β€” Content, URL & SPA Mining**: Active crawling (`katana`), historical URL scraping (`gau`, `waybackurls`), stream deduplication, and browser rendering for SPAs (React, Vue, Angular).
3. **Phase 3 β€” Parameter Discovery & Fuzzing**: Directory/vhost fuzzing (`ffuf`, `feroxbuster`), hidden parameter identification (`arjun`), and client-side JavaScript secret hunting.
4. **Phase 4 β€” Automated Testing & Callback Verification**: Targeted `nuclei` evaluation, Out-of-Band callback checks (`interactsh`) for blind SSRF/RCE, and DOM-level browser evaluation.
5. **Phase 5 β€” Business Logic, Auth & IDOR**: Dual-session testing across permission boundaries, token replay, mass assignment, and tenant boundary validation.
6. **Phase 6 β€” Verification & Structured Reporting**: End-to-end Python PoC verification, CWE mapping, CVSS v3.1 vector calculation, and remediation advisory generation.

---

## 🎯 Offensive Skills Layer (50+ Modules)

Cybermes bundles 50+ domain-specific offensive security skills:

| Category | Skills Included |
| :--- | :--- |
| **Authentication & Authorization** | `authbypass-authentication-flaws`, `api-authorization-and-bola`, `hunt-idor`, `business-logic-and-idor`, `hunt-ato`, `oauth-oidc-misconfiguration`, `hunt-jwt-crypto`, `saml-sso-assertion-attacks`, `hunt-saml` |
| **Web Injections & XSS** | `sqli-sql-injection`, `hunt-sqli`, `xss-cross-site-scripting`, `hunt-xss`, `prototype-pollution`, `prototype-pollution-advanced`, `ssti-server-side-template-injection`, `expression-language-injection`, `xslt-injection` |
| **Server-Side & Network Flaws** | `ssrf-server-side-request-forgery`, `hunt-ssrf`, `hunt-rce`, `hunt-race-condition`, `request-smuggling`, `http-parameter-pollution`, `hunt-host-header`, `csrf-cross-site-request-forgery`, `clickjacking` |
| **Reconnaissance & OSINT** | `recon-and-methodology`, `web2-recon`, `fuzzing-and-content-discovery`, `js-recon-secret-hunting`, `api-recon-and-docs`, `offensive-osint`, `subdomain-takeover`, `hunt-shadow-api` |
| **Cloud & Infrastructure** | `kubernetes-pentesting`, `hunt-k8s`, `m365-entra-attack`, `okta-attack`, `vmware-vcenter-attack`, `enterprise-vpn-attack`, `supply-chain-attack-recon`, `network-protocol-attacks` |
| **AI & LLM Security** | `llm-prompt-injection`, `hunt-rag-vector`, `ai-api-gateway-security` |
| **Reporting & Triage** | `report-writing`, `bugcrowd-reporting`, `redteam-report-template`, `triage-validation`, `evidence-hygiene` |

---

## πŸ“š Integrated Security Knowledge Base

The repository includes curated knowledge repositories located under `knowledge/`:

- **PayloadsAllTheThings**: Comprehensive repository of payloads, filter bypasses, and injection cheatsheets across 50+ vulnerability types.
- **HackTricks**: Industry-standard penetration testing wiki covering service enumeration, web exploitation, lateral movement, and privilege escalation.
- **Claude-BugHunter**: Specialized engagement patterns, automated triage playbooks, and assessment strategies.
- **Strix Knowledge**: Multi-agent collaborative security coordination patterns and technology fingerprints.

---

## 🧰 Toolchain & Integration

| Tool | Purpose | Integration Type |
| :--- | :--- | :--- |
| `nuclei` | Fast and customizable vulnerability scanning | Native Binary CLI |
| `httpx` | Fast multi-purpose HTTP probing tool | Native Binary CLI |
| `subfinder` | Fast passive subdomain enumeration | Native Binary CLI |
| `katana` | Next-generation crawling & spidering engine | Native Binary CLI |
| `ffuf` | High-speed web fuzzer | Native Binary CLI |
| `sqlmap` | Automated SQL injection & database takeover | Integrated Source Engine |
| `strix` | Multi-agent autonomous penetration testing | Integrated Framework |
| `dalfox` | Parameter analysis and XSS scanner | Native Binary CLI |
| `nmap` | Network exploration and port scanning | System Wrapper |
| `Playwright` | Headless browser automation for DOM/SPA testing | Node.js MCP Server |

---

## πŸ“ Repository Structure

```text
Cybermes/
β”œβ”€β”€ .dockerignore                     # Docker build exclusions
β”œβ”€β”€ .env.example                      # Configuration template (keys, endpoints, limits)
β”œβ”€β”€ .gitignore                        # Git safety rules (protects credentials, DBs, binaries)
β”œβ”€β”€ Dockerfile                        # Multi-stage security container build definition
β”œβ”€β”€ docker-compose.yml                # Docker compose orchestration and volume mounts
β”œβ”€β”€ entrypoint.sh                     # Container runtime entrypoint
β”œβ”€β”€ env.sh                            # Host environment activation script
β”œβ”€β”€ hermes                            # Host execution wrapper
β”œβ”€β”€ bin/
β”‚   └── hermes                        # CLI shortcut script
β”œβ”€β”€ knowledge/                        # Curated offensive security knowledge base
β”‚   β”œβ”€β”€ Claude-BugHunter/             # Bug hunting methodologies
β”‚   β”œβ”€β”€ PayloadsAllTheThings/         # Cheatsheets and payloads
β”‚   β”œβ”€β”€ hack-skills/                  # Specialized attack playbooks
β”‚   β”œβ”€β”€ hacktricks/                   # Pentesting wiki & escalation guides
β”‚   └── strix-skills/                 # Multi-agent coordination knowledge
β”œβ”€β”€ assets/                           # Project visual assets & social preview banner
β”‚   └── banner.jpg                    # High-resolution project banner
β”œβ”€β”€ logs/                             # Execution logs (.gitkeep)

β”œβ”€β”€ mock_vulnerable_app.py            # Local vulnerable test harness for validation
β”œβ”€β”€ output/                           # Scan dumps and dynamic artifacts (.gitkeep)
β”œβ”€β”€ recon/                            # Reconnaissance output directory (.gitkeep)
β”œβ”€β”€ reports/                          # Generated vulnerability reports and PoC scripts
β”‚   β”œβ”€β”€ idor_finding.md               # Example validated finding report
β”‚   └── poc_idor.py                   # Example PoC execution script
β”œβ”€β”€ scope.yaml                        # Scope definition and rules of engagement
β”œβ”€β”€ skills/                           # 50+ Hermes bug bounty skill modules
β”œβ”€β”€ targets/                          # Target asset queue (.gitkeep)
β”œβ”€β”€ templates/
β”‚   └── report_template.md            # Standardized CVSS v3.1 report template
β”œβ”€β”€ tools/                            # Security tools and wordlists
β”‚   β”œβ”€β”€ bin/                          # Binary tool directory (.gitkeep, wrappers)
β”‚   β”œβ”€β”€ sqlmap/                       # SQL injection testing engine
β”‚   β”œβ”€β”€ strix/                        # Autonomous penetration testing framework
β”‚   └── wordlists/                    # Curated fuzzing and discovery wordlists
β”œβ”€β”€ ATTRIBUTION.md                    # Third-party notices and upstream attributions
β”œβ”€β”€ CONTRIBUTORS.md                   # Project contributors and AI co-authors
β”œβ”€β”€ LICENSE                           # Strict Source-Available License terms
└── README.md                         # Project documentation

```

---

## πŸš€ Installation & Quick Start

### Method 1: Docker & Docker Compose (Recommended)

Docker provides an isolated, fully pre-configured environment including Chromium headless browser dependencies, Node MCP servers, and Python toolchains.

1. **Clone the repository:**
   ```bash
   git clone https://github.com/Zyrexnn/Cybermes.git
   cd Cybermes
   ```

2. **Configure your environment:**
   ```bash
   cp .env.example .env
   # Edit .env and supply your LLM Provider endpoint and keys
   ```

3. **Build the Docker container:**
   ```bash
   docker compose build
   ```

4. **Launch an interactive agent session:**
   ```bash
   docker compose run --rm hermes-cybermes
   ```

---

### Method 2: Native Host Setup

For Linux hosts with Python 3.11+:

1. **Activate the environment:**
   ```bash
   source env.sh
   ```

2. **Verify Hermes and toolchain status:**
   ```bash
   ./hermes --help
   ```

---

## βš™οΈ Configuration & Scope Rules

### 1. Environment Settings (`.env`)

```ini
# LLM Provider Configuration
OPENROUTER_API_KEY=your_api_key_here
OPENROUTER_BASE_URL=http://localhost:20128/v1
HERMES_DEFAULT_MODEL=free-stack-copy

# Tool Rate Limiting (Safety Controls)
NUCLEI_RATE_LIMIT=10
SUBFINDER_RATE_LIMIT=10
HTTPX_RATE_LIMIT=50
KATANA_RATE_LIMIT=10
HTTPX_TIMEOUT=30
```

### 2. Scope & Boundaries (`scope.yaml`)

Cybermes validates all requested targets against `scope.yaml`:

```yaml
program: "Authorized Security Assessment"
authorization: "AUTHORIZED"

targets:
  - "http://127.0.0.1:8888"
  - "http://localhost:8888"

allowed:
  reconnaissance: true
  endpoint_discovery: true
  parameter_fuzzing: true
  vulnerability_testing: true
  authenticated_testing: true
  exploit_validation: true
  poc_generation: true
  browser_automation: true

restricted:
  destructive_actions: true
  denial_of_service: true
  data_destruction: true
```

---

## πŸ§ͺ Local Validation with Mock Target

To safely verify Cybermes capabilities locally:

1. **Start the local vulnerable test target:**
   ```bash
   python3 mock_vulnerable_app.py
   ```
   *The server starts listening on `http://127.0.0.1:8888`.*

2. **Instruct Cybermes to assess the target:**
   ```bash
   ./hermes "Assess http://127.0.0.1:8888 based on scope.yaml and validate endpoints."
   ```

---

## βš–οΈ License & Strict Usage Terms

This project is licensed under the **Cybermes Source-Available Non-Commercial & No-Derivatives License (CS-NC-ND)**.

### Summary of Terms:

| Action | Allowed? | Details |
| :--- | :---: | :--- |
| **Clone & Download** | βœ… **YES** | You may freely clone and download the repository. |
| **Read & Inspect Code** | βœ… **YES** | You may view and study the code for educational and research purposes. |
| **Private Non-Commercial Execution** | βœ… **YES** | You may run Cybermes for authorized personal bug bounty and testing. |
| **Modify or Create Derivatives** | ❌ **NO** | You may **NOT** alter, adapt, or create derivative works for redistribution. |
| **Commercial Use / Monetization** | ❌ **NO** | You may **NOT** sell, license, offer as a paid SaaS/service, or commercialize. |
| **Rebranding or Relicensing** | ❌ **NO** | Original authorship, copyright notices, and license terms must remain intact. |

For the full legal text, refer to the [LICENSE](LICENSE) file.

---

## ⚠️ Legal & Ethical Disclaimer

> **IMPORTANT**: Cybermes is developed exclusively for **authorized security testing**, **legitimate bug bounty research**, and **academic security education**.
> 
> Testing against targets without explicit, prior written permission is illegal and strictly prohibited. The authors and contributors assume no liability and are not responsible for any misuse, damage, or legal consequences caused by the use of this software.

---

## πŸ™ Acknowledgments & Upstream Credits

Cybermes stands on the shoulders of giants in the open-source and offensive security research communities. We express our deepest gratitude and recognition to the following researchers, creators, and projects:

| Project / Tool | Author / Maintainer | Role & Contribution to Cybermes |
| :--- | :--- | :--- |
| **[HackTricks](https://github.com/carlospolop/hacktricks)** | [@carlospolop](https://github.com/carlospolop) (Carlos Polop) | Comprehensive privilege escalation, service exploitation & pentesting wiki |
| **[PayloadsAllTheThings](https://github.com/swisskyrepo/PayloadsAllTheThings)** | [@swisskyrepo](https://github.com/swisskyrepo) (Swissky) | Curated collection of web application payloads and bypass vectors |
| **[SQLMap](https://github.com/sqlmapproject/sqlmap)** | Bernardo Damele & Miroslav Stampar | Industry-standard automated SQL injection detection and database takeover engine |
| **[Claude-BugHunter](https://github.com/sachinsharma-96/Claude-BugHunter)** | [@sachinsharma-96](https://github.com/sachinsharma-96) (Sachin Sharma) | Bug bounty engagement patterns, reasoning skills, and automated evaluation |
| **[Strix Framework](https://github.com/strix-security/strix)** | Strix Security Team | Autonomous multi-agent coordination architecture and security tooling |
| **[Hack-Skills](https://github.com/yaklang/hack-skills)** | [@VillanCh](https://github.com/VillanCh) (Yaklang Team) | Domain-specific offensive security playbooks and skill modules |
| **[ProjectDiscovery Suite](https://projectdiscovery.io/)** | ProjectDiscovery Team | Foundation recon & probing tools (`nuclei`, `httpx`, `subfinder`, `katana`) |
| **[FFuF](https://github.com/ffuf/ffuf)** | [@joohoi](https://github.com/joohoi) | High-speed web fuzzer for directory and parameter discovery |

*For complete copyright notices and third-party license details, see [ATTRIBUTION.md](ATTRIBUTION.md).*

---

## πŸ‘₯ Contributors

- **[Zyrexnn](https://github.com/Zyrexnn)** β€” Lead Author & Architect
- **[@claude](https://github.com/claude)** β€” AI Co-Author & Security Architecture Research