Certificate Signing - Signing malwares with digital certificates to bypass AVs at runtime

preview_player
Показать описание
Signature signing - Signing malwares with digital certificates to bypass AVs at runtime

Code signing or signature cloning is a powerful technique when the attackers create malwares. In almost all my malwares, I always the sign the malwares with known signatures like Defender, office, vlc, chrome, mozilla, putty, IE, etc.

Now exe signing can be in any format like digital certificates, hashes, etc but the signing works like Hashing algorithm, like every executable has its own digital signature and a it will always generate a new hash to verify the application integrity. So, to bypass it you can perform collisions and then sign with hash, but in now-a-days digital certificate signing is the only solution that organizations take in consideration and store that signature in the format of .dll

and that's where we can embed that certificate dll and sign with that certificate and Windows Defender is of course our friend which comes as handy, and the dll name is msmplics which is a part of Microsoft license module. Here is a bit of information given:

There are multiple py scripts, java or c++ based codes available, some attackers do it with their own signature to show off, but in Red Teams, u shld use the known digital certificates only as now-a-days APT solutions r very intelligent and believe me, as per my analysis the best is Microsoft Defender (❤) .

So, there is a very handy beautiful tool written by "gigajew" in recent times which makes the whole process easy, otherwise like manually when first verify the cert, extract the cert hex-code bits, move bits to some open locations (usually in .code segment of exe), then change properties manually, and shit what not, This small binary does everything by itself. The link is given below:

and rest everything is given in video, sit tight and enjoy the video

#microsoft #java #defenders #microsoftdefender #antivirus #malwareanalysis #malwareattacks #MalwareDetection #phishing #phishingattacks

PS - the demonstration is only for Red-Team and legal purposes
Рекомендации по теме