Hands-on task
SUID where it shouldn't be
SUID files in /usr/bin are normal (passwd, su…), but in /usr/local and /opt there shouldn't be any: that's where your own software goes, and SUID there is a common trace of an attacker who has gained persistence. Find all regular files with the SUID bit in /usr/local and /opt and write their paths, one per line, to /root/suid-ioc.txt.
- suid bit
- find -perm
- file permissions
- security audit
- investigation