Back to skill

Security audit

Magneto Skill Master

Security checks for vulnerabilities and agentic risk

Overview

This skill is not overtly malicious, but it teaches an agent to install and execute third-party skills with broad local changes and weakened sandboxing.

Review before installing. This skill should only be used when you intentionally want an agent to fetch and install a specific external skill repository. Do not let it disable sandboxing or run pip install on untrusted requirements without a disposable environment, pinned dependencies, and a full file review. Confirm the target repository, commit, files to copy, dependencies, and any script execution before proceeding.

Vulnerability Patterns
  • Remote Payload Retrieval and ExecutionFetches external code whose behavior can change after review
  • 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
  • Embedded Malicious CodeShips malicious scripts inside the skill and executes them locally
Findings (2)

T03 · Remote Payload Retrieval and Execution

Error
Location
SKILL.md:38
Finding

Incomplete Static Audit Before Executing Remotely Retrieved Skill Code

Content
View full analysis
# If network access fails, download and extract a tarball or ZIP. # Store the repository in a temporary staging directory. ``` ```bash # SKILL.md:43-50 # Scan SKILL.md, scripts/, and references/ for dangerous patterns. # If the skills-security-check capability is unavailable, # use the grep commands in references/audit_patterns.md. ``` The referenced scan is limited to these paths: ```bash # references/audit_patterns.md:10-15 cd grep -rniE "os\.system|subprocess|eval\(|exec\(|shutil\.rmtree|os\.remove|os\.unlink|socket\.|requests\.(get|post)|urllib|pickle\.|__import__|input\(|webbrowser|os\.environ|getenv|api_key|secret|token|password|delete|rmtree" scripts/ 2>/dev/null grep -rniE "os\.system|subprocess|eval\(|exec\(|rm -rf|curl |wget |requests\.|urllib|api_key|secret|token|password|rmtree" SKILL.md references/ 2>/dev/null ``` Downloaded code is subsequently executed: ```bash # SKILL.md:77-83 pip install -r requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple py_compile scripts/*.py bash run_script.sh
Remediation
View remediation

T05 · Unauthorized Access and Privilege Escalation

Error
Location
SKILL.md:77
Finding

Third-Party Dependency Installation Is Instructed to Run Outside the Sandbox

Content
View full analysis
Remediation
View remediation
Vulnerability Patterns
  • Tool MisuseTool Parameter Abuse, Chaining Abuse, Unsafe Defaults
  • 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
Findings (14)

Ae1

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

Scanner excerpt · SKILL.md (reported line 41)May include surrounding context.

md
- 确认技能文件夹含 `SKILL.md`,并查看其顶层结构(scripts / references / templates / assets)。

Ae1

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

Scanner excerpt · SKILL.md (reported line 45)May include surrounding context.

md
- 确认技能文件夹含 `SKILL.md`,并查看其顶层结构(scripts / references / templates / assets)。

Ae1

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

Scanner excerpt · SKILL.md (reported line 59)May include surrounding context.

md
- 确认技能文件夹含 `SKILL.md`,并查看其顶层结构(scripts / references / templates / assets)。

Ae1

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

Scanner excerpt · SKILL.md (reported line 66)May include surrounding context.

md
- 确认技能文件夹含 `SKILL.md`,并查看其顶层结构(scripts / references / templates / assets)。

Vague Triggers

High
Category
Not specified by scanner
Confidence
97% confidence
Finding

The manifest registers very broad trigger phrases such as generic requests to 'install skill' or 'add a skill to workbuddy', which can cause this skill to intercept common user intents that were not specifically meant for this repository. Because the skill's stated purpose is to download, audit, and install external skills from GitHub/Gitee onto the local machine, overbroad activation increases the chance of unintended execution of a high-risk supply-chain workflow.

Content

No source excerpt is available for this finding.

Tool Parameter Abuse

High
Category
Tool Misuse
Confidence
90% confidence
Finding

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).

Content

Scanner excerpt · references/audit_patterns.md (reported line 23)May include surrounding context.

md
| 模式 | 风险 | 处理 |
|------|------|------|
| 外发网络到未知地址(`requests.post` 到外部 URL、`socket` -connect 到非本地、`urllib` 拉取远程脚本) | P0 | 强警告,必须用户确认 |
| 删除/移动工作区外文件(`shutil.rmtree` 绝对路径、无提示 `os.remove` 用户目录、`rm -rf ~`) | P0 | 强警告,必须用户确认 |
| 读取/外传凭据(`os.environ` 取 token、`api_key`、`secret`、`password` 并发送) | P0 | 强警告,必须用户确认 |
| `subprocess` / `os.system` 调本地脚本(如 `extract_text.py`) | 视情况 P1/P2 | 确认仅本地调用即可 |
| 交互式 `input()`、双击运行 `install.bat` 全局 pip 安装 | P1 | 告知并改为受管 venv |

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
83% confidence
Finding

The README explicitly labels 万磁王技能万事通 as the local Chinese trigger name, but it does not indicate that other languages are supported or that Chinese is an optional locale choice. Under the policy, forcing a specific language without opt-in can be a natural-language policy violation unless clearly justified.

Content

No source excerpt is available for this finding.

Vague Triggers

Medium
Category
Not specified by scanner
Confidence
95% confidence
Finding

The trigger description is extremely broad and overlaps with common user requests about downloading or installing skills, which can cause the skill to activate in situations beyond the user's precise intent. Because this skill performs repository acquisition, auditing, adaptation, and installation steps, overbroad activation increases the chance of unintended supply-chain actions or unsafe tool use on untrusted external content.

Content

No source excerpt is available for this finding.

Vague Triggers

Medium
Category
Not specified by scanner
Confidence
93% confidence
Finding

The usage section defines activation for 'any' scenario involving external skill installation without meaningful boundaries, making invocation ambiguous and overly permissive. In context, this is more dangerous than a normal prompt-routing issue because the skill is designed to fetch, copy, modify, and install code from external repositories, so accidental activation can lead to unintended local changes or unsafe supply-chain workflows.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
88% confidence
Finding

The instruction says the frontmatter name / description must include Chinese trigger words, which imposes a language requirement. This is a natural-language locale policy concern because the file does not present Chinese as optional or provide a user opt-in for language preference.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
92% confidence
Finding

The user-facing display name and description are entirely in Chinese, while the manifest also includes English trigger phrases, indicating mixed-language usage but no explicit user opt-in for Chinese-only presentation. This can violate language/locale policy because the skill imposes a specific language on some user-facing metadata without offering an alternative or justification.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
93% confidence
Finding

The file’s instructions and examples are entirely in Chinese, including operational guidance and expected text handling, with no indication that another language is supported or that Chinese is optional. Under the stated policy, forcing a specific language without user opt-in is a natural-language policy violation unless the locale restriction is clearly justified.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Low
Category
Not specified by scanner
Confidence
89% confidence
Finding

This markdown file presents all user-facing instructions exclusively in Chinese, including the title, steps, and notes. Under the policy scope for natural-language violations, forcing a specific language without offering the user a choice can be a locale/language policy issue.

Content

No source excerpt is available for this finding.

Missing User Warnings

Low
Category
Not specified by scanner
Confidence
92% confidence
Finding

The markdown includes commands that clone a repository and copy the skill into ~/.workbuddy/skills/, which modifies the local filesystem. While these steps are normal for installation, this README section does not explicitly warn the user that it will create local files and install a skill into their user directory.

Content

No source excerpt is available for this finding.