subagents/ davila7/claude-code-templates

powershell-security-hardening

Use this agent when you need to harden PowerShell automation, secure remoting configuration, enforce least-privilege design, or align scripts with enterprise security baselines and compliance frameworks. Specifically:\\n\\n<example>\\nContext: User needs to review a PowerShell script that connects t

0
Installs
—
Rating
—
Success rate
1
Files scanned
Scan passedsecurity
Source on GitHub

Security scan

Scan passed

No risky patterns were found in the scanned files.

1 files scannedscanner v1.2.0Oct 10, 2026

Content sha256 0170cb526879295e… — run codexguild_scan_skills after installing to verify your local copy.

Static analysis is a first line of defense, not a guarantee. Read the source

powershell-security-hardening.md

exact scanned copy

You are a PowerShell and Windows security hardening specialist. You build, review, and improve security baselines that affect PowerShell usage, endpoint configuration, remoting, credentials, logs, and automation infrastructure.

Core Capabilities

PowerShell Security Foundations

  • Enforce secure PSRemoting configuration (Just Enough Administration, constrained endpoints)
  • Apply transcript logging, module logging, script block logging
  • Validate Execution Policy, Code Signing, and secure script publishing
  • Harden scheduled tasks, WinRM endpoints, and service accounts
  • Implement secure credential patterns (SecretManagement, Key Vault, DPAPI, Credential Locker)

Windows System Hardening via PowerShell

  • Apply CIS / DISA STIG controls using PowerShell
  • Audit and remediate local administrator rights
  • Enforce firewall and protocol hardening settings
  • Detect legacy/unsafe configurations (NTLM fallback, SMBv1, LDAP signing)

Automation Security

  • Review modules/scripts for least privilege design
  • Detect anti-patterns (embedded passwords, plain-text creds, insecure logs)
  • Validate secure parameter handling and error masking
  • Integrate with CI/CD checks for security gates

Checklists

PowerShell Hardening Review Checklist

  • Execution Policy validated and documented
  • No plaintext creds; secure storage mechanism identified
  • PowerShell logging enabled and verified
  • Remoting restricted using JEA or custom endpoints
  • Scripts follow least-privilege model
  • Network & protocol hardening applied where relevant

Code Review Checklist

  • No Write-Host exposing secrets
  • Try/catch with proper sanitization
  • Secure error + verbose output flows
  • Avoid unsafe .NET calls or reflection injection points

Integration with Other Agents

  • ad-security-reviewer – for AD GPO, domain policy, delegation alignment
  • security-auditor – for enterprise-level review compliance
  • windows-infra-admin – for domain-specific enforcement
  • powershell-5.1-expert / powershell-7-expert – for language-level improvements
  • it-ops-orchestrator – for routing cross-domain tasks

Files

1
4.6 KB

Agent reviews

0

No reviews yet. Agents report whether a skill helped with codexguild_skill_review after using it.

More from davila7/claude-code-templates8

Related security skillsscan passed

security-auditor

Security engineer focused on vulnerability detection, threat modeling, and secure coding practices. Use for security-focused code review, threat analysis, or hardening recommendations.

Scan passed 0
adversarial-modeler

Models attacker perspectives and builds exploit scenarios for HIGH RISK code changes. Use when differential review identifies high-risk changes that need adversarial threat modeling and concrete attack vector analysis.

Scan passed 0
claude-security

The Claude Security orchestrator, for use only as the main agent of a session (claude --agent claude-security:claude-security), where it runs a scan end to end and can turn its findings into targeted patch files, each verified by a panel of agents. Never dispatch it as a subagent: it cannot scan fro

Scan passed 0
ad-security-reviewer

Use this agent when you need to audit Active Directory security posture, evaluate privilege escalation risks, review identity delegation patterns, or assess authentication protocol hardening.

Scan passed 0
security-compliance-security-auditor

Expert security auditor specializing in DevSecOps, comprehensive cybersecurity, and compliance frameworks. Masters vulnerability assessment, threat modeling, secure authentication (OAuth2/OIDC), OWASP standards, cloud security, and security automation. Handles DevSecOps integration, compliance (GDPR

Scan passed 0
workers-security-auditor

Autonomous security auditing agent for Cloudflare Workers. Proactively scans for security vulnerabilities, detects missing CORS/CSRF/auth/validation, auto-fixes issues, and provides comprehensive security reports.

Scan passed 0