lateral-movement

lateral-movement is an agent for Claude Code from 0xSteph/pentest-ai-agents. It costs 94 tokens per session (1,047 once invoked), scanned A, original, MIT.

A planning guide for moving between computers after gaining an approved foothold during a security test. It covers credentials, remote-control methods, access tokens, and network pivots.

In plain words
What is it for?
Planning movement from one compromised host to another using methods such as pass-the-hash, remote execution, RDP, SSH, or tunnels during an authorized engagement.
Why use it?
It helps testers choose a suitable next step while staying within the declared test scope and understanding the activity that defenders may detect.

Agent for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: model in frontmatter.

Part of the pentest-ai-agents plugin — 3 commands, 52 agents shipped together

Good fit Planning movement from one compromised host to another using methods such as pass-the-hash, remote execution, RDP, SSH, or tunnels during an authorized engagement.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/0xsteph/pentest-ai-agents/lateral-movement
About the project

0xSteph/pentest-ai-agents is a collection of Claude Code specialist agents for authorized penetration testing and security research, covering areas such as reconnaissance, web systems, cloud, reverse engineering and detection. Security researchers and penetration testers use it to plan engagements, investigate findings, build detections and write reports. The catalogue entries are the project's own agents, commands and plugin components.

0xSteph/pentest-ai-agents · 2,213 stars · on GitHub · pentestai.xyz

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/0xSteph/pentest-ai-agents

Made for: Claude Code.

Or install pentest-ai-agents, the plugin that ships this one along with the rest of its 3 commands, 52 agents.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for lateral-movement

README.md
[![agentmods](https://agentmods.dev/badge/agents/0xsteph/pentest-ai-agents/lateral-movement/github.svg)](https://agentmods.dev/agents/0xsteph/pentest-ai-agents/lateral-movement)
Your own site
<a href="https://agentmods.dev/agents/0xsteph/pentest-ai-agents/lateral-movement"><img src="https://agentmods.dev/badge/agents/0xsteph/pentest-ai-agents/lateral-movement/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for lateral-movement

Your own site · 80×15
<a href="https://agentmods.dev/agents/0xsteph/pentest-ai-agents/lateral-movement"><img src="https://agentmods.dev/badge/agents/0xsteph/pentest-ai-agents/lateral-movement.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 94 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,047 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00094 $0.01047
Opus 5 $0.00047 $0.00524
Sonnet 5 $0.00019 $0.00209
Haiku 4.5 $0.00009 $0.00105

Measured 9d ago against content hash ee66c50ebb1b, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

lateral-movement scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

agents/lateral-movement.md · 79 lines

How it starts

The opening of the file, as written. The whole thing — 79 lines — stays where its author put it; the contents beside it link to each section on GitHub.

You are a lateral-movement strategist for authorized red team engagements. Given a foothold, you plan how to reach the next host — which credential material, which remote-execution method, which pivot — with the least noise and a clear path to the objective. Every method is paired with the detection it generates.

Scope Boundary

  • In scope: credential reuse (pass-the-hash, overpass/pass-the-ticket), remote execution (PsExec/SMB, WMI, WinRM, DCOM, SSH, WinRS), token impersonation, RDP and session reuse, movement-path planning, and pivot/tunnel design across in-scope hosts.
  • Out of scope: AD-protocol credential attacks like Kerberoasting/AS-REP/DCSync (ad-attacker); L2/L3 poisoning and relay (network-attacker); local privilege escalation on a single host (privesc-advisor); C2 channel/redirector design (c2-operator); chaining discrete vulns into a path (exploit-chainer).
  • Authorization: movement only between hosts inside the declared scope.

Methodology

  1. Inventory what you hold. Credentials, hashes, tickets, tokens, keys, and the privilege level on the current host. That determines which methods are even available.
  2. Pick the quietest viable method. Prefer built-in, expected admin protocols (WinRM, WMI) over noisy tooling where they achieve the goal. Map method → required privilege → telemetry.
  3. Move with intent. Each hop targets a specific objective (more credentials, a key host, the goal system) — not opportunistic sprawl. Document the path.
  4. Reposition. Establish scoped pivots/tunnels to reach segments the foothold can't.
  5. Clean up. Track artifacts (services, files, tickets) for removal at engagement close.

Technique Areas (ATT&CK TA0008 — each paired with detection)

  • Pass-the-Hash / Pass-the-Ticket (T1550.002/.003) — Detection: 4624 type-3/9 anomalies, ticket-lifetime/source anomalies.
  • Remote execution — PsExec/SMB (T1021.002), WMI (T1047), WinRM (T1021.006), DCOM (T1021.003), SSH (T1021.004). Detection: 7045 service install, 4688 + parent anomalies, WinRM/WSMan logs, WMI-Activity.
  • Token manipulation (T1134) — impersonation/theft. Detection: privilege-use auditing, process-token anomalies.
  • RDP / session reuse (T1021.001, T1563.002) — Detection: 4778/4779, unusual logon hosts.

Read the full file on GitHub · 79 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 9d ago First seen · 79 lines · 94 tokens per session scan A ee66c50ebb1b

Subscribe to this mod's changes

lateral-movement is an agent published in the GitHub repository 0xSteph/pentest-ai-agents (2,213 stars, last pushed 24d ago), licensed MIT. It adds 94 tokens to every session and 1,047 once invoked, about $0.0005 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other agents, from other repositories

tachi-risk-scorer

Quantitative risk scoring agent that enriches threat model findings with four-dimensional scores (CVSS 3.1, exploitability, scalability, reachability), computes weighted composite scores, attaches governance fields, and generates dual-format output (risk-scores.md and risk-scores.sarif).

davidmatousek/tachi · 65 tokens

active-directory

Active Directory and Windows domain attack specialist. Use for Kerberoasting, AS-REP roasting, DCSync, BloodHound enumeration, ADCS ESC attacks, Golden/Silver Ticket, and domain privilege escalation. Triggers on: kerberoast, AS-REP, bloodhound, DCSync, golden ticket, ADCS, ESC, domain controller, LDAP, GPO, AD, domain…

mukul975/Threatswarm · 86 tokens

exploit

Exploitation specialist for gaining initial access. Use when exploiting CVEs, running Metasploit modules, using searchsploit, obtaining shells, or executing proof-of-concept code. Triggers on: exploit, CVE-, initial access, get shell, msfconsole, owned, pwn, vulnerability exploit, remote code execution, RCE.

mukul975/Threatswarm · 73 tokens

iot-attacker

IoT and embedded systems security specialist. Handles firmware extraction and analysis, hardcoded credential discovery, UART/JTAG access, MQTT/CoAP protocol testing, RouterSploit exploitation, web interface attacks, and OT/ICS protocol analysis. Triggers on: IoT, firmware, binwalk, UART, JTAG, router, embedded…

mukul975/Threatswarm · 93 tokens

Demonstrate

Agent for demonstrating VS Code features.

microsoft/vscode · 10 tokens

playwright-test-generator

Use this agent when you need to create automated browser tests using Playwright Examples: Context: User wants to generate a test for the test plan item.

microsoft/playwright · 151 tokens