Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gdedrouas/exchange-ad-privesc
Exchange privilege escalations to Active Directory
https://github.com/gdedrouas/exchange-ad-privesc
Last synced: 11 days ago
JSON representation
Exchange privilege escalations to Active Directory
- Host: GitHub
- URL: https://github.com/gdedrouas/exchange-ad-privesc
- Owner: gdedrouas
- License: mit
- Created: 2018-02-27T07:14:35.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2023-04-23T12:39:06.000Z (over 1 year ago)
- Last Synced: 2024-08-05T17:33:45.410Z (3 months ago)
- Language: PowerShell
- Size: 186 KB
- Stars: 710
- Watchers: 26
- Forks: 114
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Exchange-AD-Privesc
This repository provides a few techniques and scripts regarding the impact of Microsoft Exchange deployment on Active Directory security. This is a side project of [AD-Control-Paths](https://github.com/ANSSI-FR/AD-control-paths), an AD permissions auditing project to which I recently added some Exchange-related modules.
## TABLE OF CONTENT
0. General considerations
1. [Domain object DACL privilege escalation](DomainObject/DomainObject.md)
2. [DNSAdmins group DACL privilege escalation](DNSAdmins/DNSAdmins.md)
3. [Public-Information property set includes SPN, allows kerberoasting](Write-Public-Information/Write-Public-Information.md)
4. [Public-Information property set includes Alt-Security-Identities, allows x509 certificate mapping to privileged users](Alt-Security-Identities/Alt-Security-Identities.md)## General considerations
For pentesters looking to take control of an AD domain, Exchange is a valid intermediary target. The servers are much less secured than domain controllers by default and the control groups are distinct in the usual permissions models, which provides numerous alternative targets.
They are also more difficult to migrate and business critical, so organizations often adopt a slower migration process for Exchange than for AD and do not specifically harden the servers.Exchange deployment on an Active Directory domain is an interesting case. Many attributes and classes are added to the schema, security groups are created and DACL on some AD objects are heavily modified.
Basically, you can select among 3 permissions models:
* RBAC Split (recommended and most commonly deployed)
* Shared permissions (default)
* AD SplitParticularly, DACLs for RBAC Split and Shared models are enumerated here: https://technet.microsoft.com/en-us/library/ee681663(v=exchg.150).aspx .
High value targets:
* **Exchange Trusted Subsystem** and **Exchange Windows Permissions** groups, which are trustees for many ACE added during deployment on AD objects.
* Exchange servers: they are members of **Exchange Trusted Subsystem** and **Exchange Windows Permissions** groups. They can be compromised using many more techniques than domain controllers: local administrators domain accounts, Kerberos delegation, SMB relay, RODC replication, etc. The usual stuff.
* Organization admins: they are part of the local administrators group on Exchange servers. They also have full control on the OU containing the Exchange security groups. They can launch service/psexec/runas/... under computer identity/NetworkService/LocalSystem to control **Exchange Trusted Subsystem** and **Exchange Windows Permissions** SIDs.