Back to skill

Security audit

calendar

Security checks for vulnerabilities and agentic risk

Overview

This calendar skill has no embedded malware, but it asks for broad read, write, and command execution authority that is not safely scoped to calendar tasks.

Review this skill before installing in any agent runtime that grants declared tools. It should be limited to calendar APIs and explicit user-approved calendar actions; avoid granting shell execution, broad filesystem access, or elevated privileges unless the package is rewritten with clear least-privilege controls.

Vulnerability Patterns
  • Unauthorized Access and Privilege EscalationObtains permissions beyond the task's legitimate needs
  • 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
Findings (1)

T05 · Unauthorized Access and Privilege Escalation

Error
Location
SKILL.md:23
Finding

Excessive System Tool Permissions for a Calendar Skill

Content
View full analysis

Vulnerability Details

File Location: SKILL.md, lines 23–26
Vulnerability Type: Excessive permissions and violation of least privilege
Risk Level: High

Vulnerable Code

yaml
tools:
- read
- exec
- write

Technical Analysis

The Skill requests generic file-reading, file-writing, and command-execution tools. These capabilities are substantially broader than the permissions ordinarily required to create events, detect scheduling conflicts, or synchronize calendars through provider-specific APIs.

The project does not define command allowlists, filesystem path restrictions, provider-specific API scopes, mutation confirmation requirements, or an enforceable sandbox policy. Elsewhere in the same file, the Skill advertises generic file processing and system-command execution and recommends elevated execution when permissions are insufficient. No executable implementation is supplied to demonstrate that these broad permissions are necessary or safely constrained.

Merely declaring these tools does not prove that they are automatically granted by every Agent platform. However, on a platform that grants the declared capabilities, the Skill would have access beyond its documented calendar-management purpose.

Attack Path

  1. A user installs or loads the Skill for a routine calendar-management task.
  2. The Agent platform grants the declared read, write, and exec tools.
  3. A generated or attacker-influenced workflow invokes those generic tools rather than a narrowly scoped calendar API.
  4. The workflow reads unrelated local data, modifies files, or executes an unsafe system command.
  5. If the user follows the accompanying recommendation to run with elevated privileges, the command may execute with administrator-level access and increase the affected scope.

Impact Assessment

Depending on the Agent runtime and operating-system permissions, exploitation could allow:

  • Reading calendar ...[truncated 650 chars]
Remediation
View remediation

Remediation Suggestions

  1. Remove exec, read, and write unless each capability is strictly required by an implemented calendar workflow.
  2. Replace generic tools with provider-specific calendar APIs using least-privilege OAuth scopes, such as event read or event write access only when needed.
  3. If filesystem access is unavoidable, restrict it to explicit application-owned paths and deny access to credential stores, home-directory secrets, system files, and unrelated project files.
  4. If command execution is unavoidable, use a fixed executable and argument allowlist. Do not pass user-controlled text through a shell.
  5. Require explicit user confirmation before event deletion, file modification, external invitations, or any other consequential action.
  6. Prohibit administrator or root execution and remove troubleshooting guidance that recommends privilege elevation.
  7. Document the exact permission required for each operation and fail safely when that permission is unavailable.
  8. Add enforceable sandbox controls, execution timeouts, output-size limits, audit logging, and tests confirming that the Skill cannot access resources outside its approved scope.
Vulnerability Patterns
  • Excessive AgencyUnrestricted Tool Access, Autonomous Decision Making, Scope Creep
  • Trigger AbuseOverly Broad Trigger, Shadow Command Trigger, Keyword Baiting Trigger
  • 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
Findings (6)

Context-Inappropriate Capability

High
Category
Not specified by scanner
Confidence
99% confidence
Finding

System command execution is presented as a capability even though the skill is framed as a calendar manager, with no justification or guardrails. This is dangerous because an agent may treat ordinary scheduling requests as authorization to run shell commands, potentially leading to arbitrary command execution, local data access, or lateral abuse of the runtime environment.

Content

No source excerpt is available for this finding.

Vague Triggers

Medium
Category
Not specified by scanner
Confidence
95% confidence
Finding

The invocation description is overly broad, repetitive, and ambiguous about what the skill actually does and when it should be used. Ambiguous routing guidance can cause agents to select this skill for unrelated project-management or workflow tasks, increasing the chance of misuse—especially given the presence of powerful tools like read, write, and exec.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
92% confidence
Finding

The description states '支持中文交互,无需复杂配置即开即用', and the highlighted core functionality repeats that the skill provides Chinese interaction. This presents a language preference as a default behavior without offering the user a language or locale choice.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

Medium
Category
Not specified by scanner
Confidence
95% confidence
Finding

The documented behavior for a calendar skill includes code-review/audit style result structures that are unrelated to scheduling. This kind of capability mismatch can mislead an agent into using the skill for unintended tasks, weaken policy boundaries, and create opportunities for prompt/permission abuse through overly broad interpretation of the skill’s purpose.

Content

No source excerpt is available for this finding.

Intent-Code Divergence

Medium
Category
Not specified by scanner
Confidence
98% confidence
Finding

The declared output schema returns grading, scoring, and compliance-style fields instead of calendar event data, directly contradicting the skill’s stated function. A mismatched schema increases the chance that downstream agents or workflows will route sensitive inputs to the wrong logic or trust fabricated output types, causing unsafe tool use and confused-deputy behavior.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

Medium
Category
Not specified by scanner
Confidence
97% confidence
Finding

The documentation claims file handling and command execution capabilities that are broader than calendar management, expanding the apparent authority of the skill beyond its declared purpose. In an agent environment, this can cause the model to invoke sensitive local or system-level operations under the guise of a benign calendar action.

Content

No source excerpt is available for this finding.