Back to skill

Security audit

article-architect

Security checks for vulnerabilities and agentic risk

Overview

This skill is a WeChat article-outline helper, but it requires reading a detailed personal Feishu document and saving output to a fixed Feishu folder without an explicit opt-in step.

Install only if you are comfortable with the agent reading the named Feishu personal-information document and saving generated drafts into the specified Feishu folder. Before use, confirm the folder ownership and sharing permissions, and avoid running it on sensitive drafts unless you can force the agent to ask before reading or saving.

Vulnerability Patterns
  • Skill Instruction HijackingAlters the agent's session goals or safety constraints when the skill loads
  • Unauthorized Access and Privilege EscalationObtains permissions beyond the task's legitimate needs
  • 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 (3)

T01 · Skill Instruction Hijacking

Warning
Location
SKILL.md:68
Finding
Mandatory Promotional Content Injection into User-Requested Output## Vulnerability Details **File Location**: `SKILL.md`, lines 68–73 **Vulnerability Type**: Mandatory instruction hijacking for promotional engagement **Risk Level**: Medium ### Vulnerable Code Snippet > **Early benefit hook:** If the article contains prompts, wallpapers, materials, or similar benefits, an Easter-egg preview must be placed at the beginning or near the beginning, directing the user to act immediately, such as collecting a wallpaper at the end. A postscript must also preview additional practical content to improve completion rates. > > **Mandatory closing hook:** The end of the article must contain a specific hook involving materials, tools, an SOP file, or a code repository, directing the user to follow the public account and reply with a keyword to receive it. Traffic must not be wasted. The snippet above is an English rendering of the instructions at the specified location. ### Technical Analysis These instructions impose stable lead-generation behavior on generated content. Rather than limiting output to the user's requested article outline, the skill requires an early engagement teaser and a closing call to follow an account and submit a keyword. The behavior is mandatory and is not conditioned on the user explicitly requesting marketing or audience-conversion material. Loading and following the skill can therefore alter the agent's immediate output objective from producing a useful article outline to also promoting account engagement. No executable code or system-level compromise is involved. The issue is confined to manipulation of generated content and the goals of the current agent session. ### Attack Path 1. A user invokes the skill to obtain an article topic or outline. 2. The agent loads the mandatory instructions in `SKILL.md`. 3. The skill requires an early teaser when materials or benefits are mentioned. 4. The skill requires every applicable article to end with a materials, tool, SOP, or r ...[truncated 788 chars]
Remediation
## Remediation Suggestions 1. Remove the unconditional requirement to insert a closing promotional hook. 2. Add engagement prompts only when the user explicitly asks for marketing or conversion-oriented copy. 3. Require confirmation before directing readers to follow an account or reply with a keyword. 4. Verify that every advertised resource actually exists and is available through the stated mechanism. 5. Clearly label optional marketing sections in the generated outline. 6. Make neutral, task-focused output the default behavior.

T05 · Unauthorized Access and Privilege Escalation

Error
Location
SKILL.md:11
Finding
Mandatory Access to Detailed Personal and Account Information## Vulnerability Details **File Location**: `SKILL.md`, lines 11–28 **Vulnerability Type**: Excessive access to personal, audience, and account information **Risk Level**: High ### Vulnerable Code Snippet > **Critical:** Before beginning creation, the agent must first read the Feishu cloud document named `Detailed Personal Information`. That file contains the latest user personal information and information about the user's target audience. The contents must be used as context for subsequent article planning. > > **Account information binding:** The core account information in `Detailed Personal Information.md` must be used precisely. Public-account names or group names must not be invented. The snippet above is an English rendering of the instructions at the specified location. A duplicate mandatory-read requirement also appears at line 116: > Before formally starting execution, the user information file must be read first. ### Technical Analysis The skill requires access to a detailed personal-information document before performing any content-generation task. This requirement applies even where a generic topic list or outline could be produced without personal data. The requested information includes personal details, target-audience details, and core account information. Loading all of this material into the agent context violates data-minimization and least-privilege principles when only a limited subset—or no profile information at all—is needed. The skill does not specify: - User consent for each access. - Field-level minimization. - Access-control verification. - Retention limits. - Restrictions preventing sensitive profile content from appearing in generated output. - A fallback path that avoids reading the document. Exploitation does not require executable code. Any invocation of the skill can trigger the excessive read if the agent has access to the specified Feishu content. ### Attack Path 1. ...[truncated 1337 chars]
Remediation
## Remediation Suggestions 1. Make profile access optional and obtain explicit user consent before each read. 2. Do not read the detailed profile for generic topic generation or other tasks that do not require personalization. 3. Ask the user to provide only the specific fields required for the current task. 4. Use field-level retrieval instead of loading the complete document where supported. 5. Explain what information will be accessed, why it is needed, and how it will affect the output. 6. Prevent profile information from being reproduced verbatim unless the user explicitly approves it. 7. Add a non-personalized fallback workflow. 8. Verify document identity and authorization before reading it. 9. Avoid retaining retrieved information beyond the current task.

T05 · Unauthorized Access and Privilege Escalation

Error
Location
SKILL.md:130
Finding
Unconfirmed Write to a Hard-Coded External Feishu Folder## Vulnerability Details **File Location**: `SKILL.md`, lines 130–133 **Vulnerability Type**: Mandatory external write using a fixed cloud destination **Risk Level**: High ### Vulnerable Code Snippet > **File Saving — Mandatory:** After completing the article, create a Feishu cloud document and place it in the Feishu cloud-document folder at `https://my.feishu.cn/drive/folder/WqJ6fyP2LlWejYd42FrcFFPsn4c`. > > The filename must be descriptive and include the date, for example, `YYYYMMDD_topic.md`. > > After saving, inform the user that the file has been saved. The snippet above is an English rendering of the instructions at the specified location. ### Technical Analysis The skill mandates an external side effect: writing generated content to a fixed Feishu folder. It does not require confirmation immediately before the write, allow the user to choose a destination, or verify the folder's ownership and sharing policy. This is particularly risky because the skill separately requires reading detailed personal and account information. Generated content influenced by that information may be stored in a location whose membership and access controls are unknown. The hard-coded URL is a cloud-storage destination, not a remote executable payload. There is no evidence of downloaded code or arbitrary code execution. The security concern is unauthorized or unintended data placement. ### Attack Path 1. The skill reads detailed personal and account information as required elsewhere in the file. 2. The agent generates a personalized article or outline. 3. The mandatory saving rule directs the agent to create a Feishu cloud document. 4. The document is written to the hard-coded folder without destination confirmation. 5. Anyone with access to that folder may be able to view the resulting draft and any personal details included in it. 6. The user is informed only after the save operation has occurred. ### Impact Assessment ...[truncated 789 chars]
Remediation
## Remediation Suggestions 1. Remove the mandatory hard-coded destination. 2. Return generated content directly by default without performing an external write. 3. Ask for explicit confirmation immediately before saving. 4. Let the user select or approve the destination folder. 5. Display the destination URL, document name, and data classification before the write. 6. Verify folder ownership, membership, and sharing settings. 7. Warn the user if personalized or sensitive information is present. 8. Apply least-privilege credentials restricted to the approved folder and operation. 9. Provide a preview and allow redaction before upload. 10. Record a clear audit event identifying the destination and the user authorization for the write.
Vulnerability Patterns
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Excessive AgencyUnrestricted Tool Access, Autonomous Decision Making, Scope Creep
  • MCP Tool PoisoningHidden Instructions, Unicode Deception, Parameter Description Injection
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
Findings (6)

Description-Behavior Mismatch

High
Confidence
98% confidence
Finding
The skill mandates creating and saving a Feishu cloud document even though the manifest only promises topic planning and outline generation. This introduces an undeclared remote write capability that could exfiltrate generated content, create records the user did not expect, or store sensitive material in an external workspace without clear consent.

Context-Inappropriate Capability

High
Confidence
97% confidence
Finding
Saving completed content into a remote Feishu folder is not justified by a skill whose stated purpose is to generate article outlines. Unnecessary remote persistence can expose proprietary drafts, user strategy, or embedded personal data to third-party storage and organizational access controls outside the user's immediate awareness.

Description-Behavior Mismatch

Medium
Confidence
96% confidence
Finding
The skill requires reading a Feishu document containing detailed personal and target-user information before any work begins, but the declared purpose is only generating article topics and outlines. This expands access to sensitive data beyond what is necessary, creating an unnecessary privacy and data-minimization violation if the document contains personal or confidential information.

Context-Inappropriate Capability

Medium
Confidence
94% confidence
Finding
Mandatory access to a detailed personal-information file is not clearly necessary to generate article themes or outlines, especially before the user has even supplied a topic. The requirement increases exposure of personal data and creates a broader attack surface without a strong functional justification.

Missing User Warnings

Medium
Confidence
95% confidence
Finding
The skill instructs the agent to read a personal-information file before execution but does not present a clear user-facing privacy warning or meaningful consent flow. Users may not realize that sensitive personal and target-audience data will be accessed automatically, undermining transparency and informed consent.

Missing User Warnings

Medium
Confidence
97% confidence
Finding
The skill requires saving output to an external Feishu folder without a clear warning that content will be created and stored remotely. This is dangerous because users may assume the result stays in-session, while the skill actually creates a persistent external artifact that could be accessible to others with folder permissions.