Cyber security

FLOWER – A Novel Obfuscation Technique For Enhanced Cybersecurity

In the evolving landscape of cybersecurity, obfuscation plays a critical role in protecting against intrusive memory scans.

‘FLOWER’ emerges as a groundbreaking technique, offering a fresh approach to sleep obfuscation. Developed by bakki at sillywa.re, FLOWER leverages unique methods to queue the ropchain, enhancing compatibility and evading detection.

This article delves into the intricacies of FLOWER, exploring its implementation, versatility, and the strategic advantages it offers in the digital defense arsenal.

/*!
 *
 * FLOWER
 *
 * flowing sleep obfuscation 
 *
 * bakki - sillywa.re
 *
!*/

This is a primitive implementation of the technique I discuss in my blogpost

for any technical explanation, caveats or IOCs, do give it a read.

A version of this that does not rely on any external technique to queue the ropchain will be made available.

FLAGS

To showcase the compatibility of this technique, several flags are made available for the user

Techniques

Self explanatory, specifies which technique you wish to use to queue the ropchain

FLOWER_EKKO_OBF
FLOWER_FOLIAGE_OBF
FLOWER_ZILEAN_OBF

Zero

Freeing the old region means a copy of our shellcode is still there for as long as the old region does not get used.

Considering changing the protection back to RW has, at this time, no perceivable caveats stealth wise; I added the option to zero out the old region before freeing it.

FLOWER_ZERO_PROTECT

Jop

Using jump gadgets is nowadays the preferred way to evade the PATRIOT memory scanner which targets the research of both @C5pider and ilove2pwn_.

In simple terms, PATRIOT will check if the Rip field of a CONTEXT struct points to a *Protect function.

Since it doesn’t inspect non-volatile registers we can simply store the address of our function in a non-volatile register and point the Rip of the CONTEXT to an arbitrary gadget that jumps to said register.

//
// use the given register to store our function address
// we then execute it through a JMP gadget
//
FLOWER_GADGET_RAX
FLOWER_GADGET_RBX

Stackspoofing

Will conceal the instruction pointer (RtlUserThreadStart + 0x21) and stack of the beacon thread (Rsp pointing to an empty buffer)

FLOWER_STACKSPOOF

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

Useful Bug Bounty And Security Related Write-ups : A Comprehensive Guide For Enthusiasts

This repo contains all variants of information security & Bug bounty & Penetration Testing write-up…

6 hours ago

Admin-Panel-Dorks : Mastering Google Dorks To Uncover Hidden Admin Panels

site:*/sign-in site:*/account/login site:*/forum/ucp.php?mode=login inurl:memberlist.php?mode=viewprofile intitle:"EdgeOS" intext:"Please login" inurl:user_login.php intitle:"Web Management Login" site:*/users/login_form site:*/access/unauthenticated site:account.*.*/login site:admin.*.com/signin/…

6 hours ago

Conduwuit : Pioneering A New Era In Matrix Homeservers

Matrix is an open network for secure and decentralized communication. Users from every Matrix homeserver…

6 hours ago

LSMS – Linux Security And Monitoring Scripts

Linux Security And Monitoring Scripts are a collection of security and monitoring scripts you can…

6 hours ago

Fiber – Using Fibers To Run In-Memory Code

A fiber is a unit of execution that must be manually scheduled by the application…

6 hours ago

XSS-Exploitation-Tool : A Penetration Testing Tool

XSS Exploitation Tool is a penetration testing tool that focuses on the exploit of Cross-Site…

6 hours ago