Hunting fileless and in memory threats

From meltedinhex/analyst-ai-pack · View interactive version

Hunting fileless and in memory threats is an AI agent skill from the GitHub repository meltedinhex/analyst-ai-pack. Hunts for fileless and in-memory threats by correlating PowerShell script-block logs, encoded-command usage, in-memory loading patterns, and registry-resident payloads from Windows telemetry. Activates for requests to hunt fileless malware, detect in-memory execution, or find registry-resident and r

How to use this skill

Skill file

Hunting Fileless and In-Memory Threats

When to Use

want to detect fileless execution that leaves little on disk.

Do not use this to alert on all PowerShell use — hunt the in-memory loading and encoded-payload

patterns specifically.

Prerequisites

Workflow

Step 1: Hunt in-memory loading patterns

python scripts/analyst.py hunt events.csv

Flags [Reflection.Assembly]::Load, VirtualAlloc/WriteProcessMemory via PowerShell,

Invoke-Expression of decoded blobs, DownloadString+IEX, and large base64 in script blocks.

Step 2: Detect registry-resident payloads

Surface writes of large encoded blobs to HKCU\Software\... Run-adjacent or custom keys (fileless

storage).

Step 3: Confirm

Correlate script-block content with the parent process and subsequent network/child activity.

Step 4: Operationalize

Write detections for reflective loading and base64-heavy script blocks.

Validation

Pitfalls

References

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.