$ ./guess_the_languageCybersecurity
Cybersecurity · medium · #307

Why would an auditor flag this file?

-rwsr-xr-x 1 root root 54096 /usr/local/bin/backup
  1. It runs with its owner's (root) rights
  2. Any user is able to overwrite it
  3. It is hidden from normal directory listings
  4. It can only be run by the root user
The s in the owner execute slot is the SUID bit, so anyone running it gets root's privileges. Custom SUID binaries widen the attack surface and should be reviewed.
Play Cybersecurity ▸