Researchers successfully cracked the 512-bit RSA key and decrypted the payload also the attack contains the several steps that follow each and every steps input.
Attackers using the new toolkit that performed as downloader to drop the Adobe Flash exploit CVE-2018-5002.
A malicious Microsoft Excel document contains a tiny Shockwave Flash ActiveX object and the property called “Movie” contains a URL to download the flash application.
Further analysis revealed that the Flash application is an obfuscated downloader which creates a random 512-bit RSA key pair in memory of the process.
In this case, the Private key remains in the memory and the public key will be sent to the attacker server to encrypt the AES key(used to encrypt the payload).
Later Encrypted payload send to the downloader and use the memory private key to decrypt the 128bit AES key and payload.
Since the attacker using 512-bit RSA key pair which is known to be insecure, researchers gain the private key using hardcoded exponent and public key.
Gain Encrypted Shellcode Payload
128-bit AES key has been decrypted using the private key that calculated by the small public tool to obtain the shellcode payload.
—–BEGIN RSA PRIVATE KEY—–
—–END RSA PRIVATE KEY—–
So once AES 128 bit key will be decrypted then the actual payload can be easily decrypted and the decrypted shellcode payload is additionally compressed with zlib.
Further analysis revealed that attacker using the exploit and the complexity of shellcode payload that contains own two PE payloads.
Finally, the researcher set the environment to analyze the different stages and the malware working functions.
According to the Palo Alto Researchers, After the exploit successfully gains RWE permissions, execution is passed to the shellcode payload. The shellcode loads an embedded DLL internally named FirstStageDropper.dll, which we call CHAINSHOT.
“FirstStageDropper.dll is responsible for injecting SecondStageDropper.dll into another process to execute it. While the shellcode payload only contains code to search for and bypass EMET, FirstStageDropper.dll also contains code for Kaspersky and Bitdefender.”
Final payload is responsible for fingerprinting the system, sending details about the user and the processes running on the machine.
Indicators of Compromise
Adobe Flash Downloader 189f707cecff924bc2324e91653d68829ea55069bc4590f497e3a34fa15e155c Adobe Flash Exploit (CVE-2018-5002) 3e8cc2b30ece9adc96b0a9f626aefa4a88017b2f6b916146a3bbd0f99ce1e497