VPS Security
End-to-end security for red team attack infrastructure — from anonymous acquisition through hardened provisioning, encrypted storage, C2 deployment, continuous monitoring, and rapid teardown.
This skill treats every VPS as a disposable, compartmentalized node in an attack infrastructure graph. The goal is never "secure a server for production" — it is "make this node operationally useful while leaving zero forensic trail when it burns."
Reference Files
| Reference | When to Read |
|---|---|
references/anonymous-acquisition.md | Acquiring VPS anonymously — providers, payment, identity separation |
references/hardened-provisioning.md | First-boot hardening playbook — SSH, firewall, port knocking, sysctl, updates |
references/encrypted-storage.md | LUKS, VeraCrypt, encrypted swap, nuke keys, plausible deniability |
references/c2-infrastructure.md | C2 hardening, redirectors, domain fronting, malleable profiles, TLS |
references/teardown-and-recovery.md | Rapid teardown, secure wipe, snapshot destruction, backup/recovery |
Opsec Profile Integration
Every action in this skill adapts to the active opsec profile. Check the current profile before starting any VPS work:
node "${CLAUDE_PLUGIN_ROOT}/scripts/opsec-profile.js" show
| Profile | Acquisition | Provisioning | Monitoring | Teardown |
|---|---|---|---|---|
| loud | Any provider, credit card OK | Basic hardening, password SSH OK | Optional | Manual cleanup |
| normal | Mainstream provider, prepaid card | Key-only SSH, UFW, fail2ban | Logwatch daily | Delete VPS via panel |
| stealth | Privacy provider, crypto payment | Port knocking, no DNS, encrypted disk | Auditd + remote syslog | Secure wipe + snapshot delete |
| paranoid | Bulletproof/offshore, Monero only | Multi-layer: knock + Tor-only SSH, full LUKS | Real-time alerts, tripwire | Nuke key + header destroy + provider account burn |
Workflow
Phase 1 — Plan
- Determine engagement requirements: how many VPS nodes, what roles (C2, redirector, phishing, exfil), which regions
- Check opsec profile — this dictates every subsequent decision
- Design the infrastructure graph: which nodes talk to which, what protocols, what domains
- Read
references/anonymous-acquisition.mdfor provider selection
Phase 2 — Acquire
- Acquire VPS nodes anonymously per opsec profile
- Use separate identities per node (email, payment, provider account)
- Log acquisition details via ops-tracker
Phase 3 — Provision
- Run the hardened provisioning playbook from
references/hardened-provisioning.md - Set up encrypted storage per
references/encrypted-storage.md - Configure C2/redirector infrastructure per
references/c2-infrastructure.md - Log all provisioning steps
Phase 4 — Operate
- Monitor with auditd, tripwire, fail2ban — severity depends on opsec profile
- Rotate SSH keys and access credentials periodically
- Watch for provider abuse notifications
- Maintain ops-tracker entries for all changes
Phase 5 — Teardown
- Follow rapid teardown procedures from
references/teardown-and-recovery.md - Wipe data, destroy snapshots, burn accounts as profile dictates
- Log final teardown actions
Compartmentalization Principles
Compartmentalization is the single most important opsec practice for attack infrastructure. Every node should be isolated so that compromise of one does not expose others.
Rules:
- One role per VPS: never run C2 and phishing on the same box
- Separate identities per VPS: different email, different payment method, different provider if possible
- No direct C2-to-target traffic: always go through at least one redirector
- Segment by engagement: never reuse infrastructure across engagements
- Network isolation: VPS nodes communicate only through encrypted tunnels (WireGuard preferred); no direct SSH between nodes
- Time-bound: every VPS has a planned destruction date; extend only with justification
Recommended architecture for a standard engagement:
Target ←→ Redirector(s) ←→ C2 Team Server ←→ Operator (via Tor/VPN)
↕
Exfil Server (separate)
↕
Encrypted Backup (offline)
Cross-Skill References
| Related Skill | When to Use |
|---|---|
system-hardening | Deep kernel hardening, AppArmor/SELinux policies, CIS benchmarks |
network-anonymity | Tor/VPN/proxychains for operator access to VPS, killswitch config |
anti-forensics | Log manipulation, metadata stripping, secure deletion on VPS |
opsec-reporting | Generating VPS security audit reports |
Logging
All VPS security operations MUST be logged:
node "${CLAUDE_PLUGIN_ROOT}/scripts/ops-tracker.js" add \
--category "vps-security" \
--action "<action>" \
--detail "<detail>"
Use these action types for consistency:
acquire— VPS purchased/provisionedprovision— Initial hardening appliedencrypt— Disk/partition encryption configuredc2-deploy— C2 or redirector deployedmonitor-setup— Monitoring configuredrotate— Credentials or keys rotatedteardown— VPS wiped and destroyedbackup— Encrypted backup createdincident— Unexpected event (abuse report, anomaly detected)