that's why you turn on Lockdown Mode or swap to Linux completely :)
replies(3):
Linux will get there, but currently macOS is much more secure as a desktop.
Good security is layered. For example, even with a sandbox escape, and app could not read your full Documents directory, modify the OS, or install a firmware-level rootkit.