본문으로 건너뛰기
cccskills
무료GitHub에 공개

conducting-malware-incident-response

Guide response to suspected or confirmed malware infections across enterprise endpoints. Identify the malware and entry route, assess affected systems, coordinate containment and removal, and document recovery checks, infection timelines, and observable signs of compromise.

한국어 요약은 준비 중입니다. 영어 요약을 표시하고 있습니다.

원문원문 설명 보기

Respond to malware infections across enterprise endpoints by identifying the malware family, determining infection vectors, assessing spread, and executing containment, analysis, eradication, and recovery procedures aligned to MITRE ATT&CK. Use when responding to a confirmed or suspected malware infection, including trojan/worm/ransomware outbreaks, malware triage, or infected endpoint remediation.

설치 방법 보기

이럴 때 유용합니다

  • Investigating malware alerts from endpoint security tools
  • Assessing infection spread across multiple endpoints
  • Planning containment, removal, and endpoint recovery
  • Documenting infection timelines and signs of compromise

포함된 파일(4)

  • SKILL.md9.8 KB
  • LICENSE11.0 KB
  • references/api-reference.md1.7 KB
  • scripts/agent.py7.1 KB

SKILL.md(원문)

설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.

Conducting Malware Incident Response

When to Use

  • EDR or antivirus detects malware execution on one or more endpoints
  • A user reports suspicious system behavior indicative of malware infection
  • Threat intelligence indicates a malware campaign targeting the organization's industry
  • Network monitoring detects beaconing traffic consistent with known malware C2 patterns
  • A file detonation in a sandbox returns a malicious verdict

Do not use for analyzing malware samples in a research context; use dedicated malware analysis procedures for reverse engineering.

Prerequisites

  • EDR platform with process tree visibility and host isolation capability
  • Malware sandbox environment (Cuckoo, ANY.RUN, Joe Sandbox, Hybrid Analysis)
  • Access to threat intelligence platforms for malware family identification (VirusTotal, MalwareBazaar)
  • Forensic imaging tools for evidence preservation (FTK Imager, KAPE)
  • Clean system images or gold images for endpoint rebuild
  • MITRE ATT&CK framework reference for technique mapping

Workflow

Step 1: Detect and Confirm Malware Presence

Validate the malware alert and gather initial indicators:

  • Review EDR alert details: detection name, file path, hash (SHA-256), process tree
  • Check if the detection is a known malware family or generic heuristic detection
  • Query the file hash against VirusTotal, MalwareBazaar, and internal threat intelligence
  • Examine the process execution chain to determine how the malware was delivered
Detection Summary:
File:        C:\Users\jsmith\AppData\Local\Temp\update.exe
SHA-256:     a1b2c3d4e5f6...
Detection:   CrowdStrike: Malware/Qakbot | VirusTotal: 58/72 engines
Parent:      WINWORD.EXE → cmd.exe → powershell.exe → update.exe
Delivery:    Email attachment (Invoice-Nov2025.docm)
Network:     HTTPS POST to 185.220.101[.]42:443 every 60s
Persistence: Scheduled Task "WindowsUpdate" → update.exe

Step 2: Scope the Infection

Determine how many systems are affected and the malware's propagation method:

  • Use EDR to search for the malware hash, filename, and behavioral indicators across all endpoints
  • Check for network-based spreading (SMB, WMI, PsExec, exploitation)
  • Query email gateway logs for all recipients of the delivery email
  • Search for C2 communications to the identified infrastructure from other internal hosts
  • Check for persistence mechanisms on all identified infected hosts

Step 3: Contain Infected Systems

Execute containment per the active breach containment procedures:

  • Network-isolate infected endpoints via EDR containment
  • Block malware C2 infrastructure at firewall and DNS
  • Block the malware hash in EDR prevention policy organization-wide
  • Quarantine the delivery email from all mailboxes (if email-delivered)
  • Disable compromised user accounts if credential theft is suspected

Step 4: Analyze the Malware

Perform sufficient analysis to support complete eradication:

  • Submit the sample to a sandbox for dynamic analysis (behavioral report, dropped files, network IOCs)
  • Identify all persistence mechanisms: registry keys, scheduled tasks, services, WMI subscriptions, startup folders
  • Document all file system artifacts: dropped files, modified files, created directories
  • Extract network IOCs: C2 domains, IPs, URLs, user agents, JA3/JA3S hashes
  • Map observed behaviors to MITRE ATT&CK techniques
Malware Analysis Summary - Qakbot Variant
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Initial Access:   T1566.001 - Spearphishing Attachment (.docm)
Execution:        T1059.001 - PowerShell (encoded downloader)
Persistence:      T1053.005 - Scheduled Task
Defense Evasion:  T1055.012 - Process Hollowing (explorer.exe)
C2:               T1071.001 - HTTPS with custom headers
Collection:       T1005 - Data from Local System (browser credentials)
Exfiltration:     T1041 - Exfiltration Over C2 Channel

Artifacts:
- C:\Users\*\AppData\Local\Temp\update.exe (dropper)
- C:\ProgramData\Microsoft\{GUID}\config.dll (payload)
- HKCU\Software\Microsoft\Windows\CurrentVersion\Run\{random} (backup persistence)
- Scheduled Task: "WindowsUpdate" (primary persistence)

Step 5: Eradicate the Malware

Remove all malware artifacts from every infected system:

  • Terminate malicious processes and injected threads
  • Delete malware files from all identified paths
  • Remove persistence mechanisms (scheduled tasks, registry keys, services, WMI subscriptions)
  • Clear browser credential stores if credential harvesting was confirmed
  • Run a full EDR scan to verify no artifacts remain
  • If eradication confidence is low, reimage the system from a known-clean gold image

Step 6: Recover and Validate

Restore systems to production and verify clean status:

  • Reconnect contained systems to the network in stages
  • Monitor for 72 hours for any recurrence of malware indicators
  • Force password resets for all users on infected endpoints
  • Verify that C2 traffic has completely ceased across the environment
  • Update detection rules based on newly discovered IOCs from the investigation
  • Distribute IOCs to threat intelligence sharing partners (ISAC, MISP)

Key Concepts

TermDefinition
Malware FamilyClassification of malware variants sharing code, infrastructure, or behavior patterns (e.g., Qakbot, Emotet, Cobalt Strike)
Process HollowingTechnique where malware creates a legitimate process in a suspended state, replaces its memory with malicious code, then resumes execution
BeaconPeriodic network communication from malware to its C2 server, typically with a set interval and jitter for detection evasion
DropperInitial malware component that downloads or unpacks the primary payload; often delivered via phishing
Persistence MechanismMethod used by malware to survive system reboots (registry run keys, scheduled tasks, services, WMI event subscriptions)
IOC (Indicator of Compromise)Observable artifact such as file hash, IP address, domain, or registry key that indicates malware presence

Tools & Systems

  • CrowdStrike Falcon / Microsoft Defender for Endpoint: EDR platforms for detection, containment, and threat hunting
  • ANY.RUN / Joe Sandbox: Interactive malware sandboxes for dynamic behavioral analysis
  • VirusTotal / MalwareBazaar: Malware intelligence platforms for sample identification and IOC enrichment
  • KAPE (Kroll Artifact Parser and Extractor): Forensic triage tool for rapid artifact collection from infected endpoints
  • YARA: Pattern-matching engine for creating custom malware detection rules based on observed indicators

Common Scenarios

Scenario: Emotet Loader Leading to Cobalt Strike Deployment

Context: EDR detects a macro-enabled document that spawns PowerShell, downloads an Emotet DLL, which subsequently loads a Cobalt Strike beacon. Three hosts are infected within 45 minutes.

Approach:

  1. Immediately isolate all three hosts and block C2 IPs at the perimeter
  2. Search email gateway for all recipients of the original phishing email and quarantine it
  3. Sweep all endpoints for the Emotet DLL hash and Cobalt Strike beacon indicators
  4. Analyze the Cobalt Strike beacon configuration to extract watermark, C2 profile, and staging URLs
  5. Check for credential harvesting (Mimikatz/LSASS dump) and lateral movement artifacts
  6. Eradicate all malware artifacts and reset credentials for affected users

Pitfalls:

  • Focusing only on Emotet and missing the Cobalt Strike second-stage payload
  • Failing to extract and block the Cobalt Strike Malleable C2 profile indicators
  • Not checking for additional persistence beyond the initial detection (Emotet often installs multiple backup persistence mechanisms)

Output Format

MALWARE INCIDENT RESPONSE REPORT
=================================
Incident:         INC-2025-1547
Malware Family:   Qakbot (variant: Obama265)
Delivery Vector:  Spearphishing attachment (Invoice-Nov2025.docm)
First Detection:  2025-11-15T14:23:17Z
Scope:            4 endpoints confirmed infected

INFECTION TIMELINE
14:18 UTC - Phishing email received by jsmith@corp.example.com
14:19 UTC - Macro executed in WINWORD.EXE
14:20 UTC - PowerShell downloads update.exe from staging server
14:21 UTC - update.exe establishes persistence (Scheduled Task)
14:23 UTC - C2 beacon initiated to 185.220.101[.]42
14:35 UTC - Lateral spread to WKSTN-087 via stolen credentials
14:42 UTC - EDR detection fires, SOC alerted

IOCs EXTRACTED
File Hashes:  [SHA-256 list]
C2 Domains:   [domain list]
C2 IPs:       [IP list]
File Paths:   [artifact paths]

ERADICATION STATUS
[x] All malware artifacts removed from 4 hosts
[x] Persistence mechanisms deleted
[x] C2 infrastructure blocked
[x] Compromised credentials reset
[x] Email quarantined from all mailboxes

RECOMMENDATIONS
1. Deploy YARA rule for Qakbot variant detection
2. Block macro execution in documents from external senders
3. Implement application whitelisting on finance workstations

리뷰

아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.

댓글

로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.

아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.

보내면 바로 공개됩니다. 이메일 주소나 전화번호 같은 개인 정보는 쓰지 마세요. URL은 2개까지입니다.

0 / 1,000자

이 양식은 reCAPTCHA로 보호되며 Google 개인정보처리방침 및 서비스 약관이 적용됩니다.

같은 저장소의 스킬

Assess exposure of Windows secrets protected by DPAPI, the operating system’s data protection service, during authorized security tests. Guide examination and decryption of saved credentials and browser data using available user sessions, credentials, or backup keys.

한국어 요약은 준비 중입니다. 영어 요약을 표시하고 있습니다.

  • Assessing saved credential exposure in authorized tests
  • Examining collected DPAPI files offline
  • Reviewing protected browser and RDP credentials
mukul975/Anthropic-Cybersecurity-Skills3.5만2026년 8월 31일 업데이트

Assess Shadow Credentials account takeover during authorized Active Directory testing. Examine permissions that allow public key registration, validate authentication without a password reset, and document credential cleanup, detection opportunities, and access control changes needed for remediation.

한국어 요약은 준비 중입니다. 영어 요약을 표시하고 있습니다.

  • Assessing risky permissions identified in BloodHound
  • Validating account takeover without resetting a password
  • Generating directory change records during security exercises
mukul975/Anthropic-Cybersecurity-Skills3.5만2026년 8월 31일 업데이트

Prepare for CMMC Level 2, a cybersecurity certification for defense contractors. Define the systems handling controlled information, review security requirements, calculate the SPRS assessment score, and organize remediation plans and evidence into a readiness report.

한국어 요약은 준비 중입니다. 영어 요약을 표시하고 있습니다.

  • Define the assessment scope for systems handling controlled information
  • Calculate an SPRS score and prioritize unmet security requirements
  • Prepare security plans, remediation milestones, and assessment evidence
mukul975/Anthropic-Cybersecurity-Skills3.5만2026년 8월 31일 업데이트

Create disk images for investigations using dd or dcfldd on Linux. The workflow covers write protection, bit-for-bit copying, hash checks to verify integrity, and documentation of the acquisition process.

한국어 요약은 준비 중입니다. 영어 요약을 표시하고 있습니다.

  • Preserving a suspect drive before investigation
  • Creating evidence copies of USB devices or memory cards
  • Verifying that a disk image matches its source
mukul975/Anthropic-Cybersecurity-Skills3.5만2026년 8월 31일 업데이트

Review Active Directory permissions with ldap3, a Python library for directory queries. Identify excessive access granted to non-administrative accounts, explain potential privilege escalation paths, and produce a JSON report with affected objects and remediation recommendations.

한국어 요약은 준비 중입니다. 영어 요약을 표시하고 있습니다.

  • Auditing excessive Active Directory permissions
  • Investigating privilege escalation paths from ordinary accounts
  • Reporting affected objects and permission remediation recommendations
mukul975/Anthropic-Cybersecurity-Skills3.5만2026년 8월 31일 업데이트

Inspect suspicious Android APK files without running them. Analyze permissions, app components, suspicious code patterns, and network indicators, then produce a JSON risk report to support malware triage and detection rule development.

한국어 요약은 준비 중입니다. 영어 요약을 표시하고 있습니다.

  • Triage suspicious APK files without running them
  • Inspect dangerous permission combinations and suspicious API calls
  • Extract network indicators for malware detection rules
mukul975/Anthropic-Cybersecurity-Skills3.5만2026년 8월 31일 업데이트

mukul975의 스킬 모두 보기

이 스킬의 문제 신고