> ## Documentation Index
> Fetch the complete documentation index at: https://loadwise.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# go-exec-command-shell

> exec.Command invokes a shell, which risks command injection.

## What it flags

`exec.Command` or `exec.CommandContext` invokes a known shell in command mode. This includes literal paths to `sh` and `bash` with `-c`, Windows Command Prompt with `/c` or `/k`, and PowerShell with `-Command` or `-c`. Execute the target binary directly with explicit arguments.

## Configuration

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

```json theme={null}
{
  "rules": { "go-exec-command-shell": "off" }
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.