KERBEROS S4U DELEGATION ABUSE
Kerberos S4U Delegation Abuse Through Active Directory ACE Miscnfiguration
1
AGENDA
Source: freepnglogos.com
2
ACTIVE DIRECTORY - REFRESHER
4
A directory is a hierarchical structure that stores information about objects on a network.
Enables centralized and secure management of an entire network, which might span a building, a city or multiple locations throughout the world.
COMPONENTS OF AD
5
One of the MOST Important Thing we need to keep in mind is....
Components of AD ~
ACTIVE DIRECTORY - STRUCTURE
Forests, domains, and Organizational Units (OUs) form the core hierarchical components of an Active Directory (AD) environment.
A forest - which is a security boundary - may contain multiple domains and each domain may contain multiple OUs.
Forest
If one Domain in AD is Compromised that means Theoretically means Entire AD is Compromised.
6
Source: learn.microsoft.com
KERBEROS
Kerberos is a network authentication protocol developed by MIT in the 1980s (initially released in 1988). It is named after Cerberus, the three-headed dog from Greek mythology that guards the gates of the Underworld.
Microsofi has it's own implementation of the kerbe-ros protocol, called MS-KILE*, and is available since Windows 2000.
7
Source: learn.microsoft.com
KERBEROS REALM
8
Source: learn.microsoft.com
KERBEROS AUTHENTICATION - FLOW
9
Source: learn.microsoft.com
KERBEROS DELEGATION
Allows a service to act on behalf of a user when connecting to other services
Like.... User Impersonation using Kerberos
Sample Scenario:
10
Source: learn.microsoft.com
KERBEROS - TYPES OF DELEGATION
11
Source: learn.microsoft.com
HOW RBCD ABUSE ATTACK WORKS?
et service (Service B) to define which service accounts (Service A) can when accessing its resources.
tion: The user authenticates to Service A through Kerberos.
A requests a Kerberos service ticket on behalf of the authenticated
ce A uses the obtained ticket to request access to Service B on behalf If Service B trusts Service A for delegation, access is granted under
RBCD allows a targ impersonate users
1. Initial Authentica
2. S4U2Self: Service user.
3. S4U2Proxy: Servi of that user.
4. Resource Access:
the user's identity.
Abuse Scenario: An attacker who can modify the target computer's delegation permissions through misconfigured AD ACLs can establish unauthorized delegation
trust and impersonate privileged users to access the target resource.
KDC DECISION FLOW
12
Source: learn.microsoft.com
ATTACKING RBCD | METHODOLOGY
13
RBCD ABUSE|PRE-REQUISITES
Resource-Based Constrained Delegation (RBCD) settings on the targeted resource.
14
Source: learn.microsoft.com
DEMONSTRATION
15
Disclaimer - This PoC is presented solely for educational and security awareness purposes. The information and techniques demonstrated must only be used in authorized environments with proper permission. Any unauthorized or malicious use is strictly prohibited.
RBCD ABUSE | DETECTION & AUDITING
16
HARDENING STRATEGIES
17
Q & A
THANK YOU!
LinkedIn Handle: https://www.linkedin.com/in/0xnexus/