LOLBins: living off the land binaries, and the evidence they leave
LOLBins (living off the land binaries) are legitimate, usually Microsoft-signed programs already present on a system, such as certutil, mshta, rundll32, bitsadmin and PowerShell, that attackers use to download files, run code, decode payloads or dump credentials without installing tools of their own. Because the programs are trusted and expected, their presence proves nothing; how they were run proves everything.
What LOLBins are
"Living off the land" describes attacks that use what is already on the target rather than bringing malware. The phrase entered security usage around 2013, and the LOLBAS project (Living Off The Land Binaries, Scripts and Libraries) now catalogues more than a hundred Windows programs, scripts and DLLs with documented abuse. To be listed, a file must be signed by Microsoft or shipped with Windows, and have functionality an attacker can use beyond its intended purpose: downloading, executing, encoding, copying locked files, dumping memory, bypassing application control.
The same idea applies on Linux, where GTFOBins catalogues ordinary utilities (curl, wget, python, find, tar, systemctl) that can be used to download, escalate privileges or keep access.
Why attackers live off the land
- Nothing to detect on disk. Antivirus scans files; a signed Windows program is not malware.
- Allowed by default. Application control rules usually trust Microsoft-signed binaries in System32.
- Blends in. Administrators use PowerShell, wmic and schtasks every day, so a few more runs look normal.
- Fileless options. Several LOLBins can run code from a URL or memory, leaving no payload file at all.
- Works everywhere. The tools are on every Windows host, so the same playbook works across a whole estate.
Ransomware groups and state-backed actors alike rely on it. Several government advisories since 2023 have described intrusions carried out almost entirely with built-in tools, precisely because they are hard to tell from administration.
Common Windows LOLBins and how they are abused
| Binary | Intended use | Abuse | ATT&CK |
|---|---|---|---|
| certutil.exe | Certificate management | Download files (-urlcache -f), decode Base64 (-decode). See certutil forensics | T1105, T1140 |
| bitsadmin.exe | Background file transfers | Download files (/transfer), persistence through BITS jobs | T1197 |
| mshta.exe | Runs HTML applications | Runs script from a URL or inline (mshta http://…/a.hta) | T1218.005 |
| rundll32.exe | Runs a function in a DLL | Runs attacker DLLs; dumps LSASS with comsvcs.dll MiniDump | T1218.011, T1003.001 |
| regsvr32.exe | Registers COM DLLs | Runs a remote script with scrobj.dll (/i:http://… scrobj.dll) | T1218.010 |
| msiexec.exe | Installs MSI packages | Installs a package straight from a URL (/q /i http://…) | T1218.007 |
| wmic.exe | WMI command line | Remote process creation (/node: process call create), XSL script execution | T1047, T1220 |
| powershell.exe | Shell and automation | Download and run in memory, encoded commands, everything else | T1059.001 |
| curl.exe | HTTP client (built in since Windows 10 1803) | Download tools, upload stolen files | T1105, T1048 |
| msbuild.exe, installutil.exe | .NET build and installer tools | Compile and run code embedded in a project file or assembly | T1127.001, T1218.004 |
| esentutl.exe | Database utility | Copy locked files such as NTDS.dit or browser databases | T1003.003 |
| reg.exe | Registry editor | Save the SAM and SYSTEM hives for offline cracking; add Run keys | T1003.002, T1547.001 |
| vssadmin.exe, wbadmin.exe, bcdedit.exe | Backup and boot configuration | Delete shadow copies and disable recovery before ransomware | T1490 |
| wevtutil.exe | Event log management | Clear event logs | T1070.001 |
| schtasks.exe, sc.exe | Tasks and services | Persistence and remote execution | T1053.005, T1543.003 |
How to investigate LOLBin use
Because the binary is legitimate, every finding rests on context. Five questions separate administration from attack:
- What was the command line? A URL, an encoded command, an output path in Public, Temp or ProgramData, or a DLL from a user folder are the strongest signals.
- What started it? certutil or mshta started by Word, Outlook, a browser,
wscriptor a web server process is not administration. - Which account and session? A user account with no IT role, or a session that began with a network logon from an unusual host (4624 via the Logon ID).
- Where does the binary live? A copy of rundll32 or certutil outside System32, often renamed, is a strong sign of evasion. Sysmon's OriginalFileName field and Amcache hashes expose renamed copies.
- What happened next? A file written and then executed, a network connection, a new service or task, or a log clearing within seconds.
Baselines help. Most organisations use only a handful of these tools, from a handful of accounts and management servers. A first-time run of mshta or regsvr32 with a URL on a workstation is rare enough to review every time. The reverse also helps an investigation: once one host shows a LOLBin used with a particular URL, output path or switch pattern, the same command line is a precise indicator to sweep for across every other host.
The evidence LOLBins leave
| Evidence | Where | What it gives you |
|---|---|---|
| Process creation | 4688 with command lines, or Sysmon event 1 | Command line, parent, user, Logon ID, time |
| Execution artifacts | Prefetch, BAM, SRUM | That the tool ran, how often, and for SRUM the bytes it moved |
| PowerShell logging | 4104 script blocks, PowerShell history | The decoded code, even when the command line was encoded |
| BITS | Microsoft-Windows-Bits-Client/Operational log | Transfer jobs with the remote URL |
| WMI | Microsoft-Windows-WMI-Activity/Operational log, the WMI repository | Remote WMI execution and WMI event subscriptions |
| Files written | USN Journal, $MFT | Downloads and decoded payloads, with times, even after deletion |
| Tool caches | CryptnetUrlCache (certutil), INetCache (mshta and other WinINet users) | Source URLs and copies of downloaded content |
| Defender | Defender operational log and support logs | Blocked or detected command lines and files |
Where process creation auditing is off, the case usually rests on Prefetch (which records the files each run loaded, often including the payload), the USN Journal and the tool-specific logs above.
Living off the land on Linux
Linux servers offer attackers an even richer toolkit, because administration happens at the shell. GTFOBins documents how ordinary utilities can download, run, escalate or persist:
| Utility | Abuse | Where it shows |
|---|---|---|
| curl, wget | Download tools and scripts; upload data | Shell history, auditd execve records, web proxy logs |
| bash, sh with /dev/tcp | Reverse shells without any extra binary | auditd, process listings, outbound connections |
| python, perl | One-line reverse shells, small servers, file transfer | auditd, shell history |
| crontab, systemctl | Persistence through cron jobs and systemd units | Cron files, unit files, journal |
| find, vim, tar and others with sudo rights | Privilege escalation when a sudo rule allows them | Sudo log, auth logs |
| ssh, scp | Lateral movement with stolen keys | Login records, authorized_keys |
The investigation method is the same as on Windows: the program proves nothing, its arguments, parent, account and timing prove everything. The difference is that Linux records far less by default; without auditd, shell history and the auth logs carry most of the weight.
Defending against LOLBin abuse
- Log the context. Process creation with command lines and PowerShell script block logging turn invisible activity into a readable record. Without them, investigation falls back on Prefetch and file system artifacts.
- Restrict what users rarely need. Microsoft publishes a list of binaries it recommends blocking with App Control for Business (formerly WDAC) on systems that do not need them, including several in the table above. mshta, regsvr32 with scriptlets and the .NET build tools are seldom required on ordinary workstations.
- Use attack surface reduction rules. Microsoft Defender's ASR rules block some LOLBin patterns, such as Office applications creating child processes and obfuscated scripts.
- Alert on rare combinations. Certutil with a URL, mshta with a remote path, rundll32 loading comsvcs.dll, vssadmin deleting shadows: each is rare enough in normal administration to investigate every time.
- Know your administrators' habits. A list of which teams use which tools, from which hosts, makes the outliers obvious.
In a real investigation: an intrusion with no malware
The attacker in our Halden Freight lab case brought no malware binary at all. Every step used a program that ships with Windows: curl.exe to download a PowerShell script and later to try to upload a finance archive, reg.exe for a Run key, net.exe to create and empower a local account, sc.exe for a service, schtasks.exe for a scheduled task, cmdkey.exe and mstsc.exe to move to the second workstation over Remote Desktop, and PowerShell's own Compress-Archive and Remove-Item to stage data and clean up. The only file the attacker added was the script itself.
No antivirus would have flagged any of those programs. What exposed the intrusion was context: process creation events with command lines recorded every call with its account and time, PowerShell script block logging recorded the archive and deletion, and the USN Journal confirmed each file the commands wrote. That is the general lesson of living off the land: it defeats file scanning, not investigation.
Finding LOLBin abuse in Arcsentry
This AQL query on the Security log lists runs of common download and proxy-execution LOLBins whose command line contains a URL:
filter event_code == "4688"
derive {cmd = process_command_line, user = user_name}
filter cmd ~= "(?i)(certutil|bitsadmin|mshta|regsvr32|rundll32|msiexec|curl)(\\.exe)?" && cmd ~= "(?i)https?://"
select {timestamp, user, cmd}
sort {timestamp}The AI investigator follows each result to the file it wrote, whether that file ran, and the session that started it, citing every record. The query runs the same way across every host in a case.
Artifacts that record LOLBin use
Arcsentry parses each of these from every collected host into one timeline:
| Artifact | What Arcsentry extracts |
|---|---|
| Windows Event Logs | Parses Windows Event Log (.evtx) files. |
| Prefetch | Parses Windows Prefetch (.pf) execution artifacts. |
| BAM/DAM | Program execution times the Background and Desktop Activity Moderator services record for each user SID. |
| SRUM | Parses System Resource Usage Monitor database for application metrics. |
| USN Journal | Parses NTFS Update Sequence Number change journal. |
| PowerShell History | Parses PowerShell PSReadLine history as logical commands with physical line numbers. |
| WMI Persistence | Parses the WMI CIM repository (event subscriptions, instances, class definitions, namespaces and page allocation) and WMI MOF files. |
Frequently asked
What are LOLBins?
Legitimate programs already present on a system, usually signed by Microsoft, that attackers use for malicious purposes such as downloading files, running code or dumping credentials. Examples are certutil, mshta, rundll32, regsvr32, bitsadmin and PowerShell.
What does living off the land mean in cyber security?
Carrying out an attack with the tools already on the target system instead of bringing malware, so that file-based detection has nothing to find and the activity blends in with administration.
What are the most common LOLBins?
PowerShell, certutil, rundll32, mshta, regsvr32, bitsadmin, msiexec, wmic and, on current Windows, curl. Recon and persistence commonly use net, nltest, schtasks, sc and reg.
How do you detect LOLBins?
Log process creation with command lines (4688 or Sysmon 1) and PowerShell script blocks (4104), then look for URLs, encoded commands, unusual parents, user-writable output paths and copies of system binaries outside System32.
Are LOLBins malware?
No. They are legitimate programs that ship with the operating system and are signed by its vendor. They become part of an attack only through how they are used, which is why detection depends on command lines, parents and context rather than on the files.
What is the difference between LOLBins and fileless malware?
LOLBins are the trusted programs; fileless malware is a way of running malicious code without writing it to disk, often by passing it to a LOLBin such as PowerShell, mshta or rundll32. Many fileless attacks are built on LOLBins, but LOLBins are also used to download ordinary malware files.
What is the LOLBAS project?
An open community catalogue of Windows binaries, scripts and libraries with documented malicious uses, each with example commands and detection notes. GTFOBins is the equivalent for Unix and Linux.
Sources
- LOLBAS project: Living Off The Land Binaries, Scripts and Libraries
- GTFOBins
- MITRE ATT&CK: T1218 System Binary Proxy Execution; T1105 Ingress Tool Transfer; T1047 WMI
- CISA and partners: joint guidance on identifying and mitigating living off the land techniques (2024)
- Venema Labs lab case: Halden Freight office intrusion
Checked 2 December 2026 by Venema Labs. Parser coverage is generated from the Arcsentry build the artifact library describes.
See every built-in tool an attacker ran, with its context
Tell us what you want to investigate. A person replies within one business day with the download and a trial licence.
Request a trial