LogoAwesome Skills
  • Search
  • Category
  • Tag
  • Blog
LogoAwesome Skills
LogoAwesome Skills

Discover Open-Source Agent Skills for AI Coding Assistants

Product

  • Search
  • Category
  • Tag
  • Blog

Resources

  • Claude Skill Docs
  • Antigravity Skills Docs

Tools

  • Claude Code
  • OpenCode
  • Cursor
  • Codex
  • Antigravity

Company

  • Privacy Policy
  • Terms of Service
  • Sitemap

©2026 Awesome Skills. All rights reserved.

Privacy PolicyTerms
Back to Skills

linux-lateral-movement

Linux lateral movement playbook. Use after gaining initial access to pivot across Linux hosts via SSH hijacking, credential harvesting, internal pivoting, D-Bus exploitation, sudo token reuse, and shared filesystem abuse.

1,311stars179forksUpdated 7/8/2026
Security#security#lateral-movement#penetration-testing#linux#post-exploitation

Security Assessment

Critical Risk(0/100)

Detected risks:

Persistence([SKILL.md] authorized_keys, [SKILL.md] systemctl enable)
Secret Exposure([SKILL.md] password=)
Sensitive File Access([SKILL.md] .ssh/, [SKILL.md] /etc/shadow, [SKILL.md] /etc/passwd)
Privilege Escalation([SKILL.md] sudo, [SKILL.md] SUDO)
Security Score0/100

About linux-lateral-movement

A Linux lateral-movement playbook for pivoting across hosts once initial access is established, focused on reusing credentials and trust relationships rather than exploiting single-host vulnerabilities. A signature technique is SSH agent hijacking: locating other users' agent sockets under /tmp or via /proc environ, exporting SSH_AUTH_SOCK, listing keys with ssh-add -l, and authenticating onward using the victim's forwarded agent, including persistent monitoring for new sockets as admins log in.

Credential-centric coverage continues with SSH key harvesting: finding private keys, testing which lack passphrases, parsing known_hosts (including hashed entries) to enumerate reachable hosts, and injecting attacker public keys into authorized_keys, alongside a broad table of credential locations spanning /etc/shadow, shell and database histories, .pgpass, .my.cnf, .netrc, .git-credentials, environment variables, app config files, and secret stores. It also covers D-Bus exploitation to enumerate and abuse systemd and PolicyKit, internal network pivoting (SSH local/remote/dynamic forwards, multi-hop ProxyJump, socat, ncat, the /dev/tcp bash builtin, and chisel), network discovery from the foothold, and shared-filesystem abuse via NFS mounts.

Use it after landing on a Linux host when the goal is to reach adjacent systems and expand access across the network. The techniques emphasize approaches that are quiet and rely on existing material: hijacking a live agent, reusing harvested keys and passwords, and scanning subnets with only bash builtins when no tools are available. The skill routes to companion playbooks for local privilege escalation (to get root before pivoting), security-module bypass, container escape, Kubernetes pentesting, and exploitation of discovered internal services such as Redis and MongoDB.

FAQ

How does SSH agent hijacking work?

You find another user's agent socket (under /tmp/ssh-* or via /proc/*/environ), set it as SSH_AUTH_SOCK, list keys with ssh-add -l, and then SSH onward using their forwarded agent without them noticing.

Where does it look for stored credentials?

A table covers /etc/shadow and /etc/passwd, .bash_history, .mysql_history, .psql_history, .pgpass, .my.cnf, .netrc, and .git-credentials, plus environment variables, app configs, and keyrings or secret stores.

Can it pivot without SSH installed?

Yes. It shows socat and ncat relays, the /dev/tcp bash builtin for raw connections and port scanning, and chisel for a SOCKS proxy over HTTP.

What does it do with known_hosts files?

It parses them to enumerate reachable hosts, checking hashed entries against known IPs with ssh-keygen -F and extracting hostnames and IPs from all users' known_hosts.

How does it find live hosts and open ports from a foothold?

With bash-only techniques (a ping sweep across a subnet and a /dev/tcp port-check loop) plus arp and ip neigh, resolv.conf, and attempted DNS zone transfers.

Install linux-lateral-movement

Download and extract the skill files to your .claude/skills/ directory.

Quick Setup:

  1. Copy the skill folder to .claude/skills/
  2. Claude will automatically detect and use the skill

Repository

yaklang/hack-skills

Related Skills

research

448

secops-detection-engineering

21,346

qdrant-monitoring

259

project-architecture

3