T03 · Remote Payload Retrieval and Execution
- Location
README.md:68- Finding
Installation instructions execute mutable remote scripts without integrity verification
- Content
View full analysis
- Remediation
View remediation
Security audit
Security checks for vulnerabilities and agentic risk
This audit skill is mostly coherent, but its installer uses unsafe remote execution and can delete and reclone an existing install without confirmation.
Do not use the README one-line install commands as written. Prefer cloning or downloading a reviewed, pinned release, verify it before running any script, and back up your skill directories before updates. When running the skill, review the action list carefully before approving archive, install, update, or description changes, and avoid the PR CI template on untrusted contributions unless web-enabled tools and external-agent access are restricted.
README.md:68Installation instructions execute mutable remote scripts without integrity verification
install.sh:34Shell installer destructively deletes the existing installation after any update failure
install.ps1:29PowerShell installer destructively removes the existing installation after update failure
The | bash pattern is a classic dangerous command chain because it turns a network fetch directly into shell execution with no inspection boundary. In a developer-tooling/skill ecosystem, users may run these commands in privileged environments or on workstations containing sensitive credentials, amplifying the blast radius of any upstream compromise.
curl -sL https://raw.githubusercontent.com/gtbwpkwjnb-alt/skills-audit-skill/main/install.sh | bash
Windows PowerShell:
The skill is presented primarily as an audit/reporting utility, but the content also authorizes installation, update, rollback, and local skill-directory modification behavior. That mismatch is dangerous because users may invoke what appears to be a passive audit skill while actually enabling shell execution and filesystem changes, increasing the chance of unintended code retrieval or local modification.
The skill is presented primarily as an audit/reporting utility, but the content also authorizes installation, update, rollback, and local skill-directory modification behavior. That mismatch is dangerous because users may invoke what appears to be a passive audit skill while actually enabling shell execution and filesystem changes, increasing the chance of unintended code retrieval or local modification.
Referenced artifact was not completely inspected
- 多 `SKILL.md` + `MEMORY.md` → `AI Agent 技能开发`
The | bash pattern is a classic chaining risk because it directly streams remote content into a shell interpreter, bypassing review and creating immediate code-execution exposure. In an installer context, this is especially dangerous because users are primed to run it with trust and it can execute arbitrary commands affecting their environment, files, and credentials.
#!/bin/bash
# skills-audit installer — curl -sL https://raw.githubusercontent.com/gtbwpkwjnb-alt/skills-audit-skill/main/install.sh | bash
set -e
This command chain combines a failed git pull with cd "$HOME" && rm -rf "$INSTALL_DIR" && git clone ..., making deletion and reinstallation automatic in a single fallback path. Such chaining reduces operator visibility and can turn a transient update error into destructive data loss or unsafe replacement of an existing installation.
if [ -d "$INSTALL_DIR" ]; then
echo " Already installed. Updating..."
cd "$INSTALL_DIR"
git pull --rebase 2>/dev/null || { cd "$HOME" && rm -rf "$INSTALL_DIR" && git clone "$REPO_SSH" "$INSTALL_DIR" 2>/dev/null || git clone "$REPO_HTTPS" "$INSTALL_DIR"; }
else
echo " Cloning..."
mkdir -p "$(dirname "$INSTALL_DIR")"
Skill reads from agent configuration directories (.claude/, .codex/, .gemini/). These directories may contain API keys, personal settings, and other credentials that the skill has no legitimate need to access.
# Codex 特有配置
codex:
skills_dir: "~/.codex/skills/"
config_file: "~/.codex/config.toml"
# Codex 当前技能生态较新,外部信号可能不丰富,建议降低 Community 阈值
community_min_stars: 5 # 默认100→降低到5(生态新)
The workflow invokes an external LLM/agent CLI in CI and explicitly grants it WebSearch/WebFetch capabilities. In a PR-triggered context, this can expose repository content or metadata to a third-party model/provider and can cause unreviewed outbound network access based on adversarial repository inputs, increasing supply-chain and data-exfiltration risk.
id: audit
run: |
# Claude Code headless 模式
claude -p "运行 skills-audit --ci --output-format json" \
--output-format json \
--max-turns 15 \
--allowedTools "Read,Grep,WebSearch,WebFetch" \
The file begins with a hidden Unicode BOM/non-printing character, which can conceal content differences and interfere with parsers, diff tools, or security scanning pipelines. In an agent skill flow document, hidden characters increase the risk of instruction smuggling or inconsistent interpretation between tools, especially in CI/CD and automated audit contexts.
# ⑥ 生成报告
**评分快照即时持久化**:报告输出前立即持久化评分快照到 .data/stats.json。
The file begins with a hidden BOM/invisible character, which can constitute a hidden-instruction pattern because non-printing characters may interfere with parsing, diff review, or downstream tooling. In this specific context the content is not overtly malicious and actually enforces explicit user confirmation, so the danger is limited, but invisible leading characters still create avoidable ambiguity in security-sensitive workflow files.
# ⑦-b 用户确认
展示操作清单(含快照路径),等待用户确认后执行。任何修改操作均需用户明确确认。
The template explicitly labels English-only descriptions as noncompliant and instructs conversion to Chinese, which imposes a language policy on content rather than evaluating security or functional quality. In a skill-auditing tool, this is more dangerous because it can systematically rewrite metadata, misclassify valid skills as defective, and trigger bulk changes that damage multilingual repositories or violate organizational localization rules.
Skill modifies its own code, configuration, or behavior at runtime. Self-modification enables an agent to escalate privileges, disable safety constraints, or install persistent backdoors.
- name: "summarize"
version: "6.8.0"
category: docs
tags: ["summary", "session", "context", "token-tracking", "error-harvest", "self-evolve", "compress", "cross-agent"]
description: "总结 → 错误收割·自进化·可逆压缩 | Summarize → error harvest·self-evolve·compress"
source: "local"
homepage: "https://github.com/gtbwpkwjnb-alt/summarize-skill"
Skill modifies its own code, configuration, or behavior at runtime. Self-modification enables an agent to escalate privileges, disable safety constraints, or install persistent backdoors.
- name: "summarize"
version: "6.8.0"
category: docs
tags: ["summary", "session", "context", "token-tracking", "error-harvest", "self-evolve", "compress", "cross-agent"]
description: "总结 → 错误收割·自进化·可逆压缩 | Summarize → error harvest·self-evolve·compress"
source: "local"
homepage: "https://github.com/gtbwpkwjnb-alt/summarize-skill"
Hidden instructions were detected in comments or invisible text. These could contain malicious directives. Manual review is recommended.
# 分层测试 — T1/T2/T3 + T3 活性验证
> 验证 ④ 三级分层 + ④-a T3 活性验证逻辑
Hidden instructions were detected in comments or invisible text. These could contain malicious directives. Manual review is recommended.
# 分层测试 — T1/T2/T3 + T3 活性验证
> 验证 ④ 三级分层 + ④-a T3 活性验证逻辑
Hidden instructions were detected in comments or invisible text. These could contain malicious directives. Manual review is recommended.
# 分层测试 — T1/T2/T3 + T3 活性验证
> 验证 ④ 三级分层 + ④-a T3 活性验证逻辑
Hidden instructions were detected in comments or invisible text. These could contain malicious directives. Manual review is recommended.
# 分层测试 — T1/T2/T3 + T3 活性验证
> 验证 ④ 三级分层 + ④-a T3 活性验证逻辑
Hidden instructions were detected in comments or invisible text. These could contain malicious directives. Manual review is recommended.
# 分层测试 — T1/T2/T3 + T3 活性验证
> 验证 ④ 三级分层 + ④-a T3 活性验证逻辑
Hidden instructions were detected in comments or invisible text. These could contain malicious directives. Manual review is recommended.
# 分层测试 — T1/T2/T3 + T3 活性验证
> 验证 ④ 三级分层 + ④-a T3 活性验证逻辑
Hidden instructions were detected in comments or invisible text. These could contain malicious directives. Manual review is recommended.
# 分层测试 — T1/T2/T3 + T3 活性验证
> 验证 ④ 三级分层 + ④-a T3 活性验证逻辑
Hidden instructions were detected in comments or invisible text. These could contain malicious directives. Manual review is recommended.
# 分层测试 — T1/T2/T3 + T3 活性验证
> 验证 ④ 三级分层 + ④-a T3 活性验证逻辑
Hidden instructions were detected in comments or invisible text. These could contain malicious directives. Manual review is recommended.
# 分层测试 — T1/T2/T3 + T3 活性验证
> 验证 ④ 三级分层 + ④-a T3 活性验证逻辑
Hidden instructions were detected in comments or invisible text. These could contain malicious directives. Manual review is recommended.
# 分层测试 — T1/T2/T3 + T3 活性验证
> 验证 ④ 三级分层 + ④-a T3 活性验证逻辑
Hidden instructions were detected in comments or invisible text. These could contain malicious directives. Manual review is recommended.
# 分层测试 — T1/T2/T3 + T3 活性验证
> 验证 ④ 三级分层 + ④-a T3 活性验证逻辑
Hidden instructions were detected in comments or invisible text. These could contain malicious directives. Manual review is recommended.
# 分层测试 — T1/T2/T3 + T3 活性验证
> 验证 ④ 三级分层 + ④-a T3 活性验证逻辑
No suspicious patterns detected.