Skip to main content

Module destructive_command_warning

Module destructive_command_warning 

Source
Expand description

Detects potentially destructive PowerShell commands and returns a warning

Functionsยง

get_destructive_command_warning
Checks if a PowerShell command matches known destructive patterns. Returns a human-readable warning string, or None if no destructive pattern is detected.