Back to skill

Security audit

Sayba Session Cleanup

Security checks for vulnerabilities and agentic risk

Overview

This is a small, disclosed cleanup skill that edits local OpenClaw session sidebar indexes, with a bulk-delete option users should run carefully.

Run --dry-run first and use --all only when you intentionally want every subagent session entry removed from the matching OpenClaw agent indexes. Back up sessions.json first if preserving sidebar session history matters.

Vulnerability Patterns
  • MCP Least PrivilegeUnderdeclared Capability, Wildcard Permission, Missing Permission Declaration
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
  • Supply ChainUnpinned Dependencies, External Script Fetching, Obfuscated Code
Findings (1)

Lp3

Medium
Category
MCP Least Privilege
Confidence
94% confidence
Finding
The skill instructs the agent to run a cleanup script that modifies `sessions.json`, which is a file-write capability, but the skill declares no permissions. This creates a permission-model mismatch: an agent may perform state-changing filesystem operations without explicit disclosure or gating, increasing the risk of unintended deletion of session metadata, especially with the `--all` mode.

Static analysis

No suspicious patterns detected.