[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6HBSDG39EA6CACBWTHND4W3":3,"skill-same:01M6HBSDG39EA6CACBWTHND4W3":99},{"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":39,"linkOnly":40,"markdownContent":41,"markdownBody":42,"frontMatter":43,"refName":60,"commitSha":61,"skillDirectory":62,"forksCount":63,"repositoryHtmlUrl":64,"repositoryHomepageUrl":6,"ownerHtmlUrl":65,"ownerBlogUrl":6,"ownerDescription":66,"updatedAt":67,"install":68,"resources":81},"01M6HBSDG39EA6CACBWTHND4W3","analyzing-malware-behavior-with-cuckoo-sandbox",null,"Executes malware samples in Cuckoo Sandbox to observe runtime behavior including process creation, file system modifications, registry changes, network communications, and API calls. Generates comprehensive behavioral reports for malware...","HenriqueMC17\u002Fagente-core","HenriqueMC17","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F206460478?v=4","01M6HB63HBBF18AC4H09XTB549","Henrique Monteiro Cardoso","01M6HB63NGSQXWKWCFWW2B20W0",1,"Apache-2.0","https:\u002F\u002Fgithub.com\u002FHenriqueMC17\u002Fagente-core\u002Fblob\u002Fmain\u002Fmodules\u002Fanalyzing-malware-behavior-with-cuckoo-sandbox\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38],"sandbox","with","malware","Cuckoo","analyzing malware behavior with cuckoo sandbox","analyzing","behavior","for","communications","de","creation","reports","observe","cm","behavioral","api","analysis","network","registry","cybersecurity","2026-11-10 10:12:30",false,"---\nname: analyzing-malware-behavior-with-cuckoo-sandbox\ndescription: Executes malware samples in Cuckoo Sandbox to observe runtime behavior including process creation, file system modifications, registry changes, network communications, and API calls. Generates comprehensive behavioral reports for malware...\ndomain: cybersecurity\nsubdomain: malware-analysis\ntags:\n- malware\n- dynamic-analysis\n- sandbox\n- Cuckoo\n- behavioral-analysis\nversion: 1.0.0\nauthor: mahipal\nlicense: Apache-2.0\nnist_csf:\n- DE.AE-02\n- RS.AN-03\n- ID.RA-01\n- DE.CM-01\nmitre_attack:\n- T1497\n- T1055\n- T1071\n- T1027\ncategory: analyzing-malware-behavior-with-cuckoo-sandbox\n---\n# Analyzing-Malware-Behavior-With-Cuckoo-Sandbox\n\n## Overview\nExecutes malware samples in Cuckoo Sandbox to observe runtime behavior including process creation, file system modifications, registry changes, network communications, and API calls. Generates comprehensive behavioral reports for malware classification and IOC extraction. Activates for requests involving dynamic malware analysis, sandbox detonation, behavioral analysis, or automated malware execution.\n\n\n\n# Analyzing Malware Behavior with Cuckoo Sandbox\n\n## When to Use\n\n- A suspicious sample passed static analysis triage and requires behavioral observation in a controlled environment\n- You need to capture network traffic, file drops, registry modifications, and API calls from a malware execution\n- Determining the full infection chain including second-stage payload downloads and persistence mechanisms\n- Generating behavioral signatures and YARA rules based on observed runtime activity\n- Automated analysis of bulk malware samples requiring consistent reporting\n\n**Do not use** when the sample is a known ransomware variant that may spread via network shares in a misconfigured sandbox; verify network isolation first.\n\n## Prerequisites\n\n- Cuckoo Sandbox 3.x installed on a dedicated analysis server (Ubuntu 22.04 recommended)\n- Guest VMs configured with Windows 10\u002F11 snapshots (Cuckoo agent installed, snapshots taken at clean state)\n- VirtualBox, KVM, or VMware configured as the Cuckoo virtualization backend\n- Isolated network with InetSim or FakeNet-NG for simulating internet services\n- Suricata or Snort integrated for network-level signature matching during analysis\n- Sufficient disk space for PCAP captures and memory dumps (minimum 500 GB recommended)\n\n## Workflow\n\n### Step 1: Submit Sample to Cuckoo\n\nSubmit the malware sample for automated analysis:\n\n```bash\n# Submit via command line\ncuckoo submit \u002Fpath\u002Fto\u002Fsuspect.exe\n\n# Submit with specific analysis timeout (300 seconds)\ncuckoo submit --timeout 300 \u002Fpath\u002Fto\u002Fsuspect.exe\n\n# Submit with specific VM and analysis package\ncuckoo submit --machine win10_x64 --package exe --timeout 300 \u002Fpath\u002Fto\u002Fsuspect.exe\n\n# Submit via REST API\ncurl -F \"file=@suspect.exe\" -F \"timeout=300\" -F \"machine=win10_x64\" \\\n  http:\u002F\u002Flocalhost:8090\u002Ftasks\u002Fcreate\u002Ffile\n\n# Submit URL for analysis\ncurl -F \"url=http:\u002F\u002Fmalicious-site.com\u002Fpayload\" -F \"timeout=300\" \\\n  http:\u002F\u002Flocalhost:8090\u002Ftasks\u002Fcreate\u002Furl\n\n# Check task status\ncurl http:\u002F\u002Flocalhost:8090\u002Ftasks\u002Fview\u002F1 | jq '.task.status'\n```\n\n### Step 2: Monitor Execution in Real-Time\n\nTrack the analysis progress and observe live behavior:\n\n```bash\n# Watch Cuckoo analysis log\ntail -f \u002Fopt\u002Fcuckoo\u002Flog\u002Fcuckoo.log\n\n# Monitor analysis task status\ncuckoo status\n\n# Access Cuckoo web interface for live screenshots and process tree\n# Navigate to http:\u002F\u002Flocalhost:8080\u002Fanalysis\u002F\u003Ctask_id>\u002F\n```\n\nKey behavioral events to watch during execution:\n- Process creation chain (parent-child relationships)\n- Network connection attempts to external IPs\n- File drops in temporary directories or system folders\n- Registry modifications to Run keys or service entries\n- API calls related to encryption (CryptEncrypt), injection (WriteProcessMemory), or evasion\n\n### Step 3: Analyze Process Activity\n\nReview the process tree and API call trace from the Cuckoo report:\n\n```python\n# Parse Cuckoo JSON report programmatically\nimport json\n\nwith open(\"\u002Fopt\u002Fcuckoo\u002Fstorage\u002Fanalyses\u002F1\u002Freports\u002Freport.json\") as f:\n    report = json.load(f)\n\n# Process tree analysis\nfor process in report[\"behavior\"][\"processes\"]:\n    pid = process[\"pid\"]\n    ppid = process[\"ppid\"]\n    name = process[\"process_name\"]\n    print(f\"PID: {pid} PPID: {ppid} Name: {name}\")\n\n    # Extract suspicious API calls\n    for call in process[\"calls\"]:\n        api = call[\"api\"]\n        if api in [\"CreateRemoteThread\", \"VirtualAllocEx\", \"WriteProcessMemory\",\n                    \"NtCreateThreadEx\", \"RegSetValueExA\", \"URLDownloadToFileA\"]:\n            args = {arg[\"name\"]: arg[\"value\"] for arg in call[\"arguments\"]}\n            print(f\"  [!] {api}({args})\")\n```\n\n### Step 4: Review Network Activity\n\nExamine network connections, DNS queries, and HTTP requests:\n\n```python\n# Network analysis from Cuckoo report\nnetwork = report[\"network\"]\n\n# DNS resolutions\nprint(\"DNS Queries:\")\nfor dns in network.get(\"dns\", []):\n    print(f\"  {dns['request']} -> {dns.get('answers', [])}\")\n\n# HTTP requests\nprint(\"\\nHTTP Requests:\")\nfor http in network.get(\"http\", []):\n    print(f\"  {http['method']} {http['uri']} (Host: {http['host']})\")\n    if http.get(\"body\"):\n        print(f\"    Body: {http['body'][:200]}\")\n\n# TCP connections\nprint(\"\\nTCP Connections:\")\nfor tcp in network.get(\"tcp\", []):\n    print(f\"  {tcp['src']}:{tcp['sport']} -> {tcp['dst']}:{tcp['dport']}\")\n\n# Extract PCAP for deeper Wireshark analysis\n# PCAP location: \u002Fopt\u002Fcuckoo\u002Fstorage\u002Fanalyses\u002F1\u002Fdump.pcap\n```\n\n### Step 5: Examine File System and Registry Changes\n\nDocument persistence mechanisms and dropped files:\n\n```python\n# File operations\nprint(\"Files Created\u002FModified:\")\nfor f in report[\"behavior\"].get(\"summary\", {}).get(\"files\", []):\n    print(f\"  {f}\")\n\n# Dropped files with hashes\nprint(\"\\nDropped Files:\")\nfor dropped in report.get(\"dropped\", []):\n    print(f\"  Path: {dropped['filepath']}\")\n    print(f\"  SHA-256: {dropped['sha256']}\")\n    print(f\"  Size: {dropped['size']} bytes\")\n    print(f\"  Type: {dropped['type']}\")\n\n# Registry modifications\nprint(\"\\nRegistry Keys Modified:\")\nfor key in report[\"behavior\"].get(\"summary\", {}).get(\"keys\", []):\n    print(f\"  {key}\")\n```\n\n### Step 6: Review Signatures and Scoring\n\nCheck Cuckoo's behavioral signatures and threat scoring:\n\n```python\n# Behavioral signatures triggered\nprint(\"Triggered Signatures:\")\nfor sig in report.get(\"signatures\", []):\n    severity = sig[\"severity\"]\n    name = sig[\"name\"]\n    description = sig[\"description\"]\n    marker = \"[!]\" if severity >= 3 else \"[*]\"\n    print(f\"  {marker} [{severity}\u002F5] {name}: {description}\")\n    for mark in sig.get(\"marks\", []):\n        if mark.get(\"call\"):\n            print(f\"      API: {mark['call']['api']}\")\n        if mark.get(\"ioc\"):\n            print(f\"      IOC: {mark['ioc']}\")\n\n# Overall score\nscore = report.get(\"info\", {}).get(\"score\", 0)\nprint(f\"\\nOverall Threat Score: {score}\u002F10\")\n```\n\n### Step 7: Extract Memory Dump Artifacts\n\nAnalyze the full memory dump captured during execution:\n\n```bash\n# Memory dump is saved at:\n# \u002Fopt\u002Fcuckoo\u002Fstorage\u002Fanalyses\u002F1\u002Fmemory.dmp\n\n# Use Volatility to analyze the memory dump\nvol3 -f \u002Fopt\u002Fcuckoo\u002Fstorage\u002Fanalyses\u002F1\u002Fmemory.dmp windows.pslist\nvol3 -f \u002Fopt\u002Fcuckoo\u002Fstorage\u002Fanalyses\u002F1\u002Fmemory.dmp windows.malfind\nvol3 -f \u002Fopt\u002Fcuckoo\u002Fstorage\u002Fanalyses\u002F1\u002Fmemory.dmp windows.netscan\n```\n\n## Key Concepts\n\n| Term | Definition |\n|------|------------|\n| **Dynamic Analysis** | Executing malware in a controlled environment to observe runtime behavior including system calls, network activity, and file operations |\n| **Sandbox Evasion** | Techniques malware uses to detect virtual\u002Fsandbox environments and alter behavior to avoid analysis (sleep timers, VM checks, user interaction checks) |\n| **API Hooking** | Cuckoo's method of intercepting Windows API calls made by the malware to log function names, parameters, and return values |\n| **InetSim** | Internet services simulation tool that responds to malware network requests (HTTP, DNS, SMTP) within the isolated analysis network |\n| **Process Injection** | Malware technique of injecting code into legitimate processes; detected by monitoring VirtualAllocEx and WriteProcessMemory API sequences |\n| **Behavioral Signature** | Rule-based detection matching specific sequences of API calls, file operations, or network activity to known malware behaviors |\n| **Analysis Package** | Cuckoo module defining how to execute a specific file type (exe, dll, pdf, doc) within the guest VM for proper behavioral capture |\n\n## Tools & Systems\n\n- **Cuckoo Sandbox**: Open-source automated malware analysis system providing behavioral reports, network captures, and memory dumps\n- **InetSim**: Internet services simulation suite providing fake HTTP, DNS, SMTP, and other services for isolated malware analysis networks\n- **FakeNet-NG**: FLARE team's network simulation tool that intercepts and redirects all network traffic for analysis\n- **Suricata**: Network IDS\u002FIPS integrated with Cuckoo for real-time signature-based detection of malicious network traffic\n- **Volatility**: Memory forensics framework used to analyze memory dumps captured during Cuckoo analysis\n\n## Common Scenarios\n\n### Scenario: Analyzing a Multi-Stage Dropper\n\n**Context**: Static analysis reveals a packed executable with minimal imports and high entropy. The sample needs sandbox execution to observe unpacking, payload delivery, and C2 establishment.\n\n**Approach**:\n1. Submit sample to Cuckoo with extended timeout (600 seconds) to capture slow-acting behavior\n2. Review process tree for child process creation (dropper spawning payload processes)\n3. Identify dropped files in %TEMP%, %APPDATA%, or system directories\n4. Extract dropped files and compute hashes for separate analysis\n5. Map network connections to identify C2 infrastructure contacted after initial execution\n6. Check for persistence mechanisms (Run keys, scheduled tasks, services) in registry modifications\n7. Compare behavioral signatures against known malware families\n\n**Pitfalls**:\n- Using insufficient analysis timeout causing the sandbox to terminate before second-stage payload executes\n- Not configuring InetSim to respond to DNS and HTTP requests, preventing the malware from progressing past C2 check-in\n- Ignoring sandbox evasion detections; if the sample exits immediately, it may be detecting the virtual environment\n- Not analyzing dropped files separately; the initial dropper may be less interesting than the final payload\n\n## Output Format\n\n```\nDYNAMIC ANALYSIS REPORT - CUCKOO SANDBOX\n==========================================\nTask ID:          1547\nSample:           suspect.exe (SHA-256: e3b0c44298fc1c149afbf4c8996fb924...)\nAnalysis Time:    300 seconds\nVM:               win10_x64 (Windows 10 21H2)\nScore:            8.5\u002F10\n\nPROCESS TREE\nsuspect.exe (PID: 2184)\n  └── cmd.exe (PID: 3456)\n      └── powershell.exe (PID: 4012)\n          └── svchost_fake.exe (PID: 4568)\n\nFILE SYSTEM ACTIVITY\n[CREATED]  C:\\Users\\Admin\\AppData\\Local\\Temp\\payload.dll\n[CREATED]  C:\\Windows\\System32\\svchost_fake.exe\n[MODIFIED] C:\\Windows\\System32\\drivers\\etc\\hosts\n\nREGISTRY MODIFICATIONS\n[SET] HKCU\\Software\\Microsoft\\Windows\\CurrentVersion\\Run\\WindowsUpdate = \"C:\\Windows\\System32\\svchost_fake.exe\"\n[SET] HKLM\\SYSTEM\\CurrentControlSet\\Services\\FakeService\\ImagePath = \"C:\\Windows\\System32\\svchost_fake.exe\"\n\nNETWORK ACTIVITY\nDNS:    update.malicious[.]com -> 185.220.101.42\nHTTP:   POST hxxps:\u002F\u002F185.220.101[.]42\u002Fgate.php (beacon)\nTCP:    10.0.2.15:49152 -> 185.220.101.42:443 (237 connections)\n\nBEHAVIORAL SIGNATURES\n[!] [4\u002F5] injection_createremotethread: Injects code into remote process\n[!] [4\u002F5] persistence_autorun: Modifies Run registry key for persistence\n[!] [3\u002F5] network_cnc_http: Performs HTTP C2 communication\n[*] [2\u002F5] antiav_detectfile: Checks for antivirus product files\n\nDROPPED FILES\npayload.dll    SHA-256: abc123... Size: 98304  Type: PE32 DLL\nsvchost_fake.exe SHA-256: def456... Size: 184320 Type: PE32 EXE\n```\n","# Analyzing-Malware-Behavior-With-Cuckoo-Sandbox\n\n## Overview\nExecutes malware samples in Cuckoo Sandbox to observe runtime behavior including process creation, file system modifications, registry changes, network communications, and API calls. Generates comprehensive behavioral reports for malware classification and IOC extraction. Activates for requests involving dynamic malware analysis, sandbox detonation, behavioral analysis, or automated malware execution.\n\n\n\n# Analyzing Malware Behavior with Cuckoo Sandbox\n\n## When to Use\n\n- A suspicious sample passed static analysis triage and requires behavioral observation in a controlled environment\n- You need to capture network traffic, file drops, registry modifications, and API calls from a malware execution\n- Determining the full infection chain including second-stage payload downloads and persistence mechanisms\n- Generating behavioral signatures and YARA rules based on observed runtime activity\n- Automated analysis of bulk malware samples requiring consistent reporting\n\n**Do not use** when the sample is a known ransomware variant that may spread via network shares in a misconfigured sandbox; verify network isolation first.\n\n## Prerequisites\n\n- Cuckoo Sandbox 3.x installed on a dedicated analysis server (Ubuntu 22.04 recommended)\n- Guest VMs configured with Windows 10\u002F11 snapshots (Cuckoo agent installed, snapshots taken at clean state)\n- VirtualBox, KVM, or VMware configured as the Cuckoo virtualization backend\n- Isolated network with InetSim or FakeNet-NG for simulating internet services\n- Suricata or Snort integrated for network-level signature matching during analysis\n- Sufficient disk space for PCAP captures and memory dumps (minimum 500 GB recommended)\n\n## Workflow\n\n### Step 1: Submit Sample to Cuckoo\n\nSubmit the malware sample for automated analysis:\n\n```bash\n# Submit via command line\ncuckoo submit \u002Fpath\u002Fto\u002Fsuspect.exe\n\n# Submit with specific analysis timeout (300 seconds)\ncuckoo submit --timeout 300 \u002Fpath\u002Fto\u002Fsuspect.exe\n\n# Submit with specific VM and analysis package\ncuckoo submit --machine win10_x64 --package exe --timeout 300 \u002Fpath\u002Fto\u002Fsuspect.exe\n\n# Submit via REST API\ncurl -F \"file=@suspect.exe\" -F \"timeout=300\" -F \"machine=win10_x64\" \\\n  http:\u002F\u002Flocalhost:8090\u002Ftasks\u002Fcreate\u002Ffile\n\n# Submit URL for analysis\ncurl -F \"url=http:\u002F\u002Fmalicious-site.com\u002Fpayload\" -F \"timeout=300\" \\\n  http:\u002F\u002Flocalhost:8090\u002Ftasks\u002Fcreate\u002Furl\n\n# Check task status\ncurl http:\u002F\u002Flocalhost:8090\u002Ftasks\u002Fview\u002F1 | jq '.task.status'\n```\n\n### Step 2: Monitor Execution in Real-Time\n\nTrack the analysis progress and observe live behavior:\n\n```bash\n# Watch Cuckoo analysis log\ntail -f \u002Fopt\u002Fcuckoo\u002Flog\u002Fcuckoo.log\n\n# Monitor analysis task status\ncuckoo status\n\n# Access Cuckoo web interface for live screenshots and process tree\n# Navigate to http:\u002F\u002Flocalhost:8080\u002Fanalysis\u002F\u003Ctask_id>\u002F\n```\n\nKey behavioral events to watch during execution:\n- Process creation chain (parent-child relationships)\n- Network connection attempts to external IPs\n- File drops in temporary directories or system folders\n- Registry modifications to Run keys or service entries\n- API calls related to encryption (CryptEncrypt), injection (WriteProcessMemory), or evasion\n\n### Step 3: Analyze Process Activity\n\nReview the process tree and API call trace from the Cuckoo report:\n\n```python\n# Parse Cuckoo JSON report programmatically\nimport json\n\nwith open(\"\u002Fopt\u002Fcuckoo\u002Fstorage\u002Fanalyses\u002F1\u002Freports\u002Freport.json\") as f:\n    report = json.load(f)\n\n# Process tree analysis\nfor process in report[\"behavior\"][\"processes\"]:\n    pid = process[\"pid\"]\n    ppid = process[\"ppid\"]\n    name = process[\"process_name\"]\n    print(f\"PID: {pid} PPID: {ppid} Name: {name}\")\n\n    # Extract suspicious API calls\n    for call in process[\"calls\"]:\n        api = call[\"api\"]\n        if api in [\"CreateRemoteThread\", \"VirtualAllocEx\", \"WriteProcessMemory\",\n                    \"NtCreateThreadEx\", \"RegSetValueExA\", \"URLDownloadToFileA\"]:\n            args = {arg[\"name\"]: arg[\"value\"] for arg in call[\"arguments\"]}\n            print(f\"  [!] {api}({args})\")\n```\n\n### Step 4: Review Network Activity\n\nExamine network connections, DNS queries, and HTTP requests:\n\n```python\n# Network analysis from Cuckoo report\nnetwork = report[\"network\"]\n\n# DNS resolutions\nprint(\"DNS Queries:\")\nfor dns in network.get(\"dns\", []):\n    print(f\"  {dns['request']} -> {dns.get('answers', [])}\")\n\n# HTTP requests\nprint(\"\\nHTTP Requests:\")\nfor http in network.get(\"http\", []):\n    print(f\"  {http['method']} {http['uri']} (Host: {http['host']})\")\n    if http.get(\"body\"):\n        print(f\"    Body: {http['body'][:200]}\")\n\n# TCP connections\nprint(\"\\nTCP Connections:\")\nfor tcp in network.get(\"tcp\", []):\n    print(f\"  {tcp['src']}:{tcp['sport']} -> {tcp['dst']}:{tcp['dport']}\")\n\n# Extract PCAP for deeper Wireshark analysis\n# PCAP location: \u002Fopt\u002Fcuckoo\u002Fstorage\u002Fanalyses\u002F1\u002Fdump.pcap\n```\n\n### Step 5: Examine File System and Registry Changes\n\nDocument persistence mechanisms and dropped files:\n\n```python\n# File operations\nprint(\"Files Created\u002FModified:\")\nfor f in report[\"behavior\"].get(\"summary\", {}).get(\"files\", []):\n    print(f\"  {f}\")\n\n# Dropped files with hashes\nprint(\"\\nDropped Files:\")\nfor dropped in report.get(\"dropped\", []):\n    print(f\"  Path: {dropped['filepath']}\")\n    print(f\"  SHA-256: {dropped['sha256']}\")\n    print(f\"  Size: {dropped['size']} bytes\")\n    print(f\"  Type: {dropped['type']}\")\n\n# Registry modifications\nprint(\"\\nRegistry Keys Modified:\")\nfor key in report[\"behavior\"].get(\"summary\", {}).get(\"keys\", []):\n    print(f\"  {key}\")\n```\n\n### Step 6: Review Signatures and Scoring\n\nCheck Cuckoo's behavioral signatures and threat scoring:\n\n```python\n# Behavioral signatures triggered\nprint(\"Triggered Signatures:\")\nfor sig in report.get(\"signatures\", []):\n    severity = sig[\"severity\"]\n    name = sig[\"name\"]\n    description = sig[\"description\"]\n    marker = \"[!]\" if severity >= 3 else \"[*]\"\n    print(f\"  {marker} [{severity}\u002F5] {name}: {description}\")\n    for mark in sig.get(\"marks\", []):\n        if mark.get(\"call\"):\n            print(f\"      API: {mark['call']['api']}\")\n        if mark.get(\"ioc\"):\n            print(f\"      IOC: {mark['ioc']}\")\n\n# Overall score\nscore = report.get(\"info\", {}).get(\"score\", 0)\nprint(f\"\\nOverall Threat Score: {score}\u002F10\")\n```\n\n### Step 7: Extract Memory Dump Artifacts\n\nAnalyze the full memory dump captured during execution:\n\n```bash\n# Memory dump is saved at:\n# \u002Fopt\u002Fcuckoo\u002Fstorage\u002Fanalyses\u002F1\u002Fmemory.dmp\n\n# Use Volatility to analyze the memory dump\nvol3 -f \u002Fopt\u002Fcuckoo\u002Fstorage\u002Fanalyses\u002F1\u002Fmemory.dmp windows.pslist\nvol3 -f \u002Fopt\u002Fcuckoo\u002Fstorage\u002Fanalyses\u002F1\u002Fmemory.dmp windows.malfind\nvol3 -f \u002Fopt\u002Fcuckoo\u002Fstorage\u002Fanalyses\u002F1\u002Fmemory.dmp windows.netscan\n```\n\n## Key Concepts\n\n| Term | Definition |\n|------|------------|\n| **Dynamic Analysis** | Executing malware in a controlled environment to observe runtime behavior including system calls, network activity, and file operations |\n| **Sandbox Evasion** | Techniques malware uses to detect virtual\u002Fsandbox environments and alter behavior to avoid analysis (sleep timers, VM checks, user interaction checks) |\n| **API Hooking** | Cuckoo's method of intercepting Windows API calls made by the malware to log function names, parameters, and return values |\n| **InetSim** | Internet services simulation tool that responds to malware network requests (HTTP, DNS, SMTP) within the isolated analysis network |\n| **Process Injection** | Malware technique of injecting code into legitimate processes; detected by monitoring VirtualAllocEx and WriteProcessMemory API sequences |\n| **Behavioral Signature** | Rule-based detection matching specific sequences of API calls, file operations, or network activity to known malware behaviors |\n| **Analysis Package** | Cuckoo module defining how to execute a specific file type (exe, dll, pdf, doc) within the guest VM for proper behavioral capture |\n\n## Tools & Systems\n\n- **Cuckoo Sandbox**: Open-source automated malware analysis system providing behavioral reports, network captures, and memory dumps\n- **InetSim**: Internet services simulation suite providing fake HTTP, DNS, SMTP, and other services for isolated malware analysis networks\n- **FakeNet-NG**: FLARE team's network simulation tool that intercepts and redirects all network traffic for analysis\n- **Suricata**: Network IDS\u002FIPS integrated with Cuckoo for real-time signature-based detection of malicious network traffic\n- **Volatility**: Memory forensics framework used to analyze memory dumps captured during Cuckoo analysis\n\n## Common Scenarios\n\n### Scenario: Analyzing a Multi-Stage Dropper\n\n**Context**: Static analysis reveals a packed executable with minimal imports and high entropy. The sample needs sandbox execution to observe unpacking, payload delivery, and C2 establishment.\n\n**Approach**:\n1. Submit sample to Cuckoo with extended timeout (600 seconds) to capture slow-acting behavior\n2. Review process tree for child process creation (dropper spawning payload processes)\n3. Identify dropped files in %TEMP%, %APPDATA%, or system directories\n4. Extract dropped files and compute hashes for separate analysis\n5. Map network connections to identify C2 infrastructure contacted after initial execution\n6. Check for persistence mechanisms (Run keys, scheduled tasks, services) in registry modifications\n7. Compare behavioral signatures against known malware families\n\n**Pitfalls**:\n- Using insufficient analysis timeout causing the sandbox to terminate before second-stage payload executes\n- Not configuring InetSim to respond to DNS and HTTP requests, preventing the malware from progressing past C2 check-in\n- Ignoring sandbox evasion detections; if the sample exits immediately, it may be detecting the virtual environment\n- Not analyzing dropped files separately; the initial dropper may be less interesting than the final payload\n\n## Output Format\n\n```\nDYNAMIC ANALYSIS REPORT - CUCKOO SANDBOX\n==========================================\nTask ID:          1547\nSample:           suspect.exe (SHA-256: e3b0c44298fc1c149afbf4c8996fb924...)\nAnalysis Time:    300 seconds\nVM:               win10_x64 (Windows 10 21H2)\nScore:            8.5\u002F10\n\nPROCESS TREE\nsuspect.exe (PID: 2184)\n  └── cmd.exe (PID: 3456)\n      └── powershell.exe (PID: 4012)\n          └── svchost_fake.exe (PID: 4568)\n\nFILE SYSTEM ACTIVITY\n[CREATED]  C:\\Users\\Admin\\AppData\\Local\\Temp\\payload.dll\n[CREATED]  C:\\Windows\\System32\\svchost_fake.exe\n[MODIFIED] C:\\Windows\\System32\\drivers\\etc\\hosts\n\nREGISTRY MODIFICATIONS\n[SET] HKCU\\Software\\Microsoft\\Windows\\CurrentVersion\\Run\\WindowsUpdate = \"C:\\Windows\\System32\\svchost_fake.exe\"\n[SET] HKLM\\SYSTEM\\CurrentControlSet\\Services\\FakeService\\ImagePath = \"C:\\Windows\\System32\\svchost_fake.exe\"\n\nNETWORK ACTIVITY\nDNS:    update.malicious[.]com -> 185.220.101.42\nHTTP:   POST hxxps:\u002F\u002F185.220.101[.]42\u002Fgate.php (beacon)\nTCP:    10.0.2.15:49152 -> 185.220.101.42:443 (237 connections)\n\nBEHAVIORAL SIGNATURES\n[!] [4\u002F5] injection_createremotethread: Injects code into remote process\n[!] [4\u002F5] persistence_autorun: Modifies Run registry key for persistence\n[!] [3\u002F5] network_cnc_http: Performs HTTP C2 communication\n[*] [2\u002F5] antiav_detectfile: Checks for antivirus product files\n\nDROPPED FILES\npayload.dll    SHA-256: abc123... Size: 98304  Type: PE32 DLL\nsvchost_fake.exe SHA-256: def456... Size: 184320 Type: PE32 EXE\n```\n",{"name":5,"tags":44,"author":47,"domain":38,"license":15,"version":48,"category":5,"nist_csf":49,"subdomain":54,"description":7,"mitre_attack":55},[21,45,19,22,46],"dynamic-analysis","behavioral-analysis","mahipal","1.0.0",[50,51,52,53],"DE.AE-02","RS.AN-03","ID.RA-01","DE.CM-01","malware-analysis",[56,57,58,59],"T1497","T1055","T1071","T1027","main","5eea5b3296f4673b5f481e8bcc1ba76281149f16","modules\u002Fanalyzing-malware-behavior-with-cuckoo-sandbox",0,"https:\u002F\u002Fgithub.com\u002FHenriqueMC17\u002Fagente-core","https:\u002F\u002Fgithub.com\u002FHenriqueMC17","Qualquer tecnologia suficientemente avançada é indistinguível da mágica.","2026-09-28 22:40:38",{"source":8,"skillName":5,"commands":69,"prompt":79,"zipAvailable":80},[70,73,76],{"tool":71,"command":72},"npx","npx skills add HenriqueMC17\u002Fagente-core --skill analyzing-malware-behavior-with-cuckoo-sandbox",{"tool":74,"command":75},"bunx","bunx skills add HenriqueMC17\u002Fagente-core --skill analyzing-malware-behavior-with-cuckoo-sandbox",{"tool":77,"command":78},"pnpm","pnpm dlx skills add HenriqueMC17\u002Fagente-core --skill analyzing-malware-behavior-with-cuckoo-sandbox","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FHenriqueMC17\u002Fagente-core\u002Fblob\u002Fmain\u002Fmodules\u002Fanalyzing-malware-behavior-with-cuckoo-sandbox\u002FSKILL.md",true,[82,87,93],{"path":83,"resourceType":83,"resourceTypeDesc":84,"sizeBytes":85,"sourceHtmlUrl":86},"LICENSE","许可证",11255,"https:\u002F\u002Fgithub.com\u002FHenriqueMC17\u002Fagente-core\u002Fblob\u002Fmain\u002Fmodules\u002Fanalyzing-malware-behavior-with-cuckoo-sandbox\u002FLICENSE",{"path":88,"resourceType":89,"resourceTypeDesc":90,"sizeBytes":91,"sourceHtmlUrl":92},"references\u002Fapi-reference.md","REFERENCE","参考文档",2664,"https:\u002F\u002Fgithub.com\u002FHenriqueMC17\u002Fagente-core\u002Fblob\u002Fmain\u002Fmodules\u002Fanalyzing-malware-behavior-with-cuckoo-sandbox\u002Freferences\u002Fapi-reference.md",{"path":94,"resourceType":95,"resourceTypeDesc":96,"sizeBytes":97,"sourceHtmlUrl":98},"scripts\u002Fagent.py","SCRIPT","脚本",9324,"https:\u002F\u002Fgithub.com\u002FHenriqueMC17\u002Fagente-core\u002Fblob\u002Fmain\u002Fmodules\u002Fanalyzing-malware-behavior-with-cuckoo-sandbox\u002Fscripts\u002Fagent.py",[100,125,150,172,188,207],{"skillNo":101,"name":102,"nameZh":6,"description":103,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":104,"categories":105,"keywords":106,"publishedAt":39},"01M6HPFF0RCN0X6WT5EBSV71GY","validating-backup-integrity-for-recovery","Validate backup integrity through cryptographic hash verification, automated restore testing, corruption detection, and recoverability checks to ensure backups are reliable for disaster recovery and ransomware response scenarios.","https:\u002F\u002Fgithub.com\u002FHenriqueMC17\u002Fagente-core\u002Fblob\u002Fmain\u002Fmodules\u002Fvalidating-backup-integrity-for-recovery\u002FSKILL.md",[],[107,108,109,110,26,111,38,112,113,114,115,116,117,118,119,120,121,122,123,124],"integrity","backup","recovery","validating backup integrity for recovery","testing","validate","verification","hash-verification","incident-response","ransomware","detection","t1078","t1490","disaster-recovery","restore","incident","disaster recovery","ransomware response",{"skillNo":126,"name":127,"nameZh":6,"description":128,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":129,"categories":130,"keywords":131,"publishedAt":39},"01M6HPFAWJVFK25Q33K3T7WQ8G","triaging-vulnerabilities-with-ssvc-framework","Triage and prioritize vulnerabilities using CISA's Stakeholder-Specific Vulnerability Categorization (SSVC) decision tree framework to produce actionable remediation priorities.","https:\u002F\u002Fgithub.com\u002FHenriqueMC17\u002Fagente-core\u002Fblob\u002Fmain\u002Fmodules\u002Ftriaging-vulnerabilities-with-ssvc-framework\u002FSKILL.md",[],[132,133,134,135,20,38,136,137,138,139,140,141,142,143,144,145,146,147,148,149],"vulnerabilities","framework","ssvc","triaging vulnerabilities with ssvc framework","triage and prioritize","CISA","vulnerability-management","risk-management","cvss","remediation","vulnerability","prioritization","decision-tree","prioritize","decision","priorities","actionable","tree",{"skillNo":151,"name":152,"nameZh":6,"description":153,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":154,"categories":155,"keywords":156,"publishedAt":39},"01M6HPF6JS9X72WP59094H3ASQ","triaging-security-incident","Performs initial triage of security incidents to determine severity, scope, and required response actions using the NIST SP 800-61r3 and SANS PICERL frameworks. Classifies incidents by type, assigns priority based on business impact, and routes...","https:\u002F\u002Fgithub.com\u002FHenriqueMC17\u002Fagente-core\u002Fblob\u002Fmain\u002Fmodules\u002Ftriaging-security-incident\u002FSKILL.md",[],[157,158,122,38,159,160,161,118,119,35,162,163,164,165,166,167,168,169,170,171],"security","triaging security incident","actions","soc","NIST","severity-classification","incident-triage","SANS-PICERL","SOC-operations","picerl","conversion","isolation","scope","impact","consistency",{"skillNo":173,"name":174,"nameZh":6,"description":175,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":176,"categories":177,"keywords":178,"publishedAt":39},"01M6HPF2EX6ZYNYYHKBRJN7GEF","triaging-security-incident-with-ir-playbook","Classify and prioritize security incidents using structured IR playbooks to determine severity, assign response teams, and initiate appropriate response procedures.","https:\u002F\u002Fgithub.com\u002FHenriqueMC17\u002Fagente-core\u002Fblob\u002Fmain\u002Fmodules\u002Ftriaging-security-incident-with-ir-playbook\u002FSKILL.md",[],[157,179,180,158,122,20,38,181,160,115,182,183,118,119,184,162,145,185,186,187],"playbook","triaging security incident with ir playbook","teams","IR-playbook","severity","classification","classify","incidents","initiate",{"skillNo":189,"name":190,"nameZh":6,"description":191,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":192,"categories":193,"keywords":194,"publishedAt":39},"01M6HPEY9XPGE7X95AG4XJFQAW","triaging-security-alerts-in-splunk","Triages security alerts in Splunk Enterprise Security by classifying severity, investigating notable events, correlating related telemetry, and making escalation or closure decisions using SPL queries and the Incident Review dashboard. Use when...","https:\u002F\u002Fgithub.com\u002FHenriqueMC17\u002Fagente-core\u002Fblob\u002Fmain\u002Fmodules\u002Ftriaging-security-alerts-in-splunk\u002FSKILL.md",[],[157,195,196,197,198,199,38,200,201,202,160,203,118,204,205,206,165,32,122,28],"security alerts","splunk","triaging security alerts in splunk","alerts","review","siem","dashboard","search","correlation-search","t1566","notable-events","incident-review",{"skillNo":208,"name":209,"nameZh":6,"description":210,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":211,"categories":212,"keywords":213,"publishedAt":39},"01M6HPET6XGEPEJPN7V032JGZ0","tracking-threat-actor-infrastructure","Threat actor infrastructure tracking involves monitoring and mapping adversary-controlled assets including command-and-control (C2) servers, phishing domains, exploit kit hosts, bulletproof hosting, a","https:\u002F\u002Fgithub.com\u002FHenriqueMC17\u002Fagente-core\u002Fblob\u002Fmain\u002Fmodules\u002Ftracking-threat-actor-infrastructure\u002FSKILL.md",[],[214,215,216,217,38,218,219,220,221,222,223,204,224,225,32,226,28,227,228,229],"infrastructure","tracking threat actor infrastructure","tracking","threat","monitoring","mitre-attack","threat-actor","threat-intelligence","command-and-control","dns","command","exploit","intelligence","domains","kit","hosts"]