blackbox-claude-plugin

skill
Security Audit
Warn
Health Warn
  • License — License: MIT
  • Description — Repository has a description
  • Active repo — Last push 0 days ago
  • Low visibility — Only 6 GitHub stars
Code Pass
  • Code scan — Scanned 1 files during light audit, no dangerous patterns found
Permissions Pass
  • Permissions — No dangerous permissions requested

No AI report is available for this listing yet.

SUMMARY

Claude Code plugin for black-box and gray-box security assessments in Hack The Box labs.

README.md

blackbox-claude-plugin

License MIT

Claude Code plugin for black-box and grey-box penetration testing on HackTheBox machines.

Part of a security plugin suite alongside VulnScout and pwn-claude-plugin.

Features

  • Fully Automated Scanning: Minimal user input required for reconnaissance and enumeration
  • Multi-Platform Support: Linux, Windows, and Active Directory environments
  • Intelligent Suggestions: Automatic next-step recommendations based on findings
  • Session Persistence: Resume previous pentesting sessions with full context
  • Comprehensive Tooling: Integration with industry-standard tools

Installation

git clone https://github.com/allsmog/blackbox-claude-plugin.git ~/.claude/plugins/blackbox-claude-plugin

Or with --plugin-dir:

claude --plugin-dir /path/to/blackbox-claude-plugin

Prerequisites

The following tools must be installed on your system (run /bb-setup to verify):

Required:

  • nmap
  • gobuster or feroxbuster
  • nikto
  • crackmapexec
  • hydra
  • curl / wget
  • linpeas / winpeas

Recommended:

  • searchsploit
  • impacket suite
  • bloodhound-python

Quick Start

# Verify environment
/bb-setup

# Start full automated pentest
/blackbox 10.10.10.5

# Or run individual phases
/bb-recon 10.10.10.5      # Network reconnaissance
/bb-enum 10.10.10.5       # Service enumeration
/bb-web http://10.10.10.5 # Web application testing
/bb-ad 10.10.10.5         # Active Directory attacks
/bb-privesc               # Privilege escalation (after shell)

Commands

Command Description
/blackbox <target> Full automated pentesting methodology
/bb-setup Verify environment and tool installation
/bb-recon <target> Network reconnaissance (nmap scans)
/bb-enum <target> Service-specific enumeration
/bb-web <url> Web application testing
/bb-ad <target> Active Directory enumeration and attacks
/bb-privesc Privilege escalation enumeration
/bb-shell Manage reverse shell listeners
/bb-crack Crack password hashes
/bb-container Container escape analysis
/bb-spray Credential spraying

Agents

The plugin includes autonomous agents that can be triggered contextually:

Agent Trigger Purpose
network-scanner "scan", "nmap", "ports" Automated port scanning
service-enumerator "enumerate", "shares", "directories" Deep service enumeration
exploit-suggester "exploit", "CVE", "vulnerable" Find and suggest exploits
exploit-runner exploitation context Execute exploit payloads
privesc-hunter "root", "admin", "escalate" Find privilege escalation vectors
shell-manager "listener", "shell", "reverse shell" Manage reverse shell sessions
source-analyzer source code discovered Analyze code for vulnerabilities
credential-hunter credentials context Hunt for credentials and secrets
container-analyzer container context Analyze container escape vectors

Skills

Knowledge modules available for reference:

  • reconnaissance: nmap, masscan, port scanning techniques
  • web-enumeration: gobuster, nikto, web fuzzing
  • linux-privesc: linpeas, SUID, sudo abuse, kernel exploits
  • windows-privesc: winpeas, token abuse, service exploitation
  • ad-attacks: Kerberoasting, AS-REP, LDAP, BloodHound
  • credential-attacks: hydra, hashcat, password spraying
  • common-exploits: CVEs, reverse shells, webshells
  • hash-cracking: hash identification and cracking workflows
  • database-extraction: extracting credentials from databases
  • source-code-patterns: identifying vulnerabilities in source code
  • erlang-exploitation: Erlang/OTP specific attacks
  • ftp-exploitation: FTP service attacks
  • php-type-juggling: PHP type juggling vulnerabilities
  • cacti-exploitation: Cacti monitoring tool exploits
  • container-escapes: Docker/container breakout techniques
  • password-hunting: finding credentials in filesystems
  • ctf-writeup-lookup: finding relevant CTF writeups

Hooks

Automatic behaviors that fire during your session:

Hook Trigger Purpose
session-init Session start Loads previous session state and target context
suggest-next-phase After tool use Recommends the next pentesting phase based on findings
discovery-reactor After tool use Reacts to newly discovered services, credentials, or files
pentest-advisor After tool use Provides contextual pentesting tips and warnings

Workflow

The plugin follows a standard penetration testing methodology:

┌─────────────────┐
│  1. Setup       │  /bb-setup
│  Verify tools   │
└────────┬────────┘
         │
         ▼
┌─────────────────┐
│  2. Recon       │  /bb-recon
│  Port scanning  │
└────────┬────────┘
         │
         ▼
┌─────────────────┐
│  3. Enumerate   │  /bb-enum, /bb-web, /bb-ad
│  Service enum   │
└────────┬────────┘
         │
         ▼
┌─────────────────┐
│  4. Exploit     │  exploit-suggester agent
│  Get initial    │
│  access         │
└────────┬────────┘
         │
         ▼
┌─────────────────┐
│  5. Privesc     │  /bb-privesc
│  Escalate to    │
│  root/admin     │
└────────┬────────┘
         │
         ▼
┌─────────────────┐
│  6. Capture     │
│  Flags!         │
└─────────────────┘

Session Persistence

The plugin maintains state in .claude/blackbox-htb.local.md:

  • Target information
  • Discovered ports and services
  • Found credentials
  • Current phase
  • Notes and findings

Sessions automatically resume when you start a new Claude Code session.

Output Structure

Findings are organized in directories (created at runtime):

./
├── recon/
│   ├── nmap_quick.txt
│   ├── nmap_full.txt
│   └── summary.md
├── enum/
│   ├── gobuster.txt
│   ├── smb_shares.txt
│   └── summary.md
├── exploit/
│   └── analysis.md
└── privesc/
    └── findings.md

Example Session

# Start a new HTB machine
/blackbox 10.10.10.100

# Plugin automatically:
# 1. Runs quick nmap scan
# 2. Starts full port scan in background
# 3. Identifies services
# 4. Suggests next steps

# Follow suggestions
/bb-web http://10.10.10.100

# After finding credentials
# Plugin suggests trying them on other services

# After getting shell
/bb-privesc

# Plugin runs linpeas/winpeas and identifies vectors

Tips

  1. Always run /bb-setup first to ensure tools are available
  2. Let scans complete before moving to enumeration
  3. Document findings - the plugin maintains notes automatically
  4. Try credentials everywhere - reuse is common in HTB
  5. Check hints - plugin suggestions are based on findings

Resources

License

MIT

Reviews (0)

No results found