Skip to main content

validate_exec_command

Function validate_exec_command 

Source
pub fn validate_exec_command(cmd: &str) -> Result<(), NikaError>
Expand description

Full security validation for exec commands

Combines control character validation and blocklist checking. When shell_mode is true, also checks for shell-specific bypass patterns like command substitution ($(), backticks).

§Errors

Returns BlockedCommand if any security check fails.