detecting-living-off-the-land-with-lolbas
$
npx mdskill add mukul975/Anthropic-Cybersecurity-Skills/detecting-living-off-the-land-with-lolbasDetect LOLBAS abuse via process telemetry and Sigma rules.
- Identifies attackers using certutil, regsvr32, mshta, and rundll32.
- Integrates Sysmon logs, Windows Event Logs, and pySigma.
- Analyzes parent-child process relationships to confirm execution chains.
- Outputs structured alerts for SOC analysts and threat hunters.
SKILL.md
.github/skills/detecting-living-off-the-land-with-lolbasView on GitHub ↗
--- name: detecting-living-off-the-land-with-lolbas description: Detect Living Off the Land Binaries (LOLBins/LOLBAS) abuse including certutil, regsvr32, mshta, and rundll32 via process telemetry, Sigma rules, and parent-child process analysis domain: cybersecurity subdomain: threat-detection tags: [lolbas, lolbins, sigma-rules, process-monitoring, sysmon, endpoint-detection, threat-hunting] version: "1.0" author: mahipal license: Apache-2.0 --- # Detecting Living Off the Land with LOLBAS ## Overview Living Off the Land Binaries, Scripts, and Libraries (LOLBAS) are legitimate system utilities abused by attackers to execute malicious actions while evading detection. This skill covers detecting abuse of certutil.exe, regsvr32.exe, mshta.exe, rundll32.exe, msbuild.exe, and other LOLBins using process telemetry from Sysmon and Windows Event Logs, combined with Sigma rule-based detection. ## When to Use - When investigating security incidents that require detecting living off the land with lolbas - When building detection rules or threat hunting queries for this domain - When SOC analysts need structured procedures for this analysis type - When validating security monitoring coverage for related attack techniques ## Prerequisites - Sysmon or Windows Security Event Log (Event ID 4688) with command-line logging enabled - Sigma rule conversion tool (sigmac or sigma-cli) - SIEM platform (Splunk, Elastic, or similar) for log ingestion - Python 3.8+ with pySigma library - LOLBAS project reference database ## Steps 1. **Establish LOLBin Watchlist** — Build a prioritized list of monitored binaries (certutil, mshta, regsvr32, rundll32, msbuild, installutil, cmstp, wmic, bitsadmin) 2. **Collect Process Telemetry** — Ingest Sysmon Event ID 1 (Process Create) and Windows 4688 events with full command-line capture 3. **Build Sigma Detection Rules** — Create Sigma rules matching suspicious command-line arguments, network activity, and parent-child process anomalies for each LOLBin 4. **Analyze Parent-Child Relationships** — Flag unexpected parent processes spawning LOLBins (e.g., Excel spawning certutil, Word spawning mshta) 5. **Score and Prioritize Alerts** — Apply risk scoring based on argument anomaly, parent process, execution path, and network indicators 6. **Generate Detection Report** — Produce a structured report of all LOLBin abuse detections with MITRE ATT&CK mapping ## Expected Output - JSON report listing detected LOLBin abuse events with severity scores - MITRE ATT&CK technique mapping for each detection (T1218, T1105, T1140, T1127) - Parent-child process anomaly analysis - Sigma rule match details with raw event data
More from mukul975/Anthropic-Cybersecurity-Skills
- acquiring-disk-image-with-dd-and-dcflddCreate forensically sound bit-for-bit disk images using dd and dcfldd while preserving evidence integrity through hash verification.
- analyzing-active-directory-acl-abuseDetect dangerous ACL misconfigurations in Active Directory using ldap3 to identify GenericAll, WriteDACL, and WriteOwner abuse paths
- analyzing-android-malware-with-apktoolPerform static analysis of Android APK malware samples using apktool for decompilation, jadx for Java source recovery, and androguard for permission analysis, manifest inspection, and suspicious API call detection.
- analyzing-api-gateway-access-logs>
- analyzing-apt-group-with-mitre-navigatorAnalyze advanced persistent threat (APT) group techniques using MITRE ATT&CK Navigator to create layered heatmaps of adversary TTPs for detection gap analysis and threat-informed defense.
- analyzing-azure-activity-logs-for-threats>
- analyzing-bootkit-and-rootkit-samples>
- analyzing-browser-forensics-with-hindsightAnalyze Chromium-based browser artifacts using Hindsight to extract browsing history, downloads, cookies, cached content, autofill data, saved passwords, and browser extensions from Chrome, Edge, Brave, and Opera for forensic investigation.
- analyzing-campaign-attribution-evidenceCampaign attribution analysis involves systematically evaluating evidence to determine which threat actor or group is responsible for a cyber operation. This skill covers collecting and weighting attr
- analyzing-certificate-transparency-for-phishingMonitor Certificate Transparency logs using crt.sh and Certstream to detect phishing domains, lookalike certificates, and unauthorized certificate issuance targeting your organization.