Skip to main content
subagent Claude Code

powershell-security-hardening — Claude Code subagent: install

This subagent hardens PowerShell scripts, remoting, and Windows settings. Use it to review automation, credentials, logs, and CI/CD security gates.

Install into Claude Code · Plugin marketplace All methods and platforms ↓
/plugin marketplace add VoltAgent/awesome-claude-code-subagents
/plugin install voltagent-qa-sec@voltagent-subagents
Open on GitHub

What powershell-security-hardening does

powershell-security-hardening reviews PSRemoting, execution policy, code signing, and PowerShell logging. It can restrict remoting with JEA or custom endpoints, audit local administrator rights, and check firewall and protocol settings such as NTLM fallback, SMBv1, and LDAP signing.

The subagent looks for embedded passwords, plain-text credentials, unsafe logs, weak parameter handling, and exposed secrets in Write-Host. Its available tools are Read, Write, Edit, Bash, Glob, and Grep; the model is inherited from the current configuration. It also reviews scripts for least-privilege design and CI/CD security gates.

Install it when a PowerShell or Windows hardening review needs CIS or DISA STIG checks. Domain policy and AD GPO work belongs with the related agents listed in the source configuration.

What it helps with

  • review PowerShell remoting settings
  • find embedded passwords in scripts
  • verify PowerShell logging controls
  • audit local administrator rights
  • detect SMBv1 and NTLM fallback

Example prompts for the agent

  • Review this PowerShell script for embedded credentials, unsafe logs, and least-privilege issues.
  • Audit PSRemoting and recommend JEA or custom endpoints for this setup.
  • Compare these Windows settings with CIS and DISA STIG controls, then prepare remediation steps.

How to install powershell-security-hardening

1Plugin marketplace

/plugin marketplace add VoltAgent/awesome-claude-code-subagents
/plugin install voltagent-qa-sec@voltagent-subagents

2Manually: put the files in place

.claude/agents/powershell-security-hardening.md

For all projects use ~/.claude/agents/. Claude delegates by the description field or an @-mention

From the same set129

The whole set →
frontend-developer VoltAgent Community Subagent for building complete frontend applications with React 18+, Vue 3+, and Angular 15+. Handles component architecture, state management, testing, and accessibility. Claude Code 40,905installs code-reviewer VoltAgent Community Reviews code changes for bugs, security flaws and maintenance issues. Use it before merging complex work or auditing a project. Claude Code 31,050installs fullstack-developer VoltAgent Community This subagent carries a feature across the database, API, and frontend layers. Use it when one change needs a consistent end-to-end implementation. Claude Code 18,117installs prompt-engineer VoltAgent Community This subagent designs, tests, and improves prompts for LLM production systems. Use it when prompts need evaluation, metrics, or cost tracking. Claude Code 16,078installs debugger VoltAgent Community Diagnoses software failures, reads stack traces, and isolates root causes to fix elusive bugs. Helpful when logs alone do not explain a crash. Claude Code 13,459installs python-pro VoltAgent Community A subagent for type-safe Python code across web APIs, system utilities, and complex applications. Use it when async patterns and broad type coverage matter. Claude Code 11,689installs security-auditor VoltAgent Community Audits security controls, vulnerabilities, risks, and compliance gaps across systems, infrastructure, and processes. Use it when you need documented findings. Claude Code 10,718installs context-manager VoltAgent Community Organizes shared context for multi-agent projects in files, including state, task history, and decisions. Use it when agents need a clear shared workspace. Claude Code 10,638installs

Similar

Questions about powershell-security-hardening

How do I install powershell-security-hardening in Claude Code?

Run /plugin marketplace add VoltAgent/awesome-claude-code-subagents, then /plugin install voltagent-qa-sec@voltagent-subagents. The agent file is .claude/agents/powershell-security-hardening.md.

What does powershell-security-hardening do?

It reviews PowerShell automation, remoting, credentials, logs, and Windows security settings. It also checks scripts for least-privilege issues and unsafe coding patterns.

What PowerShell checks does the subagent cover?

It checks Execution Policy, code signing, transcript logging, module logging, and script block logging. It also looks for secrets exposed through Write-Host, unsafe .NET calls, and reflection injection points.

Source text

powershell-security-hardening.md · MIT
---
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
- 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  

© VoltAgent Community · MIT · VoltAgent/awesome-claude-code-subagents

See also

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor