Living Off the Land describes attack techniques where adversaries use legitimate, pre-installed system tools like PowerShell and WMI to carry out malicious activities while evading detection.
Living Off the Land (LOTL) attacks use legitimate system administration tools already present on target systems to perform malicious activities. Instead of deploying custom malware that antivirus might detect, attackers use built-in tools like PowerShell, WMI, certutil, mshta, and regsvr32 to execute commands, move laterally, and exfiltrate data.
LOTL techniques are effective because they use trusted, signed system binaries that security tools allow by default. Since these tools have legitimate administrative purposes, their execution does not trigger traditional antivirus or allowlisting controls. Distinguishing malicious use from legitimate administration requires behavioral analysis rather than signature detection.
Common LOTL tools (also called LOLBins) include PowerShell for scripting and execution, WMI/WMIC for remote command execution, certutil for file downloads, mshta for HTML application execution, rundll32 for DLL loading, regsvr32 for COM script execution, bitsadmin for file transfers, and schtasks for persistence through scheduled tasks.
Detection requires behavioral analysis monitoring how legitimate tools are used rather than just whether they execute. Key indicators include PowerShell with encoded commands, certutil downloading files from external URLs, unusual parent-child process relationships, WMI creating remote processes, and administrative tool usage outside maintenance windows or by non-admin users.
The LOLBAS (Living Off the Land Binaries, Scripts, and Libraries) project is a community-curated catalog of Windows binaries, scripts, and libraries that can be used for LOTL techniques. It documents each binary's malicious capabilities (execution, download, persistence), enabling defenders to create targeted detection rules and monitoring policies.
LOTL techniques are a core component of fileless malware attacks. By using legitimate binaries for execution and in-memory PowerShell for payload delivery, attackers avoid writing malicious files to disk where traditional antivirus scans. This combination makes attacks significantly harder to detect and forensically analyze.
Defenses include implementing PowerShell constrained language mode, enabling Script Block Logging and Module Logging, using application control policies (WDAC/AppLocker) to restrict tool usage, monitoring command-line arguments for suspicious patterns, deploying EDR with behavioral detection, and reducing unnecessary administrative tool availability on endpoints.
Penetration testers use LOTL techniques to simulate realistic advanced threat actor behavior, testing whether security controls can detect malicious use of legitimate tools. This tests EDR behavioral detection, SIEM correlation rules, SOC analyst capabilities, and the effectiveness of application allowlisting policies against sophisticated evasion techniques.