Skip to content
Back to skills

Lateral Movement

BSecurity

横向移动技术。当已获取凭据(密码/哈希/密钥/票据)需要从当前主机移动到其他主机时使用。覆盖 SSH、RDP、WMI、PSExec、PTH、PTT、DCOM 等技术。根据目标操作系统和可用凭据类型选择最佳移动方式

  • 2 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added October 17, 2026
documentationgobash

Security analysis

B75/100
  • criticalReads or references SSH private keys

Pro scans all 7 files and shows the line behind each finding

Scanned October 17, 2026

npx -y skills add NetVar1337/agent-skill-canon --skill lateral-movement --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Lateral Movement?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Lateral Movement
[![Security: B — Skills Directory](https://www.skillsdirectory.com/api/skills/netvar1337-lateral-movement/badge)](https://www.skillsdirectory.com/skills/netvar1337-lateral-movement)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: lateral-movement
description: "横向移动技术。当已获取凭据(密码/哈希/密钥/票据)需要从当前主机移动到其他主机时使用。覆盖 SSH、RDP、WMI、PSExec、PTH、PTT、DCOM 等技术。根据目标操作系统和可用凭据类型选择最佳移动方式"
metadata:
  tags: "lateral,横向移动,ssh,rdp,wmi,psexec,pth,pass the hash,dcom,winrm,pivot"
  category: "lateral"
---

# 横向移动方法论

## ⛔ 深入参考(必读)

- 需要凭据提取与转储方法 → [references/credential-extraction.md](references/credential-extraction.md)
- 需要远程执行技术对比与选择 → [references/remote-execution-comparison.md](references/remote-execution-comparison.md)
- 需要 PTH/PTT/PTK 传递攻击技术 → [references/pass-techniques.md](references/pass-techniques.md)
- 需要 WinRM/PSExec/WMI/DCOM/RDP/PTT 各技术的具体命令 → [references/movement-techniques.md](references/movement-techniques.md)

---

## Phase 1: 目标发现

```bash
arp -a                              # 已通信的主机
naabu -host 10.0.0.0/24 -p 22,80,135,445,3389,5985 -silent
```

| 目标 | 价值 |
|------|------|
| 域控 | 极高(控制整个域) |
| 数据库/文件/备份服务器 | 高(敏感数据) |
| 跳板机 | 中(连接更多网段) |

## Phase 2: 技术选择决策树

```
凭据类型 + 目标 OS?
├─ Linux
│   └─ SSH 密码/密钥(chmod 600!)
├─ Windows + 明文密码
│   └─ WinRM > WMI > PSExec(按隐蔽性)
├─ Windows + NTLM 哈希
│   └─ PTH via WinRM/WMI/PSExec
├─ Kerberos 票据
│   └─ PTT(mimikatz kerberos::ptt)
├─ 跨网段
│   └─ SSH 隧道/SOCKS 代理
└─ 需要图形界面
    └─ RDP
详细命令 → [references/movement-techniques.md](references/movement-techniques.md)
```

## Phase 3: 移动后操作

1. 确认权限 — `whoami /all` 或 `id`
2. 重复后渗透流程
3. 收集新凭据 — 可能发现更高权限凭据
4. 评估下一步目标

## 注意事项
- **PSExec 创建服务 → 有明显日志**,优先用 WMI/WinRM
- PTH 只对 NTLM 认证有效(Kerberos-only 环境不行)
- 多次失败可能触发告警,控制尝试频率

## SSH 密钥认证横向
- SSH 密钥/私钥(id_rsa)发现后直接登录
- 注意文件权限:权限太宽松(如 0644 / too open)SSH 会拒绝
- SSH 安全要求:私钥文件权限必须为 600

Files in this skill

  • SKILL.md2.4 KB
  • evals/evals.json2.3 KB
  • evals/recall.json1.3 KB
  • references/credential-extraction.md6.1 KB
  • references/movement-techniques.md1.1 KB
  • references/pass-techniques.md7.1 KB
  • references/remote-execution-comparison.md6.1 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.