← Back to list

Living off the Land: How Attackers Abuse LOLBins — and How to Stop Them

Attackers don’t always need flashy malware to break in. Increasingly, they’re abusing the very tools that come preinstalled on your…

Yen Wang · 2025-11-04 16:45 · 1 claps · 2.8 min read
#lolbin #threat-detection #windows-security #post-exploitation #certutil-abuse
Open on Medium ↗
Wiki topics: 🔒 · Cybersecurity

Living off the Land: How Attackers Abuse LOLBins — and How to Stop Them

Attackers don’t always need flashy malware to break in. Increasingly, they’re abusing the very tools that come preinstalled on your systems. These “LOLBins” (Living off the Land Binaries) are legitimate executables and scripts that, when repurposed, help adversaries blend in, bypass controls, and persist quietly.

Resource: https://tenor.com/view/trash-can-icon-recycle-bin-open-lid-garbage-can-gif-26957290

Resource: https://tenor.com/view/trash-can-icon-recycle-bin-open-lid-garbage-can-gif-26957290

What Are LOLBins? Understanding Living off the Land Binaries in Cybersecurity

In the evolving landscape of cybersecurity threats, attackers are becoming increasingly sophisticated by using legitimate system tools for malicious purposes. One such technique involves “Living off the Land Binaries,” or LOLBins — pre-installed system executables leveraged by adversaries to evade detection and execute harmful actions. But what exactly are LOLBins? Why do they pose such a challenge for security teams, and how can organizations protect themselves?

What Are LOLBins?

LOLBins are legitimate binaries that come installed by default on operating systems. Hackers manipulate these trusted tools — such as powershell.exe, certutil.exe, and mshta.exe — to perform malicious activities without triggering traditional security alarms. By relying on these binaries, attackers can blend their actions with normal system processes, making it difficult to differentiate between benign and harmful behavior.

This tactic is often used during the post-exploitation phase of an attack, allowing adversaries to move stealthily within compromised networks, escalate privileges, and even exfiltrate sensitive data.

How Do Attackers Use LOLBins?

Attackers exploit LOLBins in various ways:

  • Bypassing Security Controls: Because these tools are part of the legitimate OS environment, they often bypass application whitelisting and detection mechanisms designed to block unknown or unauthorized files.
  • Covert Execution: Using LOLBins helps attackers hide their activities in plain sight by mimicking legitimate system behavior.
  • Privilege Escalation: Some LOLBins enable attackers to escalate their access rights, gaining elevated permissions on the system.
  • Lateral Movement: Through system utilities, attackers can traverse across devices within a network to identify valuable targets
  • Data Exfiltration: Attackers use these binaries to compress, encrypt, and transfer stolen data outside the organization’s network.
  • Remote Command Execution: Tools like PowerShell and WMIC allow adversaries to execute commands remotely to maintain control over compromised systems.

The Case of Certutil: A Commonly Abused LOLBin

Certutil.exe is a Windows command-line utility designed for managing certificates, handling cryptographic operations, and verifying digital signatures. Despite its legitimate purpose, attackers frequently misuse certutil to:

  • Decode malicious payloads hidden in encoded files.
  • Download malware from remote servers stealthily.
  • Manipulate or forge certificates — enabling man-in-the-middle attacks.
  • Sign malicious code to make it appear trustworthy and bypass security controls.

For instance, attackers can download a base64-encoded malicious file using certutil, decode it locally, and then execute it without raising suspicion.

Detecting and Mitigating LOLBins Attacks

Detecting LOLBins in action is challenging but crucial. Organisations should implement a multifaceted detection strategy:

  • Behavioural Analysis: Monitor unusual command-line arguments, unexpected network connections, and sporadic process behaviour.
  • Log Analysis: Regularly review system logs for uncommon command patterns or excessive file accesses tied to LOLBins.
  • File Integrity Monitoring: Track unauthorized changes to critical system files or binaries.
  • Network Monitoring: Identify suspicious data flows or connections to malicious IP addresses.
  • User and Entity Behaviour Analytics (UEBA): Utilise machine learning to detect deviations from normal user or system activity.

Equally important is proactive mitigation:

  • Implement application whitelisting to restrict the use of binaries only to trusted paths and contexts.
  • Maintain detailed monitoring and logging of binary execution and arguments.
  • Employ a layered defense using endpoint detection and response (EDR), next-generation intrusion prevention systems (NGIPS), and email/web security tools.

I found LOLBIN quite interesting when I played the TryHackMe Room (https://tryhackme.com/room/redteamthreatintel) and did a bit research.

References

  1. SOC Prime Blog — What Are LOLBins? https://socprime.com/blog/what-are-lolbins/ Comprehensive overview of LOLBins, attack techniques, and mitigation strategies.
  2. LOLBAS Project — Certutil Binary Details https://lolbas-project.github.io/lolbas/Binaries/Certutil/ Detailed commands and abuse techniques for the certutil binary.
  3. MITRE ATT&CK Framework — Defense Evasion Tactics (T1140: Deobfuscate/Decode Files or Information) https://attack.mitre.org/techniques/T1140/ Describes file decoding/encoding techniques used by adversaries, including LOLBins.
  4. SentinelOne — Malware Living off the Land with Certutil https://www.sentinelone.com/blog/malware-living-off-land-with-certutil/ Explains certutil abuse in malware attacks and prevention tips.

메타데이터
post_id
078cf7e798af
slug
living-off-the-land-how-attackers-abuse-lolbins-and-how-to-stop-them-078cf7e798af
url
https://medium.com/@MonlesYen/living-off-the-land-how-attackers-abuse-lolbins-and-how-to-stop-them-078cf7e798af
canonical_url
https://medium.com/@MonlesYen/living-off-the-land-how-attackers-abuse-lolbins-and-how-to-stop-them-078cf7e798af
author_url
https://medium.com/@MonlesYen
status
ok
fetched_at
2026-07-15 18:21:02