shield-llm 0.3.1 → 0.4.0
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 +29 -20
- package/dist/{chunk-NCPHRVFO.js → chunk-DVOKN4JV.js} +1874 -101
- package/dist/cli.js +7 -5
- package/dist/index.js +1 -1
- package/dist/logo.png +0 -0
- package/package.json +10 -5
- package/dist/report-template.hbs +0 -1726
package/README.md
CHANGED
|
@@ -18,6 +18,7 @@ logic — so adding new attacks server-side reaches every install instantly, wit
|
|
|
18
18
|
no upgrade.
|
|
19
19
|
|
|
20
20
|
> A backend connection is required. Two modes, same binary:
|
|
21
|
+
>
|
|
21
22
|
> - **SaaS** — `https://shield-llm.com` (default)
|
|
22
23
|
> - **License / self-hosted** — your own instance via `--api-url`
|
|
23
24
|
|
|
@@ -29,8 +30,16 @@ npm install -g shield-llm
|
|
|
29
30
|
npx shield-llm --help
|
|
30
31
|
```
|
|
31
32
|
|
|
32
|
-
Requires Node.js >= 22.
|
|
33
|
-
|
|
33
|
+
Requires Node.js >= 22.
|
|
34
|
+
|
|
35
|
+
PDF reports (`--output pdf`) need Puppeteer, which is not installed by default
|
|
36
|
+
to keep the CLI install small and dependency-light:
|
|
37
|
+
|
|
38
|
+
```bash
|
|
39
|
+
npm install -g puppeteer # one-time, only if you use --output pdf
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
Set `PUPPETEER_EXECUTABLE_PATH` to use a system Chrome instead of the bundled one.
|
|
34
43
|
|
|
35
44
|
## Quick start
|
|
36
45
|
|
|
@@ -72,27 +81,27 @@ shield-llm scan --preset owasp
|
|
|
72
81
|
|
|
73
82
|
## Commands
|
|
74
83
|
|
|
75
|
-
| Command
|
|
76
|
-
|
|
77
|
-
| `scan`
|
|
78
|
-
| `init`
|
|
79
|
-
| `test-connection`
|
|
80
|
-
| `login` / `logout` | Manage your API key credentials
|
|
81
|
-
| `attacks`
|
|
82
|
-
| `presets`
|
|
83
|
-
| `tests`
|
|
84
|
-
| `validate`
|
|
85
|
-
| `report <scanId>`
|
|
84
|
+
| Command | Description |
|
|
85
|
+
| ------------------ | --------------------------------------------------------------------------- |
|
|
86
|
+
| `scan` | Run a security scan against a target chatbot |
|
|
87
|
+
| `init` | Interactive wizard → generates `shield.config.json` |
|
|
88
|
+
| `test-connection` | Send one benign message to check your config works (no attacks) |
|
|
89
|
+
| `login` / `logout` | Manage your API key credentials |
|
|
90
|
+
| `attacks` | Show the attack catalogue summary for your plan (counts, from your backend) |
|
|
91
|
+
| `presets` | List available scan presets |
|
|
92
|
+
| `tests` | List custom tests (local config and/or `--remote`) |
|
|
93
|
+
| `validate` | Validate a `shield.config.json` without scanning |
|
|
94
|
+
| `report <scanId>` | Fetch a past scan from your dashboard |
|
|
86
95
|
|
|
87
96
|
## Presets
|
|
88
97
|
|
|
89
|
-
| Preset
|
|
90
|
-
|
|
91
|
-
| `dev`
|
|
92
|
-
| `quick`
|
|
93
|
-
| `owasp`
|
|
94
|
-
| `standard` | broad coverage
|
|
95
|
-
| `full`
|
|
98
|
+
| Preset | Scope |
|
|
99
|
+
| ---------- | -------------------------------------------------------- |
|
|
100
|
+
| `dev` | quick smoke test |
|
|
101
|
+
| `quick` | fast triage |
|
|
102
|
+
| `owasp` | one test per OWASP LLM Top 10 category |
|
|
103
|
+
| `standard` | broad coverage |
|
|
104
|
+
| `full` | full catalogue + multi-turn (crescendo / memory) attacks |
|
|
96
105
|
|
|
97
106
|
Available presets depend on your plan; the backend filters them.
|
|
98
107
|
|