In this chapter, we’ll discuss special daemons, called privileged helpers, which are the legal and modern way to do privilege escalation in macOS.
You can also refer to the examples at Daemonology/3-PrivilegedHelper.
PrivilegedHelper Specifics
System-wide
Run as root
Usually a single instance in the system
It is installed and managed by a limited list of apps (declared in Info.plist). ...