@misconfig/cli 1.3.0 → 1.3.2

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/CHANGELOG.md CHANGED
@@ -1,5 +1,46 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.3.2 (2026-11-03)
4
+
5
+ - misconfig is open source under the Apache License 2.0. The code, its tests and the issue tracker are at https://github.com/gkdataio/misconfig. The name and logo stay trademarks of GK Data LLC.
6
+ - The package names its repository and issue tracker, so npm links to both.
7
+ - The README on npm is the one on GitHub.
8
+ - No changes to the checks, the report or what the command sends.
9
+
10
+ ## 1.3.1 (2026-11-03)
11
+
12
+ Nothing about your setup goes to misconfig.ai:
13
+
14
+ - `--open` saves the full report as one page on your computer and opens it in your browser. Nothing is uploaded. The page has no scripts, and its content security policy blocks every script and request, so nothing in it can run or load, whatever a checked file says. In CI or a script, it saves the file without opening a browser.
15
+ - Share links, README badges, private report links and the browser check at misconfig.ai/check were retired, and misconfig.ai deleted every report it stored. `--share` stops with a message that says so, and old links say the report was retired.
16
+ - The only option that sends anything about your setup is `--lookup`, which sends package names and versions to OSV.dev after you approve them. `--yes` now applies to lookups only.
17
+
18
+ Today's malware list:
19
+
20
+ - Before each check, the command downloads today's list of known malware from misconfig.ai: what OSV.dev has listed since the release, for MCP and agent packages and editor extensions, updated every hour. New malware is caught without waiting for a release. The list is a few kilobytes, kept in memory for that run, and the report says which list the check used.
21
+ - The request names the command's version and the kind of system, which is how misconfig.ai counts runs, and carries nothing about your setup. `DO_NOT_TRACK=1` downloads the list without being counted. `--offline`, or `MISCONFIG_OFFLINE=1`, skips the download and uses the list in the release. If the list doesn't arrive within 5 seconds, the check uses the release's list and says so.
22
+
23
+ Malware:
24
+
25
+ - The bundled list includes every MCP package and editor extension OSV.dev listed as malware up to this release: about 150 packages on npm and PyPI and 20 extensions, each with its listing. Before, a check without `--lookup` found 11 of the 159 MCP packages OSV.dev lists; now it finds 157.
26
+ - When a listing names only some versions of a package, usually a real package whose publishing account was taken over, only those versions count against it. A server that doesn't pin a version is told those versions were malware and to pin one, not that the package is.
27
+ - An extension listed on one marketplace, Microsoft's or Open VSX, is flagged only in editors that install from it. The same ID can be a different publisher's extension on the other.
28
+ - `--lookup` fixes:
29
+ - An unpinned package with only some versions listed as malware was reported as malware. It's now "has had versions listed as malware", at high rather than critical.
30
+ - Extensions whose ID has capitals, such as `AzureCdnInfo.edrtester`, were looked up in lowercase, which OSV.dev doesn't match, so their listings were missed. The ID is now read from the extension's own `package.json`, and only the publisher and name are kept from it.
31
+ - VSCodium, Cursor, Windsurf and Kiro extensions are looked up on Open VSX, where they come from, and a VS Code extension is no longer matched with an Open VSX listing for someone else's extension with the same ID.
32
+ - The list `--lookup` shows before it sends names where each package comes from in words, npm, PyPI, VS Marketplace or Open VSX, in even columns.
33
+ - Versions numbered by date, such as `2.49.1772191521`, are read as versions.
34
+
35
+ Safer output:
36
+
37
+ - A project can't put a command of its own into a fix any more. A package name goes into a fix, such as `npm view NAME version`, only when it's a name the registry would accept, so an `.mcp.json` whose arguments hold a download piped into a shell can't make misconfig tell you to run it. That download is still reported as one.
38
+ - Marks that reorder text, such as U+202E, and invisible line breaks are shown as � in the terminal and on the page `--open` saves, so a file can't make a finding read differently from what it says.
39
+
40
+ Fewer false findings:
41
+
42
+ - Run in your home folder, the command no longer reports "Agent workspace is your home folder" on its own account: it checked the computer's settings, not a project, and each agent's settings already say if it was started there. The header says how to check a project instead. `--project-only` in a home folder still reports it.
43
+
3
44
  ## 1.3.0 (2026-11-02)
4
45
 
5
46
  Everything since 1.1.0. Versions 1.1.1 and 1.2.0 were never published, so their changes are part of this release.
package/LICENSE CHANGED
@@ -1 +1,202 @@
1
- Copyright (c) 2026 GK Data LLC. All rights reserved.
1
+
2
+ Apache License
3
+ Version 2.0, January 2004
4
+ http://www.apache.org/licenses/
5
+
6
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
+
8
+ 1. Definitions.
9
+
10
+ "License" shall mean the terms and conditions for use, reproduction,
11
+ and distribution as defined by Sections 1 through 9 of this document.
12
+
13
+ "Licensor" shall mean the copyright owner or entity authorized by
14
+ the copyright owner that is granting the License.
15
+
16
+ "Legal Entity" shall mean the union of the acting entity and all
17
+ other entities that control, are controlled by, or are under common
18
+ control with that entity. For the purposes of this definition,
19
+ "control" means (i) the power, direct or indirect, to cause the
20
+ direction or management of such entity, whether by contract or
21
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
+ outstanding shares, or (iii) beneficial ownership of such entity.
23
+
24
+ "You" (or "Your") shall mean an individual or Legal Entity
25
+ exercising permissions granted by this License.
26
+
27
+ "Source" form shall mean the preferred form for making modifications,
28
+ including but not limited to software source code, documentation
29
+ source, and configuration files.
30
+
31
+ "Object" form shall mean any form resulting from mechanical
32
+ transformation or translation of a Source form, including but
33
+ not limited to compiled object code, generated documentation,
34
+ and conversions to other media types.
35
+
36
+ "Work" shall mean the work of authorship, whether in Source or
37
+ Object form, made available under the License, as indicated by a
38
+ copyright notice that is included in or attached to the work
39
+ (an example is provided in the Appendix below).
40
+
41
+ "Derivative Works" shall mean any work, whether in Source or Object
42
+ form, that is based on (or derived from) the Work and for which the
43
+ editorial revisions, annotations, elaborations, or other modifications
44
+ represent, as a whole, an original work of authorship. For the purposes
45
+ of this License, Derivative Works shall not include works that remain
46
+ separable from, or merely link (or bind by name) to the interfaces of,
47
+ the Work and Derivative Works thereof.
48
+
49
+ "Contribution" shall mean any work of authorship, including
50
+ the original version of the Work and any modifications or additions
51
+ to that Work or Derivative Works thereof, that is intentionally
52
+ submitted to Licensor for inclusion in the Work by the copyright owner
53
+ or by an individual or Legal Entity authorized to submit on behalf of
54
+ the copyright owner. For the purposes of this definition, "submitted"
55
+ means any form of electronic, verbal, or written communication sent
56
+ to the Licensor or its representatives, including but not limited to
57
+ communication on electronic mailing lists, source code control systems,
58
+ and issue tracking systems that are managed by, or on behalf of, the
59
+ Licensor for the purpose of discussing and improving the Work, but
60
+ excluding communication that is conspicuously marked or otherwise
61
+ designated in writing by the copyright owner as "Not a Contribution."
62
+
63
+ "Contributor" shall mean Licensor and any individual or Legal Entity
64
+ on behalf of whom a Contribution has been received by Licensor and
65
+ subsequently incorporated within the Work.
66
+
67
+ 2. Grant of Copyright License. Subject to the terms and conditions of
68
+ this License, each Contributor hereby grants to You a perpetual,
69
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
+ copyright license to reproduce, prepare Derivative Works of,
71
+ publicly display, publicly perform, sublicense, and distribute the
72
+ Work and such Derivative Works in Source or Object form.
73
+
74
+ 3. Grant of Patent License. Subject to the terms and conditions of
75
+ this License, each Contributor hereby grants to You a perpetual,
76
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
+ (except as stated in this section) patent license to make, have made,
78
+ use, offer to sell, sell, import, and otherwise transfer the Work,
79
+ where such license applies only to those patent claims licensable
80
+ by such Contributor that are necessarily infringed by their
81
+ Contribution(s) alone or by combination of their Contribution(s)
82
+ with the Work to which such Contribution(s) was submitted. If You
83
+ institute patent litigation against any entity (including a
84
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
85
+ or a Contribution incorporated within the Work constitutes direct
86
+ or contributory patent infringement, then any patent licenses
87
+ granted to You under this License for that Work shall terminate
88
+ as of the date such litigation is filed.
89
+
90
+ 4. Redistribution. You may reproduce and distribute copies of the
91
+ Work or Derivative Works thereof in any medium, with or without
92
+ modifications, and in Source or Object form, provided that You
93
+ meet the following conditions:
94
+
95
+ (a) You must give any other recipients of the Work or
96
+ Derivative Works a copy of this License; and
97
+
98
+ (b) You must cause any modified files to carry prominent notices
99
+ stating that You changed the files; and
100
+
101
+ (c) You must retain, in the Source form of any Derivative Works
102
+ that You distribute, all copyright, patent, trademark, and
103
+ attribution notices from the Source form of the Work,
104
+ excluding those notices that do not pertain to any part of
105
+ the Derivative Works; and
106
+
107
+ (d) If the Work includes a "NOTICE" text file as part of its
108
+ distribution, then any Derivative Works that You distribute must
109
+ include a readable copy of the attribution notices contained
110
+ within such NOTICE file, excluding those notices that do not
111
+ pertain to any part of the Derivative Works, in at least one
112
+ of the following places: within a NOTICE text file distributed
113
+ as part of the Derivative Works; within the Source form or
114
+ documentation, if provided along with the Derivative Works; or,
115
+ within a display generated by the Derivative Works, if and
116
+ wherever such third-party notices normally appear. The contents
117
+ of the NOTICE file are for informational purposes only and
118
+ do not modify the License. You may add Your own attribution
119
+ notices within Derivative Works that You distribute, alongside
120
+ or as an addendum to the NOTICE text from the Work, provided
121
+ that such additional attribution notices cannot be construed
122
+ as modifying the License.
123
+
124
+ You may add Your own copyright statement to Your modifications and
125
+ may provide additional or different license terms and conditions
126
+ for use, reproduction, or distribution of Your modifications, or
127
+ for any such Derivative Works as a whole, provided Your use,
128
+ reproduction, and distribution of the Work otherwise complies with
129
+ the conditions stated in this License.
130
+
131
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
132
+ any Contribution intentionally submitted for inclusion in the Work
133
+ by You to the Licensor shall be under the terms and conditions of
134
+ this License, without any additional terms or conditions.
135
+ Notwithstanding the above, nothing herein shall supersede or modify
136
+ the terms of any separate license agreement you may have executed
137
+ with Licensor regarding such Contributions.
138
+
139
+ 6. Trademarks. This License does not grant permission to use the trade
140
+ names, trademarks, service marks, or product names of the Licensor,
141
+ except as required for reasonable and customary use in describing the
142
+ origin of the Work and reproducing the content of the NOTICE file.
143
+
144
+ 7. Disclaimer of Warranty. Unless required by applicable law or
145
+ agreed to in writing, Licensor provides the Work (and each
146
+ Contributor provides its Contributions) on an "AS IS" BASIS,
147
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
+ implied, including, without limitation, any warranties or conditions
149
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
+ PARTICULAR PURPOSE. You are solely responsible for determining the
151
+ appropriateness of using or redistributing the Work and assume any
152
+ risks associated with Your exercise of permissions under this License.
153
+
154
+ 8. Limitation of Liability. In no event and under no legal theory,
155
+ whether in tort (including negligence), contract, or otherwise,
156
+ unless required by applicable law (such as deliberate and grossly
157
+ negligent acts) or agreed to in writing, shall any Contributor be
158
+ liable to You for damages, including any direct, indirect, special,
159
+ incidental, or consequential damages of any character arising as a
160
+ result of this License or out of the use or inability to use the
161
+ Work (including but not limited to damages for loss of goodwill,
162
+ work stoppage, computer failure or malfunction, or any and all
163
+ other commercial damages or losses), even if such Contributor
164
+ has been advised of the possibility of such damages.
165
+
166
+ 9. Accepting Warranty or Additional Liability. While redistributing
167
+ the Work or Derivative Works thereof, You may choose to offer,
168
+ and charge a fee for, acceptance of support, warranty, indemnity,
169
+ or other liability obligations and/or rights consistent with this
170
+ License. However, in accepting such obligations, You may act only
171
+ on Your own behalf and on Your sole responsibility, not on behalf
172
+ of any other Contributor, and only if You agree to indemnify,
173
+ defend, and hold each Contributor harmless for any liability
174
+ incurred by, or claims asserted against, such Contributor by reason
175
+ of your accepting any such warranty or additional liability.
176
+
177
+ END OF TERMS AND CONDITIONS
178
+
179
+ APPENDIX: How to apply the Apache License to your work.
180
+
181
+ To apply the Apache License to your work, attach the following
182
+ boilerplate notice, with the fields enclosed by brackets "[]"
183
+ replaced with your own identifying information. (Don't include
184
+ the brackets!) The text should be enclosed in the appropriate
185
+ comment syntax for the file format. We also recommend that a
186
+ file or class name and description of purpose be included on the
187
+ same "printed page" as the copyright notice for easier
188
+ identification within third-party archives.
189
+
190
+ Copyright [yyyy] [name of copyright owner]
191
+
192
+ Licensed under the Apache License, Version 2.0 (the "License");
193
+ you may not use this file except in compliance with the License.
194
+ You may obtain a copy of the License at
195
+
196
+ http://www.apache.org/licenses/LICENSE-2.0
197
+
198
+ Unless required by applicable law or agreed to in writing, software
199
+ distributed under the License is distributed on an "AS IS" BASIS,
200
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
201
+ See the License for the specific language governing permissions and
202
+ limitations under the License.
package/NOTICE ADDED
@@ -0,0 +1,8 @@
1
+ misconfig
2
+ Copyright 2026 GK Data LLC
3
+
4
+ This product includes the Recursive typeface, in report/fonts/, licensed
5
+ under the SIL Open Font License, Version 1.1. See report/fonts/OFL.txt.
6
+
7
+ "misconfig" and the misconfig.ai logo are trademarks of GK Data LLC. The
8
+ Apache License does not grant permission to use them.
package/README.md CHANGED
@@ -1,150 +1,115 @@
1
- # misconfig
1
+ <p align="center">
2
+ <a href="https://misconfig.ai"><img src="https://raw.githubusercontent.com/gkdataio/misconfig/main/assets/banner.png" alt="misconfig.ai: Is your AI setup misconfigured?" width="100%"></a>
3
+ </p>
2
4
 
3
- See every file that controls your AI coding agents, what each one tells them to do, which settings put your machine at risk, and whether anything they run is known malware.
5
+ <p align="center">
6
+ <a href="https://www.npmjs.com/package/@misconfig/cli"><img src="https://img.shields.io/npm/v/@misconfig/cli?style=flat-square&label=npm&labelColor=0a0b0d&color=eaff57" alt="npm version"></a>
7
+ <a href="https://github.com/gkdataio/misconfig/blob/main/LICENSE"><img src="https://img.shields.io/badge/license-Apache--2.0-eaff57?style=flat-square&labelColor=0a0b0d" alt="License: Apache-2.0"></a>
8
+ <a href="https://github.com/gkdataio/misconfig/blob/main/package.json"><img src="https://img.shields.io/badge/dependencies-none-eaff57?style=flat-square&labelColor=0a0b0d" alt="No dependencies"></a>
9
+ <a href="https://misconfig.ai/rules"><img src="https://img.shields.io/badge/rules-misconfig.ai%2Frules-eaff57?style=flat-square&labelColor=0a0b0d" alt="Every rule explained"></a>
10
+ </p>
4
11
 
5
- ```sh
6
- npx @misconfig/cli@1.3.0
7
- ```
12
+ # misconfig
8
13
 
9
- Run it in a project folder. It works on macOS, Windows and Linux with Node.js 18 or later, and needs no install or account. On Windows, if PowerShell says running scripts is disabled, type `npx.cmd` instead of `npx`.
14
+ Your coding agents take orders from more files than you think. `CLAUDE.md` and `AGENTS.md` are the ones you see. The rest sit in your home folder and app settings: `~/.claude.json`, `~/.codex/config.toml`, editor settings, plugin and skill folders, shell aliases. Any one of them can turn approvals off, hand an agent your whole disk, or start an MCP server that runs whatever its package publishes next.
10
15
 
11
- ## Example
16
+ misconfig finds every one of those files, on your computer and in your project, says what each one tells your agents to do, and flags the settings that put your machine at risk, worst first, with the exact fix.
12
17
 
18
+ ```sh
19
+ npx @misconfig/cli
13
20
  ```
14
- $ npx @misconfig/cli@1.3.0
15
- misconfig 1.3.0
16
- Checked ~/code/shop and the agent settings on this computer. Everything
17
- ran here; nothing was uploaded.
18
-
19
- What controls your agents 5 files
20
-
21
- On this computer, for every project
22
- ~/.claude.json Claude Code
23
- Started in 3 folders, including your home folder and Downloads. 1
24
- MCP server: fetch.
25
- ~/.codex/config.toml Codex
26
- Sandboxed to the project. Asks when it decides to.
27
- ~/.zshrc Your shell
28
- Starts claude with --dangerously-skip-permissions.
29
-
30
- In this project
31
- CLAUDE.md Claude Code
32
- 3 lines of instructions, such as “Run npm test before you commit.”
33
- .claude/settings.json Claude Code
34
- Allows 2 actions without asking.
35
-
36
- Findings 4
37
-
38
- High 3
39
- ■ Your shell starts Claude Code with approvals off
40
- ~/.zshrc:2 FLAG-ALIAS
41
- ~/.zshrc adds “--dangerously-skip-permissions” every time you run
42
- the command, so the agent's permission checks never run.
43
- Fix Remove the flag from your shell profile. For fewer prompts,
44
- allow specific commands in the agent's settings instead.
45
- ...
46
-
47
- Grade D, 60 out of 100
48
- 3 high, 1 medium
49
- Checked 5 agent files and 1 MCP server.
50
-
51
- Everything each file says npx @misconfig/cli --explain
52
- Full report in your browser npx @misconfig/cli --open
53
- Share this project's report npx @misconfig/cli --share
54
- Look up installs on OSV.dev npx @misconfig/cli --lookup
55
- Every rule explained https://misconfig.ai/rules
56
- Full details as JSON npx @misconfig/cli --json
57
- ```
58
-
59
- In a terminal the grade sits on a yellow square, the way it does on misconfig.ai, and each finding is marked in its level's color. Piped into a file or a CI log, the output is the plain text above. Each finding ends its location line with its rule, such as `FLAG-ALIAS`; https://misconfig.ai/rules explains every rule, what each level means and how the score is worked out.
60
21
 
61
- Add `--explain` to see everything each file sets: permission modes, allowed and blocked actions, MCP servers and what they run, hooks, trusted folders, and what instruction files say, including text that's hidden when you read them. It also lists the AI agents installed and the AI agent extensions in each editor, with their versions.
22
+ It runs on your computer. Nothing about your setup is uploaded, and it needs no account or API key.
62
23
 
63
- ## What it covers
24
+ <p align="center">
25
+ <img src="https://raw.githubusercontent.com/gkdataio/misconfig/main/assets/terminal.png" alt="misconfig checking a sample project: the files that control its agents, two critical findings with their fixes, and a grade of F" width="820">
26
+ </p>
64
27
 
65
- **Agents:** Claude Code, Claude Desktop, Codex, GitHub Copilot (in VS Code and on the command line), Cursor, Gemini CLI, OpenCode, Cline, Windsurf, Zed, Grok, Amp, Goose, Continue, Roo Code, Kiro, Amazon Q, Junie and Aider, plus shell aliases that start an agent.
28
+ ## What it checks
66
29
 
67
- **Where it looks:** the project folder, and the settings on your computer that most people never open, such as `~/.claude/settings.json`, `~/.claude.json`, Claude Code plugins and memory files, `~/.codex/config.toml`, `~/.copilot`, `~/.gemini`, Claude Desktop's MCP config, VS Code and Cursor settings, admin-managed settings and your shell profile. The full list for each operating system is at https://misconfig.ai/#locations. In the project it looks up to 12 folders deep and skips dependencies and build output, such as `node_modules` and `dist`.
30
+ | Area | What it looks for |
31
+ | --- | --- |
32
+ | Permissions | Bypass and YOLO modes, allow-everything rules, auto-approve settings, shell aliases that start agents with approvals off, settings that send an agent's requests to another address |
33
+ | MCP servers | Tokens pasted into config, unpinned packages, plain-HTTP remotes, servers that run code from the project, servers that can run shell commands or read your whole disk |
34
+ | Instructions and skills | Invisible Unicode, orders hidden in HTML comments, download-and-run commands, links to data-collection endpoints |
35
+ | Hooks | Hooks and editor tasks that run on their own, download and run code, send data over the network, or run commands that can't be undone |
36
+ | Where agents run | Agents started in Downloads or your home folder, folders an agent trusts that it shouldn't, secret files git doesn't ignore |
37
+ | Installed code | MCP packages, editor extensions and skills that are known malware or copy an official name, agent versions missing security fixes, files that attacks leave behind |
68
38
 
69
- **What it flags:**
39
+ It reads the settings of Claude Code, Claude Desktop, Codex, GitHub Copilot, Cursor, Gemini CLI, OpenCode, Cline, Windsurf, Zed, Grok, Amp, Goose, Continue, Roo Code, Kiro, Amazon Q, Junie and Aider.
70
40
 
71
- - **Permissions:** bypass and YOLO modes, allow-everything rules, Codex command rules, Kiro and Amazon Q agents that pre-approve the shell, auto-approve settings and aliases that skip approvals, and settings that send the agent's requests to another address or turn off certificate checks.
72
- - **Hooks and commands:** hooks in every agent that has them, and settings that run a command for a status line, a key or tool discovery, when they download and run code, send data over the network or post session details to a web address. Commands a project's own settings run on their own, VS Code tasks that run when a folder opens, settings that make every command load other code, such as `NODE_OPTIONS=--require` or `LD_PRELOAD`, and plugin code a project gives OpenCode, Amp or Cline.
73
- - **MCP servers:** tokens pasted into config, unpinned packages, plain-HTTP remotes, servers that run code from the project, and servers that can run shell commands or read your whole disk, including when a launcher such as `cmd /c` or `sh -c` starts them.
74
- - **Instruction files:** invisible Unicode, orders hidden in HTML comments, download-and-run commands, instructions taken from a web page and links to data-collection endpoints, including in files a setting names as instructions, such as Gemini CLI's `context.fileName`.
75
- - **Where agents run:** agents started in Downloads or your home folder, folders agents trust that they shouldn't, secret files git doesn't ignore, and keys within an agent's reach.
76
- - **Installed code:** MCP packages and editor extensions that are known malware or copy an official name, packages that were malware in `node_modules` or pinned in the lockfile, Claude Code, Codex and Claude Desktop versions missing security fixes, skills that come with programs, plugin marketplaces Anthropic doesn't run, and the files and workflows attacks such as s1ngularity and Shai-Hulud leave behind.
41
+ Every rule, with why it matters and how to fix it, is at [misconfig.ai/rules](https://misconfig.ai/rules).
77
42
 
78
- ## Malware and missing fixes
43
+ ## Usage
79
44
 
80
- Each release ships a list of what's been reported, each with its source: packages and editor extensions that were malicious, such as postmark-mcp and the Nx releases from the s1ngularity attack, and Claude Code, Codex and Claude Desktop versions missing security fixes. The check compares what's installed against it on your computer. It reads versions from each agent's `package.json`, its install folders, your editors' extension lists and the project's lockfile, and looks for the files attacks leave by name only. Programs inside skill folders are listed by name and never opened.
45
+ Run it in the folder you open your agents in, usually the project root. It works on macOS, Windows and Linux with Node.js 18 or later. On Windows, if PowerShell blocks `npx`, type `npx.cmd` instead.
81
46
 
82
- Add `--lookup` to also check OSV.dev, the open source vulnerability database, for malware and known vulnerabilities in what's installed, including anything reported since the release:
47
+ ```sh
48
+ npx @misconfig/cli # this project and the agent settings on this computer
49
+ npx @misconfig/cli --explain # everything each file tells your agents
50
+ npx @misconfig/cli --open # the full report as a page on your computer
51
+ npx @misconfig/cli --lookup # also ask OSV.dev about what's installed
52
+ ```
83
53
 
84
- - It lists every package name and version it will send, and asks first. Add `--yes` to skip the question.
85
- - Only package names, ecosystems and versions are sent: no paths, file contents, server names or settings. Package names come from your setup, so if one is private to your company, answer no.
86
- - Nothing goes to misconfig.ai.
87
- - What comes back is checked before it's used, and what the bundled list already reported isn't repeated.
54
+ | Option | What it does |
55
+ | --- | --- |
56
+ | `--explain` | Shows everything each file sets: permission modes, allowed and blocked actions, MCP servers and what they run, hooks, trusted folders, hidden text, and the agents and extensions installed |
57
+ | `--open` | Saves the full report as one page in your temp folder and opens it in your browser. The page has no scripts and loads nothing from the internet |
58
+ | `--lookup` | Also looks up the MCP packages, extensions and agent versions it found on [OSV.dev](https://osv.dev). It lists the names and versions it would send and asks first |
59
+ | `--offline` | Skips the download of today's malware list and uses the one in the release. Same as `MISCONFIG_OFFLINE=1` |
60
+ | `--project-only` | Skips the agent settings on this computer |
61
+ | `--fail-on <level>` | Exits with code 1 if it finds anything at that level or worse: `critical`, `high`, `medium` or `low` |
62
+ | `--json` | Prints the full result as JSON |
63
+ | `--yes` | Runs `--lookup` without asking, for scripts |
88
64
 
89
- It isn't an antivirus. It doesn't scan programs or watch what runs.
65
+ ### In CI
90
66
 
91
- ## Read it in your browser
67
+ Run it before installing dependencies, so a lockfile that pins a known malicious package fails the build before the package runs:
92
68
 
93
- `npx @misconfig/cli --open` puts the full report, everything `--explain` shows included, on a private page at misconfig.ai, laid out for reading and printing:
69
+ ```sh
70
+ npx @misconfig/cli --project-only --fail-on high
71
+ ```
94
72
 
95
- - The report is encrypted on your computer (AES-256-GCM) before it's sent. misconfig.ai keeps only the encrypted copy and deletes it after 7 days.
96
- - The key is the part of the link after `#`, which browsers never send to a server, so misconfig.ai can't read the report. Your browser decrypts it.
97
- - Anyone you give the link to can read the report. The command also prints a delete link, so you can remove it sooner.
98
- - It asks before uploading. Add `--yes` to skip the question.
73
+ Exit codes: `0` when the check ran and nothing reached `--fail-on`, `1` when something did, `2` for errors, or with `--fail-on` when the folder was too large to check completely, and `130` when you press Ctrl+C at a question.
99
74
 
100
75
  ## Privacy
101
76
 
102
- - Everything runs on your computer. Without `--share`, `--open` or `--lookup`, misconfig makes no network requests.
77
+ - The check runs on your computer, and what it works out about your files stays there.
78
+ - Its one request on its own downloads today's list of known malware from misconfig.ai. The request carries the command's version and the kind of system, and nothing about your setup. `--offline` skips it, and `DO_NOT_TRACK=1` keeps the run from being counted.
79
+ - `--lookup` sends package names and versions to OSV.dev, and only after you approve the list.
103
80
  - Credential files such as `.env` and `id_rsa`, and programs inside skills, are listed by name only and never opened. Secrets inside agent files are masked as they're read.
104
- - From `~/.claude.json` it keeps only the MCP servers, the folders Claude Code has been started in and the tools approved in each, never your account details.
105
- - It reads git's ignore lists (`.gitignore`, `.git/info/exclude` and `~/.config/git/ignore`) to tell whether secret files are kept out of commits.
106
- - What it works out about your files, including everything `--explain` shows, stays on your computer unless you use `--open`, which uploads it encrypted so only people with the link can read it.
107
- - `--lookup` sends package names and versions to OSV.dev, after it shows you the list and you say yes.
108
- - `--share` shows exactly what it will send and asks before sending anything. It sends this project's findings only: rule names, the paths of agent files in the project, line numbers, fixed words a check produces (such as a setting name) and the number of agent files and MCP servers checked. Names inside your files, such as MCP servers, commands and packages, are left out, along with file contents, quoted lines, the project folder's name and anything from the settings on your computer. Before it sends them, it asks misconfig.ai which set of checks the site runs, a request that carries nothing from your files.
109
81
 
110
- The checks are plain JavaScript in `engine/`, so you can read what runs before you run it.
82
+ The [privacy policy](https://misconfig.ai/privacy) lists everything misconfig.ai receives and how long it's kept.
111
83
 
112
- ## Options
84
+ ## Known malware
113
85
 
114
- ```
115
- npx @misconfig/cli [folder] [options]
116
-
117
- --explain Show everything each file tells your agents, and
118
- what's installed
119
- --lookup Also look up what's installed on OSV.dev. Sends only
120
- package names and versions, and asks first
121
- --open Open the full report in your browser at a private,
122
- encrypted link that lasts 7 days
123
- --share Publish this project's findings and print a link
124
- --yes Look up, share or open without asking, for scripts
125
- and CI
126
- --json Print the full result as JSON
127
- --project-only Skip the agent settings on this computer
128
- --fail-on <level> Exit with code 1 if anything at this level or worse is
129
- found: critical, high, medium or low
130
- -v, --version Print the version
131
- -h, --help Show this help
132
- ```
86
+ Each release bundles every MCP package and editor extension that OSV.dev has listed as malware, the Claude Code, Codex and Claude Desktop versions that are missing security fixes, and the files and workflows that attacks such as s1ngularity and Shai-Hulud leave behind, each with its source. Before every check, the command also downloads today's list, which misconfig.ai rebuilds from OSV.dev every hour, so new listings are caught without waiting for a release.
133
87
 
134
- Exit codes: `0` when the check ran and nothing reached `--fail-on`, `1` when `--fail-on` found something, `2` for errors, or with `--fail-on` when the folder was too big to check completely, and `130` when you press Ctrl+C at a question.
88
+ misconfig isn't an antivirus. It doesn't scan programs or watch what your agents do while they run, so keep approvals on for anything you can't undo.
135
89
 
136
- ## Use in CI
90
+ ## Read the code
137
91
 
138
- In any CI system, run it before installing dependencies. It exits with code 1 when it finds anything at that level or worse, including a lockfile that pins a package that was malware:
92
+ misconfig is plain JavaScript with no dependencies, so what you install is what's in this repository.
139
93
 
140
- ```sh
141
- npx @misconfig/cli@1.3.0 --project-only --fail-on high
142
- ```
94
+ | Path | What's in it |
95
+ | --- | --- |
96
+ | [`engine/catalog.js`](https://github.com/gkdataio/misconfig/blob/main/engine/catalog.js) | The wording, level and fix of every rule |
97
+ | [`engine/index.js`](https://github.com/gkdataio/misconfig/blob/main/engine/index.js) | The checks that apply the rules, and the scoring |
98
+ | [`engine/known.js`](https://github.com/gkdataio/misconfig/blob/main/engine/known.js) | Known malware, agent advisories and attack traces, each with its source |
99
+ | [`engine/locations.js`](https://github.com/gkdataio/misconfig/blob/main/engine/locations.js) | Where each agent keeps its files on macOS, Windows and Linux |
100
+ | [`lib/discover.js`](https://github.com/gkdataio/misconfig/blob/main/lib/discover.js) | Which files the command reads, and the limits on what it reads |
101
+ | [`lib/html.js`](https://github.com/gkdataio/misconfig/blob/main/lib/html.js) | The page `--open` saves |
102
+
103
+ ## Contributing
143
104
 
144
- ## Share links and badges
105
+ Bug reports are the most useful help right now: a finding that's wrong for your setup, a risky setting it missed, or an agent it doesn't know yet. Please [open an issue](https://github.com/gkdataio/misconfig/issues). We aren't accepting code contributions yet. [CONTRIBUTING.md](https://github.com/gkdataio/misconfig/blob/main/CONTRIBUTING.md) explains why.
145
106
 
146
- `npx @misconfig/cli --share` publishes a signed report at misconfig.ai that expires after 30 days, and prints a README badge and a private delete link. misconfig.ai rebuilds every sentence of the report from its own rule catalog, so a share link can only say what a real check would say. A share never drops a finding: if the site doesn't know one of this version's checks yet, a finding is in a file a share link can't name, such as one a setting names as instructions, or there are more than 400 findings, nothing is published and the command says why. You can use `--open` for a private report instead.
107
+ ## Security
108
+
109
+ Please don't report vulnerabilities in public issues. Email [security@misconfig.ai](mailto:security@misconfig.ai) or use GitHub's private vulnerability reporting. [SECURITY.md](https://github.com/gkdataio/misconfig/blob/main/SECURITY.md) has the details.
147
110
 
148
111
  ## License
149
112
 
150
- Copyright (c) 2026 GK Data LLC. All rights reserved. https://misconfig.ai
113
+ [Apache-2.0](https://github.com/gkdataio/misconfig/blob/main/LICENSE). The misconfig name and logo are trademarks of GK Data LLC and aren't covered by the license.
114
+
115
+ <sub>Made by <a href="https://gkdata.io">GK Data LLC</a>. <a href="https://misconfig.ai">misconfig.ai</a></sub>
package/bin/misconfig.js CHANGED
@@ -3,7 +3,8 @@ import { main } from "../lib/main.js";
3
3
  import { oneLine } from "../lib/print.js";
4
4
 
5
5
  // Older versions of Node print a warning that fetch is experimental the first
6
- // time --share, --open or --lookup uses it. Other warnings still print.
6
+ // time the command downloads today's malware list or --lookup asks OSV.dev.
7
+ // Other warnings still print.
7
8
  const warn = process.emitWarning;
8
9
  process.emitWarning = function (warning, ...rest) {
9
10
  const type = typeof rest[0] === "string" ? rest[0] : rest[0]?.type;
package/engine/catalog.js CHANGED
@@ -790,6 +790,12 @@ export const RULES = {
790
790
  why: "OSV.dev lists {name} as malicious ({ref}). {where}.",
791
791
  fix: "Remove it, then change any keys and tokens it could reach.",
792
792
  },
793
+ "LOOKUP-MALICIOUS-VERSION": {
794
+ severity: "high", category: "installs",
795
+ title: "{name} has had versions listed as malware",
796
+ why: "OSV.dev lists versions of {name} as malicious ({ref}). {where}, and no version is pinned, so it may have run one of them.",
797
+ fix: "Pin {name} to a version you've checked, or remove it, then change any keys and tokens it could reach.",
798
+ },
793
799
  "LOOKUP-VULN": {
794
800
  severity: "high", category: "installs",
795
801
  title: "{name} {version} has {vulns}",
package/engine/explain.js CHANGED
@@ -1,7 +1,6 @@
1
1
  // What each file that controls an agent actually tells it to do, in plain
2
- // words. This runs on the user's computer. Share links carry rule names,
3
- // never these details; only an --open report, encrypted on the computer,
4
- // carries them.
2
+ // words. This runs on the user's computer, and what it works out is shown
3
+ // only there: in --explain and the page --open saves.
5
4
 
6
5
  import { describeMasks, maskSecrets } from "./mask.js";
7
6
  import { findDangerFlag, trimWord, programName } from "./flags.js";
package/engine/flags.js CHANGED
@@ -47,9 +47,6 @@ const QUICK_FLAGS = /--(?:dangerously|allow-dangerously|permission-mode|sandbox|
47
47
  // is powershell.
48
48
  export const programName = (word) => String(word).split(/[\\/]/).pop().replace(/\.(?:exe|cmd|bat|com|ps1)$/i, "");
49
49
 
50
- export const FLAG_NAMES = new Set(DANGER_FLAGS.map((f) => f.flag));
51
- export const AGENT_NAMES = new Set(AGENT_COMMANDS.map(([name]) => name));
52
-
53
50
  // A command line ends at && || ; | or a new line, and in Markdown at a
54
51
  // backtick, so an option is only credited to the command it belongs to.
55
52
  export const COMMAND_BREAK = /&&|\|\||[;|`\n]|\$\(/g;