Skip to content

Information Security News

  • Home
  • Cyber Security
  • Cybercriminals
  • Data Leak
  • Google
    • Android
  • Information Security
  • Linux
  • Malware
  • Microsoft
    • Windows
  • Open Source Tool
  • Vulnerability
  • Technology

Information Security News

  • Home
  • Cyber Security
  • Cybercriminals
  • Data Leak
  • Google
    • Android
  • Information Security
  • Linux
  • Malware
  • Microsoft
    • Windows
  • Open Source Tool
  • Vulnerability
  • Technology
  • Open Source Tool

SpearSpray: The Stealthy Tool That Bypasses Lockout Policies in Active Directory

by Nam Phong · December 12, 2025

SpearSpray is an advanced password spraying tool designed specifically for Active Directory environments. It combines user enumeration via LDAP with intelligent pattern-based password generation to perform controlled and stealthy password spraying attacks over Kerberos.

Features

Core Capabilities

  • LDAP Integration: Direct enumeration of Active Directory users through LDAP queries
  • Custom LDAP Queries: Define specific queries to target only certain users or groups for spraying
  • Pattern-Based Password Generation: Flexible templating system for creating targeted password lists
  • Domain Policy Awareness: Automatic retrieval and respect of domain password policies
  • Account Lockout Protection: Smart filtering to avoid locking out user accounts
  • PSO Detection: Identification and handling of users with Password Settings Objects
  • Kerberos Authentication: Fast and efficient authentication testing via Kerberos pre-authentication
  • Neo4j Integration: Automatic marking of compromised users as “owned” in Neo4j/BloodHound databases
  • Real-time Results: Live feedback showing which users are marked as owned during the attack
  • Attack Summary: Comprehensive results summary with statistics and success rates

Security & Stealth Features

  • Jitter Support: Configurable delays between authentication attempts
  • Threshold Management: Automatic filtering of users near lockout thresholds
  • Multi-threaded: Configurable thread count for performance optimization
  • Rate Limiting: Control requests per second to prevent overwhelming domain controllers
  • SSL/LDAPS Support: Secure LDAP connections when required

Advanced Pattern System

  • Dynamic Variables: Support for user-specific data (name, date of last password change…)
  • Custom Separators & Suffixes: Flexible password pattern customization
  • Extra Argument: Integration of company-specific terms.
  • Interactive Pattern Selection: Dynamic menu system for pattern selection

Attack Results Summary

SpearSpray provides a comprehensive summary at the end of each attack, displaying key statistics and results in an easy-to-read format.

  • Valid Credentials: Number of users with active, working credentials
  • Expired Passwords: Number of users with correct but expired passwords (still compromised)
  • Marked as Owned: Number of users successfully marked in Neo4j (when integration is enabled)
  • Total Attempts: Total number of authentication attempts made during the attack
  • Success Rate: Percentage of successful authentications vs total attempts

This summary helps security professionals quickly assess the impact and effectiveness of their password spraying assessment.

Pattern System

SpearSpray uses an advanced pattern system to generate highly targeted and personalized passwords for each user. Unlike generic wordlists, every password attempt is customized based on the user’s specific information retrieved from Active Directory.

Key Innovation: User-Specific Temporal Data

All temporal variables (years, months, seasons) are calculated based on each user’s individual password change date (pwdLastSet attribute), not the current date. This means that if a user changed their password in March 2024, the patterns will generate passwords for that user using March 2024 data. This personalized approach is applied to each user individually based on their own password change timeline, significantly increasing the likelihood of success.

Available Variables

Variable Description Example
{name} User’s first name (from displayName) Eren
{samaccountname} User’s SAM account name eren.yeager
{year} Year from pwdLastSet (or whenCreated) 2024
{short_year} Last two digits of year 24
{month_number} Month number (zero-padded) 03
{month_en} Month name in English March
{month_es} Month name in Spanish Marzo
{season_en} Season in English Spring
{season_es} Season in Spanish Primavera
{extra} Extra word provided via -x argument CompanyName
{separator} Custom separator via -sep argument @
{suffix} Custom suffix via -suf argument !

Note: The conversion mappings for temporal variables (months and seasons) are defined in spearspray/utils/constants.py.

Install & Use

Related coverage

  • Inside the Protocol: Master Kerberos Defense and Detection with Kerlab’s Rust Toolkit
  • BAADTokenBroker Abuses Microsoft Entra ID Device-Bound Keys for PRT Hijacking
  • Living Off The Registry: Master AD CS Enumeration with the Native LOLBAS Toolkit
  • PAYLOAD Extortion Skips Encryption, Exploits GPO
  • AI Orchestrated Campaign Targets PaperCut Vulnerabilities

Support Our Threat Intelligence

If you find our technology report and cybersecurity news helpful, consider supporting our work.

Buy Me a Coffee Logo Buy Me a Coffee PayPal
Crypto QR Code
USDT (TRC20):
TN8BdV8cp4T1Cd28gK9qTAnZknzzuwyUtm
USDT (ERC20):
0x3725e1a7d3bc5765499fa6aaafe307fabcd75bce

Tags: Account LockoutActive DirectoryBloodHoundCyber Attack ToolKerberosLDAPpassword sprayingRed TeamsecuritySpearSpray

Follow:

  • Next story GhostFrame: The Invisible Phishing-as-a-Service That Powered Over a Million Attacks
  • Previous story PATCH NOW: Google Issues Emergency Chrome Update for Actively Exploited Zero-Day

  • Recent Posts
  • Popular Posts
  • Tags
  • Custom ChatGPT bot interface mimicking a service error to trigger the ClickFix RAT infection chain

    Malware

    ClickFix RAT Disguised as Custom ChatGPT Bot Strikes

    October 2, 2026

  • Google Threat Intelligence Group statistical dashboard showcasing AI-driven vulnerability discovery trends

    Vulnerability

    AI Discovery Shifts Focus to Critical Vulnerabilities

    October 2, 2026

  • Conceptual code snippet demonstrating the JSON Web Signature authentication bypass in Python Authlib

    Vulnerability

    Authlib Flaw Allows JSON Web Signature Authentication Bypass

    October 2, 2026

  • Conceptual representation of a teenager accessing the Microsoft Titan database infrastructure via an API vulnerability

    Vulnerability

    Teen Uncovers Flaw Exposing Trillions of Microsoft Records

    October 2, 2026

  • VUSec researchers demonstrating the Branch Target Reuse speculative execution attack on JIT compilers

    Vulnerability

    Spectre Variant BTR Exploits JIT Compilers

    October 2, 2026

  • Technique

    Power VPN Free VPN for Encrypted Browsing on a Windows Desktop

    September 24, 2026

  • OpenSUSE Leap 15.4 Beta releases, Linux distributions

    Linux

    OpenSUSE Leap 15.4 Beta releases, Linux distributions

    May 30, 2020

  • Ubuntu 16.04.6 LTS released: fix security vulnerabilities

    Linux

    Ubuntu 16.04.6 LTS released: fix security vulnerabilities

    March 1, 2019

  • GhostBSD 23.10.1 released, FreeBSD distribution

    Linux

    GhostBSD 23.10.1 released, FreeBSD distribution

    May 1, 2020

  • Solus 4.4 Fortitude releases, Linux distribution

    Linux

    Solus 4.4 Fortitude releases, Linux distribution

    January 26, 2020

  • AI AI security Android Apple APT BOTNET CISA cloud security Critical Infrastructure cryptocurrency cyberattack cybercrime Cyber Espionage cybersecurity Cybersecurity 2026 data breach DLL Sideloading Github google hacking Infosec InfoSec 2026 Infostealer Linux Linux Kernel malware Microsoft network security open source phishing privacy privilege escalation Prompt Injection ransomware RCE remote code execution security Social Engineering supply chain attack Tech News 2026 threat intelligence vulnerability windows Windows 11 zero-day
  • Home
  • About Us
  • Contact Us
  • DMCA NOTICE
  • Privacy Policy

Information Security News © 2026. All Rights Reserved.

Powered by  - Designed with Hueman Pro