foyl Concepts / Living off the Land
Attack Technique

Living off the Land

The binary can be trusted while the behavior is hostile. Attackers repurpose tools already present on a system so execution looks like administration until command context, lineage, and destination tell the full story.

T1218 Signed Binary Proxy ExecutionT1059 Command and ScriptingInteractive command lab
SecIntel · trusted binary analyzerContext required

Binary trust
Command rarity
Lineage risk
Trust is not intent
Code signing answers who published a file, not whether the current command is safe

A living-off-the-land binary can be Microsoft-signed, installed by default, and commonly allowed by application controls. Those properties make the file useful to defenders and attackers at the same time.

The durable signal is behavioral: which parent started it, which arguments were supplied, what child process appeared, what network destination it reached, and whether that pattern belongs on that asset.

01 · LineageOffice spawning mshta is different from an installer spawning mshta.
02 · ArgumentsRare protocol handlers and remote scriptlets expose repurposed capability.
03 · DestinationA signed utility retrieving an unknown external payload is still an intrusion path.
The attacker advantage
Availability and inherited trust reduce the need to drop custom malware

Native tools are already present, so an attacker can move from a document or browser session into execution without writing a conspicuous new executable. Signed tools may also inherit firewall, application-control, or analyst trust that custom binaries would not receive.

This does not make living-off-the-land invisible. It shifts detection from file reputation toward command-line telemetry, process relationships, script logging, network behavior, and cross-host rarity.

Behavior families
Different tools expose different capabilities, but analysts hunt the same behavioral questions
CapabilityExamplesHigh-signal question
Proxy executionrundll32, regsvr32, mshtaIs a signed host loading script, a remote object, or an unexpected export?
Script executionPowerShell, wscript, cscriptIs the script encoded, hidden, downloaded, or spawned from a document?
Transfer and decodecertutil, bitsadminIs a utility retrieving or decoding content outside its normal management workflow?
Discoverywhoami, net, nltestDo multiple discovery commands form a burst after initial access?
Detection strategy
Correlate weak signals into one strong behavioral story

One PowerShell process is not a detection. A document spawning mshta, followed by hidden PowerShell, followed by a logon task is a sequence. Each edge adds context and increases confidence.

Good rules preserve that sequence and use narrow exclusions tied to an approved path, signer, service account, and change window. Broad allowlists for every signed tool recreate the blind spot the attacker selected.

See it in foyl Learn
FoylGuard EDRInspect process lineage, command lines, signer state, and persistence artifacts.
Process Tree HuntFind the exact edge where signed-tool use becomes malicious.
Sigma BuilderTurn the behavior into portable detection logic.
Account Takeover ResponseInvestigate SILENT DELEGATE from identity theft into endpoint execution.
Related concepts