powershell-security-hardening
Pass
Audited by Gen Agent Trust Hub on Sep 27, 2026
Risk Level: SAFECOMMAND_EXECUTIONPRIVILEGE_ESCALATIONINDIRECT_PROMPT_INJECTIONEXTERNAL_DOWNLOADS
Full Analysis
- [COMMAND_EXECUTION]: The skill executes system-level commands via PowerShell to manage security configurations.
- Evidence:
scripts/security_hardening_wrapper.tsutilizeschild_process.spawn('powershell.exe', ...)to execute various administrative PowerShell scripts. - [PRIVILEGE_ESCALATION]: The skill is designed to modify system-wide registry keys and security policies, which necessitates administrative access.
- Evidence: Scripts such as
enforce_execution_policy.ps1andsetup_constrained_mode.ps1perform modifications to theHKLM(HKEY_LOCAL_MACHINE) registry hive. - [INDIRECT_PROMPT_INJECTION]: The skill accepts user-supplied parameters that are subsequently interpolated into privileged command execution strings.
- Ingestion points: The
paramsobject insecurity_hardening_wrapper.tsreceives data from the agent context. - Boundary markers: No explicit boundaries or warnings are present in the scripts to isolate untrusted data.
- Capability inventory: The skill can modify the system registry, alter execution policies, and perform code signing.
- Sanitization: While PowerShell scripts utilize some parameter validation decorators, the TypeScript wrapper performs minimal sanitization before passing strings to the child process.
- [EXTERNAL_DOWNLOADS]: The skill references established external services for timestamping during code signing operations.
- Evidence:
scripts/sign_module.ps1andreferences/signing_guide.mdinteract with well-known certificate authorities such as DigiCert and Sectigo for timestamp verification.
Audit Metadata