Sleeping Beauty Putting Adaptix to Bed with Crystal Palace#2004
Open
carlospolop wants to merge 1 commit intomasterfrom
Open
Sleeping Beauty Putting Adaptix to Bed with Crystal Palace#2004carlospolop wants to merge 1 commit intomasterfrom
carlospolop wants to merge 1 commit intomasterfrom
Conversation
Collaborator
Author
🔗 Additional ContextOriginal Blog Post: https://maorsabag.github.io/posts/adaptix-stealthpalace/sleeping-beauty/ Content Categories: Based on the analysis, this content was categorized under "Windows Hardening -> Antivirus (AV) Bypass / EDR Evasion (or create a new page under Windows for "In-memory evasion: reflective loaders, IAT/GetProcAddress hooking, Ekko sleep obfuscation")". Repository Maintenance:
Review Notes:
Bot Version: HackTricks News Bot v1.0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🤖 Automated Content Update
This PR was automatically generated by the HackTricks News Bot based on a technical blog post.
📝 Source Information
🎯 Content Summary
Title / goal
The post (dated
2026-03-14) is a hands-on engineering walkthrough showing how to take the default Adaptix C2 agent DLL (loaded “loudly” when reflectively mapped) and wrap it in a Crystal Palace-based Reflective DLL Loader (RDLL) to add stealth features:1) restore correct PE-like per-section memory protections (
.text=RX,.data=RW, etc.) instead of a singleRWXregion;2) perform IAT import...
🔧 Technical Details
Crystal Palace import-time IAT hooking via a resident PICO: install a custom
GetProcAddress(e.g.,_GetProcAddress) into the reflective loader’s import resolution path so every DLL import name is checked against__resolve_hook(ror13hash(name)). If a hook is registered (viaaddhook "MODULE$Func" "hook"), return the hook pointer; otherwise delegate to the real API. This yields transparent IAT redirection without patching the DLL’s code section post-load, and the hook code persists because the PICO remains resident while the loader PIC is transient.Forcing hookable imports when malware uses PEB-walking / hashed export resolution: if a target resolves APIs dynamically (no IAT entry), import-time hooking won’t trigger. Converting the resolution to a direct import reference (e.g., replacing a hashed
GetSymbolAddress(..., HASH_FUNC_WAIT_FOR_SINGLE_OBJECT)with&WaitForSingleObject) forces the compi...🤖 Agent Actions
Updated
src/windows-hardening/av-bypass.mdwith a new section covering Crystal Palace/PICO import-time IAT hooking, forcing hookable imports, and Ekko-style sleep/idle obfuscation, plus detection ideas. Added references for the blog and Ekko.Files changed:
src/windows-hardening/av-bypass.mdTests not run (not requested).
Next steps:
This PR was automatically created by the HackTricks Feed Bot. Please review the changes carefully before merging.
📚 Repository Maintenance
All .md files have been checked for proper formatting (headers, includes, etc.).