Hub platform for AI-assisted red team operations. Runs on the operator's laptop with Claude Opus 4.6 as the primary session, MCP servers for targeting and C2 intelligence, and dev boxes connected as spokes via SSH tunnels.
Operator Laptop (hub)
+---------------------------------------------+
| Claude Opus 4.6 primary session |
| |
| 14 MCP servers (security research, C2, |
| CMDB, wiki, code, binary analysis, vault) |
| |
| 13 operational modes with context isolation |
| |
| ctp-bridge (deploy tooling) |
+------------+--------------------------------+
| SSH proxy chain
+-------+-------+
| |
Kali box Deploy box (spokes)
(C2/tools) (catapult)
Backup plan: If Opus 4.6 is unavailable, fall back to OpenCode + OpenRouter with a local model.
Archived: The local model orchestrator, sensitivity routing, and SP1a gate
are archived on the archive/sp1a-gate branch.
This repository is an operator hub framework — a portfolio project demonstrating how a single Claude session with MCP integrations, safety controls, and mode-based isolation can serve as a multi-environment platform for security operations and software development.
Current state: Built and operational with 13 modes, 14 MCP servers, environment profiles, a tested safety harness, and CI security gates. Supports multiple environment types: dedicated cyber range, CTF platforms, penetration testing engagements, bug bounty programs, general software development, and homelab infrastructure.
Where it's going (v3): Full multi-environment generalization with:
- T3-native routing: T3 Code projects as environment profiles, threads as mode sessions with full context isolation — replaces hook-injected mode switching for better multi-session safety
- Model failover: Cost-aware chain from Claude MAX through homelab vLLM, cloud GPU, down to local Ollama — no single-provider dependency
- Vault-per-mode knowledge bases: Obsidian vaults with semantic search MCP, giving agents accumulated operator experience per domain
This is a framework, not a weapon. No operational data, credentials, or target-specific configuration lives in this repository. Offensive skills are infrastructure-coupled (they require range connectivity and C2 server access to function). The safety harness is fail-closed and tested. The architecture is more comparable to a CI/CD platform than to an exploit toolkit.
See docs/ARCHITECTURE_VISION.md for the full v3
planning document.
13 operational modes with context isolation via hook-injected configuration:
| Mode | Purpose |
|---|---|
base |
Default — no offensive tools or range connectivity |
platform-ops |
Hub infrastructure maintenance |
green-dev |
Range infrastructure build and deploy |
red-team |
Live offensive operations |
red-dev |
Offensive tooling development |
purple |
Combined attack/defend analysis |
dev |
General software development |
ctf |
CTF challenge solving |
pentest |
Client penetration testing engagements |
bounty |
Bug bounty programs |
homelab |
Home infrastructure management |
3d-print |
3D printing pipeline (NL to STL) |
Mode configs live in .claude/modes/. Routing rules in .claude/modes/project-routes.yaml.
14 MCP servers connecting the hub to range infrastructure and security research
tooling. In-repo servers live under mcp-servers/; others are external packages.
| Server | Purpose |
|---|---|
outline-readonly |
Read-only Outline wiki access (doctrine, rules, planning) |
range-intel |
Providentia CMDB + GitLab VM vulnerability profiles |
tuoni-mcp |
Tuoni C2 agent management |
bloodhound-mcp |
BloodHound AD attack path analysis |
obsidian-mcp |
Engagement documentation vault |
rea-mcp |
Binary reverse engineering analysis |
hacktricks-mcp |
HackTricks technique reference |
mitre-mcp |
MITRE ATT&CK framework lookup |
lolbins-mcp |
Living-off-the-land binary lookup |
cve-mcp |
CVE vulnerability database |
nuclei-mcp |
Nuclei vulnerability scanner |
hashcat-mcp |
Hashcat password analysis |
local-ollama |
Local model inference |
runpod |
Cloud GPU infrastructure management |
Secret scoping in config/mcp-secrets.yaml — each MCP receives only its declared
secrets (fail-closed: unlisted MCPs get zero).
bash scripts/local/bootstrap-devbox.sh # macOS / Linux
# Windows:
powershell -ExecutionPolicy Bypass -File scripts\local\bootstrap-devbox.ps1It prompts for your per-dev values -- box number, hostname prefix, your username, the box domain, and an optional IP -- then:
- asks the git server which of your existing keys it already accepts and reuses that one,
generating
~/.ssh/id_ed25519_<user>_<machine>only when there is nothing to reuse -- a second, unregistered key would compete for position in agent order, which is the fault the identity check below exists to catch; - writes an idempotent
~/.ssh/configHostblock withIdentityFileandForwardAgent no(outside the repo). The box account is shared, so agent forwarding and the local-model reverse tunnel are opt-in:SCOPE_AGENT=true SCOPE_AGENT_KEYS="..."forwards only the listed keys (OpenSSH >= 8.9; older clients get no forwarding),FORWARD_AGENT=allforwards every agent key (needed to deploy from the box until the required keys are known), andLOCAL_MODEL_TUNNEL=trueadds the tunnel. For onward hops preferssh -J <alias> <next-host>(ProxyJump). A re-run warns if an older block still forwards; - runs
ssh-copy-idso login is passwordless -- your box password is entered live, once, and never stored; - installs the VSCode Remote-SSH extension and sets
remote.SSH.useExecServer=false, and switches VSCode agent forwarding on only if you opted in above (it is a global VSCode setting, so it is never forced off); - prints a reminder to add your public key to the git server;
- verifies which identity the git server actually returns, from this machine and from the box, and pins the box to the right key only if the two disagree. A wrong key authenticates successfully, so without this check nothing surfaces until a push is refused;
- then the connect + provision handoff.
The SSH key passphrase and the box password are entered interactively and are never
committed. The domain is not hardcoded (this repo is public) -- pass it via DEVBOX_DOMAIN
or answer the prompt. Re-running the script is safe; it won't duplicate config.
Connect (F1 -> Remote-SSH: Connect to Host, or ssh <box-host>), clone this repo
there, and run the provisioner:
git clone https://github.com/Moon-Knight13/my_claude_dev
cd my_claude_dev
sudo bash scripts/host/provision-remote-box.sh # interactive
sudo bash scripts/host/provision-remote-box.sh --yes # unattendedIt runs, in order (each step idempotent; destructive bits confirm-gated):
- VSCode server extensions --
anthropic.claude-code,redhat.ansible. - Ansible-lint + Docker -- merges ansible settings and checks the Docker
execution-environment prerequisites (
setup-ansible-lint.sh). - Caveman + Claude plugins --
install-caveman.shandinstall-claude-plugins.sh(skill-creator, frontend-design, code-review, superpowers, commit-commands), plus the on-box extrasskill-creator@andgitlab@claude-plugins-official. - Killswitch --
setup-killswitch.sh(see below). - SSH agent forwarding -- read-only check that the box permits agent
forwarding and that a forwarded key is reachable. Warns; never edits
sshd.
Reconnect-safe. A completion marker at /var/lib/claude-devbox/provisioned lets a
re-run on the same box short-circuit with "Already provisioned -- skipping." The marker
lives on the box filesystem, so a re-imaged box has none and re-provisions in full.
Force a re-run with --force. If the ansible step adds you to the docker group, reboot
the box for the Docker execution environment to work without sudo.
Finally run make start to configure the downstream build tooling -- it prompts for a
password interactively, and that secret is likewise never stored by these scripts.
The boxes are a shared account with sudo for everyone. setup-killswitch.sh
installs a PAM hook + systemd timer that shred the developer credentials left on the box
once the target user has no live SSH session -- so the next connector must authenticate
as themselves:
| File | Credential |
|---|---|
~/.claude/.credentials.json |
Claude subscription token |
~/.config/gh/hosts.yml |
GitHub token from gh auth login |
~/.git-credentials |
plaintext git credential store, if present |
Only credentials are removed -- losing any of them costs a re-login, never data. Settings,
history, and projects/ are deliberately kept: Claude Code stores session transcripts
locally and nowhere else, so deleting them would destroy the developer's own history rather
than protect anything. Keep sensitive detail out of prompts on a shared box.
This is a sequential-reuse hygiene control, not a defense against a malicious insider:
concurrent sessions still share whichever token is logged in, and a peer with sudo can
disable it. The durable fix is org-level (per-dev accounts/keys, or each dev on their own
subscription). See scripts/host/README.md for the full run,
verify, honest-limitations, and rollback details.
Controls between the agent and the box that turn risky actions into a human decision or refuse them outright. Built around four concerns: leaking Org PII/IP, committing secrets, destructive commands, and unauthorized web connections. Defense-in-depth; not a sandbox.
- Commit guard -- user-scope hook on every commit. Warn-only: prints findings, logs
rule/file/line(never the value) to~/.local/state/commit-guard/. - Destructive-action gate -- PreToolUse hook confirms
rm -rf,shred,mkfs,dd of=,dropdb,DROP/TRUNCATE,terraform destroy,kubectl delete,docker system prunebefore execution. Fails closed with no human present. - Path guard -- denies tool reads/writes to paths listed in
CTP_PII_PATHS(~/.ctp-bridge.conf). Opt-in, owner-tuned.
Full walkthrough in docs/SAFETY_HARNESS.md.
Work on this repo happens inside a devcontainer from
claude_template_repo:
deny-by-default network firewall, BMAD planning workflow, per-repo GitHub Project
Kanban board, and deterministic CI security gates (gitleaks, semgrep incl. MITRE
ATLAS AI/ML rules, Trivy) enforced on every merge.
gh auth login --hostname github.com --git-protocol https --web -s project && gh auth setup-git
claude auth login
bash scripts/setup-day0.sh # finishes the auth-gated bootstraps, prints statusVerify anytime with bash scripts/check-day0.sh or from Claude: /day0-check.
Every scripts/tests/test-*.sh suite runs in CI on each push and PR (the tests
workflow), using local mocks -- no live model or network endpoint. Run them the same
way locally:
bash scripts/tests/run-all.sh # all suites, one PASS/FAIL line each
bash scripts/tests/run-all.sh guard ctp # only suites whose name contains a filterA suite that fails for a tracked reason is listed in scripts/tests/known-failures.txt
with its issue number; it is still run and reported but does not fail the build.
mcp-servers/ In-repo MCP servers (outline-readonly, range-intel, bloodhound-mcp)
scripts/local/ Developer-laptop bootstrap (SSH + VSCode Remote-SSH to a box)
scripts/host/ Remote box provisioning (killswitch, extensions, ansible-lint)
scripts/ Bootstrap, CI helpers, and template validator
.devcontainer/ Dev environment (for developing this repo)
.claude/commands/ Claude Code skills
.claude/modes/ Operational mode configurations (13 modes)
config/ MCP secret scoping, environment profiles
.github/ Workflows (CI, secret scan, semgrep, container scan); issue & PR templates
docs/ SAFETY_HARNESS.md, ARCHITECTURE_VISION.md, TEMPLATE_GUIDE.md, BMAD_WORKFLOW.md, KANBAN_WORKFLOW.md
Laptop (hub): Claude Code CLI (authenticated) with Opus 4.6 access. Node.js (for outline-readonly). Python 3.12+ (for range-intel). VS Code with Remote-SSH extension.
Box (spoke): sudo on the shared account. Docker (for the ansible-lint execution
environment).
Repo development (devcontainer): Docker + the VS Code Dev Containers extension.
Apache 2.0 -- see LICENSE.