Communitygithub.com

CobaltStrike Malleable C2 프로필 분석

dissect.cobaltstrike(프로필 및 비콘 페이로드 구성)와 pyMalleableC2(AST 파싱)를 사용하여 Cobalt Strike Malleable C2 프로필을 파싱 및 분석하여 HTTP/DNS 변환, URI, 헤더, sleep/jitter, 인젝션 동작을 추출하고 네트워크 탐지 시그니처를 생성합니다. 캡처된 malleable 프로필을 리버스 엔지니어링하거나 Cobalt Strike Beacon 트래픽에 대한 탐지를 구축할 때 사용하세요.

CobaltStrike Malleable C2 프로필 분석란 무엇인가요?

이 스킬은 Cobalt Strike Malleable C2 프로필을 파싱하고 분석하여 보안 분석가가 C2 트래픽을 탐지할 수 있도록 지원합니다. Malleable C2 프로필은 Beacon이 팀 서버와 통신하는 방식을 사용자 정의하는 도메인 특화 언어 스크립트로, 위협 행위자가 정상 서비스(Amazon, Google, Slack)로 가장하는 데 사용됩니다. `dissect.cobaltstrike` 라이브러리를 사용하여 프로필 파일과 비콘 페이로드 모두에서 구성을 추출하고, `pyMalleableC2`는 Lark 문법을 기반으로 AST 파싱을 제공하여 프로그래밍 방식의 프로필 조작 및 검증을 가능하게 합니다. 분석 결과는 HTTP URI, 헤더, user-agent, sleep/jitter 설정, 프로세스 인젝션 설정, DNS 설정 등 네트워크 기반 탐지에 필요한 핵심 지표를 포함하며, Suricata/Snort 호환 탐지 규칙을 생성합니다. 보안 사고 조사, 탐지 규칙 구축, 위협 헌팅, SOC 분석 절차 수립에 활용할 수 있습니다.

지원 대상~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/mukul975/Anthropic-Cybersecurity-Skills/tree/main/skills/analyzing-cobaltstrike-malleable-c2-profiles

즐겨 사용하는 AI에게 물어보기

이 에이전트 스킬이 미리 로드된 새 채팅을 엽니다.

문서

CobaltStrike Malleable C2 프로필 분석은(는) 무엇을 하나요?

개요

Cobalt Strike Malleable C2 프로필은 Beacon이 팀 서버와 통신하는 방식을 사용자 정의하는 도메인 특화 언어 스크립트로, HTTP 요청/응답 변환, sleep 간격, jitter 값, user-agent, URI 경로 및 프로세스 인젝션 동작을 정의합니다. 위협 행위자는 malleable 프로필을 사용하여 C2 트래픽을 정상 서비스(Amazon, Google, Slack)로 가장합니다. 이러한 프로필을 분석하면 URI 패턴, HTTP 헤더, POST/GET 변환, DNS 설정, 프로세스 인젝션 기술 등 네트워크 기반 탐지 지표를 식별할 수 있습니다. dissect.cobaltstrike 라이브러리는 프로필 파일과 비콘 페이로드 모두에서 구성을 추출할 수 있으며, pyMalleableC2는 Lark 문법을 사용한 AST 기반 파싱을 제공하여 프로그래밍 방식의 프로필 조작 및 검증을 가능하게 합니다.

사용 시기

  • 보안 사고 조사 시 CobaltStrike malleable C2 프로필을 분석해야 할 때
  • 이 도메인에 대한 탐지 규칙 또는 위협 헌팅 쿼리를 구축할 때
  • SOC 분석가가 이러한 분석 유형에 대한 구조화된 절차가 필요할 때
  • 관련 공격 기술에 대한 보안 모니터링 커버리지를 검증할 때

사전 요구 사항

  • Python 3.9+ 및 dissect.cobaltstrike 및/또는 pyMalleableC2
  • 샘플 Malleable C2 프로필 (공개 저장소에서 확보 가능)
  • HTTP 프로토콜 및 Cobalt Strike Beacon 통신 모델에 대한 이해
  • 시그니처 배포를 위한 네트워크 모니터링 도구 (Suricata/Snort)
  • 트래픽 검증을 위한 PCAP 분석 도구

단계

  1. 라이브러리 설치: pip install dissect.cobaltstrike 또는 pip install pyMalleableC2
  2. C2Profile.from_path("profile.profile")로 프로필 파싱
  3. HTTP GET/POST 블록 구성 추출 (URI, 헤더, 파라미터)
  4. user-agent 문자열 및 스푸핑 대상 식별
  5. sleep 시간, jitter 백분율 및 DNS 비콘 설정 추출
  6. 프로세스 인젝션 설정 분석 (spawn-to, 할당 기술)
  7. 추출된 네트워크 지표로 Suricata/Snort 시그니처 생성
  8. 알려진 위협 행위자 프로필 컬렉션과 프로필 비교
  9. 스테이징 URI 및 페이로드 전달 메커니즘 추출
  10. IOC 및 권장 네트워크 시그니처가 포함된 탐지 보고서 생성

예상 출력

추출된 C2 URI, HTTP 헤더, user-agent, sleep/jitter 설정, 프로세스 인젝션 구성, 생성된 프로세스 경로, DNS 설정 및 Suricata 호환 탐지 규칙이 포함된 JSON 보고서입니다.

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

abusing-dpapi-for-credential-access

Extract and decrypt Windows DPAPI-protected secrets (Credential Manager, browser logins/cookies, Wi-Fi credentials, KeePass keys) online or offline using SharpDPAPI, SharpChrome, Mimikatz, or Impacket

abusing-shadow-credentials-for-privesc

Take over Active Directory accounts by writing attacker-controlled public keys to msDS-KeyCredentialLink (Shadow Credentials) with pyWhisker, Whisker, or Certipy, then authenticate via PKINIT to recover the target

achieving-cmmc-level-2-compliance

>-

acquiring-disk-image-with-dd-and-dcfldd

Create forensically sound bit-for-bit disk images with dd or dcfldd on a Linux forensic workstation, preserving evidence integrity through hash verification (MD5/SHA) during acquisition. Use when imaging a suspect drive, USB device, or memory card for investigation, preserving volatile disk evidence during incident response, or producing a verified copy for legal or law-enforcement proceedings before any destructive analysis.

analyzing-active-directory-acl-abuse

Detect dangerous ACL misconfigurations in Active Directory using ldap3

analyzing-android-malware-with-apktool

Perform static analysis of Android APK malware using apktool for resource decompilation, jadx for Java source recovery, and androguard for manifest inspection, dangerous permission-combination detection, and identification of obfuscated code, dynamic code loading, and reflection-based API calls. Use to statically triage a suspicious APK without executing it or to build mobile malware detection rules.

analyzing-api-gateway-access-logs

Parses API Gateway access logs (AWS API Gateway, Kong, Nginx) to detect

analyzing-apt-group-with-mitre-navigator

Query ATT&CK data with attackcti, mitreattack-python, and stix2, then build MITRE ATT&CK Navigator layers and multi-layer heatmap overlays mapping one or more APT groups

analyzing-azure-activity-logs-for-threats

Queries Azure Monitor activity logs and sign-in logs via azure-monitor-query

analyzing-bootkit-and-rootkit-samples

Analyzes bootkit and advanced rootkit malware infecting the Master

analyzing-browser-forensics-with-hindsight

Parse Chromium-based browser databases with Hindsight to extract and correlate browsing history, downloads, cookies, cached content, autofill data, saved passwords, and extensions from Chrome, Edge, Brave, Opera, and Vivaldi into a unified timeline (XLSX, JSON, or SQLite output). Use during incident response, insider-threat investigations, or criminal cases when you need to reconstruct a user

analyzing-campaign-attribution-evidence

Systematically evaluate cyber-campaign evidence to attribute an operation to a threat actor, using the Diamond Model and Analysis of Competing Hypotheses (ACH) to weigh infrastructure overlaps, TTP consistency, malware code similarity, and timing/language artifacts into confidence-weighted attribution assessments. Use when an incident investigation needs a defensible attribution confidence level.

analyzing-certificate-transparency-for-phishing

Monitor Certificate Transparency logs using crt.sh and Certstream to

analyzing-cloud-storage-access-patterns

Detect abnormal access in AWS S3, GCS, and Azure Blob Storage by analyzing CloudTrail Data Events, GCS audit logs, and Azure Storage Analytics for after-hours bulk downloads, new-IP access, and API-call spikes (e.g. GetObject) via statistical baselines and time-series anomaly detection. Use when investigating suspected cloud data exfiltration or building related detection rules.

analyzing-cobalt-strike-beacon-configuration

Extract and analyze Cobalt Strike beacon configuration from PE files

analyzing-command-and-control-communication

Analyzes malware C2 communication over HTTP, HTTPS, DNS, and custom

analyzing-cyber-kill-chain

Analyzes intrusion activity against the Lockheed Martin Cyber Kill Chain

analyzing-disk-image-with-autopsy

Perform comprehensive forensic analysis of raw (dd), E01, or AFF disk images with Autopsy and The Sleuth Kit, recovering deleted files, examining metadata and embedded artifacts, keyword searching, and building investigation timelines with visual reports. Use for structured analysis of a forensic disk image or when stakeholders need visual reports from evidence.

analyzing-dns-logs-for-exfiltration

Analyzes DNS query logs to detect data exfiltration via DNS tunneling,

analyzing-docker-container-forensics

Investigate compromised Docker containers by analyzing images, layers,

관련 스킬