Security Notes
  • Whoami
  • Pentesting
    • WEP-Pen
      • Reconnaissance
      • Enumeration
      • OWSAP TOP 10
        • Injection
          • Cross Site Scripting
            • Cross Site Scripting
            • Exploitation
            • Protections
          • SQL Injection
            • SQL Injection Overview
          • NoSQL Injection
          • CRLF Injection
          • XML Injection
        • Broken Access Control
          • Path Traversal
          • Sensitive Cookie with Improper SameSite Attribute
          • Link Following
          • Incorrect Default Permissions
          • Information disclosure
          • CSRF
            • csrf checklist
          • 403 bypass
          • Exposure of WSDL File Containing Sensitive Information
          • bussiness logic checklist
          • 2FA bypass checklist
          • admin panal checklist
          • idor checklist
          • Authentication checklist
          • reset_password_checklist
          • ATO
        • Cryptographic Failures
          • Cryptographic Failure
          • Weak Encoding for Password
          • Improper Following of a Certificate's Chain of Trust
            • Understanding Digital Certificates : Self-Signed and CA-Signed Certificate **
            • Transport Layer Security (TLS) and SSL **
          • Clear Text Transmission Of Sensitive Data
            • SSLStripping **
        • Insecure Design
        • Security Misconfiguration
          • CORS Miscofigration
          • Mail Server Misconfiguration
        • Vulnerable and Outdated Components
          • Using Components with Known Vulnerabilities
        • Identification and Authentication Failures
          • JWT Hacking
          • SAML Authentication bypass
        • Software and Data Integrity Failures
          • mass assignment
          • PostMessage Vulnerabilities
            • PostMessage Vulnerabilities
            • Blocking main page to steal postmessage
            • Bypassing SOP with Iframes - part 1
            • Bypassing SOP with Iframes - part 2
            • Steal postmessage modifying iframe location
        • Security Logging and Monitoring Failures
        • Server-Side Request Forgery (SSRF)
          • SSRF
      • Checklists
        • aem misconfiguration
        • exif_geo
        • xss
        • Session Management
        • Authorization
        • cookie
        • Django
        • Symfony
        • json
        • bypass rate limit
        • Rce
        • Register Page
      • eWPTXv2 Preparation
        • Encoding & Filtering
        • Evasion Basics
        • Cross-site scripting (XSS)
        • XSS Filter Evasion
        • Cross-site request forgery (CSRF
        • HTML5
      • API-Pen
        • API Discovry
        • Reverse Engineering API Documentation
        • Excessive Data Exposure
        • Vulnerability Scanning
        • API Authentication Attacks
          • Classic Authentication Attacks
          • API Token Attacks
        • API Authorization Attacks
          • Broken Object Level Authorization (BOLA)
          • Broken Function Level Authorization
        • Improper Assets Management
        • Mass Assignment
        • SSRF
        • Injection Attacks in API
        • Evasive Maneuvers
        • GraphQL Vulnerabilities
    • NET-Pen
      • Active Directory Pentesting
        • Active Directory Components
        • Initial Attack Vectors
          • LLMNR Poisoning
          • SMB Relay Attacks
          • IPv6 Attacks ( IPv6 DNS Takeover )
          • Printer Hacking
          • Methodology
          • Some Other Attacks
            • Zerologon (CVE-2020-1472)
            • PrintNightmare (CVE-2021-1675)
        • Post-Compromise Attacks
          • Pass Attacks
          • Kerberoasting Attack
          • Token Impersonation Attack
          • LNK File Attack
          • GPP / cPassword Attacks
          • Mimikatz
          • Methodology
        • We've Compromised the Domain
          • Dumping the NTDS.dit
          • Golden Ticket Attacks
          • Methodology
        • Case Study
        • Password Attacks
      • Attack Vectors by Port
        • FTP 21
        • SSH 22
        • Telnet 23 - 2323
        • SMTP 25
        • DNS 53
        • Kerberos 88
        • POP 110-995
        • RPC 111
        • Ident 113
        • NNTP 119
        • NetBIOS 137-138
        • SMB / Samba 135-139, 445
        • MSRPC 135
        • SNMP 161
        • LDAP 389,636
        • Modbus 502
        • OpenSSL 1337
        • Ms-SQL 1433
        • Oracle Listener 1521 1522 1529
        • NFS 2049
        • MySql 3306
        • RDP 3389
        • ADB Android Debug Bridge 5555
        • WinRM 5985 5986
        • VNC 5800 5900
        • Redis 6379
        • Unreal IRC 6667
        • Tomcat 8080
        • MongoDB 27017
        • http 80
      • Network basics
      • Information Gathering
      • Privilege Escalation
        • Windows Privilege Escalation
        • Linux Privilege Escalation
    • write-ups
      • How i found a Privilege Escalation via Impersonation Features feature
      • How I was able to discover ATO Via IDOR vulnerability
      • Easy full Account Takeover via Facebook OAuth Misconfiguration
Powered by GitBook
On this page
  • Physical components
  • Logical components
  1. Pentesting
  2. NET-Pen
  3. Active Directory Pentesting

Active Directory Components

PreviousActive Directory PentestingNextInitial Attack Vectors

Last updated 5 months ago

🪟 Active Directory (AD) is a directory service developed by Microsoft for Windows domain networks. It provides directory services for managing Windows-based computers on a network. AD stores information about objects such as users, groups, computers, and other resources, and provides authentication and authorization services.


Physical components

  • Data store

  • Domain controllers

  • Global catalog server

  • Read-Only Domain Controller (RODC)

  • Host a copy of the AD DS directory store

  • Provide authentication and authorization services

  • Replicate updates to other domain controllers

  • Allow administrative access to manage user accounts and network resources

➡️ AD DS Data store - database files and processes that store and manage directory information for users, services and apps

  • Contains Ntds.dit file - very important file (contains password hashes, etc)

    • stored in the %SystemRoot%\NTDS folder on all domain controllers

    • accessible only through the domain controller processes and protocols


Logical components

  • Partitions

  • Schema

  • Domains

  • Domain trees

  • Forests

  • Sites

  • Organization units (OUs)

➡️ AD DS Schema - (like a rulebook) defines every type of object that can be stored in the directory, enforces object creation and configuration rules

  • Class object - what objects can be created in the directory (user, computer, etc)

  • Attribute object - information that can be attached to an object (display name, etc)

➡️ Domains - used to group and manage objects in an organization

  • Administrative boundary for applying policies to groups of objects

  • Replication boundary for replicating data between domain controllers

  • Authentication and authorization boundary - to limit the scope of access to resources

➡️ Trees - a hierarchy of domains in AD DS, that can

  • share a contiguous namespace with the parent domain

  • can have additional child domains

  • (by default) create a 2-way transitive trust with other domains

➡️ Forests - a collection of domain trees

  • Forests share common

    • schema

    • configuration partition

    • global catalog to enable searching

  • Enable trusts between all domains in the forest

  • Share the Enterprise Admins and Schema Admins groups

➡️ Organizational Units (OUs) - AD containers that can contain users, groups, computers, other OUs

  • Represent the organization hierarchically and logically

  • Manage a collection of objects in a consistent way

  • Delegate permissions to administer groups of objects

  • Apply policies

➡️ Trusts - provide a mechanism for users to gain access to resources in another domain

  • All domains in a forest trust all other domains in the forest

  • Trusts can extend outside the forest

  • Directional - the trust direction flows from trusting domain to the trusted domain

    • trusting domain -> trusted domain

  • Transitive - the trust relationship is extended to include other trusted domains

➡️ Objects

  • User - Enables network resource access for a user

  • InetOrgPerson - Used for compatibility with other directory services

  • Contacts - Used primarily to assign e-mail addresses to external users; no network access

  • Groups - Used to simplify the administration of access control

  • Computers - Enable authentication and auditing of computer access to resources

  • Printers - Simplify the process of locating and connecting to printers

  • Shared folders - Enables users to search for shared folders based on preperties

➡️ Domain Controller - a server with the (AD DS) server role, specifically promoted to a domain controller

Active Directory Domain Services