modified Scan your codebase for vulnerabilities View current →
--- a/claude-security.md +++ b/claude-security.md @@ -43,7 +43,7 @@ ### Update the plugin -If a command or option doesn’t work, [check](</docs/en/plugins/install#install-a-plugin>) that you have version 0.13.0 or later of the plugin. To update the plugin yourself, see [Update plugins now](</docs/en/plugins/install#update-plugins-now>). Claude Code also [updates the plugin automatically](</docs/en/plugins/install#keep-plugins-updated>) unless auto-update is turned off. +If a command or option doesn’t work, [check](</docs/en/plugins/install#install-a-plugin>) that you have version 0.13.1 or later of the plugin. To update the plugin yourself, see [Update plugins now](</docs/en/plugins/install#update-plugins-now>). Claude Code also [updates the plugin automatically](</docs/en/plugins/install#keep-plugins-updated>) unless auto-update is turned off. ### Uninstall the plugin @@ -230,11 +230,25 @@ The command doesn’t load your repository’s `.claude/` settings or hooks, so the deny rules there don’t apply. In the sandbox, your organization’s [server-managed settings](</docs/en/server-managed-settings#security-considerations>) don’t apply either. If you add `--no-sandbox`, the scan runs in [auto mode](</docs/en/permission-modes#eliminate-prompts-with-auto-mode>) with your user’s access. See the plugin’s [trust model](<https://github.com/anthropics/claude-plugins-official/blob/main/plugins/claude-security/SECURITY.md#trust-model>). -The plugin includes the command. To add it to your `PATH`, enter `/claude-security:install-cli` in Claude Code and follow what it prints. Then run it in your repository, with `--sudo` or `--no-sandbox` if your system needs it: - - * **Scan the codebase** : `claude-security` - * **Scan this branch’s changes** : `claude-security --changes` - * **Scan with a full-screen view** : `claude-security --tui`, which needs Node.js 18 or later +The plugin includes the command. To add it to your `PATH`, enter `/claude-security:install-cli` in Claude Code and follow what it prints. For a scan in the sandbox, add `--provider` with the value for the provider that receives your code: + + * `anthropic`: paid plan or Anthropic API + * `bedrock`: [Amazon Bedrock](</docs/en/amazon-bedrock>) + * `vertex`: [Google Cloud’s Agent Platform](</docs/en/google-vertex-ai>), formerly Vertex AI + * `foundry`: [Microsoft Foundry](</docs/en/microsoft-foundry>) + +To find your value, run `claude` in your terminal, enter [`/status`](</docs/en/commands#all-commands>), and look for an `API provider` row and a base URL row: + + * **`API provider` row**: use the matching value for `Amazon Bedrock`, `Google Vertex AI`, or `Microsoft Foundry`. For any other provider, such as `Amazon Bedrock (Mantle)`, scan in a session. + * **Base URL row** : pass the URL too. For example, for `Anthropic base URL`, use `--provider anthropic --model-base-url https://models.example.com`. If the command refuses the URL, scan in a session. + * **Both rows absent** : if you use Claude Code through your organization, ask your administrator which value to use. Otherwise, use `anthropic`. + +If you pass a base URL, your credential can go to that host. For `Anthropic base URL`, export a credential that the host issued: `ANTHROPIC_AUTH_TOKEN` for a bearer token or `ANTHROPIC_API_KEY` for an API key. Run one of these commands in your repository, with your value in place of `<provider>` and with `--model-base-url` or `--sudo` if you need them: + + * **Scan the codebase** : `claude-security --provider <provider>` + * **Scan this branch’s changes** : `claude-security --provider <provider> --changes` + * **Scan with a full-screen view** : `claude-security --provider <provider> --tui`, which needs Node.js 18 or later + * **Scan on Windows** : replace `--provider` and `--model-base-url` with `--no-sandbox`, such as `claude-security --no-sandbox --changes` * **List the other options** : `claude-security --help` The command runs in [auto mode](</docs/en/permission-modes#eliminate-prompts-with-auto-mode>), and stops if auto mode isn’t available. If your Claude Code model doesn’t support it, add `--model` with one that does. For any other cause, scan in a session.