Chuyển đến nội dung
Skillpedia
Phân tích và bảng tính35k · #7627

analyzing-malware-behavior-with-cuckoo-sandbox

Skill này làm gì

Công cụ này chạy một chương trình đáng ngờ trong môi trường an toàn (Cuckoo Sandbox) để xem nó làm gì. Nó theo dõi cách chương trình tương tác với máy tính, thay đổi file, truy cập internet và sử dụng các lệnh nào.

Khi nào nên dùng

  • ✓Khi bạn có một file đáng ngờ và muốn xem nó làm gì mà không gây rủi ro cho máy tính của mình.
  • ✓Để hiểu cách một chương trình độc hại lan truyền và cài đặt các thứ trên hệ thống.
  • ✓Để tạo quy tắc phát hiện dựa trên hành vi của chương trình.

Liên kết skill

https://github.com/mukul975/Anthropic-Cybersecurity-Skills/blob/main/skills/analyzing-malware-behavior-with-cuckoo-sandbox/SKILL.md

Sao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.

Cách dùng

Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.

Tin nhắn có sẵn để dán

Hãy dùng skill này để giúp tôi: https://github.com/mukul975/Anthropic-Cybersecurity-Skills/blob/main/skills/analyzing-malware-behavior-with-cuckoo-sandbox/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

Ví dụ cách nhờ AI

“Phân tích file đáng ngờ này trong Cuckoo Sandbox và cho tôi biết nó có cố cài đặt thứ gì hoặc kết nối tới trang web độc hại không.”

5 skill mới mỗi tuần. Đọc chỉ 1 phút.

Cách hoạt động

Bạn gửi file tới Cuckoo Sandbox, nơi chạy file trong một máy ảo biệt lập. Sau đó, hệ thống tạo báo cáo chi tiết về mọi hành động mà chương trình đã thực hiện.

Nội dung kỹ thuật (SKILL.md gốc)

Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.

Analyzing Malware Behavior with Cuckoo Sandbox

When to Use

  • A suspicious sample passed static analysis triage and requires behavioral observation in a controlled environment
  • You need to capture network traffic, file drops, registry modifications, and API calls from a malware execution
  • Determining the full infection chain including second-stage payload downloads and persistence mechanisms
  • Generating behavioral signatures and YARA rules based on observed runtime activity
  • Automated analysis of bulk malware samples requiring consistent reporting

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.

Prerequisites

  • Cuckoo Sandbox 3.x installed on a dedicated analysis server (Ubuntu 22.04 recommended)
  • Guest VMs configured with Windows 10/11 snapshots (Cuckoo agent installed, snapshots taken at clean state)
  • VirtualBox, KVM, or VMware configured as the Cuckoo virtualization backend
  • Isolated network with InetSim or FakeNet-NG for simulating internet services
  • Suricata or Snort integrated for network-level signature matching during analysis
  • Sufficient disk space for PCAP captures and memory dumps (minimum 500 GB recommended)

Workflow

Step 1: Submit Sample to Cuckoo

Submit the malware sample for automated analysis:

# Submit via command line
cuckoo submit /path/to/suspect.exe

# Submit with specific analysis timeout (300 seconds)
cuckoo submit --timeout 300 /path/to/suspect.exe

# Submit with specific VM and analysis package
cuckoo submit --machine win10_x64 --package exe --timeout 300 /path/to/suspect.exe

# Submit via REST API
curl -F "file=@suspect.exe" -F "timeout=300" -F "machine=win10_x64" \
  http://localhost:8090/tasks/create/file

# Submit URL for analysis
curl -F "url=http://malicious-site.com/payload" -F "timeout=300" \
  http://localhost:8090/tasks/create/url

# Check task status
curl http://localhost:8090/tasks/view/1 | jq '.task.status'

Step 2: Monitor Execution in Real-Time

Track the analysis progress and observe live behavior:

# Watch Cuckoo analysis log
tail -f /opt/cuckoo/log/cuckoo.log

# Monitor analysis task status
cuckoo status

# Access Cuckoo web interface for live screenshots and process tree
# Navigate to http://localhost:8080/analysis/<task_id>/

Key behavioral events to watch during execution:

  • Process creation chain (parent-child relationships)
  • Network connection attempts to external IPs
  • File drops in temporary directories or system folders
  • Registry modifications to Run keys or service entries
  • API calls related to encryption (CryptEncrypt), injection (WriteProcessMemory), or evasion

Step 3: Analyze Process Activity

Review the process tree and API call trace from the Cuckoo report:

# Parse Cuckoo JSON report programmatically
import json

with open("/opt/cuckoo/storage/analyses/1/reports/report.json") as f:
    report = json.load(f)

# Process tree analysis
for process in report["behavior"]["processes"]:
    pid = process["pid"]
    ppid = process["ppid"]
    name = process["process_name"]
    print(f"PID: {pid} PPID: {ppid} Name: {name}")

    # Extract suspicious API calls
    for call in process["calls"]:
        api = call["api"]
        if api in ["CreateRemoteThread", "VirtualAllocEx", "WriteProcessMemory",
                    "NtCreateThreadEx", "RegSetValueExA", "URLDownloadToFileA"]:
            args = {arg["name"]: arg["value"] for arg in call["arguments"]}
            print(f"  [!] {api}({args})")

Step 4: Review Network Activity

Examine network connections, DNS queries, and HTTP requests:

# Network analysis from Cuckoo report
network = report["network"]

# DNS resolutions
print("DNS Queries:")
for dns in network.get("dns", []):
    print(f"  {dns['request']} -> {dns.get('answers', [])}")

# HTTP requests
print("\nHTTP Requests:")
for http in network.get("http", []):
    print(f"  {http['method']} {http['uri']} (Host: {http['host']})")
    if http.get("body"):
        print(f"    Body: {http['body'][:200]}")

# TCP connections
print("\nTCP Connections:")
for tcp in network.get("tcp", []):
    print(f"  {tcp['src']}:{tcp['sport']} -> {tcp['dst']}:{tcp['dport']}")

# Extract PCAP for deeper Wireshark analysis
# PCAP location: /opt/cuckoo/storage/analyses/1/dump.pcap

Step 5: Examine File System and Registry Changes

Document persistence mechanisms and dropped files:

…

Câu hỏi thường gặp

Cuckoo Sandbox là gì?

Đây là chương trình tạo ra một môi trường an toàn và biệt lập để chạy các file đáng ngờ và quan sát hành vi mà không ảnh hưởng đến máy tính thật của bạn.

IOC là gì?

IOC (Indicators of Compromise) là các dấu hiệu cho thấy hệ thống đã bị tấn công, như địa chỉ website độc hại hoặc tên file cụ thể.

Tôi có thể dùng công cụ này cho mọi file không?

Không. Không nên dùng cho ransomware đã biết, vì nó có thể lây lan trong các mạng được cấu hình sai. Luôn xác minh việc cách ly mạng trước.

Chi tiết

Mô tả gốc của tác giả

Detonate malware samples in Cuckoo Sandbox to observe runtime behavior — process creation, file system and registry changes, network communications, and API calls — and generate behavioral reports for classification and IOC extraction. Use when a sample has passed static triage and needs dynamic/behavioral analysis, when mapping a full infection chain, or when building YARA/behavioral signatures f

repo: mukul975/Anthropic-Cybersecurity-Skills

Độ phổ biến

Sao GitHub
35k
Vị trí xếp hạng
#7627
Giấy phép
Apache-2.0
Cập nhật
31/8/2026

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự