← 返回 Skills 市场
yuyonghao-123

Powershell Sandbox

作者 yuyonghao-123 · GitHub ↗ · v0.1.0 · MIT-0
cross-platform ⚠ suspicious
136
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install yuyonghao-powershell-sandbox
功能描述
在受限的 PowerShell 环境中安全执行脚本,支持命令白名单、超时控制、输出限制和文件路径隔离。
安全使用建议
Do not rely on this package to safely sandbox untrusted PowerShell code in its current form. The repository as provided does not include the core src/sandbox.ps1 implementation even though docs and package.json reference it. The test harness is superficial (it increments passes even when the sandbox script is missing and validates patterns rather than executing enforcement code), so the TEST_RESULTS.md is not strong proof of safety. Before installing or invoking: 1) obtain and review the actual src/sandbox.ps1 source; verify it implements the claimed static checks, .NET type restrictions, job-based timeout termination, output truncation, and file path isolation; 2) refuse to run or enable -AllowNetwork unless you fully trust the script; 3) run the sandbox only in an isolated environment (VM/container) until you audit it; 4) ask the author for a homepage/source repo and real tests that exercise enforcement (not just string checks); 5) avoid giving the agent elevated privileges or running as admin while testing. If you cannot get the sandbox.ps1 source, treat this skill as non-functional and potentially dangerous.
功能分析
Type: OpenClaw Skill Name: yuyonghao-powershell-sandbox Version: 0.1.0 The bundle claims to provide a 'PowerShell Security Sandbox' with advanced safety features like command whitelisting, .NET type restrictions, and code scanning; however, the core implementation file (src/sandbox.ps1) is missing from the provided content. This lack of functional code makes the extensive security claims in SKILL.md and TEST_RESULTS.md unverifiable and creates a 'false sense of security' risk. An AI agent might be misled into executing dangerous user-provided scripts under the assumption they are sandboxed, when the underlying protection mechanism is either absent or potentially a non-functional wrapper.
能力评估
Purpose & Capability
SKILL.md and package.json claim a sandbox executable at src/sandbox.ps1 (package.json 'main' points to it and the docs show many runtime options), but the file manifest does not include src/sandbox.ps1 or any src/ implementation. That mismatch means the skill as provided cannot deliver the claimed sandbox capability and is therefore incoherent.
Instruction Scope
The instructions direct the agent to execute an external PowerShell script via exec (e.g., executing skills/powershell-sandbox/src/sandbox.ps1 against paths inside the agent workspace). If the referenced sandbox script is absent or unreviewed, the agent would instead execute whatever script exists at the provided ScriptPath (potentially arbitrary user scripts). The SKILL.md also relies on pre-execution scanning and enforcement, but those enforcement steps are only described in prose — no implementation is present to verify they actually run.
Install Mechanism
No install spec (instruction-only skill), which lowers install-supply-chain risk. However, because no sandbox implementation is shipped, the lack of install artifacts increases the danger of a false assurance (the docs promise enforcement that isn't present).
Credentials
The skill requests no environment variables, no credentials, and no config paths. The declared environment access is proportionate to a local PowerShell sandbox. There are no unexplained secret or cloud credential requests.
Persistence & Privilege
always is false and the skill is user-invocable; it does not request permanent system-wide privileges. However, because it instructs the agent to exec local PowerShell with user-provided scripts, the runtime privilege depends on how the agent is run (the skill itself doesn't request elevated persistence).
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install yuyonghao-powershell-sandbox
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /yuyonghao-powershell-sandbox 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v0.1.0
Initial release of PowerShell sandbox for secure script execution: - Supports safe execution of user scripts with command whitelisting, .NET type restrictions, and pre-execution security scanning. - Provides timeout control (job-based), output limits, and file path isolation to prevent abuse. - Logs and audits all script executions, with clear exit codes for common error conditions. - Customizable whitelist, output, and timeout settings. - Includes test cases, usage instructions, and security recommendations.
元数据
Slug yuyonghao-powershell-sandbox
版本 0.1.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

Powershell Sandbox 是什么?

在受限的 PowerShell 环境中安全执行脚本,支持命令白名单、超时控制、输出限制和文件路径隔离。 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 136 次。

如何安装 Powershell Sandbox?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install yuyonghao-powershell-sandbox」即可一键安装,无需额外配置。

Powershell Sandbox 是免费的吗?

是的,Powershell Sandbox 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Powershell Sandbox 支持哪些平台?

Powershell Sandbox 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Powershell Sandbox?

由 yuyonghao-123(@yuyonghao-123)开发并维护,当前版本 v0.1.0。

💬 留言讨论