# dagsec

> dagsec: stop agents installing hallucinated or vulnerable packages

dagsec is a free AI agent skill on Agensi by hasanerman, in Security. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: Free
- Creator: [hasanerman](https://www.agensi.io/creators/hasanerman)
- Category: [Security](https://www.agensi.io/skills/security)
- Uses: 2
- Version: 1.0
- Last updated: 2026-10-12
- Security: scan passed (2026-10-12); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/dagsec
- Tags: security, code-review, ai-agents, npm, pypi

## About this skill

**Website: [dagsec.net](https://dagsec.net/agensi)** · [Docs](https://docs.dagsec.net) · [Source](https://github.com/hasanerman/dagsec-claude)

Coding agents install packages from memory: names that don't exist (hallucinated or typosquatted) and versions with known critical vulnerabilities. dagsec checks every npm, PyPI, crates.io, Go, Maven and NuGet package against live data before it's installed.

This skill teaches your agent to use dagsec. The protection itself, blocking risky installs before they run, comes from the free official dagsec plugin. Install it from the source so you always get the current version.

### Install in Claude Code

1. Create a free API key at [app.dagsec.net/keys](https://app.dagsec.net/keys)
2. Run:

```
/plugin marketplace add hasanerman/dagsec-claude
 /plugin install dagsec@dagsec
```

### Cursor, Windsurf, GitHub Copilot

Connect them in one click with the [dagsec desktop app](https://dagsec.net/agensi).

### Links

- **Website:** [dagsec.net](https://dagsec.net/agensi)
- **Documentation:** [docs.dagsec.net](https://docs.dagsec.net)
- **Plugin source:** [github.com/hasanerman/dagsec-claude](https://github.com/hasanerman/dagsec-claude)

## Known limitations

Needs the free dagsec plugin (or the desktop app for agents other than Claude Code) and a free API key; without them the skill only explains how to set dagsec up. Checks npm, PyPI, crates.io, Go, Maven and NuGet. Blocks installs the agent runs, not commands a person types into a terminal.

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the dagsec skill from Agensi" and describe your task.
3. Your agent loads the skill from Agensi when it needs it. Nothing is downloaded.

## Frequently asked questions

### How does dagsec prevent AI agents from introducing supply-chain vulnerabilities?

Before an agent adds or upgrades a package, dagsec checks it against live registry and vulnerability data. If the package doesn't exist (a hallucinated or typosquatted name) or the version has known critical or high vulnerabilities, the install is blocked and the agent is told which version is safe.

### Which package registries are supported?

npm, PyPI, crates.io, Go modules, Maven and NuGet.

### What do I need to set it up?

A free API key from app.dagsec.net/keys. In Claude Code, install the official plugin with /plugin marketplace add hasanerman/dagsec-claude and /plugin install dagsec@dagsec. For Cursor, Windsurf, GitHub Copilot and others, the dagsec desktop app connects them.

### Why can’t I just ask my AI agent to check packages itself?

The agent's knowledge stops at its training cutoff, so it can't know about vulnerabilities published since, and it may confidently suggest packages that don't exist. dagsec answers from current data at the moment of install.

### Can this skill scan existing projects, or only new installs?

The skill covers packages as they are added or upgraded. To scan a whole existing project, including its full git history for leaked secrets, use a dagsec scan from the dashboard at app.dagsec.net, the desktop app's local scan, or the dagsec GitHub Action.

### Does dagsec stop commands I type myself?

No. It checks installs the AI agent runs. Commands a person types directly into a terminal are not intercepted.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
