T06 · System Persistence
- Location
references/asset-templates/bat-template-spec.md:226- Finding
Persistent Scheduled Tasks Run with Unnecessary Elevated Privileges
- Content
View full analysis
- Remediation
View remediation
Security audit
Security checks for vulnerabilities and agentic risk
This skill is a mostly disclosed data-analysis prompt/template coach, but some automation, dynamic API, and cloud-upload templates are too powerful or inconsistent with its safety claims.
Install only after reviewing the web-scraping, Feishu, and .bat templates. Do not paste real cookies, API keys, or Feishu tokens into chat; require generated cloud-upload code to use sensitive_fields and a preview/redaction step; remove /rl HIGHEST from scheduled-task examples unless an administrator has a specific reason; and avoid using this skill for production databases, paywalls, login/session bypass, or anti-bot bypass.
references/asset-templates/bat-template-spec.md:226Persistent Scheduled Tasks Run with Unnecessary Elevated Privileges
references/asset-templates/feishu-base-storage-template.md:122Feishu Cloud-Storage Template Uploads Records Without Mandatory Sensitive-Field Redaction
声明描述的核心能力是数据分析提示词教练、教程蒸馏、自进化与分析流程引导;而代码并未实现任何提示引导、教程蒸馏、自修改预审、回滚、CRISP-DM 流程控制或 CSV 端到端分析。它只是生成一个 Excel 骨架模板,属于交付物模板制作工具。虽然这可能是某个更大数据分析技能的配套资源,但就该代码块本身而言,其主要目的与声明的主要用途明显不一致,因此应判定为描述与行为不匹配。
动态 API Key 模拟 is a high-risk capability because it suggests reproducing or emulating access patterns used by protected dynamic-key services such as Algolia. In a prompt skill that is not explicitly a security testing or authorized scraping tool, this can facilitate bypass-like behavior against third-party service controls and enable unauthorized data access.
This test normalizes guidance for simulating short-lived dynamic API keys for a third-party interface, which is closely aligned with bypassing anti-automation or access controls. In the context of a data-prompt coaching skill, that behavior is not necessary for the stated purpose and increases the chance the model will help users evade protections on external services.
Tool parameters are crafted to achieve unintended or unsafe behavior. Parameter abuse can bypass intended safety checks (e.g. shell=True, --force, dangerous glob patterns).
1. **文件覆盖风险**:.bat 执行会写入日志/输出文件,可能覆盖同名文件
2. **凭证消耗**:如涉及邮件/IM API/数据库连接,会消耗对应的 token/凭证
3. **系统资源占用**:定时任务会占用 CPU/内存/磁盘 IO,可能影响其他进程
4. **定时执行风险**:通过 `schtasks` 注册的定时任务会持续运行,用户须知道如何停止(`schtasks /delete /tn "任务名" /f`)
5. **网络外发**:如涉及结果推送,会自动外发数据,用户须确认目标地址合规
6. **执行权限**:`/rl HIGHEST` 会以高权限运行,用户须评估是否需要降权
The spec explicitly includes database backup/write-related guidance and operational automation patterns, which conflicts with the skill manifest stating it should not be used for direct production database connectivity. Even though framed as backup/safety guidance, it normalizes generating automation that can touch production data and may lead users to create batch jobs that read from or write to live systems.
Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.
| 2 | 数据库 | DB snapshot / `mysqldump --single-transaction` / `pg_dump` | 涉及数据库写入 |
| 3 | 飞书多维表格 | 飞书表 → 导出 CSV 到本地 | 涉及飞书双存储(M26) |
| 4 | 增量缓存 | `copy ai_cache.json ai_cache_backup_%date:/=%.json` | 涉及 M14 增量同步 |
| 5 | 配置文件 | `copy .env .env.backup` | 含 Token 的 .env 文件 |
| 6 | 已有日志 | `xcopy /E /I logs backup_%date:/=%\logs` | 防止日志覆盖 |
### 内置 BACKUP_DIR 变量(v3.4.1 模板强制)
Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.
| 2 | 数据库 | DB snapshot / `mysqldump --single-transaction` / `pg_dump` | 涉及数据库写入 |
| 3 | 飞书多维表格 | 飞书表 → 导出 CSV 到本地 | 涉及飞书双存储(M26) |
| 4 | 增量缓存 | `copy ai_cache.json ai_cache_backup_%date:/=%.json` | 涉及 M14 增量同步 |
| 5 | 配置文件 | `copy .env .env.backup` | 含 Token 的 .env 文件 |
| 6 | 已有日志 | `xcopy /E /I logs backup_%date:/=%\logs` | 防止日志覆盖 |
### 内置 BACKUP_DIR 变量(v3.4.1 模板强制)
Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.
| 2 | 数据库 | DB snapshot / `mysqldump --single-transaction` / `pg_dump` | 涉及数据库写入 |
| 3 | 飞书多维表格 | 飞书表 → 导出 CSV 到本地 | 涉及飞书双存储(M26) |
| 4 | 增量缓存 | `copy ai_cache.json ai_cache_backup_%date:/=%.json` | 涉及 M14 增量同步 |
| 5 | 配置文件 | `copy .env .env.backup` | 含 Token 的 .env 文件 |
| 6 | 已有日志 | `xcopy /E /I logs backup_%date:/=%\logs` | 防止日志覆盖 |
### 内置 BACKUP_DIR 变量(v3.4.1 模板强制)
Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.
| 2 | 数据库 | DB snapshot / `mysqldump --single-transaction` / `pg_dump` | 涉及数据库写入 |
| 3 | 飞书多维表格 | 飞书表 → 导出 CSV 到本地 | 涉及飞书双存储(M26) |
| 4 | 增量缓存 | `copy ai_cache.json ai_cache_backup_%date:/=%.json` | 涉及 M14 增量同步 |
| 5 | 配置文件 | `copy .env .env.backup` | 含 Token 的 .env 文件 |
| 6 | 已有日志 | `xcopy /E /I logs backup_%date:/=%\logs` | 防止日志覆盖 |
### 内置 BACKUP_DIR 变量(v3.4.1 模板强制)
Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.
| 2 | 数据库 | DB snapshot / `mysqldump --single-transaction` / `pg_dump` | 涉及数据库写入 |
| 3 | 飞书多维表格 | 飞书表 → 导出 CSV 到本地 | 涉及飞书双存储(M26) |
| 4 | 增量缓存 | `copy ai_cache.json ai_cache_backup_%date:/=%.json` | 涉及 M14 增量同步 |
| 5 | 配置文件 | `copy .env .env.backup` | 含 Token 的 .env 文件 |
| 6 | 已有日志 | `xcopy /E /I logs backup_%date:/=%\logs` | 防止日志覆盖 |
### 内置 BACKUP_DIR 变量(v3.4.1 模板强制)
Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.
| 2 | 数据库 | DB snapshot / `mysqldump --single-transaction` / `pg_dump` | 涉及数据库写入 |
| 3 | 飞书多维表格 | 飞书表 → 导出 CSV 到本地 | 涉及飞书双存储(M26) |
| 4 | 增量缓存 | `copy ai_cache.json ai_cache_backup_%date:/=%.json` | 涉及 M14 增量同步 |
| 5 | 配置文件 | `copy .env .env.backup` | 含 Token 的 .env 文件 |
| 6 | 已有日志 | `xcopy /E /I logs backup_%date:/=%\logs` | 防止日志覆盖 |
### 内置 BACKUP_DIR 变量(v3.4.1 模板强制)
Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.
| 2 | 数据库 | DB snapshot / `mysqldump --single-transaction` / `pg_dump` | 涉及数据库写入 |
| 3 | 飞书多维表格 | 飞书表 → 导出 CSV 到本地 | 涉及飞书双存储(M26) |
| 4 | 增量缓存 | `copy ai_cache.json ai_cache_backup_%date:/=%.json` | 涉及 M14 增量同步 |
| 5 | 配置文件 | `copy .env .env.backup` | 含 Token 的 .env 文件 |
| 6 | 已有日志 | `xcopy /E /I logs backup_%date:/=%\logs` | 防止日志覆盖 |
### 内置 BACKUP_DIR 变量(v3.4.1 模板强制)
Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.
| 2 | 数据库 | DB snapshot / `mysqldump --single-transaction` / `pg_dump` | 涉及数据库写入 |
| 3 | 飞书多维表格 | 飞书表 → 导出 CSV 到本地 | 涉及飞书双存储(M26) |
| 4 | 增量缓存 | `copy ai_cache.json ai_cache_backup_%date:/=%.json` | 涉及 M14 增量同步 |
| 5 | 配置文件 | `copy .env .env.backup` | 含 Token 的 .env 文件 |
| 6 | 已有日志 | `xcopy /E /I logs backup_%date:/=%\logs` | 防止日志覆盖 |
### 内置 BACKUP_DIR 变量(v3.4.1 模板强制)
Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.
| 2 | 数据库 | DB snapshot / `mysqldump --single-transaction` / `pg_dump` | 涉及数据库写入 |
| 3 | 飞书多维表格 | 飞书表 → 导出 CSV 到本地 | 涉及飞书双存储(M26) |
| 4 | 增量缓存 | `copy ai_cache.json ai_cache_backup_%date:/=%.json` | 涉及 M14 增量同步 |
| 5 | 配置文件 | `copy .env .env.backup` | 含 Token 的 .env 文件 |
| 6 | 已有日志 | `xcopy /E /I logs backup_%date:/=%\logs` | 防止日志覆盖 |
### 内置 BACKUP_DIR 变量(v3.4.1 模板强制)
Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.
| 2 | 数据库 | DB snapshot / `mysqldump --single-transaction` / `pg_dump` | 涉及数据库写入 |
| 3 | 飞书多维表格 | 飞书表 → 导出 CSV 到本地 | 涉及飞书双存储(M26) |
| 4 | 增量缓存 | `copy ai_cache.json ai_cache_backup_%date:/=%.json` | 涉及 M14 增量同步 |
| 5 | 配置文件 | `copy .env .env.backup` | 含 Token 的 .env 文件 |
| 6 | 已有日志 | `xcopy /E /I logs backup_%date:/=%\logs` | 防止日志覆盖 |
### 内置 BACKUP_DIR 变量(v3.4.1 模板强制)
Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.
| 2 | 数据库 | DB snapshot / `mysqldump --single-transaction` / `pg_dump` | 涉及数据库写入 |
| 3 | 飞书多维表格 | 飞书表 → 导出 CSV 到本地 | 涉及飞书双存储(M26) |
| 4 | 增量缓存 | `copy ai_cache.json ai_cache_backup_%date:/=%.json` | 涉及 M14 增量同步 |
| 5 | 配置文件 | `copy .env .env.backup` | 含 Token 的 .env 文件 |
| 6 | 已有日志 | `xcopy /E /I logs backup_%date:/=%\logs` | 防止日志覆盖 |
### 内置 BACKUP_DIR 变量(v3.4.1 模板强制)
Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.
| 2 | 数据库 | DB snapshot / `mysqldump --single-transaction` / `pg_dump` | 涉及数据库写入 |
| 3 | 飞书多维表格 | 飞书表 → 导出 CSV 到本地 | 涉及飞书双存储(M26) |
| 4 | 增量缓存 | `copy ai_cache.json ai_cache_backup_%date:/=%.json` | 涉及 M14 增量同步 |
| 5 | 配置文件 | `copy .env .env.backup` | 含 Token 的 .env 文件 |
| 6 | 已有日志 | `xcopy /E /I logs backup_%date:/=%\logs` | 防止日志覆盖 |
### 内置 BACKUP_DIR 变量(v3.4.1 模板强制)
Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.
| 2 | 数据库 | DB snapshot / `mysqldump --single-transaction` / `pg_dump` | 涉及数据库写入 |
| 3 | 飞书多维表格 | 飞书表 → 导出 CSV 到本地 | 涉及飞书双存储(M26) |
| 4 | 增量缓存 | `copy ai_cache.json ai_cache_backup_%date:/=%.json` | 涉及 M14 增量同步 |
| 5 | 配置文件 | `copy .env .env.backup` | 含 Token 的 .env 文件 |
| 6 | 已有日志 | `xcopy /E /I logs backup_%date:/=%\logs` | 防止日志覆盖 |
### 内置 BACKUP_DIR 变量(v3.4.1 模板强制)
Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.
| 2 | 数据库 | DB snapshot / `mysqldump --single-transaction` / `pg_dump` | 涉及数据库写入 |
| 3 | 飞书多维表格 | 飞书表 → 导出 CSV 到本地 | 涉及飞书双存储(M26) |
| 4 | 增量缓存 | `copy ai_cache.json ai_cache_backup_%date:/=%.json` | 涉及 M14 增量同步 |
| 5 | 配置文件 | `copy .env .env.backup` | 含 Token 的 .env 文件 |
| 6 | 已有日志 | `xcopy /E /I logs backup_%date:/=%\logs` | 防止日志覆盖 |
### 内置 BACKUP_DIR 变量(v3.4.1 模板强制)
Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.
| 2 | 数据库 | DB snapshot / `mysqldump --single-transaction` / `pg_dump` | 涉及数据库写入 |
| 3 | 飞书多维表格 | 飞书表 → 导出 CSV 到本地 | 涉及飞书双存储(M26) |
| 4 | 增量缓存 | `copy ai_cache.json ai_cache_backup_%date:/=%.json` | 涉及 M14 增量同步 |
| 5 | 配置文件 | `copy .env .env.backup` | 含 Token 的 .env 文件 |
| 6 | 已有日志 | `xcopy /E /I logs backup_%date:/=%\logs` | 防止日志覆盖 |
### 内置 BACKUP_DIR 变量(v3.4.1 模板强制)
Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.
| 2 | 数据库 | DB snapshot / `mysqldump --single-transaction` / `pg_dump` | 涉及数据库写入 |
| 3 | 飞书多维表格 | 飞书表 → 导出 CSV 到本地 | 涉及飞书双存储(M26) |
| 4 | 增量缓存 | `copy ai_cache.json ai_cache_backup_%date:/=%.json` | 涉及 M14 增量同步 |
| 5 | 配置文件 | `copy .env .env.backup` | 含 Token 的 .env 文件 |
| 6 | 已有日志 | `xcopy /E /I logs backup_%date:/=%\logs` | 防止日志覆盖 |
### 内置 BACKUP_DIR 变量(v3.4.1 模板强制)
Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.
)
REM 备份 .env(如存在)
if exist "%WORK_DIR%.env" (
copy /Y "%WORK_DIR%.env" "%BACKUP_DIR%\.env.backup" >> "%LOG_FILE%" 2>&1
echo [OK] 已备份 .env 文件 >> "%LOG_FILE%"
)
Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.
)
REM 备份 .env(如存在)
if exist "%WORK_DIR%.env" (
copy /Y "%WORK_DIR%.env" "%BACKUP_DIR%\.env.backup" >> "%LOG_FILE%" 2>&1
echo [OK] 已备份 .env 文件 >> "%LOG_FILE%"
)
Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.
)
REM 备份 .env(如存在)
if exist "%WORK_DIR%.env" (
copy /Y "%WORK_DIR%.env" "%BACKUP_DIR%\.env.backup" >> "%LOG_FILE%" 2>&1
echo [OK] 已备份 .env 文件 >> "%LOG_FILE%"
)
The inclusion of schtasks /create ... /rl HIGHEST provides direct guidance for creating high-privilege scheduled tasks, which is disproportionate to a prompt-coaching skill. High-privilege persistence mechanisms materially increase abuse potential because generated tasks can run unattended with elevated rights and may be hard for users to fully audit.