2025-06-26 13:17:04 +02:00
2025-06-24 15:02:29 +02:00
2025-06-24 16:11:46 +02:00
2025-06-24 16:11:46 +02:00
2025-06-24 15:02:29 +02:00
2025-06-26 13:17:04 +02:00
2025-06-24 16:36:29 +02:00
2025-06-24 16:11:46 +02:00
2025-06-24 16:11:46 +02:00

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.

S
Description
Automated archival mirror of github.com/mochabyte0x/TrampoLatte
Readme MIT 40 KiB
Languages
C 98.5%
Assembly 1.5%