Back to skill

Security audit

Industry Diagnosis

Security checks for vulnerabilities and agentic risk

Overview

The skill is mostly a disclosed industry-report generator, but it automatically inserts unrelated promotional content and a QR-code reference into every report.

Review this skill before installing if you need neutral reports. It will perform web searches, create Markdown report files, and append promotional material for 位道策划 with a QR-code reference unless the agent or user removes that footer.

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
Findings (1)

T01 · Skill Instruction Hijacking

Warning
Location
SKILL.md:220
Finding

Mandatory Promotional Content Hijacks Generated Reports

Content
View full analysis
**本报告由「位道策划」行业诊断系统自动生成** > > 关注公众号「位道策划」(ID: gh_af805b7a25ca),获取: > - 完整版诊断报告(含雷达图+可视化) > - 一对一品牌战略咨询 > - 《连锁品牌:让复制不变形的5力模型》核心方法论 > > 扫码关注: > ![公众号二维码]({baseDir}/assets/qrcode.jpg) ``` ``` ### Technical Analysis The skill unconditionally instructs the agent to append third-party branding, a social-media subscription request, consulting promotion, and a QR-code image reference to every generated industry report. This behavior is not required to perform the core industry-analysis task. Because these instructions are loaded as part of the skill, they alter the agent’s expected output independently of the user’s request. A user asking only for an industry diagnosis would still receive promotional content controlled by the skill author. This constitutes skill instruction hijacking because the skill uses trusted agent instructions to insert unrelated content into the current session’s deliverable. The QR-code Markdown reference uses `{baseDir}/assets/qrcode.jpg`. Although no corresponding asset was present in the audited directory structure, the instruction still attempts to place a promotional image reference in generated reports. No executable payload, credential access, privilege escalation, persistence, or external data exfiltration was identified. ### Attack Path 1. A user installs or loads the `industry-diagnosis` skill. 2. The user requests an industry or market diagnosis. 3. The agent follows the legitimate workflow and generates the requested eight-section Markdown report. 4. The instructions at `SKILL.md:220–235` require the agent to append promotional material regardless of whether the user requested or consented to it. 5. The final report includes third-party branding, a ...[truncated 1127 chars]
Remediation
View remediation
Vulnerability Patterns
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Trigger AbuseOverly Broad Trigger, Shadow Command Trigger, Keyword Baiting Trigger
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
  • Supply ChainUnpinned Dependencies, External Script Fetching, Obfuscated Code
Findings (5)

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
95% confidence
Finding

The README states that the skill will 'automatically collect data' and generate a report file, but it does not clearly warn users that the skill may access external sources or write to local storage. This lack of transparency increases the risk of surprise network activity and filesystem side effects, especially if the skill is triggered accidentally or used in sensitive environments.

Content

No source excerpt is available for this finding.

Vague Triggers

Medium
Category
Not specified by scanner
Confidence
94% confidence
Finding

The trigger phrases are broad, natural-language requests such as 'XX行业怎么样' and '分析XX市场', which can easily match ordinary conversation and cause the skill to activate unintentionally. In a skill that performs automatic data collection and generates output files, accidental invocation can lead to unexpected external access, unnecessary processing, and unanticipated file creation without the user's clear intent.

Content

No source excerpt is available for this finding.

Vague Triggers

Medium
Category
Not specified by scanner
Confidence
94% confidence
Finding

The trigger phrases are broad everyday-language expressions such as “XX行业怎么样” and “分析XX市场”, which can match normal conversation and invoke the skill unintentionally. Because this skill performs external searches and generates a report file automatically, accidental activation can cause unnecessary browsing, unwanted file creation, and user surprise about actions taken on their behalf.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
95% confidence
Finding

The skill instructs the agent to write a diagnosis report file automatically without an obvious user-facing warning or consent checkpoint. In context, the file also appends promotional content and a local image reference, so silent file creation is more sensitive because it may persist content the user did not explicitly request and may mix analysis with marketing material.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Low
Category
Not specified by scanner
Confidence
93% confidence
Finding

This file contains user-facing methodological guidance exclusively in Chinese, and there is no indication that the skill is region-specific or that users may opt into this language. Under the policy for natural-language violations, forcing a specific language without user opt-in can be a locale-policy issue.

Content

No source excerpt is available for this finding.

Static analysis

No suspicious patterns detected.