macOS malware used run-only AppleScripts to avoid detection for five years
zdnet.com
zdnet.com
Teams generally solved it by reverse engineering the AppleScript runtime to understand the VM bytecode; one writeup is here: https://twitter.com/_niklasb/status/856594863294472193
So, I guess I can't be too surprised that run-only AppleScript ended up as a good malware vector - it's so poorly documented, and there are so few tools to understand it, that it could easily fly under the radar.
How'd it go?
For future competitions featuring macOS problems, we'll probably rent a cloud Mac for the duration of the contest (24-48h) and give contestants gated access to it, to remove that particular handicap.
Surely no more difficult than your average malware binary blob?
If you're an experienced security researcher, you'll get there of course, but definitely not a thing you press F5 at in IDA and go "ah yes, that's how it works".
I’m curious what additional information is derived from static analysis of a program that helps identify it as malware.
osacompile[0] does actually produce some form of bytecode when you pass the "x" execute only flag.
Here's a script that opens Safari[1] and the compiled output[2].
[0] https://ss64.com/osx/osacompile.html
LoL is free, though. Why would anyone use a pirated/cracked version? What would that even mean?
Doesn't even have to be pirated or cracked. ESEA put surreptitious bitcoin miners into their installer/client software back in 2013.
Greed talks.
You can also compile osa scripts into .app bundles, since these are new, standalone apps they need to have a valid signature.