Back to skill

Security audit

CopilotKit-agent-patterns

Security checks for vulnerabilities and agentic risk

Overview

This is a documentation-only CopilotKit guidance skill with no executable payload or hidden behavior found.

Installers should treat this as framework guidance, not a runnable integration. When applying its examples, use trusted MCP servers, keep API keys in secure environment or secret storage, and require clear user approval for destructive tools such as record deletion.

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
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Excessive AgencyUnrestricted Tool Access, Autonomous Decision Making, Scope Creep
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
  • Supply ChainUnpinned Dependencies, External Script Fetching, Obfuscated Code
Findings (5)

Unbounded Resource Access

Medium
Category
Excessive Agency
Content
---
title: Set maxSteps to Prevent Infinite Loops
impact: CRITICAL
impactDescription: unbounded agents can loop indefinitely, consuming tokens and time
tags: architecture, maxSteps, safety, loops
---
Confidence
75% confidence
Finding
Skill allows unbounded resource consumption (API calls, storage, compute). Without rate limits or quotas, a compromised or misbehaving agent can cause denial-of-service or cost overruns.

Unbounded Resource Access

Medium
Category
Excessive Agency
Content
---
title: Set maxSteps to Prevent Infinite Loops
impact: CRITICAL
impactDescription: unbounded agents can loop indefinitely, consuming tokens and time
tags: architecture, maxSteps, safety, loops
---
Confidence
75% confidence
Finding
Skill allows unbounded resource consumption (API calls, storage, compute). Without rate limits or quotas, a compromised or misbehaving agent can cause denial-of-service or cost overruns.

Unbounded Resource Access

Medium
Category
Excessive Agency
Content
---
title: Set maxSteps to Prevent Infinite Loops
impact: CRITICAL
impactDescription: unbounded agents can loop indefinitely, consuming tokens and time
tags: architecture, maxSteps, safety, loops
---
Confidence
75% confidence
Finding
Skill allows unbounded resource consumption (API calls, storage, compute). Without rate limits or quotas, a compromised or misbehaving agent can cause denial-of-service or cost overruns.

Unbounded Resource Access

Medium
Category
Excessive Agency
Content
---
title: Set maxSteps to Prevent Infinite Loops
impact: CRITICAL
impactDescription: unbounded agents can loop indefinitely, consuming tokens and time
tags: architecture, maxSteps, safety, loops
---
Confidence
75% confidence
Finding
Skill allows unbounded resource consumption (API calls, storage, compute). Without rate limits or quotas, a compromised or misbehaving agent can cause denial-of-service or cost overruns.

Missing User Warnings

Low
Confidence
79% confidence
Finding
This markdown file includes an example that reads `process.env.MCP_API_KEY`, which is access to sensitive credentials. The surrounding description explains how to configure MCP endpoints but does not warn that secrets are being used or advise safe handling of API keys.