All recipes (40+)

Every technique in the Meridian arsenal. Production-grade snippets for DRM engineers, red teams, and kernel developers.

Silent injection via manual-map

Walk a DLL into a target process without touching LoadLibrary. PE mapping, relocations, TLS callbacks, IAT resolve.

injectionmanual-map

Direct syscall stub generation

Extract SSN from ntdll prologue at runtime. Build RWX stub with proper stack alignment and ret.

syscallsevasion

PEB-walk anti-debug bundle

Check BeingDebugged, NtGlobalFlag, ProcessDebugPort via direct syscall. Hardware breakpoint scan.

anti-debugpeb

Hardware fingerprinting pipeline

Collect TPM EK, machine SID, disk serial, BIOS UUID, MAC. Normalize and hash for licensing.

fingerprintinglicensing

Ed25519 loader signature verification

Verify signed payload against embedded public key before execution. Constant-time comparison.

cryptoloader

Themida runtime unwrap and OEP detection

Trace virtualized entry until original entry point. Detect tail jump patterns and stolen bytes.

unpackingthemida

IAT rebuild from memory snapshot

Walk import directory of dumped PE. Resolve thunks against live module exports. Reconstruct FT.

peiat

ETW consumer for process creation

Subscribe to Microsoft-Windows-Kernel-Process. Parse event payload for injection indicators.

etwmonitoring

KMDF kernel driver skeleton

DriverEntry, device create, IOCTL dispatch. Signed with EV cert. Ready for VAD walk extension.

kerneldriver

VAD tree enumeration via NtQueryVirtualMemory

Walk own-process VAD nodes. Identify image, mapped, private regions. Detect hidden allocations.

memoryvad

DLL hijack detection at load time

Verify every loaded module path against expected system directory. Authenticode signature check.

dll-hijackintegrity

Self-hash integrity with link-time baseline

Hash .text section in memory. Compare against embedded compile-time digest. Alert on mismatch.

anti-tamperintegrity

IAT integrity verification

Walk import thunks at runtime. Verify each resolved address still points into expected module.

anti-tamperiat

Authenticode self-verify

Call WinVerifyTrust on own image file. Confirm signature chain and thumbprint match build-time values.

integrityauthenticode

RDTSC timing anti-debug

Measure instruction sequences with RDTSC. Flag outliers indicating single-step or breakpoint latency.

anti-debugtiming

ChaCha20-Poly1305 payload decryption

Decrypt staged payload with libsodium. Authenticate before mapping. Constant-time tag verification.

cryptopayload

AES-GCM license token decryption

Decrypt KeyAuth license response. Verify GCM tag. Extract expiry and feature flags.

cryptolicensing

HMAC offline grace cache

Cache license validity with HMAC-signed expiry. Allow offline operation within grace window.

licensingoffline

Circuit breaker with token bucket

Rate-limit license checks. Exponential backoff with jitter on failure. Fail open with grace cache.

resiliencelicensing

PE relocation directory walk

Paginate IMAGE_BASE_RELOCATION blocks. Apply delta to each entry. Skip ABSOLUTE type.

pemanual-map

TLS callback enumeration and dispatch

Walk TLS directory. Collect callback addresses. Invoke in order before DllMain.

pemanual-map

Export directory parse for syscall SSN

Walk ntdll export table. Locate Zw* stub. Read SSN from mov eax, imm32 prologue.

syscallspe

ProcessDebugPort via direct syscall

Invoke NtQueryInformationProcess with ProcessDebugPort (0x07). Return nonzero if debugger attached.

anti-debugsyscalls

Hardware breakpoint register scan

Read DR0-DR3 via GetThreadContext. Flag any nonzero debug register as active hardware breakpoint.

anti-debughardware

NtGlobalFlag heap check

Read PEB+0xBC. Mask with FLG_HEAP_ENABLE_TAIL_CHECK and friends. Flag debug heap indicators.

anti-debugpeb

TPM endorsement key extraction

Query TPM 2.0 EK certificate via NCrypt. Extract public key modulus for hardware binding.

fingerprintingtpm

Machine SID retrieval

LookupAccountName for machine account. Convert SID to string. Hash for licensing fingerprint.

fingerprintingsid

Disk serial via IOCTL_STORAGE_QUERY_PROPERTY

Send storage property query to physical drive. Extract serial number from STORAGE_DEVICE_DESCRIPTOR.

fingerprintingdisk

BIOS UUID from SMBIOS

Walk SMBIOS table via GetSystemFirmwareTable. Parse type 1 structure for UUID field.

fingerprintingbios

IPv6 MAC derivation

Read interface MAC via GetAdaptersAddresses. Derive EUI-64 IPv6 suffix. Hash for fingerprint.

fingerprintingnetwork

Threat Intelligence ETW subscription

Subscribe to Microsoft-Windows-Threat-Intelligence. Parse ALLOC_VM events for remote injection.

etwmonitoring

Section reconstruction from memory dump

Walk dumped PE headers. Align raw data to section RVA. Rebuild valid section table.

unpackingpe

OFT vs FT resolution during IAT rebuild

Distinguish OriginalFirstThunk hint/name table from FirstThunk runtime addresses. Rebuild both.

peiat

Stolen byte repair at OEP

Identify bytes overwritten by protector at original entry point. Restore from clean disk image.

unpackingthemida

Loader stub with RWX alloc and execute

Allocate RWX region. Copy decrypted payload. Flush instruction cache. Transfer control.

loaderexecution

KeyAuth session initialization

Establish session with KeyAuth API. Exchange application secret for session token. Cache locally.

licensingkeyauth

SellAuth webhook verification

Verify SellAuth webhook signature with shared secret. Parse purchase event. Provision license.

licensingsellauth

Auto-update manifest fetch and verify

Download signed manifest from CDN. Verify Ed25519 signature. Compare version against local.

updatecdn

Differential update patching

Apply binary diff to current payload. Verify resulting hash against manifest. Stage for next launch.

updatepatching

Discord bot license lookup command

Slash command to query license status. Fetch from Upstash KV. Return expiry and feature flags.

discordlicensing

Upstash KV license cache layer

Cache license state in Upstash KV with TTL. Invalidate on webhook. Serve dashboard reads from cache.

dashboardkv

Next.js dashboard license overview

Server component fetching license stats from KV. Display active, expired, trial counts with violet accent.

dashboardnextjs