You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
description: "Checks for agent definitions that are unusually large, which could hide malicious instructions",
526
+
severity: "medium",
527
+
category: "agents",
528
+
check(file: ConfigFile): ReadonlyArray<Finding>{
529
+
if(file.type!=="agent-md")return[];
530
+
531
+
constcharCount=file.content.length;
532
+
if(charCount>5000){
533
+
return[
534
+
{
535
+
id: `agents-oversized-prompt-${file.path}`,
536
+
severity: "medium",
537
+
category: "agents",
538
+
title: `Agent definition is ${charCount} characters (>${5000} threshold)`,
539
+
description: `The agent definition at ${file.path} is ${charCount} characters long. Unusually large agent definitions may contain hidden malicious instructions buried in legitimate-looking text. Review the full content carefully, especially any instructions near the end of the file.`,
540
+
file: file.path,
541
+
evidence: `${charCount} characters`,
542
+
},
543
+
];
544
+
}
545
+
546
+
return[];
547
+
},
548
+
},
522
549
{
523
550
id: "agents-unrestricted-delegation",
524
551
name: "Agent Has Unrestricted Delegation Instructions",
title: `MCP server "${name}" has security-disabling flag`,
746
+
description: `The MCP server "${name}" uses a flag that ${description}. Removing security features from MCP servers dramatically increases the attack surface.`,
747
+
file: file.path,
748
+
evidence: fullArgs.substring(0,100),
749
+
fix: {
750
+
description: "Remove the security-disabling flag",
751
+
before: pattern.source.replace(/[\\]/g,""),
752
+
after: "# Remove this flag and fix the root cause instead",
0 commit comments