Exploitation Tools

Ulfberht : Advanced Techniques For Shellcode Loading And Evasion

Ulfberht is a sophisticated shellcode loader designed to enhance operational security and evasion capabilities in cyber operations.

Equipped with features like indirect syscalls, module stomping, and encrypted payloads, it minimizes the digital footprint on targeted systems.

This article delves into Ulfberht’s functionality, offering a step-by-step guide on its deployment and highlighting strategies to avoid detection.

Ideal for security professionals and red teamers, Ulfberht provides a robust framework for executing payloads covertly.

Shellcode Loader

Features :

  • Indirect syscall.
  • Module stomping.
  • Load a stomped module using APC.
  • Execute the payload with a direct jump (jmp) without creating a new thread.
  • API hashing implemented using the DJB2 algorithm.
  • Payload encrypted with RC4 and encoded in UUID format, implemented directly in the loader without loading rpcrt4.dll.
  • No CRT is used.

How to use :

python3 utils.py C:\Path\To\beacon.bin 

Copy the output in payload.h and build the project

NB :

  • If your shellcode lacks evasion features (e.g., Cobalt Strike without UDRL), it can be detected by AV/EDR

Evasion Tips

Compiling this executable and using it directly can be risky, as it may expose potential Indicators of Compromise (IOCs), such as:

  • The file was compiled within the last 5 minutes.
  • The Import Address Table (IAT) is empty.

Also

  • If you’re using a beacon, avoid using an IP for C2 communication. Instead, use a redirector with a good reputation.
  • Add an icon to the executable.
  • Sign the executable; ideally, use a trusted signature.
  • Add delay and sandbox detection.
Varshini

Tamil has a great interest in the fields of Cyber Security, OSINT, and CTF projects. Currently, he is deeply involved in researching and publishing various security tools with Kali Linux Tutorials, which is quite fascinating.

Recent Posts

Wez’s Terminal : A Rust-Powered GPU-Accelerated Terminal Emulator

A GPU-accelerated cross-platform terminal emulator and multiplexer written by @wez and implemented in Rust Getting…

12 hours ago

AutorizePro : Revolutionizing Authorization Testing With AI

一句话介绍工具: AutorizePro 是一款创新性的内置AI分析模块的专注于越权检测的 Burp 插件 (已有多个白帽反馈用工具嘎嘎挖到src洞, 每周末更新, 欢迎Star🌟以便持续跟踪项目最新版本功能) 工具背景 越权漏洞在黑盒测试、SRC挖掘中几乎是必测的一项,但手工逐个测试越权漏洞往往会耗费大量时间。 而自动化工具又因为接口的多样化,难以制定一个全面的检测逻辑而存在大量误报, 基于此产生了 AI辅助分析的检测工具 ➡️ AutorizePro…

13 hours ago

SharpRDPHijack : A .NET Utility For RDP Session Hijacking

Sharp RDP Hijack is a proof-of-concept .NET/C# Remote Desktop Protocol (RDP) session hijack utility. RDP…

13 hours ago

SharpExecute : Advanced Techniques For Stealth .NET Execution And CLR Manipulation

Executing .NET Files from an Unmanaged Process with Manual CLR Loading. Manually loading the CLR…

13 hours ago

BlackPill : A Comprehensive Overview Of A Stealthy Linux Rootkit

Dive into the dark intricacies of BlackPill, a sophisticated Linux rootkit engineered in Rust that…

2 days ago

RustScan : Revolutionizing Port Scanning With Speed And Extensibility

The Modern, Blazing Fast Port Scanner. Find ports quickly (3 seconds at its fastest). Run…

2 days ago