fix(docs): correct SECURITY_PROMPT_THRESHOLD sensitivity direction (#12954)
This commit is contained in:
@@ -66,7 +66,7 @@ The following settings can be configured at the root level of your config.yaml f
|
||||
| `GOOSE_AUTO_COMPACT_THRESHOLD` | Set the percentage threshold at which goose [automatically compacts your session](/docs/guides/sessions/smart-context-management#automatic-compaction). | Float between 0.0 and 1.0 (disabled at 0.0)| 0.8 | No |
|
||||
| `GOOSE_AUTO_COMPACT_TOKEN_LIMIT` | Absolute auto-compaction trigger; the earlier of this and the percentage threshold applies while auto-compaction is enabled. Controls when compaction starts, not a guaranteed maximum request size. | Positive integer | 225000 | No |
|
||||
| `SECURITY_PROMPT_ENABLED` | Enable [prompt injection detection](/docs/guides/security/prompt-injection-detection) to identify potentially harmful commands | true/false | false | No |
|
||||
| `SECURITY_PROMPT_THRESHOLD` | Sensitivity threshold for prompt injection detection (higher = stricter) | Float between 0.01 and 1.0 | 0.8 | No |
|
||||
| `SECURITY_PROMPT_THRESHOLD` | Sensitivity threshold for prompt injection detection (lower = stricter) | Float between 0.01 and 1.0 | 0.8 | No |
|
||||
| `SECURITY_PROMPT_CLASSIFIER_ENABLED` | Enable ML-based prompt injection detection for advanced threat identification | true/false | false | No |
|
||||
| `SECURITY_PROMPT_CLASSIFIER_ENDPOINT` | Classification endpoint URL for ML-based prompt injection detection | URL (e.g., "https://api.example.com/classify") | None | No |
|
||||
| `SECURITY_PROMPT_CLASSIFIER_TOKEN` | Authentication token for `SECURITY_PROMPT_CLASSIFIER_ENDPOINT` | String | None | No |
|
||||
|
||||
@@ -312,7 +312,7 @@ These variables control security features, credential storage, and anonymous usa
|
||||
| `GOOSE_ALLOWLIST` | Controls which extensions can be loaded | URL for [allowed extensions](/docs/guides/allowlist) list | Unset |
|
||||
| `GOOSE_DISABLE_KEYRING` | Disables the system keyring for secret storage | Set to any value (e.g., "1", "true", "yes") to disable. The actual value doesn't matter, only whether the variable is set. | Unset (keyring enabled) |
|
||||
| `SECURITY_PROMPT_ENABLED` | Enable [prompt injection detection](/docs/guides/security/prompt-injection-detection) to identify potentially harmful commands | true/false | false |
|
||||
| `SECURITY_PROMPT_THRESHOLD` | Sensitivity threshold for prompt injection detection (higher = stricter) | Float between 0.01 and 1.0 | 0.8 |
|
||||
| `SECURITY_PROMPT_THRESHOLD` | Sensitivity threshold for prompt injection detection (lower = stricter) | Float between 0.01 and 1.0 | 0.8 |
|
||||
| `SECURITY_PROMPT_CLASSIFIER_ENABLED` | Enable ML-based prompt injection detection for advanced threat identification | true/false | false |
|
||||
| `SECURITY_PROMPT_CLASSIFIER_ENDPOINT` | Classification endpoint URL for ML-based prompt injection detection | URL (e.g., "https://api.example.com/classify") | Unset |
|
||||
| `SECURITY_PROMPT_CLASSIFIER_TOKEN` | Authentication token for `SECURITY_PROMPT_CLASSIFIER_ENDPOINT` | String | Unset |
|
||||
@@ -324,7 +324,7 @@ These variables control security features, credential storage, and anonymous usa
|
||||
# Enable prompt injection detection with default threshold
|
||||
export SECURITY_PROMPT_ENABLED=true
|
||||
|
||||
# Enable with custom threshold (stricter)
|
||||
# Enable with custom threshold (more lenient than default)
|
||||
export SECURITY_PROMPT_ENABLED=true
|
||||
export SECURITY_PROMPT_THRESHOLD=0.9
|
||||
|
||||
|
||||
@@ -96,18 +96,18 @@ Beyond prompt injection detection, goose automatically:
|
||||
|
||||
### Configuring Detection Threshold
|
||||
|
||||
The threshold (0.01-1.0) controls how strict detection is:
|
||||
The threshold (0.01-1.0) controls how strict detection is. A tool call is flagged when its confidence score is at or above the threshold, so **lower values are more sensitive** and flag more aggressively:
|
||||
|
||||
| Threshold | Sensitivity | Use When |
|
||||
|-----------|------------|----------|
|
||||
| **0.01-0.50** | Very lenient | You're experienced and understand the risks |
|
||||
| **0.50-0.70** | Balanced | General development work (good default) |
|
||||
| **0.70-0.90** | Strict | Working with sensitive data or systems |
|
||||
| **0.90-1.00** | Maximum | High-security environments |
|
||||
| **0.01-0.30** | Maximum | High-security environments |
|
||||
| **0.30-0.60** | Strict | Working with sensitive data or systems |
|
||||
| **0.60-0.80** | Balanced | General development work (good default) |
|
||||
| **0.80-1.00** | Very lenient | You're experienced and understand the risks |
|
||||
|
||||
When the injection prompt detection feature is enabled, the default threshold is 0.8 (recommended for most users).
|
||||
|
||||
Lower thresholds mean fewer alerts but might miss threats. Higher thresholds catch more potential issues but may flag legitimate operations. You can control this sensitivity/convenience tradeoff based on your needs.
|
||||
Lower thresholds catch more potential issues but may flag legitimate operations. Higher thresholds mean fewer alerts but might miss threats. You can control this sensitivity/convenience tradeoff based on your needs.
|
||||
|
||||
## Enhanced Detection with Machine Learning
|
||||
|
||||
|
||||
Reference in New Issue
Block a user