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
  • Zero-Exfil Hijacking: How VMkatz Rips Windows Credentials Directly from VM Snapshots
  • Ghost in the Browser: Hijacking Authenticated Sessions via NTLM Relay with ghostsurf

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
  • Diagram illustrating the Squidbleed vulnerability and memory leakage in Squid proxy servers

    Vulnerability

    Squidbleed Vulnerability Exposes Legacy Proxies

    June 24, 2026

  • Diagram of the PixelSmash vulnerability exploiting the FFmpeg MagicYUV decoder to execute code

    Vulnerability

    Understanding the FFmpeg PixelSmash Vulnerability

    June 24, 2026

  • Agentjacking attack using a fake Sentry error report to hijack an AI coding agent through the Sentry MCP server

    Cybercriminals

    Agentjacking: Fake Sentry Errors Hijack AI Coding Agents

    June 24, 2026

  • SmartApeSG supply chain attack injecting malicious JavaScript into the Okendo Reviews widget with a ClickFix fake CAPTCHA

    Malware

    SmartApeSG Hijacks Okendo Reviews Widget in Supply Chain Attack

    June 24, 2026

  • WhatsApp VBS attack spreading malicious VBScript attachments that install ManageEngine Endpoint Central RMM on Windows

    Malware

    WhatsApp VBS Campaign Installs ManageEngine RMM for Remote Access

    June 24, 2026

  • Splunk Enterprise vulnerability CVE-2026-20253 in the PostgreSQL sidecar service exploited in active attacks

    Vulnerability

    Splunk Enterprise Vulnerability Exploited in Active Attacks

    June 22, 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 China CISA cloud security cryptocurrency cyberattack cybercrime Cyber Espionage cybersecurity Cybersecurity 2026 data breach Github google hacking Infosec InfoSec 2026 Infostealer Linux Linux Kernel malware Microsoft network security open source Penetration Testing 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