reverser-fileless-malware
Skill này làm gì
Skill giải thích cách tìm và nghiên cứu mã độc sống trong bộ nhớ thay vì ổ cứng. Dành cho nhà phân tích bảo mật điều tra sự cố trên hệ thống Windows.
Khi nào nên dùng
- ✓Khi đội bảo mật nghi ngờ có mã độc không bao giờ xuất hiện như một file trên đĩa.
- ✓Khi nhà phân tích cần quét các tiến trình đang chạy để tìm mã bị chèn vào.
- ✓Khi người xử lý sự cố muốn đọc hoạt động PowerShell gần đây từ nhật ký sự kiện.
Liên kết skill
https://github.com/BitterSecurity/Decepticon/blob/main/packages/decepticon/decepticon/skills/standard/reverser/fileless-malware/SKILL.mdSao 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
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Có thứ gì đó dường như chạy trong bộ nhớ trên máy tính này mà không có file nào. Làm sao để kiểm tra?”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Skill đưa ra các bước quét chương trình đang chạy để tìm mã bị chèn, lưu bản dump bộ nhớ để nghiên cứu và xem nhật ký hoạt động script. AI báo cáo các tiến trình bất thường.
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.
Fileless Malware Analysis
Detect, extract, and analyze malware that lives entirely in memory — no files on disk. Covers AMSI bypass techniques, reflective loading, process injection variants, and LOLBin abuse chains.
Quick Reference
# Scan for injected code in running processes
pe-sieve.exe /pid <PID> /dir ./dump/ /shellc /iat 3
# Scan ALL processes at once
hollows_hunter.exe /dir ./hunt_results/
# Dump suspicious process memory
procdump.exe -ma <PID> process.dmp
# Search memory dump for PE headers
python3 -c "
d=open('process.dmp','rb').read()
import re
for m in re.finditer(b'MZ',d):
off=m.start()
if d[off+0x3c:off+0x40] != b'\x00'*4:
print(f'PE header at offset 0x{off:x}')
"
# Extract PowerShell from event logs
wevtutil qe Microsoft-Windows-PowerShell/Operational /f:text /c:50
MITRE ATT&CK Mapping
| Technique | ID | How It Appears |
|---|---|---|
| PowerShell | T1059.001 | Encoded cradles, AMSI bypass, download-execute chains |
| Reflective Code Loading | T1620 | Assembly.Load(byte[]), ReflectiveLoader in shellcode, Donut payloads |
| Process Injection | T1055 | Classic injection, process hollowing (T1055.012), thread hijacking |
| Impair Defenses: AMSI | T1562.001 | Patching AmsiScanBuffer, CLR hooking, registry disable |
| WMI Event Subscription | T1546.003 | Fileless persistence via WMI consumers |
| Signed Binary Proxy | T1218 | mshta, rundll32, regsvr32, msbuild LOLBin execution |
1. Detect In-Memory Artifacts
Identify processes with injected or hollowed code regions.
# pe-sieve — scan single process for implants
pe-sieve.exe /pid <PID> /shellc /threads /iat 3 /dir ./pe_sieve_out/
# Output: report.json with findings per memory region
# hollows_hunter — system-wide sweep
hollows_hunter.exe /dir ./hh_out/ /shellc /loop
# Scans every process; reports: hollowed, implanted, unreachable
# Process Hacker — manual inspection (GUI)
# 1. Open Process Hacker → Properties on suspect process
# 2. Memory tab → look for:
# - RWX regions (should be rare in legit processes)
# - Private regions with PE headers (MZ signature)
# - Mapped regions not backed by a file
# 3. Threads tab → look for:
# - Threads with start address in unbacked memory
# - Threads in ntdll!RtlUserThreadStart pointing to RWX region
# Volatility 3 — analyze memory image
vol3 -f memory.raw windows.malfind
vol3 -f memory.raw windows.vadinfo --pid <PID>
vol3 -f memory.raw windows.hollowfind
2. AMSI Bypass Analysis
Understand and detect AMSI patching techniques.
# Common AMSI bypass: patching AmsiScanBuffer in amsi.dll
# The bypass writes 0xC3 (RET) or specific bytes to the function prolog
# Detection: compare amsi.dll in-memory vs on-disk
# Check if AMSI is patched in a process
python3 << 'EOF'
import ctypes, ctypes.wintypes
# Load amsi.dll and get AmsiScanBuffer address
amsi = ctypes.windll.LoadLibrary("amsi.dll")
addr = ctypes.windll.kernel32.GetProcAddress(amsi._handle, b"AmsiScanBuffer")
# Read first bytes — should NOT be 0xC3 (ret) or 0x80 (cmp byte patched)
buf = (ctypes.c_byte * 8)()
ctypes.memmove(buf, addr, 8)
first_bytes = bytes(buf)
print(f"AmsiScanBuffer prolog: {first_bytes.hex()}")
if first_bytes[0] == 0xC3 or first_bytes[:3] == bytes([0x48, 0x31, 0xC0]):
print("[!] AMSI IS PATCHED — bypass active")
else:
print("[+] AMSI appears intact")
EOF
# ETW-based AMSI logging analysis
# Check for disabled ETW providers (another bypass vector)
logman query providers | findstr /i "amsi\|antimalware"
# Scan PowerShell scriptblock logs for bypass patterns
# Event Log: Microsoft-Windows-PowerShell/Operational, Event ID 4104
wevtutil qe "Microsoft-Windows-PowerShell/Operational" /q:"*[System[EventID=4104]]" /f:text /c:100 > scriptblocks.txt
grep -iE "AmsiScanBuffer|amsiInitFailed|AmsiUtils|Reflection\.Assembly|VirtualProtect|Marshal\.Copy" scriptblocks.txt
# Known AMSI bypass signatures to hunt
# 1. Matt Graeber's reflection: [Ref].Assembly.GetType('System.Management.Automation.AmsiUtils')
# 2. Direct patch: VirtualProtect + Marshal.Copy on AmsiScanBuffer
# 3. amsiInitFailed field set to $true
# 4. CLR hooking via profiler DLL
# 5. Registry disable: HKCU\Software\Microsoft\Windows Script\Settings\AmsiEnable=0
3. Reflective DLL Injection Analysis
Detect and extract reflectively loaded DLLs.
# Reflective loaders don't use LoadLibrary — they parse PE headers manually
# Key indicators:
# - RWX memory region with PE header
# - No corresponding
Câu hỏi thường gặp
Mã độc không file là gì?
Đó là mã độc chạy trong bộ nhớ, nên không có file thông thường để quét.
Skill nêu những công cụ nào?
Nó nêu các công cụ quét bộ nhớ và nhật ký Windows, như PE-sieve và nhật ký sự kiện PowerShell.
Ai nên dùng nó?
Người xử lý sự cố và nhà phân tích mã độc đang điều tra hệ thống đang hoạt động.
Chi tiết
Mô tả gốc của tác giả
In-memory and fileless malware detection — AMSI bypass analysis, reflective DLL injection, CLR-hosted payloads, process hollowing, PowerShell cradle chains, WMI/COM persistence, and registry-resident payloads. Covers detection, memory forensics, and payload extraction.
Độ phổ biến
- Sao GitHub
- 6.5k
- Vị trí xếp hạng
- #14165
- Giấy phép
- Apache-2.0
- Cập nhật
- 1/11/2026
Bình luận
- …
Thêm skill từ kho mã này
detector-overview
6.5kGiúp agent của bạn đọc code mà một công cụ quét đã đánh dấu, rồi quyết định điểm nào là lỗ hổng bảo mật thật và điểm nào là báo động giả.
exploiter-overview
6.5kGiúp agent của bạn ghép nhiều lỗ hổng bảo mật đã xác nhận thành một chuỗi kiểm thử và kiểm tra chuỗi đó có thể gây hậu quả đến đâu.
llm-redteam-overview
6.5kGiúp agent của bạn tìm đúng hướng dẫn red-team AI cho một bài kiểm thử, bao quát 15 nhóm chiến thuật từ prompt injection đến lạm dụng mô hình.
aatmf-t01-prompt-injection
6.5kGiải thích prompt injection, khi các chỉ dẫn ẩn cố ghi đè một hệ thống AI, để chuyên gia bảo mật có thể kiểm tra lỗi này.
Skill tương tự
reverse-engineer-anything
422kGiúp agent của bạn xem bên trong các app và package đã phát hành để giải thích tính năng, so sánh phiên bản hoặc hướng dẫn dựng lại bằng công cụ REA.
1password
394kGiúp agent của bạn cài đặt CLI của 1Password, đăng nhập, và đọc hoặc đưa thông tin bí mật vào mà không in giá trị ra cuộc trò chuyện.
healthcheck
394kGiúp agent của bạn rà soát bảo mật máy tính hoặc máy chủ đang chạy OpenClaw, như SSH, tường lửa, cập nhật và sao lưu, rồi đề xuất cách sửa an toàn.