Cyber security

Stardust – A Deep Dive Into A 64-Bit Position Independent Implant Template

An modern 64-bit position independent implant template.

  • raw strings
  • global instance
  • compile time hashing
#include <Common.h>
#include <Constexpr.h>

FUNC VOID Main(
    _In_ PVOID Param
) {
    STARDUST_INSTANCE

    PVOID Message = { 0 };

    //
    // resolve kernel32.dll related functions
    //
    if ( ( Instance()->Modules.Kernel32 = LdrModulePeb( H_MODULE_KERNEL32 ) ) ) {
        if ( ! ( Instance()->Win32.LoadLibraryW = LdrFunction( Instance()->Modules.Kernel32, HASH_STR( "LoadLibraryW" ) ) ) ) {
            return;
        }
    }

    //
    // resolve user32.dll related functions
    //
    if ( ( Instance()->Modules.User32 = Instance()->Win32.LoadLibraryW( L"User32" ) ) ) {
        if ( ! ( Instance()->Win32.MessageBoxW = LdrFunction( Instance()->Modules.User32, HASH_STR( "MessageBoxW" ) ) ) ) {
            return;
        }
    }

    Message = NtCurrentPeb()->ProcessParameters->ImagePathName.Buffer;

    //
    // pop da message
    //
    Instance()->Win32.MessageBoxW( NULL, Message, L"Stardust MessageBox", MB_OK );
}

How Does It Work ?

I have written a Blog post about how it fully works and the reason behind it.

Varshini

Varshini is a Cyber Security expert in Threat Analysis, Vulnerability Assessment, and Research. Passionate about staying ahead of emerging Threats and Technologies.

Recent Posts

Best OSINT Tools 2026: 35 Tools Tested for Real Investigations

OSINT in 2026 is not about randomly searching names, emails, domains, or usernames. Real open-source…

11 minutes ago

UFW Firewall Setup on Ubuntu 20.04: Complete Security Guide

A proper UFW Firewall Setup is one of the most important steps when securing an…

2 hours ago

WireGuard VPN Setup: Secure Ubuntu 20.04 VPN Guide

A WireGuard VPN Setup is one of the fastest and most secure ways to protect…

4 hours ago

NVIDIA Drivers Ubuntu: Complete Installation Guide for Ubuntu 20.04

If you own a system with an NVIDIA graphics card, installing NVIDIA Drivers Ubuntu is…

6 hours ago

Install Python 3.9: Easy Ubuntu 20.04 Setup Guide

If you're looking to Install Python 3.9 on Ubuntu 20.04, there are two reliable methods…

8 hours ago

Install Flask Ubuntu: Complete Flask Setup Guide

Python developers often choose Flask when building lightweight and flexible web applications. If you want…

10 hours ago