Apex › Security & web
Linux capabilities — least privilege vs the exploit
“Root” isn’t one thing: the kernel splits it into ~40 capabilities, each a class of privileged action, and a process holds only the ones it’s granted. Coarser than seccomp’s syscall filter, and they compose. Take an exploited web server and toggle its capabilities: it needs only CAP_NET_BIND_SERVICE to bind :80, so dropping the rest means the attacker can’t read /etc/shadow, load a rootkit, or escape the container — while full root, or a careless CAP_SYS_ADMIN, hands them everything.
More in Security & web
- Certificates (PKI)
- Kerberos
- Revocation & CT
- Certificate Transparency
- Sigstore (keyless signing)
- Remote attestation (TEE)
- SSH transport
- SSH tunneling (-L/-R/-D)
- Identity & Auth
- JWT & alg=none
- Email auth (SPF/DKIM)
- How your 2FA code works (TOTP)
- Passkeys (WebAuthn)
- Cookies & sessions
- CORS / Same-Origin
- Injection (SQLi/XSS)
- How a buffer overflow hijacks a program
- How NX / DEP stops your shellcode
- How ROP bypasses NX
- How ASLR randomizes the addresses
- How a stack canary catches the overflow
- How CFI and shadow stacks kill ROP
- Request smuggling
- SSRF
- XXE (XML entities)
- DNS rebinding
- ARP spoofing (MITM)
- Tor / onion routing
- Censorship circumvention
- ECH (encrypted SNI)
- Onion services (.onion)
- Mix networks (batching anonymity)
- Traffic correlation attack
- Firewall rules (iptables)
- SIEM log correlation
- seccomp (syscall sandbox)
- eBPF & the verifier
- Honeypot & honeytokens
- Port knocking
- CSRF & SameSite
- DNS tunneling (C2/exfil)
- IDS / IPS detection
- Clickjacking
- HSTS & SSL stripping
- Open redirect
- Prototype pollution
- Hash flooding (DoS)
- ReDoS (regex DoS)
- Subdomain takeover
- Site isolation
- Subresource Integrity
- Content-Security-Policy
- Attacks