Cyber security

GPOHunter – Active Directory Group Policy Security Analyzer

GPOHunter is a comprehensive tool designed to analyze and identify security misconfigurations in Active Directory Group Policy Objects (GPOs).

It automates security checks and provides detailed reports on potential vulnerabilities, helping administrators secure their environments.

Features

  • Connects to Active Directory using LDAP/LDAPS protocols.
  • Supports NTLM authentication and Pass-the-Hash techniques.
  • Analyzes all GPOs within the domain.
  • Identifies and reports security misconfigurations.
  • Displays affected organizational units (OUs) and objects.
  • Offers multiple output formats: JSON, CSV, and HTML.
  • Provides an option to view detailed XML content of GPO files.

Security Checks

Currently, GPOHunter implements the following security checks:

  1. Clear Text Password Storage
    • Detects the “ClearTextPassword = 1” setting in GPOs.
    • This setting allows passwords to be stored in unencrypted form, posing a critical security risk by exposing credentials.
  2. GPP Passwords (MS14-025)
    • Identifies encrypted passwords within Group Policy Preferences.
    • Examines various GPP files such as Groups.xml, Services.xml, and others.
    • These passwords are encrypted with a known key and can be easily decrypted using public information.
  3. NetNTLMv1 Authentication Enabled
    • Detects insecure LmCompatibilityLevel settings.
    • Identifies GPOs that enable NetNTLMv1, which is vulnerable to:
      • Relay attacks when combined with Coerce.
      • Password cracking using rainbow tables.

Future Development

The list of security checks will be continuously expanded with additional checks and verifications.

Usage

To run GPOHunter, use the following command:

python gpo_analyzer_cli.py -u USERNAME -p PASSWORD -d DOMAIN -dc DC_HOST [options]

Options:

  • -H, --hash: NTLM hash for Pass-the-Hash.
  • -o, --output: Path to the output file.
  • -f, --format: Output format (json, csv, html).
  • -v, --verbose: Verbose output.
  • --show-xml: Show raw XML content of GPO files.

Requirements

  • Python 3.7+
  • ldap3
  • impacket
  • colorama
  • pycryptodome

Installation

Clone the repository. Install the required packages:

pip install -r requirements.txt

Varshini

Varshini is a Cyber Security expert in Threat Analysis, Vulnerability Assessment, and Research. Passionate about staying ahead of emerging Threats and Technologies.

Recent Posts

CVE-2025-29927 : Next.js Middleware Authorization Bypass – Technical Analysis

A critical vulnerability, CVE-2025-29927, has been identified in Next.js, a React-based web framework by Vercel.…

17 hours ago

pugDNS : Revolutionizing DNS Query Speed And Accuracy For Advanced Networking Needs

pugDNS is an experimental, high-performance DNS query tool designed to facilitate fast and accurate bulk…

17 hours ago

ZeroDays CTF 2025 : A Comprehensive Overview

The ZeroDays CTF 2025, held on March 22nd at Croke Park in Dublin, Ireland, marks…

17 hours ago

CloudPEASS : Cloud Privilege Escalation Awesome Script Suite

CloudPEASS is a suite of tools designed to help users identify potential privilege escalation paths…

17 hours ago

OSCE³ and OSEE Study Guide : Understanding Key Tools And Functions

The OSCE³ (Offensive Security Certified Expert 3) and OSEE (Offensive Security Exploitation Expert) certifications are…

19 hours ago

Nyxian : A Low-Level Scripting Language For iOS

Nyxian is a JavaScript-based low-level scripting language designed specifically for iOS. It provides a powerful…

21 hours ago