T02 · Agent Memory Poisoning
- Location
SKILL.md:204- Finding
Mandatory Persistent Modification of Agent Knowledge and Registration State
- Content
View full analysis
- Remediation
View remediation
Security audit
Security checks for vulnerabilities and agentic risk
This is mainly a HarmonyOS coding assistant, but it asks the agent to modify persistent expert knowledge and re-register itself after conversations.
Install only if you are comfortable disabling or ignoring the self-learning and re-registration instructions. Review generated code carefully for telemetry, background location, file quarantine, push-token handling, and third-party model/provider configuration before using it in a real app.
SKILL.md:204Mandatory Persistent Modification of Agent Knowledge and Registration State
SKILL.md:204Unsolicited Response Injection Triggered by Generic User Confirmations
SKILL.md:3600Raw Push Token Written to Application Logs
YARA rule matched a hack tool or exploit indicator (offensive tools, reconnaissance, privilege escalation, or exploit frameworks).
---
name: harmonyos-code-workshop
version: 6.1.0
description: "HarmonyOS 7 (API 26) 全流程编码助手,精通ArkTS+ArkUI,提供高质量原生鸿蒙代码"
trigger:
- 鸿蒙
- HarmonyOS
- ArkTS
- ArkUI
- 鸿蒙代码
- 鸿蒙开发
- 鸿蒙7
- harmonyos code
- arkts
- 鸿蒙项目
- 鸿蒙应用
- 鸿蒙原生
- 分布式
- 元服务
- atomic service
- Stage模型
- 鸿蒙技能
- 鸿蒙专家
- HarmonyOS NEXT
- 鸿蒙NEXT
- DeveEco
- 鸿蒙学习
- 我想开发一个鸿蒙
- 帮我写一个鸿蒙
agent_created: true
---
> 📌 **版本信息**:本Skill�
The instruction to automatically append details from every conversation into the expert file creates a clear data retention and prompt-persistence risk. Sensitive user inputs, proprietary code, secrets, or malicious prompt content could be stored and later influence future sessions or leak through generated outputs.
The skill describes comprehensive behavioral analytics, including click tracking, page transition observation, and exposure measurement, without privacy disclosure or caution. In a coding assistant context, this can cause privacy-invasive instrumentation to be generated as if it were routine best practice, potentially capturing sensitive interaction data at scale.
Bundling enterprise file-scanning and quarantine capabilities into a general coding assistant meaningfully expands the operational scope toward invasive endpoint-security behavior. If surfaced or reused out of context, it can encourage code that scans files across boundaries, handles quarantine actions, and increases risk of misuse on user data or enterprise environments.
Background location tracking is a highly sensitive capability, and the skill presents implementation guidance without strong user-facing privacy warnings, consent, or justification requirements. This can directly enable persistent location collection in generated apps, with substantial surveillance and compliance risk.
This duplicate finding points to the same concealed append instruction in a hidden HTML comment. The concealment matters because it helps smuggle behavioral directives into the skill in a way that may bypass casual review while still steering agent state or future edits.
> 此章节由专家在每次对话结束后自动追加。记录了所有实战中踩过的坑、学到的经验。
<!-- 新的经验教训自动追加在此下方 -->
### 2026-06-29 - 持续学习:DevEco Code/CLI + V2 装饰器 + 生产级模式
This duplicate finding points to the same concealed append instruction in a hidden HTML comment. The concealment matters because it helps smuggle behavioral directives into the skill in a way that may bypass casual review while still steering agent state or future edits.
> 此章节由专家在每次对话结束后自动追加。记录了所有实战中踩过的坑、学到的经验。
<!-- 新的经验教训自动追加在此下方 -->
### 2026-06-29 - 持续学习:DevEco Code/CLI + V2 装饰器 + 生产级模式
The trigger set is extremely broad, including generic HarmonyOS-related terms likely to match ordinary conversations. Overbroad activation increases the chance the skill is invoked unexpectedly, exposing users to its self-modifying and privacy-invasive guidance even when they did not intend to use this specific skill.
The skill aggregates examples for telephony, location, biometrics, background tasks, and device-control APIs far beyond its advertised role as a general HarmonyOS coding helper. This overbroad capability surface increases the chance the agent will suggest sensitive features by default or inappropriately, leading to unnecessary permission collection and privacy/security exposure in generated apps.
The skill includes a global UIObserver tracking framework that captures clicks, page switches, component identifiers, and custom properties, despite being presented as a coding assistant rather than an analytics tool. This broad telemetry pattern could normalize or generate privacy-invasive code that records sensitive user behavior without necessity or adequate notice.
The global tracking example records component IDs, page info, and custom property payloads, which can easily contain business context or sensitive user data. Without strict guidance, developers may copy this pattern verbatim and unintentionally expose personal or confidential interaction metadata to logging or analytics sinks.
The skill includes an external model provider endpoint and environment-based API key configuration, which introduces a data egress path from the development environment to a third-party service. While not inherently malicious, in an agent skill this can route prompts, code, or metadata off-platform without any trust or privacy boundary explanation.
"deveco": {
"name": "DevEco Code",
"models": { "glm-5": { "tool_call": true, "limit": { "context": 200000, "output": 8192 } } },
"options": { "baseURL": "https://api.openbitfun.com/v1", "apiKey": "{env:DEVECO_API_KEY}" }
}
}
}
The skill instructs itself to edit its own expert files and re-register after conversations, which is a form of self-modification outside the user’s requested HarmonyOS coding scope. In an agent setting, self-editing behavior can persist prompt-injected content, silently alter future behavior, and create a supply-chain style trust problem across sessions.
The file explicitly states that Router is deprecated/not recommended and promotes Navigation as the unified approach. Later sections still show router-based navigation patterns such as router.pushDestinationByName and HMRouter pushUrl examples, which conflicts with the earlier intent-level guidance rather than merely omitting detail.
The text repeatedly says the expert 'must' automatically detect blind spots, search docs, update files, append lessons, and re-register after every conversation. In this file, those are only declarative instructions with no executable mechanism shown, so the documented intent materially overstates what the skill file itself actually does.