Back to skill

Security audit

Biweekly Work Report

Security checks for vulnerabilities and agentic risk

Overview

This skill locally records work notes and generates Chinese work reports, with no network calls, executable code, credential use, or hidden behavior found.

Install this only if you want an agent to keep persistent local Markdown work logs under ~/.workbuddy/work-logs and create report files in your workspace. Avoid logging secrets, confidential incidents, customer data, or anything you would not want stored in plain text.

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
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Rogue AgentSelf-Modification, Session Persistence
  • Trigger AbuseOverly Broad Trigger, Shadow Command Trigger, Keyword Baiting Trigger
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
Findings (10)

Vague Triggers

Medium
Confidence
96% confidence
Finding
The trigger description includes broad language such as 'any variation of logging work or producing a work report,' which can cause the skill to activate on loosely related user messages. Unintended activation is risky here because the skill performs local file writes to a fixed path and may persist user content without an explicit, fresh confirmation.

Vague Triggers

Medium
Confidence
94% confidence
Finding
Several triggers like '记录' or '记录一下' are common conversational phrases and may overlap with ordinary dialogue that is not intended to invoke persistent logging behavior. Because the skill appends to local markdown logs, accidental activation can create unintended records or leak sensitive content into durable storage.

Session Persistence

Medium
Category
Rogue Agent
Content
Use `YYYY-MM-DD` format in Asia/Shanghai timezone.

### Step 2: Read or create daily file

Read `~/.workbuddy/work-logs/YYYY-MM-DD.md`. If it doesn't exist, create it
with this template:
Confidence
95% confidence
Finding
The skill is explicitly designed to persist session-derived user content by creating and updating daily files under ~/.workbuddy/work-logs. Persistent storage of work notes can expose sensitive business information over time, especially if stored unencrypted, shared across tools, or accessed by other local processes.

Missing User Warnings

Medium
Confidence
93% confidence
Finding
The skill writes daily logs to a fixed home-directory location and writes generated reports to the current workspace, but the description does not prominently warn users about these side effects. This reduces informed consent and can lead to sensitive work content being stored in locations the user did not expect, especially in shared or synced environments.

Session Persistence

Medium
Category
Rogue Agent
Content
| `【其他】` | Miscellaneous |

**Rules:**
- Always **append**, never overwrite existing entries.
- Use the time the user provides, or current time if not stated.
- One entry per distinct activity. Split compound descriptions.
- Descriptions in Chinese, one sentence. Keep it concise.
Confidence
92% confidence
Finding
The instruction to always append and use current or provided times reinforces durable accumulation of user activity history across sessions. This creates a persistent behavioral record that may reveal schedules, projects, bugs, and internal operations if the files are later exposed or synced unintentionally.

Natural-Language Policy Violations

Medium
Confidence
97% confidence
Finding
The instruction "Descriptions in Chinese" forces a specific language for logged content, which is a natural-language policy concern when no user opt-in or locale justification is provided. The file does not state that the skill is region-specific or allow users to choose another language.

Natural-Language Policy Violations

Medium
Confidence
91% confidence
Finding
The canonical report format is specified in Chinese, including headings and boilerplate text, with no indication that the user may choose another language or locale. This can violate language/locale policy when the skill is used in contexts where output language should be user-selected rather than fixed.

Missing User Warnings

Medium
Confidence
79% confidence
Finding
This markdown file directs the skill to write output into the current workspace directory or a user-specified path, which is a file-modifying operation. The template does not include any warning about creating or overwriting files, path safety, or confirming the destination before writing.

Natural-Language Policy Violations

Medium
Confidence
95% confidence
Finding
This markdown file contains natural-language requirements that force a specific language/locale: weekday values must be Chinese and descriptions must be in Chinese. Under the policy, locale or language requirements should either be optional, user-selectable, or clearly justified as region-specific; none of that is stated here.

Natural-Language Policy Violations

Low
Confidence
96% confidence
Finding
This markdown file contains natural-language content that implicitly forces a specific language for all users. Under the policy, language constraints should either offer user opt-in/choice or be clearly justified as region-specific, which is not stated here.

Static analysis

No suspicious patterns detected.