技能 编程开发 Cobalt Strike 可塑配置分析

Cobalt Strike 可塑配置分析

v20260317
analyzing-cobalt-strike-malleable-profiles
使用 pyMalleableC2 解析 Cobalt Strike 可塑 C2 配置,提取信标、HTTP 模式以及睡眠/抖动,并结合 JARM 指纹识别可疑 C2 服务器,适用于调查或构建检测签名。
获取技能
476 次下载
概览

Analyzing Cobalt Strike Malleable Profiles

Instructions

Parse malleable C2 profiles to extract IOCs and detection opportunities using the pyMalleableC2 library. Combine with JARM fingerprinting to identify C2 servers.

from malleablec2 import Profile

# Parse a malleable profile from file
profile = Profile.from_file("amazon.profile")

# Extract global options (sleep, jitter, user-agent)
print(profile.ast.pretty())

# Access HTTP-GET block URIs and headers for network signatures
# Access HTTP-POST block for data exfiltration patterns
# Generate JARM fingerprints for known C2 infrastructure

Key analysis steps:

  1. Parse the malleable profile to extract HTTP-GET/POST URI patterns
  2. Extract User-Agent strings and custom headers for IDS signatures
  3. Identify sleep time and jitter for beaconing detection thresholds
  4. Scan suspect IPs with JARM to match known C2 fingerprint hashes
  5. Cross-reference extracted IOCs with network traffic logs

Examples

# Parse profile and extract detection indicators
from malleablec2 import Profile
p = Profile.from_file("cobaltstrike.profile")
print(p)  # Reconstructed source

# JARM scan a suspect C2 server
import subprocess
result = subprocess.run(
    ["python3", "jarm.py", "suspect-server.com"],
    capture_output=True, text=True
)
print(result.stdout)
# Compare fingerprint against known CS JARM hashes
信息
Category 编程开发
Name analyzing-cobalt-strike-malleable-profiles
版本 v20260317
大小 8.49KB
更新时间 2026-03-18
语言