
Ad environment constraints
Active Directory hardening checks that stop auth and LDAP failures looking like bad
Ad environment constraints is an open-source agent skill for security. It is available on Claude Code.
- Scripts
- None
- Platforms
- Claude Code
- GitHub stars
- 227
- Last commit
- License
- MIT
- Listing updated
Similar skills
About Ad environment constraints
This skill is a reference for penetration testers and admins working against Windows Active Directory domains that have been hardened. It lists constraints such as NTLM being disabled, RC4 blocked on AES-only key distribution centers, LDAP signing and channel binding that require LDAPS on port 636, Kerberos clock skew limits, and SPNs that must use fully qualified domain names. It explains how each of these failures tends to appear as an ordinary logon error, so the agent can tell a hardening control apart from wrong credentials.
The guidance centers on fingerprinting the domain before authenticating: checking whether NTLM answers, whether RC4 is accepted, whether signing is required and whether LDAPS is listening. It then covers how to pick Kerberos or NTLM paths, how to handle protected accounts such as Protected Users, LAPS, gMSA and MachineAccountQuota, how to avoid silent truncation from the 1000-object LDAP page limit, and how to size timeouts for high-latency VPN links.
The examples use standard tooling such as netexec, impacket, certipy, bloodyAD and kerbrute. The skill is documentation only and includes no scripts; it expects the user to supply the target domain, credentials and network access.
When your agent uses it
Real-world Active Directory environment constraints that silently break attacks when ignored: NTLM disabled (Kerberos fallback), AES-only KDCs (RC4 blocked by GPO), LDAP signing and channel binding requiring LDAPS on 636, Kerberos clock skew (KRB_AP_ERR_SKEW), SPNs that must be FQDNs never short names or IPs (the misleading invalidCredentials), Protected Users / LAPS / gMSA / MachineAccountQuota, LDAP 1000-object paging, and VPN latency. Use this whenever a bind, TGT request, LDAP query, or SMB negotiation fails in a way that looks like bad credentials but is really hardening, or before running any AD tooling against a domain you have not fingerprinted. Standard-tooling knowledge (netexec, impacket, certipy, bloodyAD, kerbrute), no vendor-specific engine.
From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.
What it can access
From a static check of its 1 file (11 KB) on GitHub on 3 December 2026. Nothing was run. Read the files before you install a skill: it can tell your agent to run anything its tools allow.
Check another skill before you install it.
Install
This skill ships in the claude-ad plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):
/plugin marketplace add ADScanPro/Claude-AD
/plugin install claude-ad@claude-adOr copy only this skill to ~/.claude/skills/ad-environment-constraints:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/ADScanPro/Claude-AD.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/ad-environment-constraints &&
cp -R "$tmp/skills/ad-environment-constraints" ~/.claude/skills/ad-environment-constraints &&
rm -rf "$tmp"For one project only, put the folder in .claude/skills/ad-environment-constraints inside it instead.
Copy the skill folder to ~/.agents/skills/ad-environment-constraints to use it in every repository:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/ADScanPro/Claude-AD.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/ad-environment-constraints &&
cp -R "$tmp/skills/ad-environment-constraints" ~/.agents/skills/ad-environment-constraints &&
rm -rf "$tmp"For one repository only, put the folder in .agents/skills/ad-environment-constraints inside it instead.
Copy the skill folder to ~/.cursor/skills/ad-environment-constraints to use it in every project:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/ADScanPro/Claude-AD.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/ad-environment-constraints &&
cp -R "$tmp/skills/ad-environment-constraints" ~/.cursor/skills/ad-environment-constraints &&
rm -rf "$tmp"For one project only, put the folder in .cursor/skills/ad-environment-constraints inside it instead.
Run in a terminal (add --scope workspace to install it for the current workspace only):
gemini skills install https://github.com/ADScanPro/Claude-AD.git --path skills/ad-environment-constraintsOr copy the folder to ~/.gemini/skills/ad-environment-constraints yourself.
For GitHub Copilot in VS Code, copy the skill folder to ~/.copilot/skills/ad-environment-constraints:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/ADScanPro/Claude-AD.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/ad-environment-constraints &&
cp -R "$tmp/skills/ad-environment-constraints" ~/.copilot/skills/ad-environment-constraints &&
rm -rf "$tmp"For one project only, put the folder in .github/skills/ad-environment-constraints inside it instead.
Get the folder:
git clone --depth 1 https://github.com/ADScanPro/Claude-AD.gitThen copy Claude-AD/skills/ad-environment-constraints into your agent's skills folder as ad-environment-constraints. Agents that support SKILL.md read one folder per skill.
What it does
- NTLM disablement detection
- Explains how to tell a disabled NTLM setting from a plain wrong password and when to switch to Kerberos.
- Kerberos SPN and FQDN rules
- Covers why short names and IP addresses break service tickets and how to target hosts by FQDN.
- LDAP signing and LDAPS
- Describes channel binding, signing requirements and when to move from port 389 to LDAPS on 636.
- Clock skew and encryption types
- Lists the five-minute Kerberos skew window and the handling of AES-only KDCs that reject RC4.
- Protected account handling
- Outlines limits on Protected Users, LAPS, gMSA, AS-REP roasting and MachineAccountQuota checks.
- Paging and VPN timeouts
- Covers the 1000-object LDAP page cap and sizing timeouts to high round-trip latency.
Good for
- Diagnose why an NTLM bind fails against a hardened domain controller
- Switch an impacket or netexec run to Kerberos authentication with a TGT
- Plan LDAP queries that retrieve all users without silent truncation
- Set timeouts for an Active Directory assessment over a high-latency VPN
- Check whether MachineAccountQuota allows creating a machine account before an attack
Ad environment constraints FAQ
Does Ad environment constraints include scripts?
No, it has no scripts. It is a single SKILL.md file with guidance and example commands.
Which tools does Ad environment constraints reference?
It refers to netexec, impacket, certipy, bloodyAD and kerbrute, described as standard tooling with no vendor-specific engine.
How do I know if NTLM is disabled?
The skill says a failed bind with a wrong password on an NTLM-enabled DC returns invalidCredentials, so that alone does not prove NTLM is off. NTLM is disabled when SSP collapse markers such as STATUS_NTLM_BLOCKED appear or when a valid Kerberos TGT for the same identity succeeds while the bind fails.
What license does Ad environment constraints use?
The repository is released under the MIT license.
How do I install Ad environment constraints in Claude Code?
Copy the skill folder from GitHub to ~/.claude/skills/ad-environment-constraints to use it in all your projects, or to .claude/skills/ad-environment-constraints in one project. Or install the claude-ad plugin, which includes it: /plugin marketplace add ADScanPro/Claude-AD, then /plugin install claude-ad@claude-ad.
Does Ad environment constraints run scripts?
No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.
Which AI agents can use Ad environment constraints?
Claude Code. It reads skills in the SKILL.md format; the install steps on this page show where to put the folder.
What are the best alternatives to Ad environment constraints?
The closest alternatives to Ad environment constraints are Kerberos attacks, Ad methodology, Ad opsec telemetry, Acl abuse and System.
Where this comes from
- Description: from the skill's own SKILL.md.
More from ADScanPro/Claude-AD

Walks Active Directory ACL edges to escalate privileges, with bloodyAD and impacket
- Open source
- 227 GitHub stars
- Security

Sequences the phases of an Active Directory pentest, from setup through reporting
- Open source
- 227 GitHub stars
- Security

Maps the event logs and alerts each Active Directory attack technique leaves behind
- Open source
- 227 GitHub stars
- Security

Walks an agent through AD CS certificate escalation (ESC1-ESC17) using Certipy
- Open source
- 227 GitHub stars
- Security

Guides an agent through coercing machine-account auth and relaying it with ntlmrelayx
- Open source
- 227 GitHub stars
- Security

Orients Active Directory attack findings to ENS, NIS2 and DORA control families
- Open source
- 227 GitHub stars
- Security



