Individual skill
exploiting-nopac-cve-2021-42278-42287
Exploits the noPac Active Directory privilege-escalation chain (CVE-2021-42278 sAMAccountName spoofing plus CVE-2021-42287 KDC PAC confusion) using Impacket and secretsdump.py to escalate from a standard domain user to Domain Admin. Use when red-teaming or pentesting Active Directory to validate machine-account impersonation and DCSync-based credential dumping.
skills/exploiting-nopac-cve-2021-42278-42287/SKILL.md
Source commit 54a798831d2266a3ca61ce68a7acb80b81160d57
What was checked
- Matches the observed repository HEAD
- Yes
- Scanner rules are current
- No
- Repository scan complete
- No
- Skill scan complete
- No
- Observed behavior
- Not checked yet
- Last checked
- Nov 2, 2026
These are observations at the recorded commit, not a guarantee of safety. Review the source before running it.
Install this skill
Choose an agent in your Stack or copy a command below. Commands fetch the pinned commit and copy only this skill directory. Existing destinations are refused. Copying a command does not install anything.
An install command is unavailable: current rules, complete repository and skill scans, an eligible behavior level and a permitted license are required.
Repository context
- Repository stars (not skill ratings)
- 35,798
- Repository last updated
- Aug 31, 2026
- License
- Apache-2.0
Observed agent integration: No specific integration evidence. Standard SKILL.md installation does not imply verified compatibility.
- ai-agents Repository topic
- claude-code Repository topic
- cybersecurity Repository topic
- incident-response Repository topic
- mitre-attack Repository topic
- penetration-testing Repository topic
- red-team Repository topic
- security Repository topic
- cloud-security Repository topic
- malware-analysis Repository topic
- red-team Declared skill tag
- active-directory Declared skill tag
- nopac Declared skill tag
- cve-2021-42278 Declared skill tag
- cve-2021-42287 Declared skill tag
- privilege-escalation Declared skill tag
- domain-escalation Declared skill tag
- engineering Derived category
Files and excerpt
File metadata and permitted, redacted excerpts come from the recorded scan. Source links are pinned to that commit.
Browse files
LICENSEasset · 11,255 bytesSKILL.mdcore · 8,310 bytesSKILL.mdcore · 8,310 bytesSKILL.mdcore · 8,310 bytesSKILL.mdcore · 8,310 bytesSKILL.mdcore · 8,310 bytesSKILL.mdcore · 8,310 bytesSKILL.mdcore · 8,310 bytesSKILL.mdcore · 8,310 bytesSKILL.mdcore · 8,310 bytesSKILL.mdcore · 8,310 bytesSKILL.mdcore · 8,310 bytesSKILL.mdcore · 8,310 bytesSKILL.mdcore · 8,310 bytesSKILL.mdcore · 8,310 bytesassets/template.mddoc · 864 bytesreferences/api-reference.mddoc · 1,983 bytesreferences/standards.mddoc · 1,075 bytesreferences/workflows.mddoc · 615 bytesscripts/agent.pyruns · 4,803 bytesscripts/process.pyruns · 5,056 bytes
Read excerpt
# Exploiting noPac (CVE-2021-42278 / CVE-2021-42287)
> **Legal Notice:** This skill is for authorized security testing and educational purposes only. Unauthorized use against systems you do not own or have written permission to test is illegal and may violate computer fraud laws.
## Overview
noPac is a critical exploit chain combining two Active Directory vulnerabilities: CVE-2021-42278 (sAMAccountName spoofing) and CVE-2021-42287 (KDC PAC confusion). Together, they allow any authenticated domain user to escalate to Domain Admin privileges, potentially achieving full domain compromise in under 60 seconds. CVE-2021-42278 allows an attacker to modify a machine account's sAMAccountName attribute to match a Domain Controller's name (minus the trailing $). CVE-2021-42287 exploits a flaw in the Kerberos PAC validation where the KDC, unable to find the renamed account, falls back to appending $ and issues a ticket for the Domain Controller account. Microsoft patched both vulnerabilities in November 2021 (KB5008380 and KB5008602), but many environments remain unpatched. The exploit was publicly released by cube0x0 and Ridter in December 2021.
## When to Use
- When performing authorized security testing that involves exploiting nopac cve 2021 42278 42287
- When analyzing malware samples or attack artifacts in a controlled environment
- When conducting red team exercises or penetration testing engagements