GroupPolicyBackdoor 是一个用于操作和利用组策略对象(GPO)的 Python 工具。GPO 攻击向量在 Active Directory 环境中常常可以导致具有重大影响的权限提升场景。然而,攻击性安全专业人员可能不愿使用它们,部分原因是与 GPO 操作相关的感知风险。
GroupPolicyBackdoor 旨在提供一个模块化、稳定且隐蔽的 GPO 攻击向量利用框架,全部使用 Python 实现。该工具已在 DEFCON 33 上展示。
使用说明(快速或详细)在仓库的 wiki 中提供,其中还包含一份可直接复制粘贴命令的速查表:
以下是 GroupPolicyBackdoor 主要功能的概述:
ldap3 和 smbprotocol 实现的 Python 代码(不使用 impacket) Usage: gpb.py [OPTIONS] COMMAND [ARGS]...
╭─ Options ───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ --help -h Show this message and exit. │
╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
╭─ Commands ──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ gpo All subcommands related to GPO manipulation │
│ links All subcommands related to GPO links │
│ enum All subcommands related to GPO and containers enumeration │
│ restore All subcommands related to exploit safety, allowing to restore the target environment in case anything goes wrong │
╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
如果你发现了 bug,或者想要实现额外的可注入配置来扩展 GroupPolicyBackdoor 的功能,欢迎提交 pull request!