@misconfig/cli 1.0.1 → 1.3.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/engine/catalog.js CHANGED
@@ -1,74 +1,91 @@
1
1
  // Every check misconfig.ai runs, with the wording shown to users.
2
2
  // {placeholders} are filled in from the finding.
3
3
 
4
+ // What each severity means. Reports and the rules page show these words, and
5
+ // every rule's severity is set by them.
6
+ export const LEVELS = {
7
+ critical: "Harm is under way or needs no one to act: known malware, signs of an attack, instructions hidden from you, or code downloaded and run automatically. Act now.",
8
+ high: "One step from harm: the agent can act without asking, a credential is exposed, or the setup sends the agent to code or servers no one has checked. Fix soon.",
9
+ medium: "A safeguard is weaker than it should be. Harm needs something else to go wrong too.",
10
+ low: "Small on its own. Worth tidying up.",
11
+ info: "Worth knowing. It doesn't change the score.",
12
+ };
13
+
4
14
  export const CATEGORIES = {
5
15
  permissions: "Permissions",
6
16
  mcp: "MCP servers",
7
17
  instructions: "Instruction files",
8
18
  hooks: "Hooks & scripts",
9
19
  workspace: "Workspace & secrets",
20
+ installs: "Installed code",
10
21
  };
11
22
 
12
23
  export const RULES = {
13
- // --- Permissions -------------------------------------------------------
24
+ // --- Permissions ---------------------------------------------------------
14
25
  "CC-BYPASS": {
15
- severity: "critical", category: "permissions", tool: "Claude Code",
26
+ severity: "high", category: "permissions", tool: "Claude Code",
16
27
  title: "Claude Code runs with every permission prompt turned off",
17
- why: "defaultMode is bypassPermissions, so Claude edits files and runs any command without asking. One poisoned file or bad suggestion goes straight to your shell.",
18
- fix: 'Remove defaultMode or set it to "default". For speed, allow specific commands under permissions.allow instead.',
28
+ why: "permissions.defaultMode is bypassPermissions, so Claude Code edits files and runs any command without asking. A prompt injection in any file, web page or tool output it reads can then run commands on your computer.",
29
+ fix: "Remove permissions.defaultMode or set it to \"default\". For fewer prompts, allow specific commands under permissions.allow instead.",
30
+ },
31
+ "CC-BYPASS-PROJECT": {
32
+ severity: "medium", category: "permissions", tool: "Claude Code",
33
+ title: "This project asks Claude Code to skip every permission prompt",
34
+ why: "permissions.defaultMode is bypassPermissions in the project's own settings. Claude Code 2.1.257 and later ignore it there and start in the default mode, but older versions skip every prompt for anyone who opens the project.",
35
+ fix: "Remove permissions.defaultMode from the project's settings, and keep Claude Code up to date.",
19
36
  },
20
37
  "CC-ACCEPT-EDITS": {
21
38
  severity: "low", category: "permissions", tool: "Claude Code",
22
39
  title: "Claude Code accepts file edits without asking",
23
- why: "defaultMode is acceptEdits, so edits land without review, including edits to config and scripts that run later.",
24
- fix: "Use the default mode in repos with build scripts, hooks or CI config.",
40
+ why: "permissions.defaultMode is acceptEdits, so Claude Code applies file edits without review, including edits to scripts and config that run later, such as package.json scripts, a Makefile or CI workflows.",
41
+ fix: "Set permissions.defaultMode to \"default\". When you want edits accepted for a while, switch modes in the session with Shift+Tab.",
25
42
  },
26
43
  "CC-ALLOW-ALL-BASH": {
27
44
  severity: "high", category: "permissions", tool: "Claude Code",
28
- title: "Claude Code may run any shell command without asking",
29
- why: "permissions.allow contains “{rule}”, which pre-approves every command.",
45
+ title: "Claude Code can run any shell command without asking",
46
+ why: "permissions.allow contains “{rule}”, which pre-approves every shell command. A prompt injection in anything Claude Code reads can then run commands on your computer.",
30
47
  fix: "Replace it with the specific commands you trust, such as Bash(npm test:*).",
31
48
  },
32
49
  "CC-ALLOW-RISKY-BASH": {
33
50
  severity: "high", category: "permissions", tool: "Claude Code",
34
- title: "Pre-approved command can run arbitrary code: {rule}",
35
- why: "Interpreters, sudo, rm and similar commands can do anything once approved, and the approval covers every argument.",
51
+ title: "A pre-approved command can run any code or delete any file: {rule}",
52
+ why: "Claude Code runs it with any arguments and without asking. Interpreters such as python and node, shells and sudo run whatever code they're given, and rm can delete any file you can.",
36
53
  fix: "Remove it from permissions.allow, or narrow it to one exact script, such as Bash(npm run lint).",
37
54
  },
38
55
  "CC-ALLOW-NET-BASH": {
39
- severity: "medium", category: "permissions", tool: "Claude Code",
40
- title: "Pre-approved network command: {rule}",
41
- why: "curl, wget, ssh and similar commands can send your files anywhere without a prompt.",
42
- fix: "Let Claude ask before network commands, or limit the rule to one URL.",
56
+ severity: "high", category: "permissions", tool: "Claude Code",
57
+ title: "A pre-approved command can send data off your computer: {rule}",
58
+ why: "Claude Code runs it with any arguments and without asking. curl and wget can post any file Claude Code can read to any server, and ssh can run commands on any server your keys reach.",
59
+ fix: "Remove {rule} from permissions.allow so Claude Code asks first. For web pages, allow WebFetch for specific domains instead, such as WebFetch(domain:docs.example.com).",
43
60
  },
44
61
  "CC-ALLOW-WRITE-ANYWHERE": {
45
62
  severity: "high", category: "permissions", tool: "Claude Code",
46
- title: "Claude Code may edit files outside this project: {rule}",
47
- why: "The rule covers your home folder or the whole disk, including shell profiles and other repos.",
48
- fix: "Scope edit rules to paths inside the project.",
63
+ title: "Claude Code can edit files outside this project without asking: {rule}",
64
+ why: "The rule covers your home folder or the whole disk, so Claude Code can change shell profiles and other repos without asking.",
65
+ fix: "Limit edit rules to paths inside the project, such as Edit(src/**).",
49
66
  },
50
67
  "CC-ALLOW-READ-ANYWHERE": {
51
68
  severity: "medium", category: "permissions", tool: "Claude Code",
52
- title: "Claude Code may read files outside this project: {rule}",
53
- why: "That includes SSH keys, cloud credentials and other projects.",
69
+ title: "Claude Code can read files outside this project without asking: {rule}",
70
+ why: "That includes SSH keys, cloud credentials and other projects, and what Claude Code reads is sent to the model.",
54
71
  fix: "Scope read rules to the project, or deny ~/.ssh, ~/.aws and similar folders.",
55
72
  },
56
73
  "CC-ALLOW-WEBFETCH": {
57
74
  severity: "medium", category: "permissions", tool: "Claude Code",
58
- title: "Claude Code may fetch any URL without asking",
59
- why: "Unscoped WebFetch lets pages feed instructions to the agent and lets the agent send data out in the URL.",
75
+ title: "Claude Code can fetch any URL without asking",
76
+ why: "WebFetch without a domain lets Claude Code open any page without asking. A page can carry instructions for the agent, and the agent can send data out in the address it fetches.",
60
77
  fix: "Allow specific domains instead, such as WebFetch(domain:docs.example.com).",
61
78
  },
62
79
  "CC-ALLOW-MCP-ALL": {
63
- severity: "low", category: "permissions", tool: "Claude Code",
80
+ severity: "medium", category: "permissions", tool: "Claude Code",
64
81
  title: "Every tool of an MCP server is pre-approved: {rule}",
65
- why: "Approving a whole server also approves tools it adds in later versions.",
82
+ why: "Claude Code runs any of the server's tools without asking, including ones that write, send or delete, and tools the server adds in later versions.",
66
83
  fix: "List the individual tools you use, such as mcp__github__get_issue.",
67
84
  },
68
85
  "CC-NO-SECRET-DENY": {
69
86
  severity: "medium", category: "permissions", tool: "Claude Code",
70
87
  title: "Nothing stops Claude Code from reading your secret files",
71
- why: "This folder has {files}, and permissions.deny has no rule covering them.",
88
+ why: "No rule in permissions.deny blocks reading {files}.",
72
89
  fix: 'Add deny rules such as "Read(./.env)", "Read(./.env.*)" and "Read(./secrets/**)".',
73
90
  },
74
91
  "CC-EXTRA-DIRS": {
@@ -81,7 +98,37 @@ export const RULES = {
81
98
  severity: "medium", category: "permissions", tool: "Claude Code",
82
99
  title: "Claude Code trusts every MCP server in .mcp.json automatically",
83
100
  why: "enableAllProjectMcpServers is true, so a server added to .mcp.json in a pull request starts without a prompt.",
84
- fix: "Set it to false and approve servers one by one with enabledMcpjsonServers.",
101
+ fix: "Remove enableAllProjectMcpServers or set it to false, so Claude Code asks you to approve each server in .mcp.json.",
102
+ },
103
+ "CC-MCP-PROJECT-APPROVED": {
104
+ severity: "medium", category: "permissions", tool: "Claude Code",
105
+ title: "This project's settings approve its own MCP servers",
106
+ why: "enabledMcpjsonServers in {file} approves servers from this project's .mcp.json, so they start without asking once you trust the folder.",
107
+ fix: "Remove it from the shared settings. Each person approves the project's servers for themselves.",
108
+ },
109
+ "AGENT-ENDPOINT": {
110
+ severity: "high", category: "permissions",
111
+ title: "This project points the agent at {host}",
112
+ why: "{variable} in {where} sends the agent's requests to {host} instead of the vendor's service once you trust the folder. Those requests carry your prompts, the code the agent reads and your API key.",
113
+ fix: "Remove it from the project. If your company routes AI traffic through a gateway, set that in your own settings.",
114
+ },
115
+ "AGENT-ENDPOINT-USER": {
116
+ severity: "info", category: "permissions",
117
+ title: "{where} sends the agent's requests to {host}",
118
+ why: "{variable} in your own settings sends the agent's requests to {host} instead of the vendor's service. That's expected if your company routes AI traffic through a gateway. If you didn't set it, another program changed your settings, and {host} receives your prompts, code and API key.",
119
+ fix: "Remove it unless you know who runs {host}.",
120
+ },
121
+ "ENV-TLS-OFF": {
122
+ severity: "high", category: "permissions",
123
+ title: "{where} turns off certificate checks",
124
+ why: "{variable} is 0, so the agent or the programs it starts accept any certificate. Anyone on the network between you and a service can read and change the traffic, API keys included.",
125
+ fix: "Remove it. If your network inspects HTTPS, add its certificate with NODE_EXTRA_CA_CERTS in your own settings instead.",
126
+ },
127
+ "ENV-CA-PROJECT": {
128
+ severity: "medium", category: "permissions",
129
+ title: "{where} makes the agent trust a certificate this project chose",
130
+ why: "{variable} set by this project adds a certificate authority, and whoever holds its key can read and change the agent's encrypted traffic.",
131
+ fix: "Remove it from the project. Add a certificate your network needs in your own settings.",
85
132
  },
86
133
  "CC-ENV-SECRET": {
87
134
  severity: "high", category: "permissions", tool: "Claude Code",
@@ -91,12 +138,12 @@ export const RULES = {
91
138
  },
92
139
  "CC-USER-SECRET": {
93
140
  severity: "high", category: "permissions", tool: "Claude Code",
94
- title: ".claude.json contains a credential",
95
- why: "This file holds Claude Code's user settings and account data, and here it sits where other tools and agents can read it.",
96
- fix: "Keep it out of project folders, and rotate the key if the file was shared or committed.",
141
+ title: "A .claude.json with a credential is inside this project",
142
+ why: "This file holds Claude Code's account data and user settings. Inside a project, any agent or tool working here can read it, and it can be committed with the code.",
143
+ fix: "Move it out of the project, and rotate the credential if the file was ever committed or shared.",
97
144
  },
98
145
  "CX-YOLO": {
99
- severity: "critical", category: "permissions", tool: "Codex",
146
+ severity: "high", category: "permissions", tool: "Codex",
100
147
  title: "Codex runs commands with no sandbox and no approvals",
101
148
  why: 'approval_policy is "never" and sandbox_mode is "danger-full-access"{where}, so commands run on your machine without limits or prompts.',
102
149
  fix: 'Use sandbox_mode = "workspace-write" with approval_policy = "on-request".',
@@ -111,7 +158,19 @@ export const RULES = {
111
158
  severity: "medium", category: "permissions", tool: "Codex",
112
159
  title: "Codex never asks before running commands",
113
160
  why: 'approval_policy is "never"{where}, so anything the sandbox allows runs without a prompt.',
114
- fix: 'Use "on-request" or "untrusted".',
161
+ fix: 'Use "on-request", so Codex asks before doing anything the sandbox blocks.',
162
+ },
163
+ "CX-RULE-ALLOW": {
164
+ severity: "high", category: "permissions", tool: "Codex",
165
+ title: "{file} lets {commands} run outside the sandbox without asking",
166
+ why: "A prefix_rule with decision = \"allow\", or no decision, lets any command that starts with its pattern run outside the sandbox without asking. The patterns in this file start with {list}.",
167
+ fix: "Set decision = \"prompt\" on these rules, or narrow each pattern to the exact command you need. Delete the rules for commands you approved only once.",
168
+ },
169
+ "CX-RULES-UNREAD": {
170
+ severity: "medium", category: "permissions", tool: "Codex",
171
+ title: "A Codex rule in {file} can't be checked",
172
+ why: "It's built by a function, a loop or an expression, so misconfig can't tell which commands it lets run without asking. Codex runs the file as code, so the rule still applies.",
173
+ fix: "Write each rule out as prefix_rule(pattern = [...], decision = ...), so you and misconfig can read what it allows.",
115
174
  },
116
175
  "CX-NETWORK": {
117
176
  severity: "medium", category: "permissions", tool: "Codex",
@@ -120,21 +179,27 @@ export const RULES = {
120
179
  fix: "Turn it off and allow the network for a single task when you need it.",
121
180
  },
122
181
  "GM-YOLO": {
123
- severity: "high", category: "permissions", tool: "Gemini CLI",
124
- title: "Gemini CLI approves every tool call",
125
- why: "YOLO mode is on in {file}, so shell commands and edits run without asking.",
126
- fix: "Turn YOLO mode off and approve tools as they come up.",
182
+ severity: "info", category: "permissions", tool: "Gemini CLI",
183
+ title: "Gemini CLI settings ask for YOLO mode",
184
+ why: "{file} asks for YOLO mode, which approves every tool call. Current Gemini CLI ignores it in settings and turns YOLO on only with --yolo or --approval-mode=yolo, so check the scripts and aliases that start Gemini CLI.",
185
+ fix: "Remove it from {file}.",
127
186
  },
128
187
  "GM-AUTO-ACCEPT": {
129
- severity: "medium", category: "permissions", tool: "Gemini CLI",
188
+ severity: "low", category: "permissions", tool: "Gemini CLI",
130
189
  title: "Gemini CLI auto-accepts tool calls",
131
190
  why: "autoAccept is true, so tool calls it considers safe run without asking.",
132
- fix: "Set autoAccept to false in repos you don't fully trust.",
191
+ fix: "Set autoAccept to false.",
192
+ },
193
+ "GM-AUTO-EDIT": {
194
+ severity: "low", category: "permissions", tool: "Gemini CLI",
195
+ title: "Gemini CLI edits files without asking",
196
+ why: "defaultApprovalMode is auto_edit, so Gemini CLI applies file edits without review, including edits to scripts and config that run later.",
197
+ fix: "Set defaultApprovalMode to \"default\".",
133
198
  },
134
199
  "VS-AUTO-APPROVE": {
135
200
  severity: "high", category: "permissions", tool: "GitHub Copilot",
136
201
  title: "VS Code approves agent tools automatically",
137
- why: "{key} is true, so Copilot agent mode runs tools and terminal commands without asking.",
202
+ why: "{setting} turns on automatic approval, so Copilot agent mode runs tools and terminal commands without asking.",
138
203
  fix: "Remove the setting and approve tools per session.",
139
204
  },
140
205
  "VS-TERMINAL-AUTO": {
@@ -143,6 +208,24 @@ export const RULES = {
143
208
  why: "chat.tools.terminal.autoApprove lets agent mode run this without asking, and it can change or send data.",
144
209
  fix: "Limit auto-approval to read-only commands such as git status.",
145
210
  },
211
+ "VS-CLAUDE-SKIP": {
212
+ severity: "high", category: "permissions", tool: "GitHub Copilot",
213
+ title: "Claude in VS Code can skip every permission prompt",
214
+ why: "github.copilot.chat.claudeAgent.allowDangerouslySkipPermissions is true, so the Claude agent in Copilot Chat can run commands and edit files without asking.",
215
+ fix: "Remove the setting.",
216
+ },
217
+ "VS-NO-DEFAULT-RULES": {
218
+ severity: "low", category: "permissions", tool: "GitHub Copilot",
219
+ title: "VS Code's built-in terminal rules are off",
220
+ why: "chat.tools.terminal.ignoreDefaultAutoApproveRules is true, so VS Code's own rules, which always ask before commands such as rm, no longer apply.",
221
+ fix: "Remove the setting.",
222
+ },
223
+ "VS-EDITS-AUTO": {
224
+ severity: "high", category: "permissions", tool: "GitHub Copilot",
225
+ title: "Copilot can change its own settings without asking",
226
+ why: "chat.tools.edits.autoApprove approves edits to VS Code's own settings files, so a prompt injection can have the agent turn on its own auto-approval. That's how CVE-2025-53773 let attackers run code through Copilot.",
227
+ fix: "Remove the entries that cover .vscode files.",
228
+ },
146
229
  "OC-AUTO-SHARE": {
147
230
  severity: "high", category: "permissions", tool: "OpenCode",
148
231
  title: "OpenCode publishes every session automatically",
@@ -152,23 +235,77 @@ export const RULES = {
152
235
  "OC-BASH-ALLOW": {
153
236
  severity: "high", category: "permissions", tool: "OpenCode",
154
237
  title: "OpenCode runs any shell command without asking",
155
- why: "permission.bash allows every command{where}.",
238
+ why: "permission.bash is \"allow\"{where}, so every shell command runs without asking.",
156
239
  fix: 'Set bash to "ask" and allow specific commands, such as "git status": "allow".',
157
240
  },
158
241
  "ZED-ALWAYS-ALLOW": {
159
242
  severity: "high", category: "permissions", tool: "Zed",
160
243
  title: "Zed's agent approves every tool action",
161
- why: "always_allow_tool_actions is true, so edits and terminal commands run without asking.",
162
- fix: "Set it to false.",
244
+ why: "agent.tool_permissions.default is \"allow\", so edits and terminal commands run without asking.",
245
+ fix: 'Set agent.tool_permissions.default to "confirm", and allow specific tools instead.',
246
+ },
247
+ "ZED-TRUST-ALL": {
248
+ severity: "medium", category: "permissions", tool: "Zed",
249
+ title: "Zed trusts every project",
250
+ why: "session.trust_all_worktrees is true, so any project you open can apply its own settings, including context servers that run commands.",
251
+ fix: "Remove the setting and trust projects one at a time.",
252
+ },
253
+ "CU-ALLOW-ALL-SHELL": {
254
+ severity: "high", category: "permissions", tool: "Cursor",
255
+ title: "Cursor's agent runs any command without asking",
256
+ why: "permissions.allow includes {rule}, which approves every shell command.",
257
+ fix: 'Allow specific commands instead, such as "Shell(git status)".',
258
+ },
259
+ "AGENT-ALLOW-SHELL": {
260
+ severity: "high", category: "permissions",
261
+ title: "A custom agent in {file} runs shell commands without asking",
262
+ why: "{setting} in this file pre-approves “{rule}”, so this agent runs matching commands without asking. A project's agent replaces any of yours with the same name, so in a project from someone else, picking that name runs their version.",
263
+ fix: "Remove the entry, or allow only the exact commands you need and deny the rest.",
264
+ },
265
+ "CU-NO-SANDBOX": {
266
+ severity: "high", category: "permissions", tool: "Cursor",
267
+ title: "Cursor runs agent commands without a sandbox",
268
+ why: 'sandbox.json sets type to "insecure_none", so commands can change any file and reach the network.',
269
+ fix: "Remove the setting to use Cursor's sandbox.",
270
+ },
271
+ "CL-YOLO": {
272
+ severity: "high", category: "permissions", tool: "Cline",
273
+ title: "Cline's YOLO mode is on",
274
+ why: "yoloModeToggled is true, so Cline approves every action, including commands and file changes, without asking.",
275
+ fix: "Turn YOLO mode off in Cline's settings.",
276
+ },
277
+ "CL-AUTO-COMMANDS": {
278
+ severity: "high", category: "permissions", tool: "Cline",
279
+ title: "Cline runs any command without asking",
280
+ why: "Auto-approve has “Execute all commands” on, so commands the model itself marks as needing approval run without asking too.",
281
+ fix: "Turn off “Execute all commands” in Cline's auto-approve settings. “Execute safe commands” still trusts the model to say which commands are safe.",
282
+ },
283
+ "GROK-ALWAYS-APPROVE": {
284
+ severity: "high", category: "permissions", tool: "Grok",
285
+ title: "Grok approves every action",
286
+ why: 'permission_mode is "{mode}", so commands and file changes run without asking.',
287
+ fix: "Remove permission_mode to go back to asking first.",
288
+ },
289
+ "AMP-ALLOW-ALL": {
290
+ severity: "high", category: "permissions", tool: "Amp",
291
+ title: "Amp runs every tool without asking",
292
+ why: "amp.dangerouslyAllowAll is true, so commands and file changes run without a prompt.",
293
+ fix: "Remove the setting and allow specific commands instead.",
294
+ },
295
+ "GOOSE-AUTO": {
296
+ severity: "high", category: "permissions", tool: "Goose",
297
+ title: "Goose runs tools without asking",
298
+ why: "GOOSE_MODE is auto, so Goose runs commands and changes files without asking.",
299
+ fix: 'Set GOOSE_MODE to "approve" or "smart_approve".',
163
300
  },
164
301
  "AIDER-YES": {
165
- severity: "medium", category: "permissions", tool: "Aider",
166
- title: "Aider answers yes to every prompt",
167
- why: "yes-always is true, so Aider runs suggested commands and edits without confirmation.",
168
- fix: "Remove yes-always.",
302
+ severity: "low", category: "permissions", tool: "Aider",
303
+ title: "Aider adds and edits files without asking",
304
+ why: "yes-always is true, so Aider answers yes for you when it asks to add a file to the chat, create a file or edit one that isn't in the chat. Files it adds are sent to the model. Shell commands still need your explicit yes.",
305
+ fix: "Remove yes-always, so Aider asks before it adds or edits files.",
169
306
  },
170
307
 
171
- // --- MCP servers -------------------------------------------------------
308
+ // --- MCP servers ---------------------------------------------------------
172
309
  "MCP-SECRET": {
173
310
  severity: "high", category: "mcp",
174
311
  title: "Secret in plain text in MCP config: {server} → {key}",
@@ -178,14 +315,14 @@ export const RULES = {
178
315
  "MCP-UNPINNED": {
179
316
  severity: "medium", category: "mcp",
180
317
  title: "MCP server “{server}” runs an unpinned package",
181
- why: "“{command}” fetches the newest release every time it starts. A hijacked release would run with your agent's access.",
182
- fix: "Pin an exact version, such as {pkg}@1.2.3.",
318
+ why: "“{command}” fetches the newest release each time the server starts. If a later release is malicious, it runs on your computer with your permissions. That happened with postmark-mcp (Koi Security, September 2025), whose version 1.0.16 secretly copied every email it sent to the attacker.",
319
+ fix: "Pin {pkg} to an exact version. To see the newest, run {lookup}.",
183
320
  },
184
321
  "MCP-HTTP": {
185
322
  severity: "high", category: "mcp",
186
323
  title: "MCP server “{server}” connects over plain HTTP",
187
324
  why: "Traffic to {host} is unencrypted, so tokens and tool results can be read or changed in transit.",
188
- fix: "Use https://.",
325
+ fix: "Switch the server's URL to https://.",
189
326
  },
190
327
  "MCP-URL-TOKEN": {
191
328
  severity: "high", category: "mcp",
@@ -205,6 +342,12 @@ export const RULES = {
205
342
  why: "The server gets your whole home folder or drive, not just this project.",
206
343
  fix: "Pass the project folder instead.",
207
344
  },
345
+ "MCP-LOCAL-CODE": {
346
+ severity: "medium", category: "mcp",
347
+ title: "MCP server “{server}” runs code from this project",
348
+ why: "It starts “{path}”, which comes with the project, whenever the agent starts the server, with your permissions. In a project from someone else, that's their code.",
349
+ fix: "Read what it runs before you approve the server, or remove the server.",
350
+ },
208
351
  "MCP-SHELL": {
209
352
  severity: "medium", category: "mcp",
210
353
  title: "MCP server “{server}” can run shell commands",
@@ -213,14 +356,14 @@ export const RULES = {
213
356
  },
214
357
  "MCP-ALWAYS-ALLOW": {
215
358
  severity: "medium", category: "mcp",
216
- title: "MCP tools pre-approved for “{server}”",
217
- why: "{key} lets {count} run without asking.",
218
- fix: "Remove tools that write, send or execute.",
359
+ title: "MCP server “{server}” has tools approved in advance",
360
+ why: "The {setting} setting lets {count} run without asking, including any that write files, send data or run commands.",
361
+ fix: "Remove {setting} so the agent asks before each tool call. If you want fewer prompts, pre-approve only tools that read.",
219
362
  },
220
363
  "MCP-MANY": {
221
- severity: "low", category: "mcp",
222
- title: "{count} MCP servers configured",
223
- why: "Each server adds tools the agent can be talked into using.",
364
+ severity: "info", category: "mcp",
365
+ title: "{tool} has {count} MCP servers",
366
+ why: "Each server adds tools the agent can use, and a prompt injection can ask it to use any of them.",
224
367
  fix: "Remove the servers you don't use.",
225
368
  },
226
369
 
@@ -228,20 +371,20 @@ export const RULES = {
228
371
  "TXT-TAGS": {
229
372
  severity: "critical", category: "instructions",
230
373
  title: "Invisible text in {file}",
231
- why: "It contains {count} Unicode tag characters. Agents read them; you can't see them. The hidden text reads: “{decoded}”.",
374
+ why: "It contains {count} Unicode tag characters. Most editors and web pages don't display them, but the model receives them as text. Decoded, they read: “{decoded}”",
232
375
  fix: "Delete the hidden characters and check where the file came from.",
233
376
  },
234
377
  "TXT-BIDI": {
235
- severity: "high", category: "instructions",
378
+ severity: "medium", category: "instructions",
236
379
  title: "Text-direction tricks in {file}",
237
- why: "Bidirectional control characters make text display differently from what the agent reads.",
238
- fix: "Remove the control characters.",
380
+ why: "It contains characters that change the direction text is displayed in, so what you see on screen can differ from what the agent reads.",
381
+ fix: "Delete the direction characters, then read the file again.",
239
382
  },
240
383
  "TXT-ZERO-WIDTH": {
241
- severity: "high", category: "instructions",
242
- title: "Hidden zero-width characters in {file}",
243
- why: "{count} invisible characters can hide or split instructions.",
244
- fix: "Remove them.",
384
+ severity: "medium", category: "instructions",
385
+ title: "Zero-width characters in {file}",
386
+ why: "{count} characters that take up no space are in its text. They can hide encoded text, or split words so a search or filter misses them, while the agent still reads them.",
387
+ fix: "Delete them. If you didn't add them, check where the file came from.",
245
388
  },
246
389
  "TXT-HIDDEN-COMMENT": {
247
390
  severity: "high", category: "instructions",
@@ -252,19 +395,19 @@ export const RULES = {
252
395
  "TXT-REMOTE-EXEC": {
253
396
  severity: "high", category: "instructions",
254
397
  title: "{file} tells the agent to download and run code",
255
- why: "Piping a download into a shell runs whatever the server returns that day.",
256
- fix: "Pin the installer and run it yourself, or keep the script in the repo.",
398
+ why: "The agent would run whatever that address serves without review, and whoever controls the address can change it at any time.",
399
+ fix: "Download the installer at a fixed version, check its checksum and run it yourself, or keep the script in the repo, where changes are reviewed.",
257
400
  },
258
401
  "TXT-EXFIL": {
259
402
  severity: "high", category: "instructions",
260
- title: "{file} points at a data-collection endpoint",
261
- why: "{host} is commonly used to capture data sent by tools and scripts.",
262
- fix: "Remove the URL unless you put it there.",
403
+ title: "{file} points at a service that collects what's sent to it",
404
+ why: "Whoever set up the address on {host}, or has the link, can read what's sent there. Security testers use these services, and so do attackers moving stolen data out.",
405
+ fix: "Remove the address unless you set it up yourself.",
263
406
  },
264
407
  "TXT-OVERRIDE": {
265
408
  severity: "medium", category: "instructions",
266
409
  title: "{file} tries to override the agent's safeguards",
267
- why: "“{phrase}” is typical of prompt injection.",
410
+ why: "“{phrase}” tells the agent to set aside its rules. Real project instructions don't need to say that, and prompt injections usually do.",
268
411
  fix: "Remove the line, and check who last changed the file.",
269
412
  },
270
413
  "TXT-SECRET-ACCESS": {
@@ -286,21 +429,21 @@ export const RULES = {
286
429
  fix: "Copy the content into the repo or drop the import.",
287
430
  },
288
431
  "TXT-HUGE": {
289
- severity: "low", category: "instructions",
432
+ severity: "info", category: "instructions",
290
433
  title: "{file} is very long ({size})",
291
434
  why: "Long instruction files are hard to review, so added lines are easy to miss.",
292
435
  fix: "Keep instructions short and move reference material elsewhere.",
293
436
  },
294
437
  "SPRAWL": {
295
- severity: "low", category: "instructions",
438
+ severity: "info", category: "instructions",
296
439
  title: "{count} files steer your agents",
297
440
  why: "{list} each tell an agent what to do. When they disagree, agents behave differently depending on which file they read.",
298
441
  fix: "Keep one source, such as AGENTS.md, and point the others to it.",
299
442
  },
300
443
  "FLAG-SCRIPT": {
301
444
  severity: "high", category: "hooks",
302
- title: "Script launches an agent with approvals off",
303
- why: "{where} runs “{flag}”, which turns off the agent's permission checks.",
445
+ title: "Script starts an agent with approvals off",
446
+ why: "{where} starts an agent with “{flag}”, which turns off its permission checks.",
304
447
  fix: "Remove the flag, or run that script only inside a throwaway container.",
305
448
  },
306
449
  "FLAG-ALIAS": {
@@ -312,40 +455,76 @@ export const RULES = {
312
455
  "FLAG-DOCS": {
313
456
  severity: "medium", category: "instructions",
314
457
  title: "{file} recommends turning approvals off",
315
- why: "It tells people or agents to use “{flag}”.",
316
- fix: "Recommend an allowlist setup instead.",
458
+ why: "It tells people or agents to start an agent with “{flag}”, which turns off its approval prompts.",
459
+ fix: "Recommend allowing specific commands in the agent's settings instead.",
317
460
  },
318
461
 
319
- // --- Hooks -------------------------------------------------------------
462
+ // --- Hooks ---------------------------------------------------------------
463
+ "ENV-CODE-LOAD": {
464
+ severity: "high", category: "hooks",
465
+ title: "{variable} in {where} runs extra code inside the agent's commands",
466
+ why: "{variable} changes what programs load, or which programs run, when the agent starts a command. Set here, it can run the project's own code inside every command, and nothing in the commands shows it.",
467
+ fix: "Remove {variable}, unless you set it yourself and know what it loads.",
468
+ },
469
+ "MCP-ENV-CODE-LOAD": {
470
+ severity: "high", category: "mcp",
471
+ title: "MCP server “{server}” sets {variable}, which runs extra code",
472
+ why: "{variable} makes the server's program load a module, library or script as it starts, so the server runs code that isn't part of its package.",
473
+ fix: "Remove {variable} from the server's env, unless you set it yourself and know what it loads.",
474
+ },
475
+ "PROJECT-AUTORUN": {
476
+ severity: "medium", category: "hooks",
477
+ title: "{file} runs commands automatically",
478
+ why: "{where} runs “{cmd}” automatically, without asking. In a project from someone else, that's their code running on your computer once you trust the folder.",
479
+ fix: "Keep it only if you know what it runs. In a project from someone else, read the command and any script it starts before you trust the folder.",
480
+ },
481
+ "TASK-FOLDER-OPEN": {
482
+ severity: "high", category: "hooks",
483
+ title: "A task in {file} runs as soon as the folder opens",
484
+ why: "Its runOptions.runOn is \"folderOpen\", so VS Code and editors built on it run “{cmd}” when the folder opens. Cursor ships with Workspace Trust off and runs it without asking. VS Code asks you to trust the folder first, unless Workspace Trust is off.",
485
+ fix: "Remove runOptions.runOn from the task. In Cursor, set security.workspace.trust.enabled to true, so it asks before it runs a folder's tasks.",
486
+ },
320
487
  "HOOK-REMOTE-EXEC": {
321
488
  severity: "critical", category: "hooks",
322
- title: "Hook downloads and runs code",
323
- why: "{where} runs “{cmd}” automatically, outside the agent's approval prompts.",
324
- fix: "Remove the hook, or replace it with a pinned script kept in the repo.",
489
+ title: "{where} downloads and runs code",
490
+ why: "It runs “{cmd}” automatically, without asking. Whatever that address serves runs on your computer with your permissions, and its owner can change it at any time.",
491
+ fix: "Remove it, or replace the download with a script kept in the repo.",
325
492
  },
326
493
  "HOOK-NETWORK": {
327
494
  severity: "high", category: "hooks",
328
- title: "Hook sends data over the network",
329
- why: "{where} runs “{cmd}” automatically and can send prompts, files or output elsewhere.",
330
- fix: "Remove it unless you own the destination.",
495
+ title: "{where} sends data over the network",
496
+ why: "It runs “{cmd}” automatically, without asking, and can send prompts, files or command output to another computer.",
497
+ fix: "Remove it unless you run the server it sends to.",
498
+ },
499
+ "HOOK-HTTP": {
500
+ severity: "high", category: "hooks", tool: "Claude Code",
501
+ title: "{where} posts session details to {host}",
502
+ why: "On each event, it sends details such as prompts, commands and file paths to {host}.",
503
+ fix: "Remove the hook unless you run that server and trust everyone who can read its data.",
331
504
  },
332
505
  "HOOK-DESTRUCTIVE": {
333
506
  severity: "medium", category: "hooks",
334
- title: "Hook runs a destructive command",
335
- why: "{where} runs “{cmd}” automatically.",
336
- fix: "Make the hook read-only, or have it ask first.",
507
+ title: "{where} runs a destructive command",
508
+ why: "It runs “{cmd}” automatically, without asking, so it can delete or overwrite files each time it runs.",
509
+ fix: "Remove the command, or limit it to files inside the project.",
337
510
  },
338
511
  "HOOK-OUTSIDE": {
339
512
  severity: "medium", category: "hooks",
340
- title: "Hook runs a script from outside the project",
341
- why: "{where} runs “{cmd}”, which isn't reviewed with this repo.",
342
- fix: "Keep hook scripts in the repo.",
513
+ title: "{where} runs a script from outside the project",
514
+ why: "It runs “{cmd}”. That script isn't part of this repo, so it can change without anyone reviewing it.",
515
+ fix: "Keep the script in the repo.",
516
+ },
517
+ "CONT-DATA": {
518
+ severity: "high", category: "hooks", tool: "Continue",
519
+ title: "Continue sends your session data to a web address",
520
+ why: "A data destination in {file} sends what you do in Continue, such as prompts and edits, to {host}.",
521
+ fix: "Remove the destination unless you run that server.",
343
522
  },
344
523
 
345
524
  // --- Workspace -----------------------------------------------------------
346
525
  "WS-HOME": {
347
526
  severity: "high", category: "workspace",
348
- title: "This looks like your home folder",
527
+ title: "Agent workspace is your home folder",
349
528
  why: "An agent opened here can read everything in it, including {markers}.",
350
529
  fix: "Open the agent in a project folder instead.",
351
530
  },
@@ -356,16 +535,22 @@ export const RULES = {
356
535
  fix: "Move the project into its own folder before running an agent.",
357
536
  },
358
537
  "WS-POISON-RISK": {
359
- severity: "critical", category: "workspace",
538
+ severity: "high", category: "workspace",
360
539
  title: "Files in {place} can give orders to agents started there",
361
- why: "{files} read like instructions to an agent, and an agent started in {place} treats the files there as context. Anything saved there later can add more.",
540
+ why: "Instructions for an agent were found in {files}. An agent started in {place} treats the files there as context, and anything saved there later can add more.",
362
541
  fix: "Start agents in project folders only, and delete instruction files you didn't write.",
363
542
  },
364
543
  "WS-OPENED-IN": {
365
544
  severity: "high", category: "workspace",
366
- title: "{tool} has been started in {place}",
545
+ title: "{tool} was started in {place}",
367
546
  why: "{risk} The folder is listed in {file}.",
368
- fix: "Start agents from a project folder. To make Claude Code forget this folder, remove its entry under projects in {file}.",
547
+ fix: "Start agents from a project folder. To make {tool} forget this folder, remove its entry under projects in {file}.",
548
+ },
549
+ "WS-TRUSTED-DIR": {
550
+ severity: "high", category: "workspace",
551
+ title: "{tool} trusts {place}",
552
+ why: "{file} marks it as a trusted folder, so {tool} asks fewer questions there. {risk}",
553
+ fix: "Remove that entry from {file}, and trust only project folders.",
369
554
  },
370
555
  "CX-TRUSTED-DIR": {
371
556
  severity: "high", category: "workspace", tool: "Codex",
@@ -394,19 +579,233 @@ export const RULES = {
394
579
  "WS-ENV-COMMITTED": {
395
580
  severity: "medium", category: "workspace",
396
581
  title: "Secret files aren't ignored by git",
397
- why: "This is a git repo and .gitignore doesn't cover {files}.",
398
- fix: "Add .env* to .gitignore, and rotate anything already committed.",
582
+ why: "This is a git repo and no ignore rule covers {files}, so git add . would stage the secrets with the code.",
583
+ fix: "Add {files} to .gitignore. If any are already tracked, run git rm --cached on them, then rotate the secrets they hold.",
399
584
  },
400
585
  "WS-LOCAL-SETTINGS": {
401
586
  severity: "low", category: "workspace",
402
- title: "Personal agent settings may get committed",
403
- why: "{files} aren't listed in .gitignore.",
404
- fix: "Add them to .gitignore.",
587
+ title: "Personal agent settings can be committed by mistake",
588
+ why: "No ignore rule covers {files}, so settings meant for one person can end up in the repo.",
589
+ fix: "Add {files} to .gitignore.",
590
+ },
591
+ "WS-UNPARSED": {
592
+ severity: "low", category: "workspace",
593
+ title: "{file} couldn't be checked",
594
+ why: "Its settings couldn't be read, usually because it isn't valid JSON or TOML, so none of them were checked. The agent may still apply some of them.",
595
+ fix: "Fix the syntax error, then run the check again.",
596
+ },
597
+ "PLUGIN-CODE": {
598
+ severity: "medium", category: "hooks",
599
+ title: "{tool} runs {file} when it starts here, without asking",
600
+ why: "{tool} loads the plugins and tools in this project each time it starts, and they can do anything you can. In a project from someone else, that's their code running on your computer. misconfig lists plugin code by name and doesn't read it.",
601
+ fix: "Read the code before you start {tool} in this project, and delete it if you didn't add it.",
602
+ },
603
+ "WS-LINK-SECRET": {
604
+ severity: "high", category: "workspace",
605
+ title: "{file} is a link to a credential file",
606
+ why: "Agents follow the link and read the file as instructions, so what's in it goes to the agent and the model behind it. misconfig didn't open it.",
607
+ fix: "Replace the link with an ordinary file. If an agent has read it, change the keys in the file it points to.",
608
+ },
609
+ "WS-LINK-FOLDER": {
610
+ severity: "medium", category: "workspace",
611
+ title: "{file} is a link to a folder outside the project",
612
+ why: "Agents read the settings, rules and skills in it as this project's own. misconfig didn't open it, since it isn't part of the project.",
613
+ fix: "Replace the link with a real folder in the project. If you made the link on purpose, check what's in the folder by hand.",
614
+ },
615
+ "WS-LINK-OUTSIDE": {
616
+ severity: "medium", category: "workspace",
617
+ title: "{file} is a link to a file outside the project",
618
+ why: "Agents follow the link and read the file it points to as instructions. misconfig didn't open it. In a project from someone else, a link like this can put a file from your computer into what the agent reads.",
619
+ fix: "Replace the link with an ordinary file in the project. If you made the link on purpose, check the file it points to by hand.",
620
+ },
621
+ "WS-PARTLY-CHECKED": {
622
+ severity: "low", category: "workspace",
623
+ title: "Only the start of {file} was checked",
624
+ why: "misconfig reads agent files up to 400 KB, and this one is larger, so only its start was checked. The agent still reads the whole file.",
625
+ fix: "Review the rest by hand, or split it into smaller files.",
405
626
  },
406
627
  "WS-TOO-LARGE": {
407
- severity: "info", category: "workspace",
408
- title: "{count} agent files were too large to check",
409
- why: "Files over 400 KB are skipped.",
410
- fix: "Review them by hand.",
628
+ severity: "low", category: "workspace",
629
+ title: "{file} is too large to check",
630
+ why: "misconfig reads agent files up to 400 KB each and 4 MB in all. This one is over a limit, so nothing in it was checked, but the agent still reads it.",
631
+ fix: "Review it by hand, or split it into smaller files.",
632
+ },
633
+
634
+ // --- Installed code --------------------------------------------------------
635
+ // MCP packages, editor extensions, skills and agent versions, checked
636
+ // against the list in known.js and, with --lookup, against OSV.dev.
637
+ "PKG-MALICIOUS": {
638
+ severity: "critical", category: "installs",
639
+ title: "MCP server “{server}” runs a known malicious package",
640
+ why: "{known} is {what}. Source: {source}.",
641
+ fix: "Remove the server, then change any keys and tokens your agent could reach.",
642
+ },
643
+ "PKG-MALICIOUS-VERSION": {
644
+ severity: "high", category: "installs",
645
+ title: "MCP server “{server}” runs a package that has shipped malware",
646
+ why: "{versions} of {known} {were} malware. The server doesn't pin a version, so it may have run {one}. Source: {source}.",
647
+ fix: "Remove the server, or pin {known} to a version you've checked, and change any keys your agent could reach.",
648
+ },
649
+ "PKG-LOOKALIKE": {
650
+ severity: "high", category: "installs",
651
+ title: "MCP server “{server}” runs {pkg}, a lookalike of {official}",
652
+ why: "The name is close to {official}, but it's a different package. Lookalike names are how malicious packages get installed by mistake, including by AI agents that guess a package's name.",
653
+ fix: "Check who publishes {pkg}. If you meant {official}, switch to it.",
654
+ },
655
+ "PKG-REMOTE-SOURCE": {
656
+ severity: "medium", category: "installs",
657
+ title: "MCP server “{server}” runs code straight from {origin}",
658
+ why: "Whatever is there when the server starts is what runs, with your permissions. A change there needs no release and no review.",
659
+ fix: "Use a published release with a pinned version, or pin the repository to a commit.",
660
+ },
661
+ "PKG-RISKY-PLACE": {
662
+ severity: "high", category: "installs",
663
+ title: "MCP server “{server}” runs a program from {place}",
664
+ why: "Files there come from downloads and other programs, not from a release you chose, and anything that can write there can change what the server runs.",
665
+ fix: "Install the server from its official release, or move the program somewhere only you control.",
666
+ },
667
+ "EXT-MALICIOUS": {
668
+ severity: "critical", category: "installs",
669
+ title: "{editor} has a known malicious extension: {ext}",
670
+ why: "{ext} {version} is {what}. Source: {source}.",
671
+ fix: "{advice}.",
672
+ },
673
+ "EXT-IMPERSONATION": {
674
+ severity: "high", category: "installs",
675
+ title: "{editor} extension {ext} imitates {official}",
676
+ why: "Its name copies the official {official} extension, {officialId}, but someone else publishes it. Extensions run with your permissions as soon as the editor loads them, so a copy can do anything you can.",
677
+ fix: "If you meant to install {official}, uninstall {ext} and install {officialId} instead.",
678
+ },
679
+ "EXT-VSIX": {
680
+ severity: "low", category: "installs",
681
+ title: "{editor} has {fromFiles}: {list}",
682
+ why: "An extension installed from a VSIX file skips the marketplace's checks and doesn't update itself, so security fixes don't reach it.",
683
+ fix: "Reinstall from the marketplace where you can.",
684
+ },
685
+ "AGENT-VULN": {
686
+ severity: "high", category: "installs",
687
+ title: "{tool} {version} is missing {fixes}",
688
+ why: "{lead}: {worst} ({ref}). Version {fixed} has {every}.",
689
+ fix: "Update {tool}: {update}.",
690
+ },
691
+ "AGENT-VULN-MINOR": {
692
+ severity: "medium", category: "installs",
693
+ title: "{tool} {version} is missing {fixes}",
694
+ why: "{lead}: {worst} ({ref}). Version {fixed} has {every}.",
695
+ fix: "Update {tool}: {update}.",
696
+ },
697
+ "AGENT-VULN-LOW": {
698
+ severity: "low", category: "installs",
699
+ title: "{tool} {version} is missing {fixes}",
700
+ why: "{lead}: {worst} ({ref}). Version {fixed} has {every}.",
701
+ fix: "Update {tool}: {update}.",
702
+ },
703
+ "DEP-MALICIOUS": {
704
+ severity: "critical", category: "installs",
705
+ title: "{known} {version} is installed, {status}",
706
+ why: "It's {what}. Source: {source}.",
707
+ fix: "Remove it, delete node_modules and reinstall from a clean lockfile, then change your GitHub, npm and cloud keys.",
708
+ },
709
+ "DEP-LOCKFILE": {
710
+ severity: "critical", category: "installs",
711
+ title: "{file} pins {known} {version}, {status}",
712
+ why: "It's {what}. Source: {source}. The next clean install, in CI or on another computer, installs it.",
713
+ fix: "{remedy}. If it was ever installed, change your GitHub, npm and cloud keys.",
714
+ },
715
+ "ATTACK-TRACE": {
716
+ severity: "critical", category: "installs",
717
+ title: "Signs of {campaign} on this computer",
718
+ why: "{what}. Found: {files}.",
719
+ fix: "{advice}.",
720
+ },
721
+ "ATTACK-TRACE-WEAK": {
722
+ severity: "medium", category: "installs",
723
+ title: "A file named like one {campaign} leaves is on this computer",
724
+ why: "{what}. Found: {files}.",
725
+ fix: "{advice}.",
726
+ },
727
+ "ATTACK-SHELL-LINE": {
728
+ severity: "critical", category: "installs",
729
+ title: "{file} has a line {campaign} adds",
730
+ why: "{what}.",
731
+ fix: "{advice}.",
732
+ },
733
+ "ATTACK-WORKFLOW": {
734
+ severity: "critical", category: "installs",
735
+ title: "{file} is a workflow {campaign} adds",
736
+ why: "{what}.",
737
+ fix: "{advice}.",
738
+ },
739
+ "ATTACK-WORKFLOW-WEAK": {
740
+ severity: "medium", category: "installs",
741
+ title: "{file} is named like a workflow {campaign} adds",
742
+ why: "{what}.",
743
+ fix: "{advice}.",
744
+ },
745
+ "SKILL-BINARY": {
746
+ severity: "medium", category: "installs",
747
+ title: "Skill “{skill}” comes with {programs}",
748
+ why: "{files} can't be read like the rest of a skill, and the skill can tell the agent to run {them}. Skills from public registries have been used to deliver malware.",
749
+ fix: "Remove the skill unless you trust where it came from, and get any tool it needs from the tool's own release.",
750
+ },
751
+ "PLUGIN-MARKETPLACE": {
752
+ severity: "low", category: "installs", tool: "Claude Code",
753
+ title: "Claude Code can install plugins from {marketplaces} that Anthropic doesn't run",
754
+ why: "{list}. A plugin runs with Claude Code's access. misconfig checks plugins' hooks and MCP servers, not the rest of their code.",
755
+ fix: "Remove marketplaces you don't use with /plugin marketplace remove, and read a plugin before you install it.",
756
+ },
757
+ "TXT-REMOTE-INSTRUCTIONS": {
758
+ severity: "medium", category: "instructions",
759
+ title: "{file} tells the agent to take instructions from a web page",
760
+ why: "Whoever runs {host} decides what the agent does next, and the page can change after this file was reviewed.",
761
+ fix: "Copy the steps the agent needs into the repository, where changes are reviewed.",
762
+ },
763
+ "TXT-PASTE-SITE": {
764
+ severity: "medium", category: "instructions",
765
+ title: "{file} sends the agent to a paste site",
766
+ why: "Whoever posted the text on {host} can change it at any time, so what the agent reads later can differ from what you checked. In the ClawHavoc campaign (Koi Security, February 2026), malicious ClawHub skills sent people to a script on a paste site.",
767
+ fix: "Keep the steps in the repository, where changes are reviewed.",
768
+ },
769
+ "TXT-ARCHIVE-PASSWORD": {
770
+ severity: "high", category: "instructions",
771
+ title: "{file} asks for a password-protected download",
772
+ why: "A password keeps antivirus and email scanners from looking inside an archive, which is why malware is often shipped that way. The ClawHavoc campaign (Koi Security, February 2026) used one to deliver a trojan.",
773
+ fix: "Don't run it. Install tools from their official source instead.",
774
+ },
775
+ "TXT-QUARANTINE": {
776
+ severity: "high", category: "instructions",
777
+ title: "{file} turns off macOS's check on downloaded apps",
778
+ why: "Removing the quarantine flag with xattr, or turning Gatekeeper off with spctl, skips the check macOS runs before a downloaded app opens, so the download runs with no warning. Mac info-stealers often tell people to run these commands.",
779
+ fix: "Don't run it on files you downloaded. Install the tool from a signed release.",
780
+ },
781
+ "TXT-KNOWN-C2": {
782
+ severity: "critical", category: "instructions",
783
+ title: "{file} points at a known malware server",
784
+ why: "{host} was used by {campaign}.",
785
+ fix: "Remove whatever uses it, check what has already run, and change any keys the agent could reach.",
786
+ },
787
+ "LOOKUP-MALICIOUS": {
788
+ severity: "critical", category: "installs",
789
+ title: "{name} is listed as malware",
790
+ why: "OSV.dev lists {name} as malicious ({ref}). {where}.",
791
+ fix: "Remove it, then change any keys and tokens it could reach.",
792
+ },
793
+ "LOOKUP-VULN": {
794
+ severity: "high", category: "installs",
795
+ title: "{name} {version} has {vulns}",
796
+ why: "{lead}: {summary} ({ref}). Found on OSV.dev. {where}.",
797
+ fix: "{advice}.",
798
+ },
799
+ "LOOKUP-VULN-MINOR": {
800
+ severity: "medium", category: "installs",
801
+ title: "{name} {version} has {vulns}",
802
+ why: "{lead}: {summary} ({ref}). Found on OSV.dev. {where}.",
803
+ fix: "{advice}.",
804
+ },
805
+ "LOOKUP-VULN-LOW": {
806
+ severity: "low", category: "installs",
807
+ title: "{name} {version} has {vulns}",
808
+ why: "{lead}: {summary} ({ref}). Found on OSV.dev. {where}.",
809
+ fix: "{advice}.",
411
810
  },
412
811
  };