This commit is contained in:
Oleg Maslov
2026-09-02 10:14:22 +02:00
parent 0c3e2ead3b
commit b20b138fe4
771 changed files with 161561 additions and 9027 deletions

View File

@@ -629,7 +629,9 @@ export class SecurityGate {
const descToScan = [
mcpConfig.name,
pkg.description,
mcpConfig.command,
...(mcpConfig.args || []),
...Object.entries(mcpConfig.env || {}).flatMap(([key, value]) => [key, value]),
].join(' ');
const result = guardian.scanToolDescription(mcpConfig.name, descToScan);
@@ -693,7 +695,13 @@ export class SecurityGate {
*/
private mcpPatternScan(config: McpServerConfig, description: string): SecurityFinding[] {
const findings: SecurityFinding[] = [];
const allText = [config.name, description, ...(config.args || [])].join(' ').toLowerCase();
const allText = [
config.name,
description,
config.command,
...(config.args || []),
...Object.entries(config.env || {}).flatMap(([key, value]) => [key, value]),
].join(' ').toLowerCase();
// ── Critical: Cross-tool instructions ──
const crossToolPatterns = [