shield-llm 0.3.0 → 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 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. PDF reports need Puppeteer (installed automatically as
33
- an optional dependency; set `PUPPETEER_EXECUTABLE_PATH` to use a system Chrome).
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 | Description |
76
- |---------|-------------|
77
- | `scan` | Run a security scan against a target chatbot |
78
- | `init` | Interactive wizard → generates `shield.config.json` |
79
- | `test-connection` | Send one benign message to check your config works (no attacks) |
80
- | `login` / `logout` | Manage your API key credentials |
81
- | `attacks` | Show the attack catalogue summary for your plan (counts, from your backend) |
82
- | `presets` | List available scan presets |
83
- | `tests` | List custom tests (local config and/or `--remote`) |
84
- | `validate` | Validate a `shield.config.json` without scanning |
85
- | `report <scanId>` | Fetch a past scan from your dashboard |
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 | Scope |
90
- |--------|-------|
91
- | `dev` | quick smoke test |
92
- | `quick` | fast triage |
93
- | `owasp` | one test per OWASP LLM Top 10 category |
94
- | `standard` | broad coverage |
95
- | `full` | full catalogue + multi-turn (crescendo / memory) attacks |
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