ad-environment-constraints

ad-environment-constraints is a skill for Claude Code from ADScanPro/Claude-AD. It costs 183 tokens per session (3,050 once invoked), scanned B, original, MIT.

A checklist for adapting Active Directory authentication and collection commands to hardened Windows domains.

In plain words
What is it for?
Use it to detect the domain’s authentication posture and choose compatible Kerberos, LDAP or LDAPS, encryption, service-name, and timing settings.
Why use it?
Lab commands can fail when NTLM is disabled, RC4 is blocked, LDAP signing is required, or Kerberos time and service names do not match; this skill explains those failure conditions.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the Claude-AD plugin — 8 skills, 3 commands, 3 agents shipped together

Good fit Use it to detect the domain’s authentication posture and choose compatible Kerberos, LDAP or LDAPS, encryption, service-name, and timing settings.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/adscanpro/claude-ad/ad-environment-constraints
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add ADScanPro/Claude-AD --skill ad-environment-constraints
Clone the repo
git clone --depth 1 https://github.com/ADScanPro/Claude-AD

Made for: Claude Code.

Or install Claude-AD, the plugin that ships this one along with the rest of its 8 skills, 3 commands, 3 agents.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for ad-environment-constraints

README.md
[![agentmods](https://agentmods.dev/badge/skills/adscanpro/claude-ad/ad-environment-constraints/github.svg)](https://agentmods.dev/skills/adscanpro/claude-ad/ad-environment-constraints)
Your own site
<a href="https://agentmods.dev/skills/adscanpro/claude-ad/ad-environment-constraints"><img src="https://agentmods.dev/badge/skills/adscanpro/claude-ad/ad-environment-constraints/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for ad-environment-constraints

Your own site · 80×15
<a href="https://agentmods.dev/skills/adscanpro/claude-ad/ad-environment-constraints"><img src="https://agentmods.dev/badge/skills/adscanpro/claude-ad/ad-environment-constraints.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 183 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,050 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 2 findings, up to high

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • high YARA Match · line 171
    YARA rule matched a hack tool or exploit indicator (offensive tools, reconnaissance, privilege escalation, or exploit frameworks).
    Fix: Remove offensive tool references and exploit code. Legitimate agent skills should not contain penetration testing tools, exploit frameworks, or reconnaissance utilities.
  • medium Privilege Escalation · line 115
    Commands invoke sudo or root privileges. Verify this elevated access is necessary and justified.
    Fix: Avoid sudo/root unless strictly required. Prefer least-privilege patterns. If elevation is needed, document the justification and scope.
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00183 $0.03050
Opus 5 $0.00092 $0.01525
Sonnet 5 $0.00037 $0.00610
Haiku 4.5 $0.00018 $0.00305

Measured 9d ago against content hash 01eb4571ec91, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade B, and why

ad-environment-constraints scanned grade B with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Asks for rootmediumPrivilege escalation

A mod that escalates privileges can change anything on the machine, not only the project.

sudo ntpdate <dc_ip> # or rdate -n <dc_ip>
skills/ad-environment-constraints/SKILL.md · 255 lines

How it starts

The opening of the file, as written. The whole thing — 255 lines — stays where its author put it; the contents beside it link to each section on GitHub.

AD Environment Constraints

Code and commands that work in a lab break in a hardened domain, and the failure almost never says what it is. A Kerberos SPN mismatch surfaces as invalidCredentials. NTLM being disabled surfaces as a logon failure. AES-only KDCs reject your RC4 request with an etype error you have to know to read. This skill is the checklist of those constraints and how to survive each one with standard tooling.

Detect the posture before you authenticate. Every constraint below is detectable up front: probe whether NTLM answers, whether the KDC accepts RC4, whether LDAP signing is required, whether LDAPS is listening. Fingerprint first, then choose your auth path to match. Fixing an auth path reactively after each failure is slower and noisier than reading the environment once and picking the right transport from the start.


1. Authentication protocol: NTLM may be disabled

NTLM can be turned off org-wide or on specific DCs by GPO. Any auth path that assumes NTLM must fall back to Kerberos.

  • impacket: add -k (use Kerberos) and -no-pass when you have a ccache/TGT.
  • netexec: -k / --kerberos.
  • certipy: -k / add --dc-host <fqdn> so it targets the KDC by name.
# NTLM path
nxc smb dc01.corp.local -u user -p pass
# Kerberos path (NTLM disabled): request a TGT, export ccache, reuse it
getTGT.py corp.local/user:pass -dc-ip <dc_ip>
export KRB5CCNAME=user.ccache
nxc smb dc01.corp.local -u user -k --use-kcache

Reading the signal, not guessing it. A healthy NTLM-enabled DC answers an NTLM bind with a bogus password with exactly invalidCredentials / logon-denied, and that proves NTLM is alive (the DC reached credential verification and rejected the password). Do not infer "NTLM disabled" from a failed bind with a wrong password. NTLM is actually disabled only when you see the SSP collapse markers (STATUS_NTLM_BLOCKED, unsupported-function), or when a bind fails as logon-denied while a valid Kerberos TGT for the same identity succeeds concurrently. Only then is "wrong password" ruled out as the cause.

Read the full file on GitHub · 255 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 9d ago First seen · 255 lines · 183 tokens per session scan B 01eb4571ec91

Subscribe to this mod's changes

ad-environment-constraints is a skill published in the GitHub repository ADScanPro/Claude-AD (179 stars, last pushed 15d ago), licensed MIT. It adds 183 tokens to every session and 3,050 once invoked, about $0.0009 per session on Opus 5. A static security scan graded it B with 1 finding (asks for root). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

deploying-active-directory-honeytokens

Deploys deception-based honeytokens in Active Directory including fake privileged accounts with AdminCount=1, fake SPNs for Kerberoasting detection (honeyroasting), decoy GPOs with cpassword traps, and fake BloodHound paths. Monitors Windows Security Event IDs 4769, 4625, 4662, 5136 for honeytoken interaction. Use…

xalgorix/xalgorix · 101 tokens

deploying-active-directory-honeytokens

Deploys deception-based honeytokens in Active Directory including fake privileged accounts with AdminCount=1, fake SPNs for Kerberoasting detection (honeyroasting), decoy GPOs with cpassword traps, and fake BloodHound paths. Monitors Windows Security Event IDs 4769, 4625, 4662, 5136 for honeytoken interaction. Use…

26zl/cybersec-toolkit · 101 tokens

conducting-internal-reconnaissance-with-bloodhound-ce

Conduct internal Active Directory reconnaissance using BloodHound Community Edition to map attack paths, identify privilege escalation chains, and discover misconfigurations in domain environments.

26zl/cybersec-toolkit · 44 tokens

active-directory-full-attack-chain

Execute a complete Active Directory penetration test from initial enumeration to domain dominance. Use this skill for AD security assessments including LDAP enumeration, Kerberos attacks (Kerberoasting, AS-REP roasting), BloodHound attack path analysis, credential dumping with Mimikatz, lateral movement via…

ShulkwiSEC/bb-huge · 96 tokens

ad-cs-esc1-abuse

Exploit Active Directory Certificate Services (AD CS) misconfigurations, specifically ESC1. By requesting a certificate based on a overly permissive template that allows the enrollee to supply a Subject Alternative Name (SAN), an attacker can impersonate highly privileged users (like Domain Admins) and seamlessly…

ShulkwiSEC/bb-huge · 78 tokens

ad-recon

Active Directory reconnaissance skill — host discovery and comprehensive AD enumeration. Activate when the user wants to map an AD environment, enumerate users, groups, shares, trusts, SPNs, or BloodHound data before attacking. Also activate for phrases like "map the domain", "enumerate AD", "find AD users", "collect…

DouglasRao/Claude-Pentest-Skills · 100 tokens