βœ“
Agent Skill & Rules AI for SecOps & Auditing Read-Only Analysis Featured Verified Nov 2026

Active Directory & ADCS Hardening Skill

Defensive methodology for auditing ADCS certificate templates (ESC1-ESC13), Kerberos delegation, and Tier-0 ACLs.

Prerequisites & Step-by-Step Installation

Copy & run inside isolated lab

Before You Start (Prerequisites)

  • + Claude Code CLI, Cursor IDE, Codex CLI, or compatible AGENTS.md / SKILL.md host
  • + Target repository checked out locally on a read-only audit branch
  • + Optional CI validator (Semgrep, PHPUnit, or Terraform CLI) to verify proposed remediations
1

Download SKILL.md directly into your project skills directory

mkdir -p .claude/skills/active-directory-hardening-audit-skill
curl -fsSL "https://toolwar.com/ai-security/active-directory-hardening-audit-skill/download?format=skill" -o .claude/skills/active-directory-hardening-audit-skill/SKILL.md

For global reuse across all repositories, install inside ~/.claude/skills/ instead.

2

Alternative: Install as a Cursor Project Rule (.mdc)

mkdir -p .cursor/rules
curl -fsSL "https://toolwar.com/ai-security/active-directory-hardening-audit-skill/download?format=skill" -o .cursor/rules/active-directory-hardening-audit-skill.mdc

Cursor automatically indexes .cursor/rules/*.mdc files inside your workspace.

3

Verify file contents and YAML frontmatter before loading

head -n 12 .claude/skills/active-directory-hardening-audit-skill/SKILL.md

Inspect downloaded markdown skills before letting an assistant follow automated steps.

Verify Setup Works
test -s .claude/skills/active-directory-hardening-audit-skill/SKILL.md && grep -q 'name: active-directory-hardening-audit-skill' .claude/skills/active-directory-hardening-audit-skill/SKILL.md && echo 'SKILL ACTIVE'
Expected output: SKILL ACTIVE (Produces Tier-0 remediation roadmap sorted by blast radius and rollback safety.)

Client Integration & Configuration Files

Review scope limits before wiring
---
name: active-directory-hardening-audit-skill
description: Defensive methodology for auditing ADCS certificate templates (ESC1-ESC13), Kerberos delegation, and Tier-0 ACLs.
---

# Active Directory & ADCS Hardening Skill

## Authorized Defensive Scope
Apply this workflow strictly on repositories, cloud manifests, or lab systems you own or have explicit written authorization to audit.

## Workflow Protocol
1. Inventory Tier-0 domain controllers, PKI servers, and privileged groups.
2. Inspect ADCS certificate templates for overly broad enrollee SubjectAltName permissions.
3. Audit unconstrained Kerberos delegation and SPN service accounts with weak ciphers.
4. Recommend phased GPO/ACL hardening changes without disrupting domain auth.
## Active Directory & ADCS Hardening Skill (`active-directory-hardening-audit-skill`)

> Scope: Authorized repositories, cloud manifests, or isolated staging labs only.

### Mandatory Rules for Coding Agents
1. Inventory Tier-0 domain controllers, PKI servers, and privileged groups.
2. Inspect ADCS certificate templates for overly broad enrollee SubjectAltName permissions.
3. Audit unconstrained Kerberos delegation and SPN service accounts with weak ciphers.
4. Recommend phased GPO/ACL hardening changes without disrupting domain auth.
mkdir -p .claude/skills/active-directory-hardening-audit-skill
curl -fsSL "https://toolwar.com/ai-security/active-directory-hardening-audit-skill/download?format=skill" -o .claude/skills/active-directory-hardening-audit-skill/SKILL.md
mkdir -p .cursor/rules
curl -fsSL "https://toolwar.com/ai-security/active-directory-hardening-audit-skill/download?format=skill" -o .cursor/rules/active-directory-hardening-audit-skill.mdc
curl -fsSL "https://toolwar.com/ai-security/active-directory-hardening-audit-skill/download?format=agents" >> AGENTS.md

How to Use & Defensive Workflow

Authorized assessment protocol

Typical Scenario: Standardize repeatable defensive security checks (Active Directory Tier-0 isolation, ADCS ESC1/ESC8 template locking, gMSA migration, and Kerberos delegation removal) without relying on ad-hoc one-off prompts.

  1. 01. Open your target repository on a clean feature or audit branch.
  2. 02. Ensure the SKILL.md file resides in .claude/skills/ or .cursor/rules/.
  3. 03. Paste the sample defensive prompt below into your coding assistant chat.
  4. 04. Verify every flagged issue against deterministic tests or local linters before editing production code.
Example Defensive Prompt / Run Command
Apply active-directory-hardening-audit-skill to summarize risks from our exported Certipy/BloodHound JSON report and prioritize non-breaking GPO and ADCS template fixes.
Security Hardening & Authorized Scope Guidelines

Run this skill in read-only code review mode first. Never grant an automated skill unattended push access to production branches or credentials outside dedicated audit sandboxes.

Technical Architecture & Deployment Brief

Overview & Role in Security Engineering

Active Directory & ADCS Hardening Skill (Audited Agent Skill Playbook) is engineered to support practitioners focused on Active Directory Tier-0 isolation, ADCS ESC1/ESC8 template locking, gMSA migration, and Kerberos delegation removal. Within the ToolWar ecosystem, it serves as an explicit bridge between AI reasoning layers and verifiable cybersecurity telemetry.

Technical Architecture & Data Flow

Reusable SKILL.md instruction packs standardize how coding and SecOps assistants inspect codebases without improvising ad-hoc checklists. Each phase prioritizes deterministic verification, human-in-the-loop patch approval, and reproducible test output.

Unlike ad-hoc prompt wrappers that execute unconstrained strings directly in a shell, structured integration enforces typed parameter validation, bounded scope allowlists, and explicit separation between untrusted analyzed artifacts (source files, telemetry logs, network banners, or binary samples) and system-level control instructions.

Recommended Deployment Practice

  1. Isolate the Execution Boundary: Deploy integrations inside ephemeral containers or dedicated analysis VMs so untrusted repositories, binaries, or HTTP responses cannot affect primary workstations.
  2. Enforce Least-Privilege Scoping: Use read-only filesystem mounts, non-privileged service tokens, and target CIDR allowlists before enabling interactive assistant sessions.
  3. Verify Outputs Deterministically: Pair this skill file with automated CI regression gates (Semgrep, PHPUnit, or Promptfoo) so AI findings are verified programmatically before merge.

Integration & Operational Caveats

  • Treat all external content ingested by an LLM (including code comments, HTML titles, log lines, and MCP responses) as potential prompt-injection vectors.
  • Review configuration JSON and SKILL.md manifests carefully before binding credentials or running inside automated CI/CD pipelines.

Bridged ToolWar Classic Arsenal

4 linked tools

Community Field Notes (0)

No notes posted yet. Share verified runtime configs or hardening tips below.