Expand description
PowerShell-specific security analysis for command validation.
Detects dangerous patterns: code injection, download cradles, privilege escalation, dynamic command names, COM objects, etc.
Structs§
- Power
Shell Security Result - PowerShell security result
Enums§
- Security
Behavior - Security result behavior
Functions§
- check_
download_ cradles - Checks for download cradle patterns
- check_
dynamic_ command_ name - Checks for dynamic command name (command name is an expression)
- check_
encoded_ command - Checks for encoded command parameters
- check_
env_ modification - Checks for environment variable modifications
- check_
filepath_ execution - Checks for file path execution patterns
- check_
invoke_ expression - Checks for Invoke-Expression or its alias (iex)
- check_
module_ loading - Checks for module loading
- check_
pwsh_ command - Checks for PowerShell re-invocation
- check_
script_ block_ cmdlets - Checks for dangerous script block patterns
- powershell_
command_ is_ safe - Main security check - combines all individual checks