Skip to main content

Linux Infrastructure

Offensive and defensive reference for Linux hosts: permissions model, enumeration, local privilege escalation, container escapes, credential discovery, and persistence. This subcategory covers standalone and enterprise Linux systems (servers, workstations, containers).

This subcategory uses the two-track format (Offensive / Defensive). See the parent INFRASTRUCTURE README for the format skeleton.

Files​

#FileFocus
01Linux FundamentalsPermissions, SUID/SGID, capabilities, systemd, kernel, namespaces
02Enumeration and MisconfigurationslinPEAS, LinEnum, pspy, configs, cron, sudoers
03Local Privilege EscalationSUID/SGID, sudo, capabilities, cron, PATH, kernel exploits
04Container and Namespace EscapesDocker, LXC, host mounts, privileged containers, Kubernetes basics
05Credentials and Secret DiscoverySSH keys, history, env vars, configs, agent forwarding
06Persistence and Defensecron, systemd, SSH keys, PAM, auditd, hardening

Scope​

In scope:

  • Linux servers (RHEL/CentOS/Rocky, Debian/Ubuntu, SUSE, Alpine).
  • Linux workstations.
  • Containerized workloads (Docker, Podman, LXC/LXD).
  • Kubernetes nodes and pods (attack surface from a compromised pod).
  • Standalone and domain-joined Linux (SSSD, Winbind) - host-level attacks.

Out of scope:

  • Active Directory attacks from Linux (Kerberos tooling on Linux) - see 01 Active Directory.
  • Cloud-hosted Linux (AWS EC2, Azure VM, GCP CE specific features) - see the CLOUD category.
  • Hypervisor-level escapes - see the VIRTUALIZATION category.