Check if the process is running as root user, for example, one started with sudo
CASL is an isomorphic authorization JavaScript library which restricts what resources a given user is allowed to access
Offers convenient getters and setters for the stat mode
Block users from running your app with root permissions
Try to downgrade the permissions of a process with root privileges and block access if it fails