T02 · Agent Memory Poisoning
- Location
SKILL.md:428- Finding
Persistent Agent Memory Poisoning Through Unvalidated Self-Modification
- Content
View full analysis
- Remediation
View remediation
Security audit
Security checks for vulnerabilities and agentic risk
This is mostly a WeChat Mini Program development guide, but it under-controls persistent self-modification and includes several unsafe credential/admin examples.
Review this skill before installing. Its normal purpose is app development, but do not allow automatic edits to SKILL.md or reference files, and treat generated payment, admin, CI, token, phone-number, and Wi-Fi code as drafts that require security review before production use.
SKILL.md:428Persistent Agent Memory Poisoning Through Unvalidated Self-Modification
references/hardware.md:504Home Wi-Fi Credentials Transmitted Over Plaintext HTTP
references/cloud-dev.md:231Privileged Cloud Operation Authorized by a Client-Supplied Static Secret
references/ci-cd.md:178Deployment Private Key Materialized Without Restrictive Permissions or Guaranteed Cleanup
references/miniapp-handoff.md:172Authentication Token Disclosed Through Android Debug Logging
references/typescript.md:479Bearer Token Stored in Plaintext Client Storage
SKILL.md:65Unpinned Third-Party Package Installation Instructions
Referenced artifact was not completely inspected
AI 将参照 references/project-init.md 自动生成完整项目结构
Referenced artifact was not completely inspected
AI 将参照 references/project-init.md 自动生成完整项目结构
Referenced artifact was not completely inspected
AI 将参照 references/project-init.md 自动生成完整项目结构
Referenced artifact was not completely inspected
AI 将参照 references/project-init.md 自动生成完整项目结构
Referenced artifact was not completely inspected
AI 运行 scripts/analyze_subpackages.py,输出 app.json 配置
Referenced artifact was not completely inspected
AI 运行 scripts/analyze_subpackages.py,输出 app.json 配置
Referenced artifact was not completely inspected
AI 运行 scripts/analyze_subpackages.py,输出 app.json 配置
Referenced artifact was not completely inspected
AI 运行 scripts/analyze_subpackages.py,输出 app.json 配置
Referenced artifact was not completely inspected
AI 运行 scripts/analyze_subpackages.py,输出 app.json 配置
Referenced artifact was not completely inspected
| 云开发(CRUD/聚合/事务/权限)| `references/cloud-dev.md` |
Referenced artifact was not completely inspected
| 云开发(CRUD/聚合/事务/权限)| `references/cloud-dev.md` |
Referenced artifact was not completely inspected
| 微信支付(JSAPI/下单/退款)| `references/payment.md` |
Referenced artifact was not completely inspected
| 微信支付(JSAPI/下单/退款)| `references/payment.md` |
Referenced artifact was not completely inspected
| 客服消息 / 订阅消息 | `references/messaging.md` |
Referenced artifact was not completely inspected
| 客服消息 / 订阅消息 | `references/messaging.md` |
Referenced artifact was not completely inspected
| 内容安全 / 内容审核 | `references/content-safety.md` |
Referenced artifact was not completely inspected
| 内容安全 / 内容审核 | `references/content-safety.md` |
Hidden instructions were detected in comments or invisible text. These could contain malicious directives. Manual review is recommended.
const openid = cloud.getWXContext().OPENID // 微信自动注入
// 页面按钮授权
<!-- 头像选择按钮 -->
<button open-type="chooseAvatar" bindchooseavatar="onChooseAvatar">
<image src="{{avatarUrl}}" />
</button>
Hidden instructions were detected in comments or invisible text. These could contain malicious directives. Manual review is recommended.
const openid = cloud.getWXContext().OPENID // 微信自动注入
// 页面按钮授权
<!-- 头像选择按钮 -->
<button open-type="chooseAvatar" bindchooseavatar="onChooseAvatar">
<image src="{{avatarUrl}}" />
</button>
Hidden instructions were detected in comments or invisible text. These could contain malicious directives. Manual review is recommended.
```xml
<!-- index.wxml -->
<view id="box" class="box" bindtap="handleTap">点我</view>
Hidden instructions were detected in comments or invisible text. These could contain malicious directives. Manual review is recommended.
```xml
<!-- index.wxml -->
<view id="box" class="box" bindtap="handleTap">点我</view>
The phone-number flow handles highly sensitive personal data but lacks explicit warnings about minimization, masking, storage controls, consent, and prohibited logging/display patterns. In an authentication/reference guide, this omission is risky because implementers may copy the sample directly, leading to over-collection or accidental disclosure of phone numbers in UI, logs, or weakly protected database fields.
Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.
### 3.4 私密配置(云托管控制台)
> ⚠️ 以下敏感信息**绝对不能**写在代码或 .env 文件中,必须配置到云托管控制台「环境配置 → 私密配置」:
| 变量名 | 说明 | 配置位置 |
|--------|------|---------|
The Wi-Fi provisioning example sends the user's home SSID and password to a local device over plain HTTP, exposing sensitive credentials to interception by any party able to observe or interfere with the hotspot/local network path. In a hardware onboarding context this pattern may be common, but presenting it without prominent warnings, origin/authentication checks, or a safer pairing channel normalizes insecure credential handling and can lead developers to ship credential exposure into production.
Hidden instructions were detected in comments or invisible text. These could contain malicious directives. Manual review is recommended.
<!-- pages/live/room.wxml -->
<view class="room">
<!-- 直播播放器(微信直播插件)-->
<live-player
Detected: suspicious.exposed_secret_literal