meltedinhex/analyst-ai-pack / skills/hunting-lolbin-abuse-on-windows
hunting-lolbin-abuse-on-windows
VerifiedHunts for living-off-the-land binary (LOLBin) abuse in Windows process-creation telemetry by flagging trusted system binaries used with download, execution-proxy, or encoded-command arguments. Activates for requests to hunt LOLBins, detect signed-binary proxy execution, or find suspicious certutil/mshta/regsvr32 usage.
| File | Kind | Size |
|---|---|---|
| LICENSE | other | 340 B |
| SKILL.md | skill md | 2.7 KB |
| references/api-reference.md | markdown | 1.1 KB |
| scripts/analyst.py | script | 3.1 KB |
SKILL.md
View on GitHub---
name: hunting-lolbin-abuse-on-windows
description: 'Hunts for living-off-the-land binary (LOLBin) abuse in Windows process-creation
telemetry by flagging trusted system binaries used with download, execution-proxy, or
encoded-command arguments. Activates for requests to hunt LOLBins, detect signed-binary proxy
execution, or find suspicious certutil/mshta/regsvr32 usage.'
domain: cybersecurity
subdomain: threat-hunting
tags:
- threat-hunting
- lolbin
- process-creation
- defense-evasion
- sysmon
version: 1.0.0
author: analyst-ai-pack
license: Apache-2.0
mitre_attack:
- T1218
- T1105
- T1059
d3fend:
- D3-PSA
- D3-PA
car:
- CAR-2021-01-009
references:
- 'MITRE ATT&CK T1218 System Binary Proxy Execution — https://attack.mitre.org/techniques/T1218/'
- 'LOLBAS project — https://lolbas-project.github.io/'
---
# Hunting LOLBin Abuse on Windows
## When to Use
- You have process-creation telemetry (Sysmon Event ID 1 or EDR process events as CSV/JSON) and
want to surface trusted binaries used for malicious proxy execution or download.
- You are building a detection from known LOLBin argument patterns.
**Do not use** this as a blocklist of the binaries themselves — they are legitimate. Hunt on the
suspicious argument/parent context, not mere presence.
## Prerequisites
- Process-creation events with image path, command line, and (ideally) parent image.
## Workflow
### Step 1: Score LOLBin invocations
```bash
python scripts/analyst.py hunt events.csv
```
Flags known LOLBins (`certutil`, `mshta`, `regsvr32`, `rundll32`, `bitsadmin`, `msiexec`,
`installutil`, `wmic`) paired with suspicious arguments (`-urlcache`, `http`, `javascript:`,
`scrobj`, `-decode`, `DownloadString`).
### Step 2: Add context
Weight by anomalous parent (Office, browser, script host) and unusual execution path.
### Step 3: Triage and confirm
Investigate the top-scoring events; confirm whether the download/proxy behavior is legitimate
administration or malicious.
### Step 4: Operationalize
Convert confirmed patterns into a Sigma rule for ongoing detection.
## Validation
- Flags require a suspicious argument/parent, not just the binary name.
- Known-benign administrative patterns are distinguishable from abuse in the output.
- Each flagged technique maps to an ATT&CK ID (T1218.x / T1105).
## Pitfalls
- Alerting on `rundll32`/`regsvr32` presence alone — extremely noisy.
- Missing renamed LOLBins (hash/signature checks help, name checks do not).
- Encoded-command obfuscation hiding the true argument intent.
## References
- See [`references/api-reference.md`](references/api-reference.md) for the hunter.
- ATT&CK T1218 and the LOLBAS project (linked in frontmatter).
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| 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: 198k | Updated | Claude CodeCodex | Verified | Install |
| 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: 194k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |
| 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: 194k | Updated | Claude CodeCodex | Verified | Install |