<!-- Copyright (c) 2026 defconxt. All rights reserved. -->
<!-- Licensed under AGPL-3.0 — see LICENSE file for details. -->
<!-- NERF is a trademark of defconxt. -->
---
name: performing-ad-delegation-auditing
description: >-
  Audit Active Directory delegation configurations to identify unconstrained, constrained, and resource-based constrained delegation misconfigurations enabling privilege escalation.
domain: cybersecurity
subdomain: active-directory-security
tags:
  - delegation
  - unconstrained
  - rbcd
  - privilege-escalation
version: "1.0"
author: defconxt
license: AGPL-3.0
metadata:
  mitre-attack: ["T1134.001"]
  frameworks: ["MITRE ATT&CK"]
  tools: ["impacket", "bloodhound", "powershell"]
---

# Performing Ad Delegation Auditing

## Overview

Audit Active Directory delegation configurations to identify unconstrained, constrained, and resource-based constrained delegation misconfigurations enabling privilege escalation.

## Prerequisites

| Tool / Requirement | Details |
|---|---|
| `impacket` | Security tooling |
| `bloodhound` | Security tooling |
| `powershell` | Security tooling |
| Domain credentials, BloodHound, PowerView or ADModule | Environment requirement |

## Quick Reference

```bash
# Quick start commands
node scripts/agent.js --help
Get-ADComputer -Filter {TrustedForDelegation -eq $true} -Properties TrustedForDelegation
```

## Workflow

### Step 1: Find Unconstrained Delegation

```bash
Get-ADComputer -Filter {TrustedForDelegation -eq $true} -Properties TrustedForDelegation
```

### Step 2: Find Constrained Delegation

```bash
Get-ADComputer -Filter {msds-allowedtodelegateto -like '*'} -Properties msds-allowedtodelegateto
```

### Step 3: Audit RBCD

```bash
node scripts/agent.js audit --domain corp.local --dc-ip 10.0.0.1 --check rbcd
```

## Detection

```yaml
title: Ad Delegation Auditing Detection
id: 116cdfe3-530e-4eb9-afcd-d94154a8b6fc
status: experimental
description: Detects suspicious activity related to performing ad delegation auditing techniques in active directory security context
logsource:
  category: process_creation
  product: windows
detection:
  selection:
    CommandLine: "*performing*ad*"
  condition: selection
level: medium
tags:
  - attack.t1134.001
  - attack.credential_access
falsepositives:
  - Authorized Active Directory administration using approved management tools
```


**Detection Opportunities**

| Indicator | Source | Detection Logic |
|---|---|---|
| Ad Delegation Auditing Detection | windows/process_creation | Sigma rule (medium) |
| ATT&CK Coverage | MITRE ATT&CK | T1134.001 |

## Verification

- **Verify delegation audit**: `node scripts/agent.js audit --domain corp.local --dc-ip 10.0.0.1`
- **Confirm finding accuracy**: `node scripts/agent.js report --domain corp.local`

## References

- MITRE ATT&CK: T1134.001
- Frameworks: MITRE ATT&CK
- Tools: impacket, bloodhound, powershell
