@exorcist-98/cli 0.3.0 → 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 CHANGED
@@ -11,7 +11,7 @@ Needs Node 20 or newer.
11
11
  ## Scan a project
12
12
 
13
13
  ```sh
14
- npx -y @exorcist-98/cli@0.3.0 scan .
14
+ npx -y @exorcist-98/cli@0.3.1 scan .
15
15
  ```
16
16
 
17
17
  Every finding shows the file, line, the exact text, how serious it is and how
@@ -39,7 +39,7 @@ request.
39
39
  ## Map the haunted house
40
40
 
41
41
  ```sh
42
- npx -y @exorcist-98/cli@0.3.0 map .
42
+ npx -y @exorcist-98/cli@0.3.1 map .
43
43
  ```
44
44
 
45
45
  For every MCP config in the folder, lists which servers sit in the three rooms
@@ -52,8 +52,8 @@ data. The rules are in `definitions/capabilities.yaml`.
52
52
  ## Disinfect (exorcise)
53
53
 
54
54
  ```sh
55
- npx -y @exorcist-98/cli@0.3.0 exorcise . # dry run: prints a unified diff
56
- npx -y @exorcist-98/cli@0.3.0 exorcise . --write # apply, with a vault backup first
55
+ npx -y @exorcist-98/cli@0.3.1 exorcise . # dry run: prints a unified diff
56
+ npx -y @exorcist-98/cli@0.3.1 exorcise . --write # apply, with a vault backup first
57
57
  ```
58
58
 
59
59
  Only threats with one safe, mechanical fix are repaired: hidden characters
@@ -67,7 +67,7 @@ human"), and `exorcist vault restore <id>` puts every file back byte for byte.
67
67
  ## Protect your MCP servers
68
68
 
69
69
  ```sh
70
- npx -y @exorcist-98/cli@0.3.0 wrap .kiro/settings/mcp.json
70
+ npx -y @exorcist-98/cli@0.3.1 wrap .kiro/settings/mcp.json
71
71
  ```
72
72
 
73
73
  `wrap` puts every server in the file, local or remote, behind the Real-Time
@@ -79,9 +79,9 @@ instruct your agent. `unwrap` restores the file exactly. See
79
79
  ## Share approved tools with your team: exorcist.lock
80
80
 
81
81
  ```sh
82
- npx -y @exorcist-98/cli@0.3.0 lock # write exorcist.lock, then commit it
83
- npx -y @exorcist-98/cli@0.3.0 lock --check # exit 1 if any tool or program changed
84
- npx -y @exorcist-98/cli@0.3.0 lock --check --static # starts nothing: names, programs, URLs only
82
+ npx -y @exorcist-98/cli@0.3.1 lock # write exorcist.lock, then commit it
83
+ npx -y @exorcist-98/cli@0.3.1 lock --check # exit 1 if any tool or program changed
84
+ npx -y @exorcist-98/cli@0.3.1 lock --check --static # starts nothing: names, programs, URLs only
85
85
  ```
86
86
 
87
87
  `exorcist.lock` records the fingerprint of every tool your MCP servers list,
@@ -0,0 +1,27 @@
1
+ id: EX-036
2
+ title: Lifecycle script sends secrets out through a local file
3
+ severity: critical
4
+ applies_to:
5
+ - manifest
6
+ match:
7
+ # Code check (packages/core/src/lifecycle-scripts.ts), run by scanRepo on every
8
+ # walked package.json. A script that a package manager runs by itself
9
+ # (preinstall, install, postinstall, prepare, prepublish, and the pre/post
10
+ # hook of any script such as pretest) is followed into the local file it runs
11
+ # (node x.js, sh x.sh, python x.py, ./x). It is reported only when that file
12
+ # holds both a secret source (.env, .npmrc, ~/.aws, ~/.ssh, a private key
13
+ # file, the whole of process.env) and a sender (http, https, fetch, a socket,
14
+ # curl or wget). A script that only builds, lints or starts a local server,
15
+ # reads .env and never sends, or sends and reads no secret, is quiet.
16
+ # Not a text pattern: the signature engine skips this rule.
17
+ analysis: lifecycle-scripts
18
+ owasp:
19
+ - "ASI07 Supply Chain Vulnerabilities"
20
+ - "LLM02:2025 Sensitive Information Disclosure"
21
+ - "ASI05 Sensitive Data Leakage"
22
+ fix: >
23
+ Do not run this project's scripts until you have read the file named in the
24
+ finding. A script like this runs when you (or your AI agent) install the
25
+ project or run its tests, and it sends your .env or credentials to another
26
+ computer with no instruction for the agent to obey. Remove the script, or
27
+ remove the code in the file that reads secrets or sends data out.