Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

How to bypass Gen.variant / HEUR detections on your RAT

These detections are known as Generic or Heuristic, meaning that the file LOOKS like malware, but exact malicious code has not been found itself.  There are many ways to bypass this.  80% of the time, it is not due to the stub itself (though extremely HQ crypters / private stubs generally negate this).

They are both treated the same, here is the solution:

1)  Change assembly information.  (Product version, description, product name, company, copy write etc.)  If your crypter doesn't support this, try using resource hacker:  http://www.angusj.com/resourcehacker/

2)  FUD icon.  Using an overused icon can result in these detections.  Instead of using a site that gives free .ICO files (Which is likely to be used by a lot of other people, thereby saturating the icon), it is advisable to find an image and convert it to an icon using ICO converter:  https://www.icoconverter.com/ or even create your own icon.

3)  Change the name of installed folders/files.  Often, RATs / crypters will drop files in Appdata, Temp, or many other places in order to store logs and install the software.  If given the chance, change the name of these files within the RAT/crypter.  If # / DarkEyE by default drop a folder in Appdata named #, AVs will understand this signature process and will be more likely to detect files with the same process.  Change the names to something random.

4)  Pump the file.  This is self explanatory.  A smaller file is ideal, but if the only way to bypass these detections is to have a larger file, then go for it.

5)  Startup / process injection methods.  Once again, self explanatory.  Experiment with different settings.

6) Delay the execution.  Unrelated, but also helpful, add a 30+ second delay to the execution.  This will help your runtime execution rate.

If you have tried all of these and you are still getting generic (gen.variant) or heuristic (HEUR) detections, it is your malware or simply the quality of the crypter you are using.  If you are target spreading (spreading privately to a small amount of individuals) then consider buying a private stub or writing your own malware (ideal).

It's said everywhere, but people still scan their files on Virustotal or other mainstream web scanners.  You are not only fucking yourself over, but anybody else who is using a shared stub on your crypter.  For a paid scanner, consider Viruscheckmate and for free, take a look at http://spyralscanner.net (Spyral has given me false positives before but it's rare).

If there is incorrect / missing information you feel should be posted, let me know below and I'll try and keep this updated and bumped so that we can save everyone some time and effort. Cheers
Thank you for your detailed description. Especially this helps me a lot to improve my projects, most of it I already got together, but nice that I got it confirmed. Please keep your post quality. Keep it up & welcome to Hackforums! Take my + rep, getting your profile a little more green :p
(Jan 19, 2019 05:23 PM)Alles auf Rot Wrote:  Thank you for your detailed description. Especially this helps me a lot to improve my projects, most of it I already got together, but nice that I got it confirmed. Please keep your post quality. Keep it up & welcome to Hackforums! Take my + rep, getting your profile a little more green :p

I appreciate the kind words my man! I have a lot of experience with this sort of thing, so feel free to shoot me a PM if you are ever having issues =)
(Jan 19, 2019 05:19 PM)BTCZeus Wrote:  These detections are known as Generic or Heuristic, meaning that the file LOOKS like malware, but exact malicious code has not been found itself.  There are many ways to bypass this.  80% of the time, it is not due to the stub itself (though extremely HQ crypters / private stubs generally negate this).

They are both treated the same, here is the solution:

1)  Change assembly information.  (Product version, description, product name, company, copy write etc.)  If your crypter doesn't support this, try using resource hacker:  hp:/.angusj./resourcehacker/

2)  FUD icon.  Using an overused icon can result in these detections.  Instead of using a site that gives free .ICO files (Which is likely to be used by a lot of other people, thereby saturating the icon), it is advisable to find an image and convert it to an icon using ICO converter:  hs:/.icoconverter.c/ or even create your own icon.

3)  Change the name of installed folders/files.  Often, RATs / crypters will drop files in Appdata, Temp, or many other places in order to store logs and install the software.  If given the chance, change the name of these files within the RAT/crypter.  If # / DarkEyE by default drop a folder in Appdata named #, AVs will understand this signature process and will be more likely to detect files with the same process.  Change the names to something random.

4)  Pump the file.  This is self explanatory.  A smaller file is ideal, but if the only way to bypass these detections is to have a larger file, then go for it.

5)  Startup / process injection methods.  Once again, self explanatory.  Experiment with different settings.

6)  Delay the execution.  Unrelated, but also helpful, add a 30+ second delay to the execution.  This will help your runtime execution rate.

If you have tried all of these and you are still getting generic (gen.variant) or heuristic (HEUR) detections, it is your malware or simply the quality of the crypter you are using.  If you are target spreading (spreading privately to a small amount of individuals) then consider buying a private stub or writing your own malware (ideal).

It's said everywhere, but people still scan their files on Virustotal or other mainstream web scanners.  You are not only fucking yourself over, but anybody else who is using a shared stub on your crypter.  For a paid scanner, consider Viruscheckmate and for free, take a look at hp:/spyralscanner. (Spyral has given me false positives before but it's rare).

If there is incorrect / missing information you feel should be posted, let me know below and I'll try and keep this updated and bumped so that we can save everyone some time and effort.  Cheers

This is really good!

Most important thing is Write your own Malware. That's what I keep telling people all the time! It's the best way to get around all the security features...

Keep up the good work!
Thanks for sharing these well-written steps, just remember these steps will only avoid scan-time detections and not run-time but I guess you are sharing this for newcomers.
viruscheckmate is dead, take a look at dyncheck.com
Heh....

This is a surprisingly great write up @OP.

I find it ironic that people over look #'s 2,3, and 4 in specific.
- So obvious, but so effective, and yet so over looked by many.
Heuristics are not that easy to bypass. Even when cloning legit file assemblies, version info and icons, antiviruses with heuristic engines such as Avira Cloud, Norton's SONAR, WinDef cloud protection will be triggered. And yes, file packers (a.k.a. Crypters) will MOST of the time give you a "heuristically dirty" output even if undetected by the file antivirus and it's simply because AV vendors have already found other malicious samples containing the same file structure.

One of the ways to make these engines ignore file heuristics is by adding a valid digital signature to the file, which is really expensive. Another way you can get around heuristics is by crypting using NSIS silent installers, self extracting archives (which will most of the time seem heuristically correct to antiviruses)... Sometimes, even adding junk data to the PE info can help, but not efective against all engines.

Another thing to note is that, if you get to bypass heuristic scanners once, it will not last for long... Especially if you are crypting malware.
As soon as your file is caught doing something suspicious during runtime, it will be submit to the cloud for further scanning and will eventually get scantime detected (as well as any other PE containing the same, or simillar info).
(Jan 20, 2019 05:48 AM)QU⚡CKSILVER Wrote:  Heuristics are not that easy to bypass. Even when cloning legit file assemblies, version info and icons, antiviruses with heuristic engines such as Avira Cloud, Norton's SONAR, WinDef cloud protection will be triggered. And yes, file packers (a.k.a. Crypters) will MOST of the time give you a "heuristically dirty" output even if undetected by the file antivirus and it's simply because AV vendors have already found other malicious samples containing the same file structure.

One of the ways to make these engines ignore file heuristics is by adding a valid digital signature to the file, which is really expensive. Another way you can get around heuristics is by crypting using NSIS silent installers, self extracting archives (which will most of the time seem heuristically correct to antiviruses)... Sometimes, even adding junk data to the PE info can help, but not efective against all engines.

Another thing to note is that, if you get to bypass heuristic scanners once, it will not last for long... Especially if you are crypting malware.
As soon as your file is caught doing something suspicious during runtime, it will be submit to the cloud for further scanning and will eventually get scantime detected (as well as any other PE containing the same, or simillar info).

Although I agree...
Its funny how the simplest of shit can work sometimes.
AVFucker, for example... its just a file pumper, basically. but it fucking works, sometimes. 🤫
(Jan 20, 2019 06:09 AM)Angelis Wrote:  Although I agree...
Its funny how the simplest of shit can work sometimes.
AVFucker, for example...  its just a file pumper, basically. but it fucking works, sometimes. 🤫

Definetely,
Avira, for example, got a REALLY sensitive heuristic scanner. Chances are, 99% of the crypted files (even if you crypt a harmless app) will be caught by this thing... It's insane but luckily not so many people have that antivirus anymore, but then there is Windows Defender's cloud protection + MS SmartScreen which has always been a pain in the ass to bypass recently 😭
(Jan 20, 2019 06:17 AM)QU⚡CKSILVER Wrote:  Definetely,
Avira, for example, got a REALLY sensitive heuristic scanner. Chances are, 99% of the crypted files (even if you crypt a harmless app) will be caught by this thing... It's insane but luckily not so many people have that antivirus anymore, but then there is Windows Defender's cloud protection + MS SmartScreen which has always  been a pain in the ass to bypass recently  😭

Would you recommend Avira as a daily AV for me to use, or should I stick with Defender? Just in case I get infected with a crypted malware.
(Jan 20, 2019 07:32 AM)Takehito Morokuzu Wrote:  Would you recommend Avira as a daily AV for me to use, or should I stick with Defender? Just in case I get infected with a crypted malware.

ESET is the golden answer.
(Jan 20, 2019 07:32 AM)Takehito Morokuzu Wrote:  Would you recommend Avira as a daily AV for me to use, or should I stick with Defender? Just in case I get infected with a crypted malware.

Definetely not, it does not have a decent behavioral shield and virus signature updates are not as quick as other competitors like ESET.
If I were to recommend something, I'd go with Kaspersky because of its' System Watcher (defeats most if not all types of ransomware on runtime, checks for unknown startup programs, submits unknown samples, monitors network activity and blocks whatever it finds suspicious). It also has a rollback feature in case of malware damage. Amazing.
(Jan 20, 2019 08:12 AM)QU⚡CKSILVER Wrote:  Definetely not, it does not have a decent behavioral shield and virus signature updates are not as quick as other competitors like ESET.
If I were to recommend something, I'd go with Kaspersky because of its' System Watcher (defeats most if not all types of ransomware on runtime, checks for unknown startup programs, submits unknown samples, monitors network activity and blocks whatever it finds suspicious). It also has a rollback feature in case of malware damage. Amazing.

I don't know about recent product but back in the day Stinger Anti-Virus was the best! Which is now bought by McAfee... you might wanna look into that too?
Please enlighten me with your thoughts on Stinger!
(Jan 20, 2019 12:27 PM)Vytrex Wrote:  I don't know about recent product but back in the day Stinger Anti-Virus was the best! Which is now bought by McAfee... you might wanna look into that too?
Please enlighten me with your thoughts on Stinger!

McAffee is complete junk, even John McAfee himself hates it. Stinger is just a free tool now, I doubt it is any good anymore TBH.


Possibly Related Threads...
Thread / Author Replies Views Last Post
by I_H8_KDotApr 27, 2026 01:39 PM 18 1,058 Apr 27, 2026 01:39 PM
Last Post: loadman
by DrCrypterApr 2, 2021 02:21 AM 6 572 Apr 2, 2021 02:21 AM
Last Post: Obistone
by Oldylox1Jul 10, 2020 06:48 AM 11 433 Jul 10, 2020 06:48 AM
Last Post: UnknownProducts