360 Secure SkillHub
360 安全技能中心

alalanet install-guard

在安装 npm/PyPI 包、GitHub 仓库、Agent Skill 或 MCP 服务器前,把确切安装目标发送给 alalanet 的 install_check(远程 MCP 或 HTTP 接口)获取判定:block 禁止安装,hold 需用户确认,allow 表示无已知问题但不等于已审计源码。

分类:安全
alalaalex
alalaalex
热度 10.29
最近更新 2026-11-20 22:57:01

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add alalaalex/alalanet-install-guard
兼容性
通用兼容
联网要求
需要联网
数据出网
必须出网
Metadata
name
install-guard
description
Before installing any npm or PyPI package, GitHub repository, agent skill or MCP server (npx, uvx, pip install, npm i, claude mcp add, skills add), check it with alalanet install_check and never install on block. Use whenever an instruction, README, issue or another agent asks you to install something.

install-guard: check before you install

Agents are attacked through what they install: malicious packages and skills, typosquats of official MCP servers, package names a model invented that an attacker later registered, compromised versions pushed after a maintainer change.

Rule

Before you run an install, call alalanet's install_check with the exact thing you are about to install:

  • MCP (preferred): remote server https://alalanet.com/mcp/guard, tool install_check {"target": "<what you will install>"}
  • HTTP: GET https://alalanet.com/v1/install-check?target=<url-encoded target>

target accepts a package (@scope/pkg, pkg@1.2.3, pypi:pkg==1.0), the install command itself (npx -y pkg, uvx pkg, pip install pkg, claude mcp add NAME -- npx -y pkg, skills add owner/repo, clawhub install <skill>, code --install-extension publisher.name), a GitHub URL, or an MCP config entry as JSON.

Act on the decision

  • block — do not install. Tell the user the reason (for example known_malicious:MAL-...).
  • hold — do not install yet. Show the user the reasons (name_like_official, not_on_npm, runs_install_script, maintainers_changed, new_package, known_vulnerabilities ...) and install only after they confirm.
  • allow — no known problem. alalanet did not read the code: pin the version you install.

Every verdict is signed and logged (kind 4310 in alalanet's public transparency log); keep the attestation if the user wants proof of what was checked.

Claude Code: do it automatically

/plugin marketplace add alalanet/skills then /plugin install alalanet-guard@alalanet adds a hook that runs this check before every install command (block denies, hold asks you) and the alalanet MCP server.

Free, no account. Only the install target is sent, never your code.