question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:6
  • Comments:40 (24 by maintainers)

github_iconTop GitHub Comments

4reactions
sanex3339commented, Aug 5, 2017

Hi. After some tests i noticed that Avast triggered when string literals are moving to the string array from objects keys that had computed property with false value.

Obfuscator doing transformation of object keys:

var foo = {
    bar: 'baz'
};

into this form:

var foo = {
    'bar': 'baz'
};

And then moving this string literal ‘bar’ to the string array. So, on your code after moving object keys to string array - avast will detect your code as the threat.

Solution - enable stringArrayEncoding: 'base64' With this option enabled - all antivirus checks are negative. Tested on 0.10.2 version.

2reactions
sanex3339commented, Jan 1, 2018

Also i wrote letter to Avast about false positive alerts. Will waiting for response.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Avast | Download Free Antivirus & VPN | 100% Free & Easy
Free antivirus ; Avast will help keep you safe online from over one billion threats each month ; Over 400 million users worldwide...
Read more >
Avast Antivirus & Security - Apps on Google Play
Protect against viruses & other types of malware with Avast Mobile Security, our free antivirus app for Android. Trusted by over 435 million...
Read more >
Avast Software - Home - Facebook
Avast is part of Gen™—a global company dedicated to powering Digital Freedom through a family of trusted consumer brands. (NortonLifeLoc ...
Read more >
Avast - Wikipedia
Avast Software s.r.o. is a Czech multinational cybersecurity software company headquartered in Prague, Czech Republic that researches and develops computer ...
Read more >
Avast - YouTube
Avast One is the free, integrated all-in-one service that combines antivirus, VPN, performance, and security tools to help you stay as private and...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found