Skip to content

ShulkwiSEC/bb-huge / skills/curated/dynamic-malware-analysis

dynamic-malware-analysis

Unverified

Execute and analyze malware samples within a highly controlled, instrumented sandbox environment to observe their true behavior, network communications, file system modifications, and registry changes in real-time.

Dynamic Malware Analysis

When to Use

  • When static analysis (examining the code without running it) is insufficient because the malware is heavily packed, encrypted, or obfuscated.
  • To rapidly understand the "blast radius" of a malicious payload (What files does it drop? What domains does it contact? What persistence mechanisms does it establish?).
  • When you need to extract decryption keys, Command & Control (C2) configurations, or secondary stage payloads that are only unlocked during runtime.

Prerequisites

  • Isolated analysis environment (VM with snapshot capability)
  • Sample file safely obtained and handled with appropriate precautions
  • PE analysis tools (PE-bear, CFF Explorer, Detect It Easy) installed
  • Disassembler/decompiler (Ghidra, IDA Free, or Binary Ninja) configured

Workflow

Phase 1: The Sandbox Environment (CRITICAL)

# Concept: NEVER run malware Setup 1. 2. 3. 4. ```

### Phase 2: Instrumentation (Setting the Traps)

```text
# Before detonation 1. Process Monitor (Procmon) 2. Wireshark 3. FakeNet / INetSim # ```

### Phase 3: Detonation and Observation

```bash
# # ```

### Phase 4: Analysis (Connecting the Dots)

```text
# 1. Behavioral 2. Network ```

#### Decision Point πŸ”€
```mermaid
flowchart TD
    A[Prepare Sandbox reliably ] --> B[Enable ]
    B --> C{Does ]}
    C -->|Yes| D[Log ]
    C -->|No| E[Check ]
    D --> F[Analyze ]

πŸ”΅ Blue Team Detection & Defense

  • Indicator of Compromise (IoC) Generation: The Behavioral Analytics: EDR Sandbox Evasion Detection: Malware Key Concepts | Concept | Description | |---------|-------------|

Output Format

Dynamic Malware Analysis β€” Assessment Report
============================================================
Target: [Target identifier]
Assessor: [Operator name]
Date: [Assessment date]
Scope: [Authorized scope]
MITRE ATT&CK: [Relevant technique IDs]

Findings Summary:
  [Finding 1]: [Severity] β€” [Brief description]
  [Finding 2]: [Severity] β€” [Brief description]

Detailed Results:
  Phase 1: [Phase name]
    - Result: [Outcome]
    - Evidence: [Screenshot/log reference]
    - Impact: [Business impact assessment]

  Phase 2: [Phase name]
    - Result: [Outcome]
    - Evidence: [Screenshot/log reference]
    - Impact: [Business impact assessment]

Risk Rating: [Critical/High/Medium/Low/Informational]
Recommendations:
  1. [Immediate remediation step]
  2. [Long-term hardening measure]
  3. [Monitoring/detection improvement]

πŸ“š Shared Resources

For cross-cutting methodology applicable to all vulnerability classes, see:

References

slack-gif-creatoranthropics/skillsKnowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like "make me a GIF of X doing Y for Slack."Stars: 196kUpdated Claude CodeCodexVerifiedInstall
ponytailDietrichGebert/ponytailLazy senior dev mode for any coding task: the smallest change that fully solves it, and a reply a busy human understands in one read.Stars: 192kUpdated Claude CodeCodexVerifiedInstall
ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report.Stars: 192kUpdated Claude CodeCodexVerifiedInstall
ponytail-debtDietrichGebert/ponytailList every `shortcut:` comment (and older `ponytail:` ones) as a debt ledger. One-shot report, changes nothing. Use for "ponytail debt", "what did ponytail defer", "list the shortcuts", /ponytail-debt.Stars: 192kUpdated Claude CodeCodexVerifiedInstall