Back to skill

Security audit

capability-decay-watchdog

Security checks for vulnerabilities and agentic risk

Overview

The skill is a local watchdog that reads skill learning logs to report decay or staleness, with no evidence of hidden execution, network exfiltration, or destructive behavior.

Install only if you are comfortable with a local tool scanning skill learned_patterns.json files under the configured skills root. Treat learned_patterns.json as a local activity log that may contain notes or preferences if learner.py is used, and avoid putting secrets in those fields.

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
  • MCP Least PrivilegeUnderdeclared Capability, Wildcard Permission, Missing Permission Declaration
  • MCP Tool PoisoningHidden Instructions, Unicode Deception, Parameter Description Injection
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
Findings (8)

Tp4

High
Category
MCP Tool Poisoning
Confidence
95% confidence
Finding

The documented purpose says the skill performs ecosystem-wide decay monitoring and self-healing orchestration, but the analyzed behavior reportedly does not implement those controls and instead records user preferences and generic operation logs. This mismatch is dangerous because operators may trust the skill to perform safety-critical monitoring while it silently fails to detect degradation, and the extra undeclared data collection expands privacy and abuse risk beyond user expectations.

Content

No source excerpt is available for this finding.

Undeclared Tool Scope

Medium
Category
MCP Least Privilege
Confidence
80% confidence
Finding

The skill appears to require file read/write capabilities to scan learned_patterns.json and potentially emit repair-related artifacts, but it does not declare any explicit tool scope or permissions boundary. This creates an authorization ambiguity where an agent runtime may grant broader filesystem access than intended, increasing the risk of unauthorized reads or writes if the skill is invoked in a privileged environment.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
94% confidence
Finding

The primary description and most of the markdown content are written in Chinese, with no indication that users may choose another language or that the skill is region-specific. Under the policy, forcing a specific language without user opt-in is a natural-language policy violation.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
95% confidence
Finding

The module docstring and user-facing description are entirely in Chinese, and the command-line help text is also Chinese-only. This imposes a language choice on users without opt-in or an alternative locale, which matches the policy category for language/locale constraints.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

Medium
Category
Not specified by scanner
Confidence
97% confidence
Finding

The manifest describes a watchdog that monitors the skill ecosystem, scans multiple skills' learned_patterns.json files, detects success-rate decline and long inactivity, and emits alerts plus remediation guidance. This code instead provides generic per-skill CRUD/analytics for learned_patterns.json (init, record, preference storage, insight, reflect) and does not implement ecosystem-wide scanning, success-rate trend detection, inactivity checks, or alerting behavior.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
96% confidence
Finding

Natural-language strings in the top-level description and command help are exclusively in Chinese, which forces a specific language experience for users of this script. There is no opt-in, locale selection, or documented reason that the tool is intended only for a Chinese-speaking audience.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
93% confidence
Finding

The module persists operation history, error notes, and preferences to learned_patterns.json without any user-facing notice, consent flow, or data-minimization controls. In this skill context, notes and preferences may contain sensitive operational details, so silent local telemetry creates a real privacy risk and can expose data to other local users, backups, or later tooling that reads the file.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

Low
Category
Not specified by scanner
Confidence
90% confidence
Finding

The manifest focuses on runtime health monitoring, regression/staleness detection, and recommending self-healing actions for skills. Lines implementing preference persistence add a separate personalization capability unrelated to decay monitoring or meta-governance over skill health.

Content

No source excerpt is available for this finding.