codegate-ai 0.9.0 → 0.9.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/layer2-static/rules/claude-code.json +16 -0
- package/dist/layer2-static/rules/codex.json +16 -0
- package/dist/layer2-static/rules/common.json +15 -0
- package/dist/layer2-static/rules/copilot.json +15 -0
- package/dist/layer2-static/rules/cursor.json +15 -0
- package/dist/layer2-static/rules/opencode.json +15 -0
- package/package.json +1 -1
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"id": "claude-mcp-consent-bypass",
|
|
4
|
+
"severity": "critical",
|
|
5
|
+
"category": "CONSENT_BYPASS",
|
|
6
|
+
"description": "Project config auto-approves MCP servers",
|
|
7
|
+
"tool": "claude-code",
|
|
8
|
+
"file_pattern": ".claude/settings*.json",
|
|
9
|
+
"query_type": "json_path",
|
|
10
|
+
"query": "$.enableAllProjectMcpServers",
|
|
11
|
+
"condition": "equals_true",
|
|
12
|
+
"cve": "CVE-2025-59536",
|
|
13
|
+
"owasp": ["ASI05", "ASI09"],
|
|
14
|
+
"cwe": "CWE-78"
|
|
15
|
+
}
|
|
16
|
+
]
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"id": "codex-mcp-command-exec",
|
|
4
|
+
"severity": "critical",
|
|
5
|
+
"category": "COMMAND_EXEC",
|
|
6
|
+
"description": "MCP server command execution in Codex config",
|
|
7
|
+
"tool": "codex-cli",
|
|
8
|
+
"file_pattern": ".codex/config.toml",
|
|
9
|
+
"query_type": "toml_path",
|
|
10
|
+
"query": "mcp.*.command",
|
|
11
|
+
"condition": "exists",
|
|
12
|
+
"cve": "CVE-2025-61260",
|
|
13
|
+
"owasp": ["ASI02", "ASI05"],
|
|
14
|
+
"cwe": "CWE-78"
|
|
15
|
+
}
|
|
16
|
+
]
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"id": "env-base-url-override",
|
|
4
|
+
"severity": "critical",
|
|
5
|
+
"category": "ENV_OVERRIDE",
|
|
6
|
+
"description": "Environment override routes API traffic to a potentially untrusted endpoint",
|
|
7
|
+
"tool": "*",
|
|
8
|
+
"file_pattern": ".env|.env.local|.codex/.env",
|
|
9
|
+
"query_type": "env_key",
|
|
10
|
+
"query": "ANTHROPIC_BASE_URL|OPENAI_BASE_URL|OPENAI_API_BASE",
|
|
11
|
+
"condition": "exists",
|
|
12
|
+
"owasp": ["ASI03", "ASI06"],
|
|
13
|
+
"cwe": "CWE-522"
|
|
14
|
+
}
|
|
15
|
+
]
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"id": "copilot-instructions-hidden-unicode",
|
|
4
|
+
"severity": "high",
|
|
5
|
+
"category": "RULE_INJECTION",
|
|
6
|
+
"description": "Copilot instruction file contains hidden Unicode characters",
|
|
7
|
+
"tool": "github-copilot",
|
|
8
|
+
"file_pattern": ".github/copilot-instructions.md",
|
|
9
|
+
"query_type": "text_pattern",
|
|
10
|
+
"query": "[\\u200B\\u200C\\u200D\\u2060\\uFEFF\\u202A-\\u202E]",
|
|
11
|
+
"condition": "regex_match",
|
|
12
|
+
"owasp": ["ASI01"],
|
|
13
|
+
"cwe": "CWE-116"
|
|
14
|
+
}
|
|
15
|
+
]
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"id": "cursor-rule-hidden-unicode",
|
|
4
|
+
"severity": "high",
|
|
5
|
+
"category": "RULE_INJECTION",
|
|
6
|
+
"description": "Rule file contains hidden Unicode characters",
|
|
7
|
+
"tool": "cursor",
|
|
8
|
+
"file_pattern": ".cursorrules|.cursor/rules/*.mdc",
|
|
9
|
+
"query_type": "text_pattern",
|
|
10
|
+
"query": "[\\u200B\\u200C\\u200D\\u2060\\uFEFF\\u202A-\\u202E]",
|
|
11
|
+
"condition": "regex_match",
|
|
12
|
+
"owasp": ["ASI01"],
|
|
13
|
+
"cwe": "CWE-116"
|
|
14
|
+
}
|
|
15
|
+
]
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"id": "opencode-command-array",
|
|
4
|
+
"severity": "critical",
|
|
5
|
+
"category": "COMMAND_EXEC",
|
|
6
|
+
"description": "OpenCode command array can execute local commands",
|
|
7
|
+
"tool": "opencode",
|
|
8
|
+
"file_pattern": "opencode.json",
|
|
9
|
+
"query_type": "json_path",
|
|
10
|
+
"query": "$.mcp.*.command",
|
|
11
|
+
"condition": "exists",
|
|
12
|
+
"owasp": ["ASI02", "ASI05"],
|
|
13
|
+
"cwe": "CWE-78"
|
|
14
|
+
}
|
|
15
|
+
]
|