Skip to main content

command_characteristics

Function command_characteristics 

Source
pub fn command_characteristics(command: &str) -> CommandCharacteristics
Expand description

Analyze a command segment for security-relevant properties.

Reports the surface-level command classification: what the outermost command is and whether it’s an indirect execution pattern. This is O(1) in wrapper depth — it does not recurse.

For the fully-resolved inner command (after recursively stripping wrappers), use resolve_command.