Back to skill

Security audit

c3po-session-cleaner

Security checks for vulnerabilities and agentic risk

Overview

This skill is a small session-cleanup helper, but it permanently deletes local session files without a preview or confirmation and has unsafe path handling if the target directory is missing.

Review before installing. This skill should be changed to first print the files it would delete, require confirmation, check that the cd into the intended sessions directory succeeded, and preferably use an archive/quarantine step before permanent 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
  • 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

Medium
Category
Not specified by scanner
Confidence
91% confidence
Finding

The skill performs irreversible deletion of session files using find ... -delete without any preview, confirmation step, backup guidance, or clear warning about the destructive action. In a session directory, accidental over-deletion can remove historical records, troubleshooting context, or user data if timestamps or path assumptions are wrong.

Content

No source excerpt is available for this finding.