Back to skill

Security audit

Next Cache Components

Security checks for vulnerabilities and agentic risk

Overview

This is a benign Next.js caching reference skill, with only a minor privacy note around examples that read session or user cookies.

Review the cookie examples as documentation patterns: session and user identifiers can be sensitive, so only apply those snippets when your app actually needs them and avoid caching or propagating such values beyond the intended request/user scope.

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

Missing User Warnings

Low
Confidence
82% confidence
Finding
This markdown file includes examples that access `cookies()` to read `session` and `userId` values, which are privacy-relevant user identifiers. Under the markdown-file warning criterion, the skill description should disclose behavior that may affect user data or privacy, but the surrounding text presents the pattern as a technical solution without any cautionary note.

Static analysis

No suspicious patterns detected.