Hands-on task
Hidden capabilities in /opt
After a break-in you need to find out whether the attacker left themselves a backdoor. The SUID bits are clean, but privileges can also be attached through capabilities — ls -l doesn't show them. Find all files with capabilities in the /opt tree (recursively) and write their paths, one per line, to /root/caps-opt.txt — only the paths, without the capabilities themselves.
- capabilities
- getcap
- security audit
- awk
- investigation