Making stuff undetectable
This has always been a hot topic on forums and will be one for a long time: how do I make X undetectable for virus scanner Y? This is actually quite simple.
There are two main ways a virus scanner "scans":
- Checks for a certain string in a file
- Checks for the behaviour of the file (e.g. specific location in registry or file system)
So, this means you need to protect your program in two ways, by:
- Changing the encryption of the source code, adding even the slightest piece of code changes the source code if it's a binary file. For scripts, you should add something like base64, as many times as you want.
- Change its behaviour. This can be done in lots of ways, you can make the install locations random, use different registry settings, bind with other applications..
Does this only apply to malware? Definitely not. Your application or script can get on the blacklist of an antivirus way faster than you might think (Realplayer for example, but they really deserved it), and the process of getting off it again is long and will cost you a lot of users.
