Back to skill

Security audit

Daily Report (HuangYang)

Security checks for vulnerabilities and agentic risk

Overview

The skill is a coherent daily-report helper, but it can read broad private context and update persistent memory without clear user approval or scoping.

Review this skill before installing if your agent memory, conversation history, or project files may contain sensitive information. Use it only where reading those sources is acceptable, and prefer requiring confirmation before it saves any generated report back into memory.

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:37
Finding

Overbroad Access to Private Context and Automatic Persistent Memory Modification

Content
View full analysis

Vulnerability Details

File Location: SKILL.md:37-40 and SKILL.md:80
Vulnerability Type: T05: Unauthorized Access and Privilege Escalation
Risk Level: Medium

Vulnerable Instructions

markdown
1. **Today's memory file** (`memory/YYYY-MM-DD.md`) - Primary source for today's tasks
2. **Yesterday's memory file** (`memory/YYYY-MM-DD.md`) - For carryover context
3. **Recent conversation history** - If needed for clarification
4. **Project files** (e.g., TODO.md, PROJECTS.md) - If relevant
markdown
- Update memory files with the generated report for future reference

Technical Analysis

The skill instructs the agent to access current and previous memory files, recent conversation history, and an open-ended set of project files when generating a daily report. It does not require explicit user approval, constrain access to user-selected paths, or require filtering and redaction of unrelated sensitive information.

The instruction at line 80 additionally directs the agent to modify persistent memory automatically. Although reading task history and optionally preserving a report can support the declared reporting purpose, these operations exceed least-privilege expectations when performed without source-specific authorization and confirmation. Sensitive information unrelated to the requested report could be collected, reproduced, and retained.

No instruction to transmit data externally, execute code, install dependencies, or alter system permissions was identified.

Attack Path

  1. The user invokes the skill by requesting a daily report or status summary.
  2. The skill directs the agent to inspect today's memory, yesterday's memory, recent conversations, and potentially relevant project files.
  3. If those sources contain unrelated confidential information, credentials, personal data, or sensitive project details, the agent may incorporate that information into the generated report because no mandatory relevance filter or redact ...[truncated 1207 chars]
Remediation
View remediation

Remediation Suggestions

  1. Require explicit user consent before reading memory files, conversation history, or project files.
  2. Ask the user to approve specific source paths instead of permitting open-ended access to “project files.”
  3. Default to information supplied in the current request and access additional sources only when necessary.
  4. Apply strict relevance filtering before including source material in the report.
  5. Detect and redact credentials, tokens, personal information, and unrelated confidential data.
  6. Present the completed report to the user before modifying persistent memory.
  7. Make memory persistence opt-in and clearly identify the exact destination file.
  8. Limit writes to a dedicated report location rather than modifying general-purpose memory.
  9. Document retention and deletion behavior so users can control how long generated reports remain stored.
Vulnerability Patterns
  • Trigger AbuseOverly Broad Trigger, Shadow Command Trigger, Keyword Baiting Trigger
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
  • Supply ChainUnpinned Dependencies, External Script Fetching, Obfuscated Code
Findings (3)

Vague Triggers

Medium
Category
Not specified by scanner
Confidence
96% confidence
Finding

The metadata description embeds very broad natural-language triggers such as 'daily report', 'status summaries', and '今天干了什么', which are common phrases that may appear in ordinary conversation. This increases the chance of unintended skill activation, causing the agent to access memory/project files or generate outputs when the user did not explicitly request this skill.

Content

No source excerpt is available for this finding.

Vague Triggers

Medium
Category
Not specified by scanner
Confidence
98% confidence
Finding

The trigger section explicitly includes ambiguous conditions like 'or similar', 'review daily progress', and 'status summary', which are broad enough to match many unrelated requests. In this skill's context, accidental invocation is more concerning because the workflow instructs the agent to inspect memory files, recent conversations, and project files, expanding unintended data exposure.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
97% confidence
Finding

The skill tells the agent to update memory files with the generated report but does not disclose to the user that persistent storage will be modified or request consent. Silent writes can create privacy, integrity, and auditability issues, especially if the report includes inferred or mistaken task data that later affects future agent behavior.

Content

No source excerpt is available for this finding.

Static analysis

No suspicious patterns detected.