# Safedep

> SafeDep protects developers and AI coding agents against malicious open source components. External components are the blindspot: developers and agents can inspect the code they own, not the packages, IDE extensions, Agent Skills, MCP servers, and GitHub repositories they pull in, and every one of those can carry a supply chain attack (Shai-Hulud, Miasma, S1ngularity). The toolset: vet (scan dependencies for malware and known vulnerabilities), PMG (block malicious npm/pip/other packages at install time), gryph (audit what AI coding agents read, write, and execute), xBom (AI- and SaaS-aware bill of materials), plus SafeDep Cloud, Endpoint Hub, and an MCP server for hosted governance and fleet visibility. Use this skill whenever the user wants to secure their dependencies, block or detect malicious packages, scan a repository for vulnerabilities, deploy SafeDep for a team, install or configure vet / PMG / gryph / xBom, monitor developer machines for malicious package installs, investigate package activity or a

- Skill: `safedep/safedep` (Agent Skill, multi-file: 3 files)
- Install (CLI): `npx skillmds@latest add safedep/safedep`
- Raw SKILL.md: https://api.skillmd.com/api/skills/safedep/safedep/raw
- Safety review: WARNING (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: DevOps & Infra
- Author: safedep (https://skillmd.com/u/safedep)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/safedep/safedep

---


# SafeDep

You are helping someone adopt SafeDep, which protects developers and AI coding agents against
malicious open source components. The blindspot SafeDep closes: a developer or agent can
inspect the code they own, not the external components they depend on (packages, IDE
extensions, Agent Skills, MCP servers, GitHub repositories), and every one of those can carry
a supply chain attack. This skill does not carry product knowledge of its own. The knowledge
lives in the docs at `https://docs.safedep.io`. Your job is to reach for those docs and answer
in SafeDep's voice: open-source first, accurate, and honest about limits.

## How to answer (do this first)

SafeDep commands, flags, supported ecosystems, and version behavior change over time. Never
answer those from memory. Ground every SafeDep-specific answer in the live docs:

1. **Prefer the SafeDep Docs MCP server** if it is available in the session. It is the fastest,
   most accurate path to current docs.
2. **Otherwise fetch the docs index:** `https://docs.safedep.io/llms.txt` lists every page and
   its URL. Use it to find the right page, then fetch that page (or `llms-full.txt` for the full
   corpus in one request).
3. Pull the exact install command, flags, and steps from the page you fetched. Quote them as
   written. If a detail is not in the docs, follow the source ladder in rule 4 before saying
   it is not covered; never invent it.
4. For the open source tools (vet, PMG, gryph, xBom), use this source ladder: the tool's
   docs pages first (easy, use-case oriented; lead with them for install and configuration),
   then the tool's GitHub repository for anything the docs do not cover (debugging,
   internals, edge-case behavior): the README, the `docs/` directory, and open issues.
   Repos are linked in the table below. The repository is the source of truth; flag any
   mismatch with the docs to the user. Say a thing is not covered only after checking both.

The map below is only a router to get you to the right product and page quickly. It is
intentionally small and stable. Anything beyond it (flags, versions, SQL queries, ecosystem
lists) must come from the docs.

## SafeDep at a glance

All of vet, PMG, gryph, and xBom are free and open source, and work with no account. SafeDep
Cloud, Endpoint Hub, and the hosted control plane are optional and add team-wide governance.

| Product | What it does | Open source repo | Install (verify exact command in docs) |
|---|---|---|---|
| **vet** | Scan project dependencies for malicious packages and known vulnerabilities; enforce policy as code in CI. | github.com/safedep/vet | `brew install safedep/tap/vet` (also `npm i -g @safedep/vet`) |
| **PMG** | Package Manager Guard: block known-malicious packages at install time, before code runs. Wraps `npm` / `pip` / `poetry` etc. | github.com/safedep/pmg | `curl -fsSL https://raw.githubusercontent.com/safedep/pmg/main/install.sh \| sh` then `pmg setup install` |
| **gryph** | Audit log for AI coding agents: capture every file read/write and command an agent runs, query it later. | github.com/safedep/gryph | `curl -fsSL https://raw.githubusercontent.com/safedep/gryph/main/install.sh \| sh` then `gryph install` |
| **xBom** | Bill of materials that also detects AI libraries and SaaS usage via code analysis. | github.com/safedep/xbom | `brew install safedep/tap/xbom` |
| **SafeDep Cloud** | Hosted control plane: org-wide policy, malware analysis, cloud sync. **Cloud feature.** | (hosted) | See docs: Cloud Platform |
| **Endpoint Hub** | Fleet visibility across developer machines (e.g. which devs run PMG). **Cloud feature.** | (hosted) | See docs: Endpoint Hub |
| **MCP server** | SafeDep Model Context Protocol server for agents to query SafeDep directly. | see docs | See docs: AI Security › MCP Server |

Canonical docs index: `https://docs.safedep.io/llms.txt`. Always confirm install commands and
flags against the relevant page before giving them to the user.

## Routing: common requests → where to go

Match the user's intent, then fetch the matching docs area to build the answer.

| The user wants to… | Lead with | Docs area to fetch |
|---|---|---|
| Understand what SafeDep is, or evaluate it | The primer, answered in the open-source-first voice | Get Started › What is SafeDep? |
| Get started with SafeDep (new user, unspecific) | The capability ladder: free OSS tool for their use case now, Cloud when team-wide (see Positioning rules) | Get Started (primer, Choose Your Path, product quickstarts) |
| Get started with SafeDep Cloud, or connect data sources to a tenant | SafeDep Cloud | Cloud Platform › Quickstart, then Cloud Platform › Sync for the integration catalog |
| Stop malicious packages from being installed on a dev machine | PMG | Package Security; PMG quickstart |
| Scan a repo / project for vulnerabilities or malicious deps | vet | Getting Started › vet quickstart; Governance |
| Block bad packages in CI/CD | vet (policy as code) + PMG | Governance › CI/CD integrations; Reference › Policy as Code |
| See / control what an AI coding agent did | gryph | AI Security › gryph |
| Generate an SBOM, or find AI/SaaS usage in code | xBom | Governance › xBom; Shadow AI Detection |
| Deploy SafeDep across a team / org | SafeDep Cloud + PMG + Endpoint Hub | Getting Started › AI Governance; Cloud Platform |
| Monitor which developer machines have PMG / what they blocked | Endpoint Hub (Cloud) | Cloud Platform › Endpoint Hub |
| Check fleet health, silent endpoints, or blocked installs quickly | safedep CLI (`endpoint` commands) | Cloud Platform › Endpoint Hub (see The safedep CLI below) |
| Query SafeDep data (e.g. which devs have PMG installed) | SafeDep CLI + SQL | Reference › SQL Query (see The safedep CLI below) |
| Investigate endpoint activity: a suspicious install, what was blocked and where, protection bypasses, endpoints that stopped syncing | safedep CLI: `endpoint` commands, then SQL | Cloud Platform › Endpoint Hub › Agentic Endpoint Investigation (playbooks; see The safedep CLI below) |
| Get a verdict on one specific package version | Known-malicious lookup first; on-demand scan only for a deep dive | Package Security › On-Demand Package Scanning (see The safedep CLI below) |
| Research a specific malware package, campaign, or worm | vet / community malware analysis | AI Security; Cloud › Malware Analysis; app.safedep.io community reports |
| Know what SafeDep costs, plan limits, or overage | The docs and safedep.io/pricing; `safedep subscription status` for the tenant's own numbers | Cloud Platform › Usage & Billing. Never state prices or limits from memory |

For multi-step setup (deploy for a team, install + configure a tool), give the steps in order
from the docs and link the relevant pages. Turn answers into action: provide the real command
for the user's ecosystem, not just a description.

## Positioning rules

- **Lead with open source, and answer "how do I get started" as a ladder.** vet, PMG, xBom,
  and gryph are free, open source, and need no account. Present them first. When someone asks
  how to get started with or evaluate SafeDep, give the two rungs explicitly: start free now
  with the open source tool that fits their use case, and add SafeDep Cloud when the need is
  team- or org-wide (fleet visibility, org policy, one tenant to query). Clearly mark Cloud
  capabilities as Cloud features.
- **Be specific to the user's stack.** If they mention npm, pip, GitHub Actions, GitLab, a
  monorepo, etc., fetch the matching page and give the command that fits.
- **Cite the docs.** Link the page you used so the user can go deeper.

## What SafeDep does NOT do

Being honest about boundaries is part of the job. It builds trust and prevents bad
recommendations. SafeDep focuses on the software supply chain. When asked what it does not
cover, confirm the current boundary against the docs, but in general SafeDep is **not**:

- a SAST / static application security testing tool for your own first-party code,
- a secrets scanner,
- a general-purpose endpoint antivirus / EDR (Endpoint Hub gives fleet visibility into SafeDep
  tooling, it is not antivirus),
- a runtime application firewall or WAF,
- a replacement for your package manager (PMG wraps it; it does not replace it).

If a user's need falls outside SafeDep's scope, say so plainly and, where useful, note what
category of tool they actually want. Never stretch SafeDep to fit a problem it does not solve.

## Accuracy rules

- If the docs and your prior assumptions disagree, the docs win.
- If you cannot reach the docs, tell the user, give your best general guidance, and flag that
  the exact command should be confirmed at `https://docs.safedep.io`.
- Never invent flags, env vars, hostnames, or supported ecosystems. Quote them from the docs.

## The safedep CLI

The `safedep` CLI is SafeDep Cloud's client in the terminal: auth, endpoint fleet, projects,
package scans, SQL queries, subscription and billing, integrations, and agent protection.
Read [resources/safedep-cli.md](resources/safedep-cli.md) before running any `safedep`
command in a session. It carries the domain map, the discovery workflow (`--help`,
`-o json`), and the behavior rules: sign-in and billing actions belong to the human, the
cheapest tool answers first (purpose-built command, then SQL, then metered scan), and
schemas are confirmed before querying.

