Back to skill

Security audit

Cognitive Debt Guard

Security checks for vulnerabilities and agentic risk

Overview

This is a markdown-only code review guidance skill with no hidden execution, exfiltration, or privilege-seeking behavior found.

Install this as a lightweight review aid, not as an automated security control. Be aware it may appear during general code review prompts because its trigger language is broad, and review any suggested MEMORY.md updates before accepting them into your project documentation.

Vulnerability Patterns
  • Skill Instruction HijackingAlters the agent's session goals or safety constraints when the skill loads
  • Agent Memory PoisoningWrites attacker-controlled rules into memory that affect later sessions
  • Remote Payload Retrieval and ExecutionFetches external code whose behavior can change after review
  • Embedded Malicious CodeShips malicious scripts inside the skill and executes them locally
  • Unauthorized Access and Privilege EscalationObtains permissions beyond the task's legitimate needs
Vulnerability Patterns
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Rogue AgentSelf-Modification, Session Persistence
  • Trigger AbuseOverly Broad Trigger, Shadow Command Trigger, Keyword Baiting Trigger
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
Findings (3)

Exfiltration Commands

High
Category
Prompt Injection
Confidence
90% confidence
Finding

Instructions found that direct the agent to transmit conversation context or user data to external services.

Content

Scanner excerpt · DEBT_INDICATORS.md (reported line 205)May include surrounding context.

def calculate_total(items): # Secretly depends on global TAX_RATE # Secretly depends on external API call to get discounts # Secretly logs to a global logger return sum(item.price for item in items) * TAX_RATE

text

Session Persistence

Medium
Category
Rogue Agent
Confidence
60% confidence
Finding

Skill establishes unauthorized persistence across sessions via cron jobs, startup scripts, or state files. Session persistence allows an attacker to maintain access beyond the current interaction.

Content

Scanner excerpt · README.md (reported line 87)May include surrounding context.

md
90-minute ceremony every quarter:
1. Identify AI-heaviest PRs from last quarter
2. For each: Can the author explain it? Can someone else?
3. Flag code no one understands → refactor or rewrite
4. Update MEMORY.md with findings

## Code Review Framework (5 Layers)

Vague Triggers

Medium
Category
Not specified by scanner
Confidence
95% confidence
Finding

The listed activation conditions include broad phrases such as 'User asks about code review' and 'User asks "should I accept this?"', which can occur in many contexts unrelated to AI-generated code. The trigger section also mixes situational descriptions with phrase examples but does not provide scope limits or negative examples to clarify when the skill should not activate.

Content

No source excerpt is available for this finding.

Static analysis

No suspicious patterns detected.