New: Earn 20% as an AgentAlley affiliate. Share your link and earn on every sale you refer. Join now New: Earn 20% as an affiliate. Join now

You need to harden PowerShell automation

Powershell security hardening

by VoltAgent · MIT license · ★ 25,241 on GitHub · updated Sep 21

Powershell security hardening cover

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.

---
name: powershell-security-hardening
description: "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."
tools: Read, Write, Edit, Bash, Glob, Grep
model: inherit
---

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

Overview

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.

Manual install (npx, ZIP)
Claude Codemkdir -p ~/.claude/agents && curl -sL https://raw.githubusercontent.com/VoltAgent/awesome-claude-code-subagents/82b73821baa7a911d5b14cfb6da238b7f0db6b42/categories/04-quality-security/powershell-security-hardening.md \ -o ~/.claude/agents/powershell-security-hardening.md
Windows (PowerShell)New-Item -ItemType Directory -Force "$HOME\.claude\agents" | Out-Null; Invoke-WebRequest "https://raw.githubusercontent.com/VoltAgent/awesome-claude-code-subagents/82b73821baa7a911d5b14cfb6da238b7f0db6b42/categories/04-quality-security/powershell-security-hardening.md" -OutFile "$HOME\.claude\agents\powershell-security-hardening.md"

Connects with Agent Alley MCP · agentalley.io/mcp

Files included

  • powershell-security-hardening.md2.4 KB
Read the files here
VoltAgent/82b73821 file
powershell-security-hardening.md
Show the full text55 lines

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
1---
2name: powershell-security-hardening
3description: "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."
4tools: Read, Write, Edit, Bash, Glob, Grep
5model: inherit
6---
7 
8You are a PowerShell and Windows security hardening specialist. You build,
9review, and improve security baselines that affect PowerShell usage, endpoint
10configuration, remoting, credentials, logs, and automation infrastructure.
11 
12## Core Capabilities
13 
14### PowerShell Security Foundations
15- Enforce secure PSRemoting configuration (Just Enough Administration, constrained endpoints)
16- Apply transcript logging, module logging, script block logging
17- Validate Execution Policy, Code Signing, and secure script publishing
18- Harden scheduled tasks, WinRM endpoints, and service accounts
19- Implement secure credential patterns (SecretManagement, Key Vault, DPAPI, Credential Locker)
20 
21### Windows System Hardening via PowerShell
22- Apply CIS / DISA STIG controls using PowerShell
23- Audit and remediate local administrator rights
24- Enforce firewall and protocol hardening settings
25- Detect legacy/unsafe configurations (NTLM fallback, SMBv1, LDAP signing)
26 
27### Automation Security
28- Review modules/scripts for least privilege design
29- Detect anti-patterns (embedded passwords, plain-text creds, insecure logs)
30- Validate secure parameter handling and error masking
31- Integrate with CI/CD checks for security gates
32 
33## Checklists
34 
35### PowerShell Hardening Review Checklist
36- Execution Policy validated and documented
37- No plaintext creds; secure storage mechanism identified
38- PowerShell logging enabled and verified
39- Remoting restricted using JEA or custom endpoints
40- Scripts follow least-privilege model
41- Network & protocol hardening applied where relevant
42 
43### Code Review Checklist
44- No Write-Host exposing secrets
45- Try/catch with proper sanitization
46- Secure error + verbose output flows
47- Avoid unsafe .NET calls or reflection injection points
48 
49## Integration with Other Agents
50- **ad-security-reviewer** – for AD GPO, domain policy, delegation alignment
51- **security-auditor** – for enterprise-level review compliance
52- **windows-infra-admin** – for domain-specific enforcement
53- **powershell-5.1-expert / powershell-7-expert** – for language-level improvements
54- **it-ops-orchestrator** – for routing cross-domain tasks
55 
View all files on GitHub →

Details

Updated
Sep 21, 2026
License
MIT
Stars on the repo
★ 25,241
Checked
Source
VoltAgent/awesome-claude-code-subagents ↗
Creator
VoltAgent · 139 listings
View creator

Similar agents

See all →
SkillFrom a business idea, app ideaAzure app onboardmicrosoft/skills · by microsoftEnd-to-end orchestrator: from a business idea, app idea, or existing app to running Azure deployment with cost estimates and pre-deploy approval. Analyzes your app, auto-detects the right Azure services, scaffolds infrastructure code, and deploys — tailored to your app, not a template. Handles moving existing apps to Azure without rewriting or with minimal changes. WHEN: bring your app to Azure, plan my app, cost to run, is my code ready to deploy, deploy my app to the cloud, deploy all my services, what Azure services do I need, plan my Azure deployment, deploy my new app to Azure, one-click deploy, I have an app and want it on Azure, migrate my app to Azure, help me get started, build an app, no code yet, starter project. DO NOT USE FOR: use azd for deployment(use azure-deploy), optimizing existing costs (use cost-optimization), code readiness checks only (use azure-app-onboard-prereq).★ 3.1k GitHub starsSkillAssess whether source code is ready to deploy to AzureAzure App Onboard Prereq — Repository Evaluationmicrosoft/skills · by microsoftAssess whether source code is ready to deploy to Azure — the check BEFORE infrastructure work. Evaluates build health, app completeness, dependencies and local services, stack compatibility, and deployment feasibility. Answers questions about what your app needs before it can be deployed — frameworks, dependencies, and configuration. Checks whether dependencies are compatible and identifies deployment blockers and unsupported frameworks. WHEN: "evaluate my repo", "is my app ready to deploy", "what does my app need to deploy", "what do I need before deploying", "does my app need", "can I ship this to Azure", "scan my repo for issues", "is this app deployable", "check if my app is ready for Azure", "do I need a Dockerfile", "what's blocking my deployment", "are there any blockers", "are my dependencies compatible", "does Azure support my framework", "what needs to change before deploying", "check my app configuration".★ 3.1k GitHub starsSkillConfigure Azure API Management as an AI Gateway for AIAzure aigatewaymicrosoft/azure-skills · by microsoftConfigure Azure API Management as an AI Gateway for AI models, MCP tools, and agents. WHEN: semantic caching, token limit, content safety, load balancing, AI model governance, MCP rate limiting, jailbreak detection, add Azure OpenAI backend, add AI Foundry model, test AI gateway, LLM policies, configure AI backend, token metrics, AI cost control, convert API to MCP, import OpenAPI to gateway.★ 1.6k GitHub starsSkillQuery and analyze data in Azure Data Explorer using KQLAzure Data Explorer (Kusto) Query & Analyticsmicrosoft/azure-skills · by microsoftQuery and analyze data in Azure Data Explorer (Kusto/ADX) using KQL for log analytics, telemetry, and time series analysis. WHEN: KQL queries, Kusto database queries, Azure Data Explorer, ADX clusters, log analytics, time series data, IoT telemetry, anomaly detection.★ 1.6k GitHub starsMCPRun any server from the Docker MCP Catalog in its ownDocker MCP gatewaydocker/mcp-gateway · by dockerDocker's own CLI plugin: run any server from the Docker MCP Catalog in its own container, behind one connection, with secrets kept out of env vars.★ 1.6k GitHub starsMCPOpen infrastructure for AI agents to discover and pay eachElisymelisymlabs/elisym · by elisymlabsOpen infrastructure for AI agents to discover and pay each other★ 17 GitHub stars

More from VoltAgent

MCPYou need comprehensive accessibility testingAccessibility testerVoltAgent/awesome-claude-code-subagents · by VoltAgentUse this agent when you need comprehensive accessibility testing, WCAG compliance verification, or assessment of assistive technology support.★ 25.2k GitHub starsMCPYou need to audit Active Directory security postureAd security reviewerVoltAgent/awesome-claude-code-subagents · by VoltAgentUse this agent when you need to audit Active Directory security posture, evaluate privilege escalation risks, review identity delegation patterns, or assess authentication protocol hardening.★ 25.2k GitHub starsMCPDiscover, browse, or install Claude Code agentsAgent installerVoltAgent/awesome-claude-code-subagents · by VoltAgentUse this agent when the user wants to discover, browse, or install Claude Code agents from the awesome-claude-code-subagents repository.★ 25.2k GitHub starsMCPYou need to break a complex task into subtasksAgent organizerVoltAgent/awesome-claude-code-subagents · by VoltAgentUse when you need to break a complex task into subtasks, match each to the capabilities of available subagents, and write a concrete team/workflow plan as Markdown.★ 25.2k GitHub starsMCPArchitecting, implementingAI engineerVoltAgent/awesome-claude-code-subagents · by VoltAgentUse this agent when architecting, implementing, or optimizing end-to-end AI systems—from model selection and training pipelines to production deployment and monitoring.★ 25.2k GitHub starsMCPYou need to audit content for AI writing patternsAI writing auditorVoltAgent/awesome-claude-code-subagents · by VoltAgentUse this agent when you need to audit content for AI writing patterns and rewrite text to remove them.★ 25.2k GitHub stars