本文へ移動
cccskills
無料GitHub で公開

ad-recon

Active Directory reconnaissance with or without credentials: user/group/computer enumeration, ACL/delegation, ADCS, modern Windows LAPS, BloodHound, Server 2025/dMSA/Ghost SPN candidates, and trust mapping. Recon only — do not exploit Kerberoast-to-DA, DCSync, or change passwords. Operator may select /ad-attack after cards are ready.

インストール方法を見る

含まれるファイル(6)

  • SKILL.md4.8 KB
  • references/ad-enum-cheatsheet.md7.4 KB
  • references/bloodhound-queries.md3.5 KB
  • references/powerview-cheatsheet.md3.1 KB
  • references/vulnerability-intelligence.md1.3 KB
  • references/windows-laps.md3.0 KB

SKILL.md(原文)

インストールする前に、エージェントに与えられる指示の中身を確認できます。

/ad-recon — 域信息收集

scope: 把域打成 路径/ACL/证书/LAPS/委派卡片。只读(含用已知凭据的 LDAP)。不 DCSync、不改密、不 RBCD。▸ 操作者选 /ad-attack 再打。现代 LAPS 读取(有权限时)算 recon 的凭据发现,打域仍交 attack。

工具:../shared/tools.md。CVE:有 DC 精确 build 才 Read ../shared/cve-enrichment.md(禁止 Windows 2025 dump 全部 CVE)。

走到才 Read(一次一份):

  • 精确 LDAP / nxc 命令习惯 → references/ad-enum-cheatsheet.md
  • LAPS 全属性 → references/windows-laps.md
  • BloodHound 查询 → references/bloodhound-queries.md
  • 老环境 PowerView → references/powerview-cheatsheet.md
  • 2025/dMSA/Ghost SPN 情报门控 → references/vulnerability-intelligence.md

开局与收尾

开局第一件事:Read ./notes.md。没有则 python ~/.claude/skills/bin/notes.py init。只按已拿下/凭据继续。 走到哪条链,才 Read 一份 references/<file>.md。禁止开局全读、禁止凭记忆写 payload。 监听 / sudo / 输密码 / Permission denied:立刻停,说明等操作者做什么,等回报。不要假装已成功。 收尾:

  1. 追加 ./notes.md
  2. python ~/.claude/skills/bin/modules.py tail <本模块名> Read 备用:~/.claude/skills/shared/modules.yaml 禁止 ./modules.yaml 和 python ../bin/...
  3. 优先 default_next;never_default 不得当作默认(操作者点名除外)
  4. 名册外的名字不许建议
  5. 停。等操作者选 /模块 或 /clear /edr-bypass 半条链未完:打通后回本模块,不要 /clear。

0. 成功条件

域 / DC / 功能级别 / 是否 2025
当前身份与权限
用户/组/计算机/ACL/委派/ADCS/LAPS 可读性
BloodHound 路径候选
2025/dMSA/Ghost SPN/WAC 卡片(门控 UNKNOWN 就标 UNKNOWN)

禁止: 利用 ESC、重置密码、PTH 打 DA、把「有 SPN」写成「已 Kerberoast 成功」。


1. 决策树

无凭据     → kerbrute;详细匿名 LDAP → Read references/ad-enum-cheatsheet.md
有域用户   → nxc + bloodyAD(选一条主工具做完)→ 命令对照 Read references/ad-enum-cheatsheet.md
只要 ACL   → bloodyAD 可写对象
只要委派   → findDelegation
只要证书   → certipy find
只要 LAPS  → Read references/windows-laps.md(只读,不横移)
2025 DC    → 情报门控 Read references/vulnerability-intelligence.md
图         → BloodHound CE → 查询 Read references/bloodhound-queries.md
老 PowerView → 仅当 BH 不可用,Read references/powerview-cheatsheet.md
要隐蔽     → SOAPHound / ADExplorer 离线

不要 kerbrute + nxc + ldapsearch + bloodyAD 无脑全跑。


2. 无凭据

kerbrute userenum -d corp.com --dc DC users.txt
# LDAP 匿名、rpcclient、smb 空会话:失败就停,改有凭据

详细命令习惯仍在操作者常用 nxc 匿名模块;本 SKILL 不贴全书。


3. 有凭据(一条主路径)

首选 nxc + 需要 ACL 时 bloodyAD:

nxc smb DC -u jen -p 'pass'
nxc ldap DC -u jen -p 'pass' --users --groups --computers

SPN / 委派 / 描述字段里的口令 → 记卡片(有 SPN、etype 线索、明文备注)。不要在 recon 里 GetUserSPNs,也不要预支「破解交 /creds」。操作者若选 /ad-attack,由 attack 要票+当场砸+接着用。

精确 LDAP / GPP / SYSVOL → 保持用现有命令;GPP cpassword 解出的口令当凭据候选。

LAPS(legacy + Windows LAPS 全属性)→ references/windows-laps.md。读到的口令写进卡片,recon 不横移。下一步由操作者选 /ad-attack 或 /creds(当独立凭据作业),不要在这里 PsExec。


4. 2025 / ADCS / 图

DC 版本、etype、dMSA OU、ResetNightmare 可写 UPN、Ghost SPN、WAC 端口:记 候选 + 补丁未知,不要当已确认洞。CVE 走 enrichment。

ADCS:certipy find -vulnerable → 模板/CA/EKU 卡片交 /ad-attack。

BloodHound CE 采集与 OpenGraph 备注保持现有流程(SharpHound 有 EDR 风险,标一下)。分析是 recon;沿最短路径打是 attack。

信任:nltest / bloodyAD,只判断方向。

隐蔽:SOAPHound、ADExplorerSnapshot。


5. 输出

[AD-RECON]
identity / DC build:
paths: Kerberoast? ACL? ADCS ESC#? dMSA? LAPS readable?
next: waiting operator(候选只认 ~/.claude/skills/shared/modules.yaml)

レビュー

まだレビューはありません。使ってみた感想をお寄せください。

同じリポジトリのスキル

概要と使いどころ

ad-attack

無料

Active Directory exploitation after domain credentials exist: Kerberos (AS-REP/Kerberoast including cracking the ticket then using the account), delegation, NTLM coercion/relay, lateral movement, ACL abuse, ADCS ESC1-ESC17 and CVE paths, dMSA/BadSuccessor, Kerberos reflection, identity confusion, management-plane, domain trust, and domain persistence. Own the current AD chain through crack-and-use to DA, equivalent domain control, or the targeted host SYSTEM. Do not stop after requesting TGS. Host C2 belongs to /post. Operator chooses next modules.

日本語の概要は準備中です。原文の説明を表示しています。

pale-knight/redteam-skill492026年8月23日 更新

cicd

無料

CI/CD pipeline and software-supply-chain exploitation: Jenkins, GitHub Actions, GitLab CI/CD, Azure DevOps, Gitea/Forgejo, self-hosted runners/agents, poisoned pipeline execution, artifact/cache abuse, dependency confusion, third-party Action trust, GitOps/registry poisoning, workload identity/OIDC, and emerging agentic CI/CD. Use this skill when the operator has access to a CI/CD system, source repository, build/deploy configuration, runner/agent, artifact/package/registry path, or software delivery trust chain.

日本語の概要は準備中です。原文の説明を表示しています。

pale-knight/redteam-skill492026年8月23日 更新

Cloud control-plane exploitation for AWS, Azure/Entra, GCP, and Alibaba Cloud: IAM/RAM privilege escalation, impersonation, cross-account trust, serverless/compute control, and cloud-native persistence. Host OS persistence/C2 after root/SYSTEM belongs to /post. K8s RBAC belongs to /k8s. Operator chooses next modules; new identities default to /cloud-recon first.

日本語の概要は準備中です。原文の説明を表示しています。

pale-knight/redteam-skill492026年8月23日 更新

Cloud control-plane reconnaissance for AWS, Azure/Entra, GCP, and Alibaba Cloud: identity, IAM/RAM, trust, resources, metadata, and managed-Kubernetes cloud-side boundary. Recon only — no policy changes, no privilege escalation. Operator may select /cloud-attack or /k8s.

日本語の概要は準備中です。原文の説明を表示しています。

pale-knight/redteam-skill492026年8月23日 更新

creds

無料

Credential operations: secret discovery, classification, extraction, conversion, offline cracking of hashes the operator already has as a credential job, policy-aware spraying, NetNTLM capture, generic SMB relay, and Windows/Linux harvest. Do not hijack an in-progress /ad-attack Kerberoast/AS-REP chain (that module cracks and uses the ticket itself). Do not DCSync, read LAPS LDAP, or escalate cloud IAM. Usable credentials are recorded; the operator chooses the next module.

日本語の概要は準備中です。原文の説明を表示しています。

pale-knight/redteam-skill492026年8月23日 更新

Endpoint defense evasion after an operator-selected chain already has a valid execution path but AV/EDR/AMSI/WDAC/PPL/memory/kernel telemetry blocks the intended action. Originating modules include /web-attack /ad-attack /cloud-attack /k8s /cicd /service-attack /phishing /privesc-win /privesc-linux /creds /post /shell. Success is the blocked action becoming executable, then resume the originating module — not obtaining a shell here.

日本語の概要は準備中です。原文の説明を表示しています。

pale-knight/redteam-skill492026年8月23日 更新

pale-knight のスキルをすべて見る

このスキルの問題を報告する