Site icon API Security Blog

TerraLdr – A Payload Loader Designed With Advanced Evasion Features

[![](https://blogger.googleusercontent.com/img/a/AVvXsEj9ch1Xk546qGiXYEa6ucuy-p9RP4Rn22Wx1FSGEJvfr79uvvuhDvKvQ8XHa871E4D5zfoQhU05gqNVZXat1FF5JCOLz3NX6T_JDhVwJsXwCFyc5PFJptuPtvGIk41nQTflOHjxLj0Wvr68N1n4SPKyfHEtl7blbAw6-Biik8CBZ7M3v2JVXK3TeeAQnw=w640-h322)]()

TerraLdr: A Payload Loader Designed With Advanced Evasion Features

### Details:

* no crt functions imported
* syscall unhooking using [KnownDllUnhook]( “KnownDllUnhook” )
* api hashing using Rotr32 hashing algo
* payload [encryption]( “encryption” ) using rc4 – payload is saved in .rsrc
* process [injection]( “injection” ) – targetting ‘SettingSyncHost.exe’
* ppid [spoofing]( “spoofing” ) & blockdlls policy using NtCreateUserProcess
* stealthy remote process injection – chunking
* using [debugging]( “debugging” ) & NtQueueApcThread for payload execution

### Usage:

* use [GenerateRsrc]( “GenerateRsrc” ) to update [DataFile.terra]( “DataFile.terra” ) that’ll be the payload saved in the .rsrc section of the loader

### Thanks For:

*
*

### Notes:

* “SettingSyncHost.exe” isnt found on windows 11 machine, while i didnt tested with w11, its a _must_ to change the process name to something else before testing
* it is possibly better to compile with “ISO C++20 Standard (/std:c++20)”

### Profit:

[]( “A Payload Loader Designed With Advanced Evasion Features (10)” )[![](https://blogger.googleusercontent.com/img/a/AVvXsEgxaVTVhV-NzTSIjeliMKwZJlQDkEKZ6zxTVZUjNMAtcwhQZ4Nwjc2HbFIDJL3e9SOpcfGH_SNzCjiaDJDRTTt0QeQRrYhCS5szQWA-J_W9wkpe0X3uTDSfKP8ZXbkTdHiG5NXKEK-LcxKpS0lljUBStzz6YMSHtGtQFZKWOrU9PqrVW55NVt4XpFjxiQ=w640-h316)]() []( “A Payload Loader Designed With Advanced Evasion Features (11)” )[![](https://blogger.googleusercontent.com/img/a/AVvXsEi5RsiF4C_Sy-sOvyL1615Z_PBoBw_LQrPiZGntTGIRXlEJsH5askQfmltofqaZrNEd338BRxDmIdABXzE9RqGClmyWfrFYvX_VWbvwZWFoALTiSMcAwbJ4Nw35MkPo1bvXlYGFA37uQlKE6-ob0uYwf28xV_shHkj4j0VK7R_SXkWD-RH2MS3vsRHQBQ=w640-h152)]()

### Demo (by [@ColeVanlanding1]( “@ColeVanlanding1” )) :

[]( “A Payload Loader Designed With Advanced Evasion Features (13)” )[![](https://blogger.googleusercontent.com/img/a/AVvXsEj9ch1Xk546qGiXYEa6ucuy-p9RP4Rn22Wx1FSGEJvfr79uvvuhDvKvQ8XHa871E4D5zfoQhU05gqNVZXat1FF5JCOLz3NX6T_JDhVwJsXwCFyc5PFJptuPtvGIk41nQTflOHjxLj0Wvr68N1n4SPKyfHEtl7blbAw6-Biik8CBZ7M3v2JVXK3TeeAQnw=w640-h322)]()

#### Tested with [cobalt strike]( “cobalt strike” ) && Havoc on windows 10

**[Download TerraLdr]( “Download TerraLdr” )**Read More

Exit mobile version