shield-llm 0.2.2 → 0.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +7 -4
- package/dist/chunk-NCPHRVFO.js +6455 -0
- package/dist/{chunk-7D5WVZW5.js → chunk-UXBLUD2Y.js} +83 -113
- package/dist/chunk-WM5Z3SXV.js +16 -0
- package/dist/cli.js +7 -23
- package/dist/index.js +2 -2
- package/dist/{token-DULPX7LM.js → token-BYYUIFPC.js} +4 -2
- package/dist/{token-util-HNUYLXRD.js → token-util-S2RPFVDM.js} +2 -1
- package/package.json +1 -1
- package/dist/chunk-LH6W4P2C.js +0 -24324
package/README.md
CHANGED
|
@@ -76,8 +76,9 @@ shield-llm scan --preset owasp
|
|
|
76
76
|
|---------|-------------|
|
|
77
77
|
| `scan` | Run a security scan against a target chatbot |
|
|
78
78
|
| `init` | Interactive wizard → generates `shield.config.json` |
|
|
79
|
+
| `test-connection` | Send one benign message to check your config works (no attacks) |
|
|
79
80
|
| `login` / `logout` | Manage your API key credentials |
|
|
80
|
-
| `attacks` |
|
|
81
|
+
| `attacks` | Show the attack catalogue summary for your plan (counts, from your backend) |
|
|
81
82
|
| `presets` | List available scan presets |
|
|
82
83
|
| `tests` | List custom tests (local config and/or `--remote`) |
|
|
83
84
|
| `validate` | Validate a `shield.config.json` without scanning |
|
|
@@ -87,9 +88,9 @@ shield-llm scan --preset owasp
|
|
|
87
88
|
|
|
88
89
|
| Preset | Scope |
|
|
89
90
|
|--------|-------|
|
|
90
|
-
| `dev` |
|
|
91
|
-
| `quick` |
|
|
92
|
-
| `owasp` |
|
|
91
|
+
| `dev` | quick smoke test |
|
|
92
|
+
| `quick` | fast triage |
|
|
93
|
+
| `owasp` | one test per OWASP LLM Top 10 category |
|
|
93
94
|
| `standard` | broad coverage |
|
|
94
95
|
| `full` | full catalogue + multi-turn (crescendo / memory) attacks |
|
|
95
96
|
|
|
@@ -103,12 +104,14 @@ Available presets depend on your plan; the backend filters them.
|
|
|
103
104
|
--system-prompt <text> give the target's system prompt for context
|
|
104
105
|
--crescendo include multi-turn attacks
|
|
105
106
|
--load-custom-tests also run your dashboard's custom tests
|
|
107
|
+
--custom-only run ONLY your custom tests (no preset attacks)
|
|
106
108
|
--eu-ai-act print an EU AI Act compliance summary
|
|
107
109
|
-o, --output <format> json | markdown | sarif | pdf
|
|
108
110
|
--output-file <path> write the report to a file
|
|
109
111
|
--min-score <n> fail if score < n
|
|
110
112
|
--fail-on-critical fail if any CRITICAL finding
|
|
111
113
|
--ci JSON to stdout, no spinner (logs to stderr)
|
|
114
|
+
--include-full-payloads keep full chatbot responses in the JSON (default: truncated)
|
|
112
115
|
```
|
|
113
116
|
|
|
114
117
|
## CI/CD
|