Skip to content

Save Environment Variable: Hijacking Legit Apps with Minimal Footprint

Wietze Beukema

Wietze Beukema presents novel DLL hijacking techniques that manipulate user-controlled environment variables to execute code via signed binaries with zero file drops.

Summary

The Maturation of Classic DLL Hijacking Defenses

Endpoint Detection and Response (EDR) solutions have extensively mapped standard DLL search order hijacking, making traditional binary planting detectable.

Discovering Environment Variable DLL Dependencies

Wietze Beukema investigates how legitimate, digitally signed Windows executables expand user-controllable environment variables to resolve dependency paths.

Executing Payloads with Minimal Forensics Footprints

Beukema demonstrates setting arbitrary environment variables to steer trusted system binaries into loading malicious DLLs from atypical locations without modifying system files.

Detection Strategies for Hunting Anomalous DLL Loads

The author provides incident responders with Sigma detection rules and telemetry queries to detect suspicious environment variable manipulations.

Related talks