LegolAD: A Stealthier Approach to Active Directory Enumeration for Red Teams
Bence SzaboMarch 27, 2025
The tool is available in this GitHub repository:
https://github.com/NaunetEU/LegolAD
Stealth
I consider alternative tools like PowerView to be stealthy in terms of event generation. However, when I created this tool, I had very little knowledge of blue team tools. I wanted to minimize unusual LDAP network traffic while still retrieving as much data as possible about the objects.
Features
Features not found in ldapsearch:
Jitters
Using the arguments --min-time-to-sleep and --max-time-to-sleep, you can set the jitter limits in seconds. Both default to 0, so remember to set them.
Page size and Burst
With the --page-size argument, you can set the page size, which defaults to 10. This ensures that no huge LDAP queries are requested.
You can request multiple requests between jitters using the --burst attribute. You can retrieve 20 items with a single LDAP request between jitters or request 10 items with two LDAP requests. This feature was added because we suspected that normal LDAP communication might occur multiple times in quick succession.
Breaks
The --breaks or -br attribute can be used multiple times and accepts two parameters:
- The start of the break
- The end of the break
Breaks must be set in military time. For example:
-br 12:00 12:30 -br 13:10 13:20
The configuration above creates a ‘lunch break’ and an additional short break. During these periods, no scanning will occur, simulating human employee behavior.
Explore the Latest in Cybersecurity
Stay ahead of cyber threats with insights from the Naunet blog. Our experts share their knowledge on the latest cyber defense trends, techniques, and technologies. Whether you want to deepen your understanding or apply new strategies, our blog is your go-to resource for reliable, expert-backed content in the cybersecurity domain. Join our community of professionals and elevate your security posture with every post.
PHP2Shell follow-up: new PHP, Node.js, Cisco and Arista flaws, exploitation evidence and the vendor updates organizations should prioritize.
The new Heartbleed: PHP2Shell
PHP2Shell exposes critical PHP runtime flaws. Learn how the CVEs differ, why coordinated disclosure matters and how to verify urgent remediation.
Understand shadow AI risks, unsanctioned AI tools and agent permissions, and learn how governance and AI impact analysis help protect business data.
Compare compliance-driven penetration testing, PTaaS and TLPT to choose a testing strategy that fits your business risks and systems.
How collaboration, AI-assisted testing and an architecture-first approach help align penetration tests with changing systems and business risks.
OpenClaw is an open source AI assistant that runs on your machine and connects to chat apps like Telegram, Discord, and Slack. It is useful because it collapses message intake, web access, tool invocation, and stored authority into one runtime. These features make it a very inviting application however that is also the core danger.