Skip to main content

What it flags

Command::new("sh") or Command::new("bash") selects a shell. The rule also recognizes a literal shell path paired with command mode in an immediate .arg() or .args() call, including Windows Command Prompt and PowerShell. Invoke the target executable directly with .arg().

Configuration

Set the rule to "off" in loadwise.config.json to drop its findings: