Linux Capabilities Abuse for Privilege Escalation
Explores exploiting misconfigured Linux capabilities (e.g., CAP_SETUID, CAP_NET_RAW) to escalate privileges without full SUID binaries.
HackIndex.io
Language
Linux is the dominant operating system for servers, containers, cloud infrastructure, and embedded devices. In pentesting, it appears both as the attacker platform (Kali, Parrot) and as the target host running web applications, databases, and network services. Understanding Linux internals is essential for nearly every engagement.
Linux privilege escalation targets misconfigurations in sudo rules, SUID/SGID binaries, cron jobs, writable paths, kernel exploits, and capabilities. Post-exploitation focuses on credential harvesting from configuration files, SSH keys, bash history, and memory. Persistence techniques include SSH authorized keys, cron backdoors, systemd services, and shared library injection.
This section covers Linux-specific techniques: local enumeration of users, processes, network connections, and installed software, privilege escalation through sudo abuse, kernel exploits, and service misconfigurations, lateral movement via SSH key reuse and credential pivoting, and post-exploitation actions like data staging and log cleanup. Core tooling includes LinPEAS, pspy, GTFOBins, and Linux Exploit Suggester.
Linux privesc guides covering SUID, sudo, cron, kernel CVEs, and more
Explores exploiting misconfigured Linux capabilities (e.g., CAP_SETUID, CAP_NET_RAW) to escalate privileges without full SUID binaries.
Techniques for locating stored credentials on Linux systems, including config files, history, environment variables, and memory to escalate privileges.
Exploit misconfigured cron jobs running as root to escalate privileges via writable scripts, PATH hijacking, or wildcard injection on Linux systems.
Exploit misconfigured D-Bus services on Linux to escalate privileges by abusing insecure policy rules, exposed interfaces, and unauthorized method calls.
Race condition in Linux kernel's copy-on-write mechanism allows local attackers to gain root privileges by writing to read-only memory mappings.
Exploits Linux kernel pipe buffer flaw (CVE-2022-0847) to overwrite read-only files and escalate privileges to root on kernels 5.8–5.16.11.
Linux post-exploitation guides for exfil, persistence, and creds
Techniques for harvesting Linux credentials post-exploitation, covering password files, hashes, SSH keys, memory dumps, and credential reuse strategies.
Extracting credentials stored in browser password managers on Linux systems using filesystem access and decryption techniques during post-exploitation.
Techniques for locating stored credentials in Linux files, configs, logs, and history files during post-exploitation to escalate privileges or move laterally.
Enumerate running process memory and cmdline args to extract plaintext secrets, credentials, and sensitive data from live Linux processes.
Extracts credentials and sensitive data from shell history files (.bash_history, .zsh_history) across user accounts during post-exploitation.
Techniques for harvesting SSH keys and abusing agent forwarding on compromised Linux hosts to enable lateral movement across infrastructure.
TTY upgrades and reverse shell one-liners for Linux
Covers Linux reverse shell techniques using Bash, Python, Perl, Netcat and more for establishing remote command execution during exploitation.
Upgrade a basic reverse shell to a fully interactive TTY using Python, socat, or stty techniques to enable job control, tab completion, and stable I/O.
Guides for enumerating users, system, network, services, and jobs on Linux
Enumerate cron jobs, systemd timers, and scheduled tasks on Linux to identify misconfigurations or privileged scripts exploitable for privilege escalation.
Techniques for enumerating local Linux systems post-access: users, groups, SUID binaries, cron jobs, kernel version, and privilege escalation vectors.
Enumerate local Linux users and groups via /etc/passwd, /etc/group, id, whoami, and getent to map privilege levels and identify targets.
Identify locally bound services and internal ports on Linux using ss, netstat, and /proc/net to uncover hidden attack surface during post-exploitation enumeration.
Enumerate mounted filesystems, storage devices, and disk configurations on Linux to identify sensitive data locations, misconfigurations, and privilege escalation paths.
Enumerate Linux network interfaces, routing tables, active connections, and DNS config to map attack surface and identify lateral movement paths.
SSH tunneling, port forwarding, and credential reuse for pivoting
Techniques for exploiting reused credentials across Linux systems to move laterally, covering SSH, sudo abuse, and credential harvesting from config files.
Covers SSH local, remote & dynamic port forwarding techniques to tunnel traffic, bypass network restrictions and pivot through compromised Linux hosts.
Find, stage, compress, and transfer data from Linux systems
Living-off-the-land file transfer techniques for Linux using built-in utilities like /dev/tcp, base64, and proc when wget/curl/nc are unavailable.
Techniques for locating sensitive files, credentials, and critical data on Linux systems prior to exfiltration using native CLI tools.
Covers techniques for aggregating, archiving, and compressing sensitive data on Linux systems prior to exfiltration, including tar, zip, and encryption methods.
Cron, SSH keys, web shells, backdoors, systemd, and profile persistence
Covers techniques for detecting and preventing unauthorized backdoor accounts on Linux systems used to maintain persistent unauthorized access.
Covers abusing cron jobs and systemd timers to maintain persistent access on Linux systems, including scheduled task backdoors and detection evasion.
Techniques for maintaining persistent access on Linux systems via shell configuration files, profile scripts, and environment variable hijacking.
Covers abusing SSH authorized_keys files to maintain persistent backdoor access on Linux systems by injecting attacker-controlled public keys.
Covers creating malicious systemd service units to maintain persistent code execution across reboots, including unit file structure and enabling techniques.
Covers techniques attackers use to deploy and maintain web shells on Linux servers for persistent backdoor access and remote code execution.
We use cookies to improve your browsing experience, analyze site traffic, and personalize content. By clicking "Accept All", you consent to our use of cookies. Privacy Policy.