
Shellcoding exercise no.2 MacOS ARM64
Here is another scenario which I think is really interesting. We simulate the user executing the shellcode (reverse shell) test binary on the latest MacOS 12.0.1 (arm64)
An interesting privilege escalation was disclosed by Microsoft https://www.microsoft.com/security/blog/2021/10/28/microsoft-finds-new-macos-vulnerability-shrootless-that-could-bypass-system-integrity-protection/ which mentions a way how .zshenv gets processed on the MacOS .
- Key points are (as user who executed the payload we can modify the current users .zshenv and plant a backdoor code that would get executed by both the user (every time he opens up the shell or logs in) or when he runs sudo -s and elevates to root. Now the latter is more interesting since we can perform elevated operations like this as you can see in the video.
Credits go to Microsoft's Jonathan Bar Or of course - since this is a really nice LPE attack technique :)
Other Videos By DoktorCranium
2022-11-20 | ArcaOS in 86box on Apple Silicon |
2022-11-10 | QNX 6.5 in qemu-system-x86_64 on an M2 MacBook |
2022-11-02 | Minix 3.4 in Qemu on M2 Mac |
2022-10-24 | SSH Password snooping on OpenBSD |
2022-07-01 | AIX 4.3 on a PinePhone |
2022-06-01 | Doom on OS400 |
2021-12-22 | Multipass GUI escape |
2021-12-07 | Solaris aarch64 in Qemu |
2021-11-26 | Pinephone games |
2021-11-12 | Amazon Linux 2 AMI aarch64 on the Apple M1 with qemu |
2021-10-28 | Shellcoding exercise no.2 MacOS ARM64 |
2021-10-27 | ARM64 Shellcode on MacOS M1 |
2021-10-22 | Solaris 6 and Solaris 8 on Mac M1 under qemu-system-sparc |
2021-10-18 | Solaris10 x86 on Mac M1 under qemu-system-x86_64 |
2021-10-08 | CVE-2021-42013 Apache 2.4.50 POC |
2021-09-22 | NetBSD alpha under qemu-system-alpha |
2021-09-16 | Qemu-system-m68k MacOS/NetBSD on Apple M1 |
2021-09-10 | NetBSD nested virtualization on BigSur M1 |
2021-08-30 | Stalker - Call of Pripyat on NVIDIA Jetson Nano |
2021-08-12 | NetBSD/VAX running on M1 Apple MacBook Air via simh |
2021-05-15 | AIX 5.1 on RPI4 demo (Tiny UNIX) |