Sleeping Beauty II CFG, CET, and Stack Spoofing#2373
Open
carlospolop wants to merge 1 commit into
Open
Conversation
Collaborator
Author
🔗 Additional ContextOriginal Blog Post: https://maorsabag.github.io/posts/adaptix-stealthpalace/sleeping-beauty-ii Content Categories: Based on the analysis, this content was categorized under "Windows Hardening > Antivirus (AV) Bypass / EDR Evasion, or a new subsection for Windows sleep obfuscation, CFG/CET bypass considerations, and stack spoofing". 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
Sleeping Beauty II: CFG, CET, and Stack Spoofing
The post documents technical upgrades to StealthPalace, a Crystal Palace RDLL wrapper for Adaptix, so its sleep-obfuscation implant can survive in Windows processes protected by Control Flow Guard (CFG) and Intel CET Shadow Stack, while also hiding suspicious sleeping-thread stacks from EDR stack walkers.
This is not a CVE. It is an advanced Windows implant-evasion technique combi...
🔧 Technical Details
Runtime CFG call-target registration for ROP sleep chains. If a payload dispatches a ROP-like chain through indirect calls to mid-function gadgets, CFG will terminate the process unless each target is marked valid in the CFG bitmap. The technique is to call
NtSetInformationVirtualMemorywithVmCfgCallTargetInformationvalue2andCFG_CALL_TARGET_VALID = 0x1entries for every gadget and API used as an indirect destination. For loaded images, the memory range must start at the module image base and cover the full image size. For manually mapped or stomped regions, the range must use the allocation base. This enables otherwise invalid gadgets such asjmp [rbx]orjmp rdito be used inside CFG-protected processes.CET-safe stack spoofing by preserving RIP. Full
CONTEXTreplacement breaks on CET Shadow Stack systems because changingRipthrough <...🤖 Agent Actions
I’m using the repo directly to locate the best existing Windows evasion page and avoid duplicating already-documented tricks.
Done.
Updated:
src/windows-hardening/av-bypass.mdAdded concise technical content to the existing Ekko sleep-obfuscation section covering:
NtSetInformationVirtualMemory(..., VmCfgCallTargetInformation, ...)Ripwhile spoofingRsp+ TEB/TIB stack bounds## ReferencesValidation:
git diffNo new files were created.
This PR was automatically created by the HackTricks Feed Bot. Please review the changes carefully before merging.