Skip to content

Avast #51

Closed
Closed

Description

@ibmua

I'm getting Avast antivirus detecting my script as false positive virus threat.

my config used to be:

      	rotateUnicodeArray: true
		,
	compact: true,
	controlFlowFlattening: false,
	deadCodeInjection: false,
	debugProtection: false,
	debugProtectionInterval: false,
	disableConsoleOutput: true,
	rotateStringArray: true,
	selfDefending: true,
	stringArray: true,
	stringArrayEncoding: 'base64',
	stringArrayThreshold: 0.75,
	unicodeEscapeSequence: false

I also tried "lowest" settings, but it still detected as false positive. Forgone the obfuscation altogether and it stopped complaining.

Activity

  1. sanex3339 commented on May 8, 2017

    @sanex3339
    Member

    It's bad. In a few days i'll try to contact with Avast and describe this problem.

    Can you attach working sample with obfuscated code that trigger Avast antivirus?
    I'll attach this code to this page
    https://www.avast.ru/false-positive-file-form.php

  2. ibmua commented on May 8, 2017

    @ibmua
    Author
  3. ibmua commented on May 8, 2017

    @ibmua
    Author

    Mind that it is highly unlikely that it only has to do with Avast. I'm guessing that many more antiviruses see that code as a threat. It's just that I only tried on Avast.

  4. sanex3339 commented on May 11, 2017

    @sanex3339
    Member

    How i can reproduce this on Mac? It's Avast extension for browser?

    Can you try to run Uglify.js over obfuscated code and check with Avast again? Still detecting as virus threat?

  5. sanex3339 commented on May 11, 2017

    @sanex3339
    Member

    Got it on your file with https://www.virustotal.com/ru/
    Currently only one or two antiviruses detecting this code as threat.

  6. sanex3339 commented on May 11, 2017

    @sanex3339
    Member

    Please try to run Uglify.js over obfuscated code or try latest beta with mangle: true option

  7. ibmua commented on May 15, 2017

    @ibmua
    Author

    Of course, the result isn't any different than it would be if you ran Uglify over that script. Ran it uglified on VirusTotal and got a
    NANO-Antivirus Trojan.Script.Agent.enqons
    detection https://www.virustotal.com/ru/file/f31dfbb30d1536fff0b6f6701c705ea4b2111bfc7e79cb6bd587b93681f7f8bf/analysis/1494891276/

  8. NeXTs commented on Jun 12, 2017

    @NeXTs

    same here 😞

  9. sanex3339 commented on Jun 12, 2017

    @sanex3339
    Member

    I should do research. if anyone have information - why some antiviruses mark obfuscated code as threat - i will very happy.

  10. added this to the 0.11.0 milestone on Jun 13, 2017
  11. NeXTs commented on Jul 17, 2017

    @NeXTs

    @sanex3339
    Hey Timofey, have you contacted Avast?

    Actually this issue is critical blocker for production use :/

  12. sanex3339 commented on Jul 17, 2017

    @sanex3339
    Member

    Hi, no. But please try to use latest beta: 0.10.0-beta.8.
    I removed all evals from obfuscated code, so maybe it won't detect your script as the virus threat.

  13. 26 remaining items

  14. sanex3339 commented on Mar 5, 2018

    @sanex3339
    Member

    Interesting. Avast and AVG is triggering on this lines:
    https://github.com/javascript-obfuscator/javascript-obfuscator/blob/master/src/templates/string-array-nodes/string-array-rotate-function-node/StringArrayRotateFunctionTemplate.ts#L8-L10

    When i removed this lines, all checks are passed.
    So, i'll think how to fix this.

  15. sanex3339 commented on Mar 5, 2018

    @sanex3339
    Member

    When i changed this lines on this

    var firstElement;
    while (--times) {
        firstElement = array.shift();
        array.push(firstElement);
    }

    All checks are passed, so today or tomorrow i'll release 0.14.4 with this fix.

  16. sanex3339 commented on Mar 5, 2018

    @sanex3339
    Member

    @Tech1e

    Hello, 
    
    Thank you for reporting this false positive.
    
    Our virus specialists have now cleared its reputation in our database.
    
    With URLs this change should be instant, but it might take up to 24 hours with files.
    
    For future reference you might also find the following article to be useful: Avast Clean Guidelines.
    

    Looks like new version is redundant. So, we should wait until tomorrow.

  17. sanex3339 commented on Mar 6, 2018

    @sanex3339
    Member

    @Tech1e Please, check again. Looks like avast fixed false-positive alert.

  18. sanex3339 commented on Jun 6, 2018

    @sanex3339
    Member

    Looks like no more problems with it. Reopen issue if you will have problems with avast.

  19. sanex3339 commented on Jul 18, 2018

    @sanex3339
    Member

    Anyone runs into this issue this week?

  20. davidroze commented on Jul 19, 2018

    @davidroze

    @sanex3339 Yes for some reason Avast and Bitdefender detects the obfuscated code as malicious again.

  21. sanex3339 commented on Jul 19, 2018

    @sanex3339
    Member

    Can you test with 0.16.0 version please?

  22. dani3lL commented on Jul 27, 2018

    @dani3lL

    Hi, for some reason the detection occurs when either mangled or hexadecimal options selected and a prefix is used , if you will use only hexadecimal no detection will occur.

  23. voxsoftware commented on May 9, 2019

    @voxsoftware

    Is this false positive alert ocurred if output file looks like this?:

    1. convert to base64
    2. use something like eval(atob("xxxx"))
  24. cliqer commented on Sep 5, 2021

    @cliqer

    This is still a problem in ES3 where var is being used.
    If replaced by const/let it is not flagged as a false positive but then it doesn't work in ie. windows JScript engine that requires ES3.

  25. ItzmeJan commented on Apr 9, 2023

    @ItzmeJan

    @cliqer is right , i've made a program based on mshta and i'm fasing the same problem

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      ⌂ Proxy