Back to skill

Security audit

Jira PAT管理器

Security checks for vulnerabilities and agentic risk

Overview

The skill is not clearly malicious, but it asks for broad local file and command authority while managing sensitive Jira access tokens.

Install only if you specifically need Jira PAT administration and can restrict the skill's permissions. Prefer disabling exec and broad file access, use least-privilege Jira credentials, avoid exposing secrets in prompts or logs, and require explicit review before creating, revoking, or changing token permissions.

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

Warning
Location
SKILL.md:13
Finding

Excessive Local File and Command-Execution Permissions

Content
View full analysis

Vulnerability Details

File Location: SKILL.md, lines 13–16; supporting declarations at lines 181–185
Vulnerability Type: Excessive permissions and violation of least privilege
Risk Level: Medium

Vulnerable Configuration

yaml
tools:
- read
- exec
- write

The skill further advertises these capabilities:

markdown
## 主要功能
- **自动化执行**: 管理Jira个人访问令牌(PAT),支持创建、撤销和权限配置。API封装工具。适用于需要调用外部API的场景,API请求
- **文件处理**: 支持多种文件格式的读取、解析和写入操作
- **API集成**: 通过标准化接口调用外部服务并处理响应
- **命令执行**: 在安全沙箱中执行系统命令并收集结果

Technical Analysis

The declared purpose of the skill is to create, revoke, and configure Jira personal access tokens through an external API. That purpose does not inherently require arbitrary local file reads, local file writes, or operating-system command execution.

The skill nevertheless requests the general-purpose read, write, and exec tools. No concrete command allowlist, filesystem path restriction, argument validation mechanism, API-origin restriction, or enforceable sandbox policy is defined. The document states that commands should be allowlisted and run in a sandbox, but it does not implement those controls.

The required instruction input is free-form user text. If the host exposes the requested tools and the Agent interprets malicious or ambiguous input as authorization to use them, those broad capabilities could be applied to resources unrelated to Jira PAT management.

Attack Path

  1. The skill is installed or activated for a Jira PAT management request.
  2. The host grants the skill its declared read, write, and exec capabilities.
  3. An attacker or untrusted user supplies a crafted free-form instruction value, or malicious content enters the Agent context through another source.
  4. The Agent interprets that content as requiring local file access or command execution.
  5. Because no enforceable command allowlist or filesystem boundary is specified, th ...[truncated 1202 chars]
Remediation
View remediation

Remediation Suggestions

  1. Remove exec, read, and write from the declared tools unless each capability is strictly necessary and justified.
  2. Replace the general-purpose tools with a dedicated Jira API client that exposes only explicit operations such as listing, creating, and revoking PATs.
  3. Restrict outbound requests to configured Jira HTTPS origins and reject redirects or requests to arbitrary hosts.
  4. Define a structured operation schema instead of accepting unrestricted instruction text. Validate operation names, token identifiers, tenant identifiers, and permission scopes against strict allowlists.
  5. Require explicit user confirmation immediately before PAT creation, revocation, or permission changes.
  6. Apply least-privilege Jira credentials and prevent the skill from requesting permissions broader than the selected operation requires.
  7. Redact PAT values, API keys, authorization headers, and other secrets from responses, errors, and audit logs.
  8. If local command execution is unavoidable, enforce a host-level sandbox, a fixed executable allowlist, non-shell argument invocation, strict time and resource limits, and a dedicated low-privilege process identity.
  9. If filesystem access is unavoidable, confine it to a dedicated workspace using canonical-path checks and deny access to credential stores, home directories, system paths, and files outside that workspace.
  10. Add automated tests verifying that unrelated file operations, arbitrary commands, unapproved Jira origins, and excessive permission scopes are rejected.
Vulnerability Patterns
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • 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
Findings (8)

Description-Behavior Mismatch

High
Category
Not specified by scanner
Confidence
97% confidence
Finding

The manifest markets this skill as a generic analytics/reporting API wrapper, while the body describes sensitive Jira PAT lifecycle operations. This mismatch can mislead users or orchestration systems into invoking a credential-management skill in low-risk contexts, increasing the chance of unintended token creation, revocation, or permission changes.

Content

No source excerpt is available for this finding.

Vague Triggers

High
Category
Not specified by scanner
Confidence
95% confidence
Finding

An overly broad invocation description invites use in loosely related data-analysis or reporting scenarios even though the skill can manage personal access tokens. In credential-management contexts, ambiguous routing is dangerous because it may trigger privileged operations under false assumptions about the skill being passive or read-only.

Content

No source excerpt is available for this finding.

Context-Inappropriate Capability

High
Category
Not specified by scanner
Confidence
97% confidence
Finding

The skill advertises file handling and system command execution even though its stated purpose is Jira PAT management. Unnecessary file and exec capabilities enlarge the attack surface and create opportunities for command misuse, local data exposure, or chaining token operations with host-level actions unrelated to the business need.

Content

No source excerpt is available for this finding.

Vague Triggers

Medium
Category
Not specified by scanner
Confidence
91% confidence
Finding

The trigger phrase is short and ambiguous, making accidental activation more likely. Because this skill is tied to sensitive token administration, accidental routing can expose users to unnecessary credential prompts or unintended destructive operations.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
94% confidence
Finding

The description does not prominently warn that the skill handles sensitive credentials and can perform destructive token operations. Without upfront warning, users may provide secrets casually or approve actions without understanding that PATs can grant durable privileged access.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
89% confidence
Finding

The description states 支持中文交互 as part of the default behavior, and the metadata uses Chinese display content without offering a language choice. This can be a locale/language policy issue when the skill appears to presume a specific language rather than letting the user opt in.

Content

No source excerpt is available for this finding.

Intent-Code Divergence

Medium
Category
Not specified by scanner
Confidence
82% confidence
Finding

The inline documentation describes a generic Chinese-interaction/automation capability rather than a focused Jira PAT administration function. This inconsistency increases the chance of misclassification, accidental invocation, and weakened operator scrutiny around sensitive credential operations.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

Medium
Category
Not specified by scanner
Confidence
90% confidence
Finding

The documented workflow performs state-changing administrative CRUD actions, but the surrounding text frames the skill as a broadly reusable analysis/reporting tool. That framing lowers operator caution and can cause the skill to be used where read-only processing was expected, leading to accidental administrative changes.

Content

No source excerpt is available for this finding.

Static analysis

No suspicious patterns detected.