Rock appround the Clock Tracking Malware Developers
Berta and De Los Santos presents rock appround the clock tracking malware developers: Are you a malware developer for Android devices?
Summary
Architecture and Background
Are you a malware developer for Android devices? We have very bad news for you: the Android-SDK packager (aapt) is leaking your time zone! We have found a bug inside this Android-SDK's component that relies in not properly setting the value of a variable used as an argument for localtime() function, when setting the "Last Modified" field for the Android App's files.
Vulnerability Analysis
Because of this, the time zone of anyone using the Android-SDK packager to generate their APKs is leaked. The curious thing is that, despite of this bug inside aapt, the problem goes even beyond aapt itself: its roots goes deep into an incorrect handling errors in the operative system functions localtime() (Windows) and localtime_r() (UNIX). Because of in the world of Threat Intelligence determining the attacker's geographical location of is one of the most valuable data for attribution techniques, we focused our research in taking advantage of this bug for tracking Android malware developers.
Exploitation and Demonstrations
In addition to this, we have discovered another very effective way to find out the developer's time zone, based on a calculation of times extracting the GMT timestamp from the Android's app files and the UTC timestamp of the self-signed,"disposable" certificate added to the application (most common cases in malware developers). This is what we call: Rock appround the clock! Using these two different techniques, we have crunched some numbers with our 10 million apps database to determine how these leaked time zones (with one or another technique) are related with malware and which are the countries that generate more Android malicious applications, what is the possible relation between time zone and"malware likelihood" among other interesting numbers.
Remediation and Defensive Strategies
But that's not all, we have another bad news for malware developers: no IDE (even Android Studio) removes metadata from the files added to the Android app. We will show examples with real cases in which, after analyzing the metadata of files inside the .apk, we got to know country, language, or even more specific geographical location of the developer and -in some cases- the name of the suppose-to-be-anonymous developer! Finally, we will share the scripts we have built to get all this information with just a simple click.
Related talks
Main Stage·46 min
Josh Mitchell
Josh Mitchell presents ridealong adventures: critical issues with police body cameras: The police body camera market has been growing in popularity over the last few years.
Main Stage·1 hr 56 min
Svea · Suggy · Till
Svea et al. presents inside the fake science factory: Fake News has got a sidekick and it's called Fake Science.
Main Stage·18 min
0x200b
0x200b presents detecting blue team research through targeted ads: When my implant gets discovered how will I know?


