mirror of
https://github.com/SHOGGOTH-SECTOR/sica-fondt.git
synced 2026-08-01 08:30:20 +00:00
Place useful parts of the surrounding repos into sica-fondt by layer, per the
body model (Ada = membrane; brain/endocrine/capabilities/knowledge non-Ada):
- brain/ LLM reasoning + providers (dapr, hermes, MoMoA)
- capabilities/ REPRAG sidecars: hermes tools/skills, dapr tools, parallel
dispatch, A51 channels, and the OSINT cluster
- knowledge/ LORAG corpus: 754 cyber-skills, agency personas, secure-coding,
MITRE ATT&CK data
- reference/ defensive threat-reference (C3, shhbruh doc) + AdaYaml parser
License handling: AGPL sources (worldosint, advanced_evolution, mercury,
Reticulum) and GPL DeTTECT are SPEC-only clean-room/port descriptions — no
copyleft code copied. MIT/Apache/data parts copied as working trees.
Safety: shhbruh escape/persistence material and C3 covert-C2 kept as reference
only, not wired into the running organism. See CONSOLIDATION.md.
https://claude.ai/code/session_01UehUqEXXJJCsHoA4voCU5c
68 lines
2.9 KiB
Markdown
68 lines
2.9 KiB
Markdown
---
|
|
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
|
|
d3fend_techniques:
|
|
- Executable Denylisting
|
|
- Execution Isolation
|
|
- File Metadata Consistency Validation
|
|
- Application Protocol Command Analysis
|
|
- Content Format Conversion
|
|
nist_csf:
|
|
- DE.CM-01
|
|
- DE.AE-02
|
|
- DE.AE-06
|
|
- ID.RA-05
|
|
---
|
|
|
|
# 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
|