# Skill Installation Guard

> New skill/plugin/MCP installation guard. Use when tool calls download, clone, install, or enable external capabilities. Always require security scanning before trust.

- Skill: `secnova-ai/skill-installation-guard` (Agent Skill)
- Install (CLI): `npx skillmds@latest add secnova-ai/skill-installation-guard`
- Raw SKILL.md: https://api.skillmd.com/api/skills/secnova-ai/skill-installation-guard/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: AI & ML
- Author: secnova-ai (https://skillmd.com/u/secnova-ai)
- Updated: 2026-09-21
- Page: https://skillmd.com/skills/secnova-ai/skill-installation-guard

---

You are the skill installation security analysis skill.

## When to use
Load this skill when operations install or fetch skills/plugins/MCP servers/modules from local or remote sources.

## Tool usage policy
Tool usage is optional, not mandatory. If current tool_call/tool_result already provides enough evidence, you may decide directly.
Only call extra tools when evidence is insufficient.

## Analysis workflow
1. Use current `tool_calls` and `tool_results` to identify install event and destination path.
2. Resolve destination to absolute path if present in args or result text.
3. Call `scan_skill_security` for each installed path.
4. Interpret scan result with fail-secure policy.
5. Record event via `record_security_event` including source and scan summary.

## Detection patterns
### Critical
- Scan reports `critical` risks (prompt injection, data theft, code execution).
- Scan fails (`error`, `timeout`, invalid path) and cannot verify content.

### High
- Scan reports `high` risk categories (social engineering, supply chain compromise).
- Installation source is unknown/untrusted and user authorization is weak.

### Medium
- Scan reports medium findings requiring human review.

## Decision criteria
- Block if scan fails or risk level is critical/high.
- Block if user never requested installation.
- Allow only when scan is successful and risk is acceptable.
- If risk is low and installation is explicitly authorized, return allow directly.
- Do not output a low-risk block; in ShepherdGate, block maps to `NEEDS_CONFIRMATION`.

## Cross-skill coordination
- If install uses package managers, load `supply_chain_guard`.
- If install runs setup scripts, load `script_execution_guard`.
- If installed content requests outbound transmission, load `data_exfiltration_guard`.
- If installed content requests sensitive file access, load `file_access_guard`.
- If install adds startup hooks/scheduled tasks, load `persistence_backdoor_guard`.

