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.

GlossaryAttacker techniquesWindows and LinuxChecked 2 December 2026

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

BinaryIntended useAbuseATT&CK
certutil.exeCertificate managementDownload files (-urlcache -f), decode Base64 (-decode). See certutil forensicsT1105, T1140
bitsadmin.exeBackground file transfersDownload files (/transfer), persistence through BITS jobsT1197
mshta.exeRuns HTML applicationsRuns script from a URL or inline (mshta http://…/a.hta)T1218.005
rundll32.exeRuns a function in a DLLRuns attacker DLLs; dumps LSASS with comsvcs.dll MiniDumpT1218.011, T1003.001
regsvr32.exeRegisters COM DLLsRuns a remote script with scrobj.dll (/i:http://… scrobj.dll)T1218.010
msiexec.exeInstalls MSI packagesInstalls a package straight from a URL (/q /i http://…)T1218.007
wmic.exeWMI command lineRemote process creation (/node: process call create), XSL script executionT1047, T1220
powershell.exeShell and automationDownload and run in memory, encoded commands, everything elseT1059.001
curl.exeHTTP client (built in since Windows 10 1803)Download tools, upload stolen filesT1105, T1048
msbuild.exe, installutil.exe.NET build and installer toolsCompile and run code embedded in a project file or assemblyT1127.001, T1218.004
esentutl.exeDatabase utilityCopy locked files such as NTDS.dit or browser databasesT1003.003
reg.exeRegistry editorSave the SAM and SYSTEM hives for offline cracking; add Run keysT1003.002, T1547.001
vssadmin.exe, wbadmin.exe, bcdedit.exeBackup and boot configurationDelete shadow copies and disable recovery before ransomwareT1490
wevtutil.exeEvent log managementClear event logsT1070.001
schtasks.exe, sc.exeTasks and servicesPersistence and remote executionT1053.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, wscript or 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

EvidenceWhereWhat it gives you
Process creation4688 with command lines, or Sysmon event 1Command line, parent, user, Logon ID, time
Execution artifactsPrefetch, BAM, SRUMThat the tool ran, how often, and for SRUM the bytes it moved
PowerShell logging4104 script blocks, PowerShell historyThe decoded code, even when the command line was encoded
BITSMicrosoft-Windows-Bits-Client/Operational logTransfer jobs with the remote URL
WMIMicrosoft-Windows-WMI-Activity/Operational log, the WMI repositoryRemote WMI execution and WMI event subscriptions
Files writtenUSN Journal, $MFTDownloads and decoded payloads, with times, even after deletion
Tool cachesCryptnetUrlCache (certutil), INetCache (mshta and other WinINet users)Source URLs and copies of downloaded content
DefenderDefender operational log and support logsBlocked 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:

UtilityAbuseWhere it shows
curl, wgetDownload tools and scripts; upload dataShell history, auditd execve records, web proxy logs
bash, sh with /dev/tcpReverse shells without any extra binaryauditd, process listings, outbound connections
python, perlOne-line reverse shells, small servers, file transferauditd, shell history
crontab, systemctlPersistence through cron jobs and systemd unitsCron files, unit files, journal
find, vim, tar and others with sudo rightsPrivilege escalation when a sudo rule allows themSudo log, auth logs
ssh, scpLateral movement with stolen keysLogin 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:

ArtifactWhat Arcsentry extracts
Windows Event LogsParses Windows Event Log (.evtx) files.
PrefetchParses Windows Prefetch (.pf) execution artifacts.
BAM/DAMProgram execution times the Background and Desktop Activity Moderator services record for each user SID.
SRUMParses System Resource Usage Monitor database for application metrics.
USN JournalParses NTFS Update Sequence Number change journal.
PowerShell HistoryParses PowerShell PSReadLine history as logical commands with physical line numbers.
WMI PersistenceParses 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