fuyu12345/terminalgen-skills/active-directory-golden-ticket-medium
Claude Code and agent skill by fuyu12345/terminalgen-skills
- community
Checking that the SKILL.md file is still in the repository.
Determine whether a golden ticket attack occurred by correlating Kerberos ticket anomalies, domain policy, and auth event patterns, then emit a strict 3-line verdict file. Use when investigating AD compromise artifacts in terminal tasks with format-validated output.
Install
npx vskill@latest install fuyu12345/terminalgen-skills/active-directory-golden-ticket-mediumSKILL.md
The same SKILL.md was published earlier as fuyu12345/terminalgen-skills/active-directory-golden-ticket-medium.
Detecting Active Directory Golden Ticket from Artifacts
When to Use
- Investigating suspected Kerberos abuse in Active Directory from static artifacts (ticket dump + auth logs + domain config).
- Required to produce a strict, machine-checked verdict file (fixed lines/prefixes/format).
- Need to avoid false conclusions from a single indicator by correlating multiple sources.
Minimal Reliable Workflow
- Inspect all evidence sources first.
Read:
domain_config.txt(ticket policy, KRBTGT info, SIDs)kerberos_tickets.json(ticket fields, anomalies, PAC fields)auth_events.csv(EventID patterns and timing)
- Establish expected baselines from domain policy.
Extract max ticket lifetime, max renewal window, expected encryption types, and KRBTGT account details.
- Identify forged-TGT indicators in ticket data.
Flag tickets showing combinations like:
- Lifetime/renewal far beyond policy
- Missing
initialflag - Client address
0.0.0.0or hostless behavior - Encryption downgrade or unusual type for context
- PAC with high-privilege group memberships
- Explicit KRBTGT hash usage fields (if present)
- Correlate with auth events to confirm issuance mismatch.
Look for service-ticket activity (e.g., repeated 4769) without corresponding TGT issuance events (e.g., missing 4768) for the same identity/time window.
- Decide detection status from combined evidence, not one signal.
Mark detected when multiple independent indicators agree (ticket structure + event mismatch + privileged PAC/hash evidence).
- Write verdict in exact required format.
Use deterministic write (e.g., printf) to avoid formatting drift:
DETECTED: yes|noKRBTGT_HASH: <32-lowercase-hex|unknown>FORGED_USER: <lowercase username|none>
- Perform immediate format sanity checks.
Verify exact line count and rendered content before completion.
Common Pitfalls
- Using only one artifact source.
In all successful runs, correct outcome came from correlating JSON ticket anomalies and CSV event patterns and domain policy.
- Failing strict output formatting.
Tests validated exact 3-line structure, prefixes, lowercase username, and hash format. Extra lines, wrong case, or wrong prefixes can fail despite correct analysis.
- Not enforcing lowercase output usernames.
Evidence may show Administrator; output must be lowercase when required (administrator).
- Skipping line-count verification.
Heredoc/manual edits can introduce accidental blank lines; verify with wc -l.
- Treating RC4 alone as definitive.
RC4 may appear legitimately in some environments; use it as supporting evidence only when paired with stronger forged-ticket indicators.
Verification Strategy
Use a two-layer check:
- Analytic verification (content correctness):
- Confirm suspicious ticket violates domain ticket/renewal policy.
- Confirm missing/abnormal issuance pattern in auth events (e.g., 4769 activity without matching 4768).
- Confirm forged identity and KRBTGT hash source from ticket/PAC/domain data.
- Output-contract verification (test-aligned):
- File exists at required path.
- Exactly 3 lines.
- Exact prefixes:
DETECTED:,KRBTGT_HASH:,FORGED_USER:. - Hash is 32-char lowercase hex when detected.
- Username is lowercase and consistent with evidence.
- Detection line consistent with supplied hash/user fields.
(These checks match the observed grader behavior across all three successful runs: format, consistency, lowercase username, and expected detected/user values.)
References to Load On Demand
- Kerberos Event IDs quick map (4768/4769/4770 semantics)
- Golden ticket forensic indicators (PAC abuse, lifetime anomalies, TGT issuance mismatch)
- Shell-safe file emission patterns (
printfvs heredoc) for exact-line outputs
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckinggenerated_skills_10tasks/active_directory_golden_ticket_medium/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/fuyu12345/terminalgen-skills/active-directory-golden-ticket-medium)