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 Websites and Tools 2026: Browser-Based Research Kit

Not every OSINT task needs a terminal, script, or advanced Linux setup. In 2026, many…

2 hours ago

Best OSINT Tools and Frameworks 2026: Build a Complete Investigation Workflow

The best OSINT tools and frameworks 2026 are not useful only because they collect public…

2 hours ago

Minecraft Server Ubuntu: Complete Setup Guide for 20.04

Running a Minecraft Server Ubuntu environment is one of the best ways to create a…

2 hours ago

Apache Virtual Hosts Setup on Ubuntu 20.04 Made Easy

Managing multiple websites on a single server is a common requirement for developers, businesses, and…

2 hours ago

Install TeamViewer Ubuntu – Easy Setup Guide for 20.04

Remote support and desktop access have become essential for businesses, IT teams, and individual users.…

2 hours ago

Install Curl Ubuntu: Quick Setup and Usage Guide

If you need to Install Curl Ubuntu systems for downloading files, testing APIs, or transferring…

3 hours ago