I’ve been playing with the android emulator recently and I kept thinking about how malwares could be using that emulator console to - quite aggresively - evade dynamic analysis by just killing the emulator that is used to analyze them.
I wrote a simple application example that will kill the emulator when you run the application in it, whatever the port on which the emulator is listening.
The example I provide is really simple but I really like the idea of just keeping annoying a malware reverser by killink its sandbox :)
In this example, the application will try to connect to any port where an emulator is allowed to listen and issue a
kill command if connection is successful.
Examples in the wild
I’ve never heard of any Android malwares using this kind of technique but if you have some good examples, please let me know !
I’m not sure there is any real security impact here but as Bouncer is using this emulator to perform dynamic analysis of applications being pushed to the Google Play, it might be possible to make Bouncer go crazy by uploading a malicious application.