Skip to content

mochabyte0x/TrampoLatte

Repository files navigation

TrampoLatté

TrampoLatté is an AMSI & ETW bypass poc which utilizes trampolines to hook specific function and alter their execution behavior.

Internals

      AmsiScanBuffer        EtwpEventWriteFull
          │                       │
  [13-byte jmp r10]      [13-byte jmp r10]
          │                       │
   ┌──────┴──────┐          ┌─────┴─────┐
   │   ProxyAmsi │          │  RetStub  │
   │  (saves ctx)│          │   (C3)    │
   └──────┬──────┘          └─────┬─────┘
          ▼                       ▼
     returns              returns to caller
   AmsiScanBuffer 
        =  
  AMSI_RESULT_CLEAN

Detection

  • Started a custom ETW Consumer (right terminal) monitoring the .NET runtime

image

  • Executing assemblies through Havoc doesn't trigger any detection (ETW)

image

Disclaimer

This is just a POC and is not OPSEC safe.

About

A proof of concept AMSI & ETW bypass using trampolines for hooking and modifying execution flow

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published