0xNinjaCyclone 41f188ed62 Fix some issues
2025-01-29 19:28:33 -05:00
2025-01-10 07:37:55 -05:00
2025-01-10 01:45:36 +02:00
2025-01-29 19:28:33 -05:00
2025-01-10 07:37:55 -05:00
2025-01-10 07:37:55 -05:00
2025-01-10 07:37:55 -05:00

EarlyCascade

Logo

It's a modern and stealthy process injection technique was discovered by Outflank that involves injecting and executing code in the early stages of process creation before loading EDRs for their user mode detection measures. EarlyCascade technique forces enabling the Shim engine, allowing to hijack a Shim engine callback.

About the proof-of-concept

  1. Creating a process in suspended mode.
  2. Dynamically locating the addresses of enabling flag and callback.
  3. Remotely allocating memory for our stub and shellcode.
  4. Injecting the stub and shellcode into the target process.
  5. Force the shim engine to be enabled.
  6. Hijacking a shim engine callback.
  7. Triggering the callback by resuming the process thread.

At this point, the stub gets executed, and does the following:

  1. Disrupting the initialization of detection measures.
  2. Disabling the Shim engine to avoid crash.
  3. Queuing an Asynchronous Procedure Call (APC) that executes the shellcode later.

References

S
Description
Automated archival mirror of github.com/0xNinjaCyclone/EarlyCascade
Readme MIT 114 KiB
Languages
C 65.8%
Assembly 33%
Ruby 1.2%