Learning advanced persistence techniques
In this section, we’ll explore a persistence technique that’s a bit more advanced and might be more stealthy and therefore less likely to be caught during your pentest.
Capabilities in Linux are a security feature that allows for fine-grained control over what privileged operations processes can perform. They provide a way to grant specific privileges to processes without the need to give them full root access. This helps improve system security by following the principle of least privilege.
The following are some key points about Linux’s capabilities:
- They break down the traditional all-or-nothing root privileges into smaller, more specific permissions.
- Capabilities are associated with executable files and processes, not users.
- There are over 40 distinct capabilities in modern Linux kernels.
- The following are some common capabilities:
- CAP_SETUID: This capability allows a process to set the user...