swarmhack-cli 2.0.0 → 2.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -2,22 +2,21 @@
2
2
 
3
3
  Neural swarm-based penetration testing framework.
4
4
 
5
- ## What's New in v2.0.0
6
-
7
- **v2.0.0 -- Major Release**
8
-
9
- - **Confidence Calibration System** -- Evidence-based confidence scoring (0.60-1.0) replacing fixed 1.0. Each finding's confidence reflects actual proof quality: heuristic detection (0.60), response pattern match (0.90), marker-based confirmation (0.99), synthesized from confirmed data (1.0).
10
- - **Full Kill Chain Automation** -- Single command executes: external web scan -> credential extraction -> SSH lateral movement -> privilege escalation -> SSH tunnel -> internal target scanning. Zero human intervention.
11
- - **Credential Correlation** -- 12 regex patterns extract credentials from HTML response bodies (SSH creds in admin pages, connection strings, API keys, Bearer tokens). Extracted creds automatically propagated via Intelligence Bus to SSH/auth agents.
12
- - **Privilege Escalation Chain Synthesis (ADR-009)** -- Post-processing creates standalone "www-data -> root" findings from CMDI post-exploitation data (sudo NOPASSWD, SUID binaries, Docker socket).
13
- - **.env File Deep Extraction** -- CMDI agent reads .env files via command injection, parses SSH/DB/API credentials with category classification (ssh_credential, database_credential, api_key, network_topology).
14
- - **Internal Tunnel Scanning (ADR-010)** -- After SSH pivot discovers dual-homed hosts, automatically opens SSH tunnel via portable-pty and spawns new kill chain against internal targets.
15
- - **SSRF CVE Correlation** -- 10-CVE payload map (CVE-2021-44224, ProxyLogon, Log4Shell, etc.). SSRF agent reads vulnerable_components findings and generates CVE-specific exploitation payloads.
16
- - **SQLi Time-Based Confirmation** -- 3-step verification: retry payload, send SLEEP(0) control, confirm only if retry delayed AND control fast. Eliminates jitter false positives.
17
- - **XXE Confidence Grading** -- Tiered confidence: heuristic-only (0.60), marker match (0.90), with deep exploitation output (1.0). OOB callback infrastructure ready (callback_url config).
18
- - **SONA Self-Learning (Phase 1)** -- Optional `--features self-learning` wires ruvector-sona for payload trajectory recording and adaptive recommendations.
19
- - **32 Exploit Agents** -- Added session_fixation, dangerous_methods, pivot, plus enhanced all ADR-003 agents with memory deduplication and Intelligence Bus integration.
20
- - **Smart Pivot Optimization** -- Port-scanned reachable hosts tried first, failed hosts skipped after timeout, SSH ConnectTimeout reduced to 3s for fast iteration.
5
+ ## What's New in v2.1.0
6
+
7
+ **v2.1.0 -- Quality, OCSF Compliance & Service-Driven Discovery Foundation**
8
+
9
+ - **Agent Plugin Registry (ADR-011)** -- Scalable plugin system: adding a new agent is one file + one registry line. 26 plugins registered (23 legacy web agents + nmap scanner + FTP probe + SSH probe). Foundation for 100+ agents.
10
+ - **Nmap-First Port Discovery** -- Every mission starts with nmap port/service discovery (canonical entry point). Discovered services route to the correct agents automatically via ServiceRouter. Falls back to URL-based inference when nmap is unavailable.
11
+ - **FTP & SSH Probe Agents** -- New non-HTTP agents: FTP anonymous login + default credential testing, SSH banner analysis + weak version CVE detection. First protocol-aware agents beyond HTTP.
12
+ - **OCSF 1.1.0 Full Compliance** -- `type_uid` corrected to 600105, `severity_id` added at finding level, crown jewel deduplication by (category, value), findings sorted by generation ascending + risk_score descending.
13
+ - **Crown Jewel Sanitization** -- 5-rule system: short values always full, api_key never truncated, credential summaries up to 200 chars, session tokens format-preserving (`PHPSESSID=abcd...wxyz`), fallback 500-char cap.
14
+ - **False Positive Elimination** -- LFI agent filters PHP payloads on ASP.NET/IIS targets, IDOR agent no longer fabricates synthetic parameters, Default Credentials uses discovered form field names, CVE-2021-31166 version rule narrowed.
15
+ - **Risk Score Calibration** -- Info=1.0, Low=3.0, Medium=5.0, High=7.5, Critical=10.0 base scores. robots.txt now scores ~0.2 (was 0.9), SQLi auth bypass scores ~9.0 (was 5.63).
16
+ - **Security Fixes** -- Shell injection in askpass helper patched, TLS verification restored in file_upload/xxe agents, PII redaction in OCSF reports.
17
+ - **CI Pipeline** -- `cargo test` + `cargo clippy` now run on every push/PR (was build-only).
18
+ - **Version Banner** -- Uses `CARGO_PKG_VERSION` (no more hardcoded v1.0.0).
19
+ - **83 new regression tests** -- 46 for v2.1.0 quality fixes + 37 for ADR-011 Phase 1.
21
20
 
22
21
  ## Installation
23
22
 
@@ -161,7 +160,7 @@ If npm installation fails, use Docker:
161
160
  docker run --rm \
162
161
  -v /var/run/docker.sock:/var/run/docker.sock \
163
162
  -v $(pwd)/reports:/app/reports \
164
- prancer/swarmhack:2.0.0 \
163
+ prancer/swarmhack:2.1.0 \
165
164
  spawn --agents sqli --target "http://example.com" \
166
165
  --customer "your-customer" --token "your-token"
167
166
  ```
@@ -221,7 +220,7 @@ swarmhack spawn \
221
220
  - The `--header` flag is repeatable -- add as many custom headers as needed
222
221
  - All agents (SQLi, XSS, CSRF, etc.) automatically include your custom headers in every request
223
222
 
224
- ## Available Agents (32)
223
+ ## Available Agents (35)
225
224
 
226
225
  | Agent | CWE | Description |
227
226
  |-------|-----|-------------|
@@ -250,6 +249,9 @@ swarmhack spawn \
250
249
  | `vulnerable_components` | CWE-1035 | Version fingerprinting + CVE lookup (30 CVEs) |
251
250
  | `pivot` | — | SSH lateral movement, tunnel scanning, credential reuse |
252
251
  | `idor` (enhanced) | CWE-639 | Object reference enumeration with credential correlation |
252
+ | `nmap_scanner` | — | Port discovery, service detection, NSE vulnerability scanning |
253
+ | `ftp_probe` | CWE-287 | FTP anonymous login, default credentials, banner analysis |
254
+ | `ssh_probe` | CWE-327 | SSH banner analysis, weak version CVE detection |
253
255
 
254
256
  ## OCSF Reports
255
257
 
@@ -291,6 +293,20 @@ Get your token from [Prancer Portal](https://portal.prancer.io) → Settings →
291
293
 
292
294
  ## Changelog
293
295
 
296
+ ### v2.1.0
297
+ - Agent plugin registry (ADR-011): scalable plugin system for 100+ agents (one file + one registry line per agent)
298
+ - Nmap-first port discovery: canonical entry point, automatic service-to-agent routing
299
+ - FTP probe agent: anonymous login, default credential testing, banner analysis
300
+ - SSH probe agent: banner analysis, weak version CVE detection
301
+ - OCSF 1.1.0 compliance: type_uid=600105, severity_id at finding level, crown jewel dedup, finding sort order
302
+ - Crown jewel sanitization: 5-rule system (api_key never truncated, format-preserving session tokens)
303
+ - False positive elimination: LFI tech-stack filter, IDOR no synthetic params, default creds uses discovered form fields, CVE-2021-31166 narrowed
304
+ - Risk score calibration: Info=1.0, Low=3.0, Medium=5.0, High=7.5, Critical=10.0
305
+ - Security fixes: shell injection in askpass, TLS verification restored, PII redaction in reports
306
+ - CI pipeline: cargo test + cargo clippy (was build-only)
307
+ - 83 new regression tests (46 quality fixes + 37 ADR-011 Phase 1)
308
+ - 35 exploit agents (was 32): added nmap_scanner, ftp_probe, ssh_probe
309
+
294
310
  ### v2.0.0
295
311
  - Confidence calibration system: evidence-based scoring (0.60-1.0) replacing fixed 1.0
296
312
  - Full kill chain automation: web scan -> credential extraction -> SSH pivot -> privilege escalation -> internal scanning
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "swarmhack-cli",
3
- "version": "2.0.0",
3
+ "version": "2.3.0",
4
4
  "description": "SwarmHack - Neural swarm-based penetration testing framework",
5
5
  "author": "Prancer <support@prancer.io>",
6
6
  "license": "MIT",