macOS Apple Scripts
Learn & practice AWS Hacking:HackTricks Training AWS Red Team Expert (ARTE)
Learn & practice GCP Hacking:
HackTricks Training GCP Red Team Expert (GRTE)
Apple Scripts
It's a scripting language used for task automation interacting with remote processes. It makes pretty easy to ask other processes to perform some actions. Malware may abuse these features to abuse functions exported by other processes. For example, a malware could inject arbitrary JS code in browser opened pages. Or auto click some allow permissions requested to the user;
Here you have some examples: https://github.com/abbeycode/AppleScripts Find more info about malware using applescripts here.
Apple scripts may be easily "compiled". These versions can be easily "decompiled" with osadecompile
However, this scripts can also be exported as "Read only" (via the "Export..." option):
![](https://book.hacktricks.xyz/~gitbook/image?url=https%3A%2F%2Fgithub.com%2Fcarlospolop%2Fhacktricks%2Fraw%2Fmaster%2F.gitbook%2Fassets%2Fimage%2520%28556%29.png&width=768&dpr=4&quality=100&sign=695cd61e&sv=1)
and tin this case the content cannot be decompiled even with osadecompile
However, there are still some tools that can be used to understand this kind of executables, read this research for more info). The tool applescript-disassembler with aevt_decompile will be very useful to understand how the script works.
Learn & practice AWS Hacking:HackTricks Training AWS Red Team Expert (ARTE)
Learn & practice GCP Hacking:
HackTricks Training GCP Red Team Expert (GRTE)
Last updated