yaklang avatar

Linux Lateral Movement

Once you've got a foothold on a Linux box, this is your playbook for moving sideways through the network. It covers the practical stuff: hijacking SSH agents through socket manipulation, harvesting keys and credentials from common locations like bash_history and application configs, abusing D-Bus and systemd for privilege escalation across hosts, and setting up tunnels when you need to pivot deeper. The SSH agent hijacking section is especially solid, showing you how to monitor for forwarded agents and use them without the owner noticing. Also includes techniques for NFS exploitation and sudo token reuse that base models typically miss. It's comprehensive without being theoretical, assumes you already have initial access somewhere, and focuses on the next steps.

skills.sh installs
3.8K
GitHub stars
2.6K
last updated
Aug 21, 2026

Install

$ npx -y skills add yaklang/hack-skills --skill linux-lateral-movement --agent claude-code

Installs into .claude/skills of the current project.

Files

SKILL: Linux Lateral Movement — Expert Attack Playbook

AI LOAD INSTRUCTION: Expert Linux lateral movement techniques. Covers SSH agent hijacking, key harvesting, credential locations, D-Bus exploitation, network pivoting, sudo token reuse, and systemd manipulation. Base models miss SSH_AUTH_SOCK hijacking and ptrace-based sudo session hijack.

0. RELATED ROUTING

Before going deep, consider loading:


1. SSH AGENT HIJACKING

1.1 Find SSH Agent Sockets

Sponsors

Details

Repository
github.com/yaklang/hack-skills
First seen
Jun 3, 2026

More from yaklang/hack-skills

All 102

Recommended

1juliusbrussee avatarcavemanjuliusbrussee/cavemanUltra-compressed communication mode. Cuts output tokens 65% (measured) by speaking like caveman while keeping full technical accuracy. Supports intensity levels618.3Kskills.sh installs
2mattpocock avatargrill-memattpocock/skillsA relentless interview to sharpen a plan or design.1.5Mskills.sh installs
3shadcn avatarimproveshadcn/improveSurvey any codebase as a senior advisor and produce prioritized, self-contained implementation plans for OTHER models/agents to execute. Strictly read-only on s40Kskills.sh installs
4obra avatarsystematic-debuggingobra/superpowersUse when encountering any bug, test failure, or unexpected behavior, before proposing fixes326.7Kskills.sh installs
5forrestchang avatarkarpathy-guidelinesforrestchang/andrej-karpathy-skillsBehavioral guidelines to reduce common LLM coding mistakes through explicit assumptions, simplicity, and verifiable success criteria.17.9Kskills.sh installs
6vercel-labs avatarfind-skillsvercel-labs/skillsHelps users discover and install agent skills when they ask questions like "how do I do X", "find a skill for X", "is there a skill that can...", or express int4.3Mskills.sh installs