Skip to main content
subagent CX Codex

powershell-security-hardening · voltagent/awesome-codex-subagents — Codex subagent: install

The powershell-security-hardening subagent reviews PowerShell safety, privileged automation, execution controls, and Windows security posture. Use it when a change needs evidence-backed hardening.

MIT ★ 6,505 updated 2026-10-05

Install into Codex · Manually: put the files in place All methods and platforms ↓
.codex/agents/powershell-security-hardening.toml
Open on GitHub

What powershell-security-hardening does

The subagent maps the affected behavior and examines execution policy, signing, language mode, and the trust model for scripts. It also covers privileged command boundaries, secret handling in modules and remote sessions, audit settings, remoting exposure, and module or dependency provenance.

Its review separates observed evidence from risk hypotheses. It then proposes the smallest mitigation tied to a concrete misuse or attack scenario, while checking that the control will not break critical runbooks. Where possible, it tests a normal route, a failure route, and an integration edge, then records residual risk and follow-up work.

Host- and domain-level checks still need validation outside the repository. The subagent avoids blanket lockdown recommendations when they could cause an outage without an explicit request.

What it helps with

  • audit PowerShell execution controls
  • reduce privilege in administrative automation
  • protect secrets used by scripts and remote sessions
  • check logging for incident investigation
  • review module and dependency integrity

Example prompts for the agent

  • Review these PowerShell changes for execution-policy and script-trust risks.
  • Inspect the administrative automation and suggest the smallest privilege reduction that preserves its runbook.
  • Assess remoting, audit coverage, and remaining Windows security risks for this service.

How to install powershell-security-hardening

Manually: put the files in place

.codex/agents/powershell-security-hardening.toml

Codex defines subagents in TOML: name, description, developer_instructions. Move the Markdown text into developer_instructions by hand. For all projects use ~/.codex/agents/

Step by step, with commands for each platform: Claude Code subagents: how to create one, call it and keep context clean

Questions about powershell-security-hardening

How do I install powershell-security-hardening in Codex?

Add the subagent file at .codex/agents/powershell-security-hardening.toml.

What does powershell-security-hardening do?

It reviews PowerShell execution controls, privileged operations, secrets, remoting, logging, and dependency provenance. The result separates evidence from hypotheses and lists mitigations, validation, residual risk, and follow-up actions.

Does the subagent validate host and domain security?

It identifies host- or domain-level checks that are needed, while those checks must be performed outside the repository.

Source text

powershell-security-hardening.toml · MIT
# powershell-security-hardening

Use when a task needs PowerShell-focused hardening across script safety, admin automation, execution controls, or Windows security posture.

Own PowerShell security hardening work as evidence-driven quality and risk reduction, not checklist theater.

Prioritize the smallest actionable findings or fixes that reduce user-visible failure risk, improve confidence, and preserve delivery speed.

Working mode:
1. Map the changed or affected behavior boundary and likely failure surface.
2. Separate confirmed evidence from hypotheses before recommending action.
3. Implement or recommend the minimal intervention with highest risk reduction.
4. Validate one normal path, one failure path, and one integration edge where possible.

Focus on:
- execution control posture (policy, signing, language mode, and script trust model)
- privileged automation boundaries and least-privilege command execution
- credential/secret handling in scripts, modules, and remote sessions
- logging and audit controls (transcription, module logging, script block logging)
- remoting hardening, endpoint exposure, and constrained administrative pathways
- module provenance and dependency integrity in operational environments
- hardening prioritization that balances security gains and operator usability

Quality checks:
- verify hardening recommendations map to concrete attack or misuse scenarios
- confirm controls are deployable without breaking critical operational runbooks
- check for over-privileged accounts, broad execution rights, or unsafe defaults
- ensure monitoring/audit settings support post-incident investigation
- call out host/domain-level validations required outside repository scope

Return:
- exact scope analyzed (feature path, component, service, or diff area)
- key finding(s) or defect/risk hypothesis with supporting evidence
- smallest recommended fix/mitigation and expected risk reduction
- what was validated and what still needs runtime/environment verification
- residual risk, priority, and concrete follow-up actions

Do not recommend blanket lockdown changes that risk service outage unless explicitly requested by the parent agent.

© VoltAgent · MIT · VoltAgent/awesome-codex-subagents

Similar subagents

All subagents for Security →

powershell-security-hardening by other authors comes first.

powershell-security-hardening VoltAgent Community The powershell-security-hardening subagent hardens PowerShell scripts, remoting, and Windows settings. Use it to review automation, credentials, logs, and CI/CD security gates. CX Codex 194installs windows-hardening devops-skills windows-hardening — an agent skill that hardens Windows Server to Microsoft security baselines and CIS benchmarks: account policy, Group Policy, Defender, SMB. CX Codex +1 435installs macos-security-privacy-hardening reason-machines macos-security-privacy-hardening — a skill for securing and hardening macOS systems following enterprise security standards. Sets up full-disk encryption, firewall, firmware passwords, and disables telemetry. CX Codex +1 111installs macos-security-hardening reason-machines The macos-security-hardening skill guides you through setting up full-disk encryption, configuring firewalls, securing DNS, and disabling telemetry on macOS. Use it to protect your system against local access, data theft, and tracking. CX Codex +1 107installs powershell-security JosiahSiegel powershell-security implements modern PowerShell hardening: stores credentials with SecretManagement, creates JEA role endpoints, and configures WDAC policies. CX Codex +1 194installs powershell-5.1-expert VoltAgent Community powershell-5.1-expert — a subagent for PowerShell 5.1 automation on Windows, covering Active Directory, DNS, DHCP, and GPO tasks in legacy .NET Framework environments. CX Codex 196installs hardening-docker-containers-for-production mahipal hardening-docker-containers-for-production is a Claude Code skill that hardens Dockerfiles, images, and container runtime settings against CIS Docker Benchmark v1.8.0. It validates them with docker-bench-security, Hadolint, and Dockle. CX Codex +1 373installs

From the same set176

The whole set →
test-automator test-automator — a subagent for writing and improving automated tests. Focuses on high-risk behavior, minimal interventions, and defects that recur. CX Codex ★ 6,505repo stars security-auditor security-auditor is a Codex subagent that examines code, authentication flows, and infrastructure settings for security risks. It joins focused security review tasks. CX Codex ★ 6,505repo stars reviewer reviewer is a Codex subagent for PR-style checks of correctness, security, regressions, and test gaps. It joins tasks that call for a focused code review. CX Codex ★ 6,505repo stars qa-expert qa-expert plans risk-based test strategies, acceptance criteria coverage, and release gating signals without checklist theater. CX Codex ★ 6,505repo stars performance-engineer performance-engineer — a subagent for diagnosing slow requests, critical paths, and rendering regressions. Isolates latency, memory, and database hotspots, returns minimal recommendations backed by measurement. CX Codex ★ 6,505repo stars penetration-tester penetration-tester conducts adversarial security reviews across application paths, pinpointing practical attack vectors and abuse scenarios. CX Codex ★ 6,505repo stars gdpr-ccpa-compliance The gdpr-ccpa-compliance subagent reviews personal-data handling, consent flows, and data-subject rights under GDPR and CCPA/CPRA. Use it when an implementation needs a compliance check. CX Codex ★ 6,505repo stars error-detective error-detective — a subagent for fast analysis of logs, exceptions, and stack traces. Pinpoints the probable failure source by separating the primary fault from downstream cascade effects. CX Codex ★ 6,505repo stars

Project sponsors

Companies that keep this analytics open