AgentSecConnect

Pre-install checks for AI agents

Packages with malicious releases. Vulnerabilities in agent tooling. One call.

Before your agent installs a package or starts an MCP server, one call says whether that version is malware (OpenSSF, Datadog), has a known vulnerability, or is exploited in the wild (CISA), and which version fixes it. When we don't know, we say so. We never guess clear.

Free to check, no key needed. Next: verified safe upgrades at $0.003 an answer, from prepaid credits, with a free sample first.

Welcome to AgentSec. We are live. Early operators: generate your agent key today. Safety warnings are free; paid safe-path answers switch on only after notice by email. Get your key from the command line.

This is the plain version of the page. With JavaScript on, it adds live counts, the key signup form, an API status light and blog audio.

How it works

  1. Generate a key. Name your agent, accept the terms, and copy the key. It takes a minute.
  2. Hand it to your agent. Point the agent at /api/check or add the AgentSec MCP server, with the key as AGENTSEC_API_KEY.
  3. Check before every build. Warnings are free. Malware and exploited packages come first, with the versions that fix them. Verified safe upgrades come next, paid per answer.

Every answer carries a coverage status and a decision; install only when the decision is allow. Only clear means no known issue at that version. not_covered and stale mean not checked: use another source and never report the package as safe. A not_covered answer still says whether a malware record was found (malware_check); no record is not a vulnerability check. unknown_version means the version couldn't be compared: check again with the exact installed version, and if you can't, treat it as affected. too_new means no known advisory yet, but the version is under 7 days old: wait, or use an older version. not_found means the registry has no such package or version: check the name, and don't install it. malicious means do not install any version.

Connect your agent

MCP server (Streamable HTTP): https://agentsec.store/mcp, tools check_package and check_packages. Checks are free and need no key. Setup for each client is also on AgentSec for AI agents.

Claude Code

claude mcp add --transport http agentsec https://agentsec.store/mcp

With an agent key:

claude mcp add --transport http agentsec https://agentsec.store/mcp \
  --header "Authorization: Bearer $AGENTSEC_API_KEY"

Your shell fills in the key from AGENTSEC_API_KEY, and Claude Code saves it in its own settings. In a shared .mcp.json, write "Bearer ${AGENTSEC_API_KEY}" instead, so the file holds only the variable name.

Cursor

.cursor/mcp.json in the project, or ~/.cursor/mcp.json

{
  "mcpServers": {
    "agentsec": {
      "url": "https://agentsec.store/mcp"
    }
  }
}

With an agent key:

{
  "mcpServers": {
    "agentsec": {
      "url": "https://agentsec.store/mcp",
      "headers": {
        "Authorization": "Bearer ${env:AGENTSEC_API_KEY}"
      }
    }
  }
}

Cursor reads AGENTSEC_API_KEY from the environment it was started in.

VS Code

.vscode/mcp.json

{
  "servers": {
    "agentsec": {
      "type": "http",
      "url": "https://agentsec.store/mcp"
    }
  }
}

With an agent key:

{
  "inputs": [
    {
      "type": "promptString",
      "id": "agentsec-key",
      "description": "AgentSec agent key",
      "password": true
    }
  ],
  "servers": {
    "agentsec": {
      "type": "http",
      "url": "https://agentsec.store/mcp",
      "headers": {
        "Authorization": "Bearer ${input:agentsec-key}"
      }
    }
  }
}

VS Code asks for the key once and stores it for you, so it never sits in the file. Its docs don't list environment variables for headers.

Codex

codex mcp add agentsec --url https://agentsec.store/mcp

With an agent key (~/.codex/config.toml):

[mcp_servers.agentsec]
url = "https://agentsec.store/mcp"
bearer_token_env_var = "AGENTSEC_API_KEY"

Codex sends AGENTSEC_API_KEY as the bearer token. Its docs list no command-line flag for this.

Windsurf

~/.config/devin/mcp_config.json

{
  "mcpServers": {
    "agentsec": {
      "url": "https://agentsec.store/mcp"
    }
  }
}

With an agent key:

{
  "mcpServers": {
    "agentsec": {
      "url": "https://agentsec.store/mcp",
      "headers": {
        "Authorization": "Bearer ${env:AGENTSEC_API_KEY}"
      }
    }
  }
}

Windsurf reads AGENTSEC_API_KEY from the environment. If your version sends the text unexpanded, write the key in this file instead and keep it private.

Cline

MCP settings (Cline defaults to SSE, so set the type)

{
  "mcpServers": {
    "agentsec": {
      "type": "streamableHttp",
      "url": "https://agentsec.store/mcp"
    }
  }
}

With an agent key:

{
  "mcpServers": {
    "agentsec": {
      "type": "streamableHttp",
      "url": "https://agentsec.store/mcp",
      "headers": {
        "Authorization": "Bearer ask_…"
      }
    }
  }
}

Cline's docs show the header value written out and name no environment-variable syntax, so replace ask_… with your key here. Keep this file out of shared or committed folders.

Plain HTTP

One package, one line back

curl -s 'https://agentsec.store/api/check?package=npm:@zereight/mcp-gitlab&version=2.1.29&format=an1'

Up to 200 packages at once

curl -s -X POST 'https://agentsec.store/api/check?format=an1' \
  -H 'content-type: application/json' \
  -d '{"packages":[{"package":"pip:mcp-atlassian","version":"0.22.0"}]}'

With an agent key (optional)

curl -s 'https://agentsec.store/api/check?package=pip:mcp-atlassian&version=0.22.0&detail=full' \
  -H "Authorization: Bearer $AGENTSEC_API_KEY"

API

Base URL https://agentsec.store. Full reference: API docs and OpenAPI 3.1.

EndpointWhat it does
GET /api/checkCheck one package version
POST /api/checkCheck up to 200 packages (e.g. a lockfile)
GET /api/healthService health
GET /api/todayNewest agent-relevant advisories (last 24 h)
GET /api/statsPublic counts: malicious packages, vulnerabilities, exploited
GET /api/metricsAggregates behind the /metrics page
GET /api/whoamiConfirm an agent key works
GET /api/keysThe terms version a key signup must accept
POST /api/keysCreate an agent key (a person accepts the terms)
GET /api/pricingPrices and how to pay
GET /api/pathwayVerified safe upgrade target (paid, test mode)
GET /api/creditsCredit balance for an agent key
POST /api/creditsTop up credits (Stripe Checkout) or confirm a paid top-up
GET /api/recipesBuild recipes with their sources
POST /mcpMCP server (Streamable HTTP)

Answer formats

JSON by default. Add &format=an1, &format=markdown or &format=mcp to /api/check.

JSON

GET /api/check?package=npm:@zereight/mcp-gitlab&version=2.1.29 · first of 4 advisories shown, summary and references trimmed

{
  "package": "npm:@zereight/mcp-gitlab",
  "key": "npm:@zereight/mcp-gitlab",
  "version": "2.1.29",
  "coverage": "affected",
  "advisories": [
    {
      "id": "GHSA-vmp7-252j-cwp7",
      "source": "ghsa",
      "cve_id": "CVE-2026-61568",
      "aliases": ["CVE-2026-61568"],
      "title": "@zereight/mcp-gitlab: DNS rebinding reaches local Streamable HTTP MCP transport",
      "summary": "`@zereight/mcp-gitlab` exposes its Streamable HTTP MCP endpoint without an effective Host or Origin allowlist…",
      "severity": "critical",
      "cvss_score": 9.6,
      "cvss_vector": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H",
      "cwes": ["CWE-350"],
      "malicious": false,
      "version_match": "match",
      "vulnerable_ranges": ["< 2.1.30"],
      "patched_versions": ["2.1.30"],
      "url": "https://github.com/advisories/GHSA-vmp7-252j-cwp7",
      "reference_urls": ["https://github.com/zereight/gitlab-mcp/releases/tag/v2.1.30"],
      "published_at": "2026-09-15T20:54:55+00:00",
      "modified_at": "2026-09-15T20:54:56+00:00"
    }
  ],
  "data_as_of": {
    "nvd": "2026-10-05T13:06:44Z",
    "ghsa": "2026-10-05T13:36:33Z",
    "osv": "2026-10-05T13:10:39Z"
  },
  "stale_sources": [],
  "sources": ["nvd", "ghsa", "osv"]
}

an1 line

?format=an1 · one line per package, about 40 tokens, no upstream text

an1 npm:@zereight/mcp-gitlab@2.1.29 AFFECTED act=fix sev=critical ids=2 fixes=2.1.30 asof=2026-10-05T13:06Z

Markdown

?format=markdown · for chat agents that show the answer to a person; upstream text escaped and quoted

**npm:@zereight/mcp\-gitlab 2\.1\.29**: **affected** (2 vulnerabilities, highest critical)

- Published fixed versions: 2\.1\.30\. Check that the version you pick clears every advisory.
- GHSA\-vmp7\-252j\-cwp7 / CVE\-2026\-61568 (critical): advisory title, quoted: "@zereight/mcp\-gitlab: DNS rebinding reaches local Streamable HTTP MCP transport"
- GHSA\-5648\-rgj9\-v224 (high): advisory title, quoted: "@zereight/mcp\-gitlab has multiple safety\-control bypasses: execute\_graphql read\-only \+ allow\-list bypass, unauthenticated transports, session\-exhaustion DoS"

_Data as of 2026-10-05 13:06 UTC._

MCP tool result

POST /mcp (MCP server, tool check_package) or ?format=mcp · shortened

{
  "content": [
    {
      "type": "text",
      "text": "an1 npm:@zereight/mcp-gitlab@2.1.29 AFFECTED act=fix sev=critical ids=2 fixes=2.1.30 asof=2026-10-05T13:06Z"
    }
  ],
  "structuredContent": {
    "results": [
      {
        "key": "npm:@zereight/mcp-gitlab",
        "version": "2.1.29",
        "coverage": "affected",
        "status": "AFFECTED",
        "action": "fix",
        "malicious": false,
        "severity": "critical",
        "advisory_ids": ["GHSA-vmp7-252j-cwp7", "GHSA-5648-rgj9-v224"],
        "fixed_versions": ["2.1.30"]
      }
    ],
    "data_as_of": { "nvd": "2026-10-05T13:06:44Z", "ghsa": "2026-10-05T13:36:33Z", "osv": "2026-10-05T13:10:39Z" },
    "stale_sources": []
  },
  "isError": false
}

Give your agent a key.

Checks work without one: warnings are free and need no key. A key adds full advisory detail, lets you see and revoke what each agent uses, and is where paid answers will be bought, with prices shown and a free sample first. One key per agent, as AGENTSEC_API_KEY.

Get a key from the command line

No browser needed. Edit the first lines, then paste this into a shell. It saves the key to a file only you can read and never shows it on screen.

# Read the terms first: https://agentsec.store/terms/
# Setting ACCEPT_TERMS=yes accepts them, as ticking the box on the form does.
ACCEPT_TERMS=no AGENT=my-agent EMAIL=you@example.com KEYFILE=~/.agentsec.env
API=https://agentsec.store/api/keys
if [ "$ACCEPT_TERMS" != yes ]; then echo "Read the terms, then set ACCEPT_TERMS=yes"
elif [ -e "$KEYFILE" ]; then echo "$KEYFILE exists; choose another KEYFILE"
else
  TERMS=$(curl -sS "$API" | sed -n 's/.*"terms_version":"\([^"]*\)".*/\1/p')
  BODY=$(printf '{"label":"%s","email":"%s","accept_terms":true,"terms_version":"%s"}' \
    "$AGENT" "$EMAIL" "$TERMS")
  RES=$(curl -sS "$API" -H 'content-type: application/json' -d "$BODY")
  KEY=$(printf '%s' "$RES" | sed -n 's/.*"key":"\(ask_[A-Za-z0-9_-]*\)".*/\1/p')
  if [ -n "$KEY" ]; then
    (umask 077; echo "export AGENTSEC_API_KEY=$KEY" > "$KEYFILE") && echo "Key saved to $KEYFILE"
  else printf '%s\n' "$RES"; fi
  unset RES KEY
fi

Then load the key and check that it works. Your agent reads AGENTSEC_API_KEY from its environment and sends it only in the Authorization: Bearer header, never in a URL or a prompt.

. ~/.agentsec.env
curl -s https://agentsec.store/api/whoami -H "Authorization: Bearer $AGENTSEC_API_KEY"

The signup form on this page needs JavaScript; the command does the same. What a key is, what stays free and how to send one: Agent keys.

WhatPrice
Verdicts, malware and exploited warningsFree, no key needed
Full advisory detail: summaries, references, CWEsFree with a key
Verified safe upgrade for one packageIn testing · $0.003 planned, free sample first
Stack rebuild plan: whole lockfile or mcp.jsonPlanned

The terms in short

  • AgentSec reports known advisories; a clear answer is not a guarantee that a package is safe.
  • Malicious and exploited warnings are never paywalled.
  • Keys are free, and nothing is billed today.
  • When paid answers launch, we show the prices and ask before billing; you can try a small, rate-limited sample first.
  • Paid answers will be charged only for answers actually returned (no charge for errors, stale or not-covered results).
  • Keep your key secret. We store only a hash of it and cannot show it again.
  • You are responsible for what your agents do with our answers; advisory text from third parties is untrusted.

Full text: Terms of Service, Privacy Notice.

Ask it anything. It says what it knows.

One call per package, or a whole lockfile at once. These are real answers, word for word.

  • Malware: an1 npm:@0xengine/meow@1.0.0 MALICIOUS act=remove sev=critical ids=1 Published to attack you. Every version, every time.
  • A hijacked release: an1 npm:chalk@5.6.1 MALICIOUS act=remove sev=critical ids=2 The poisoned version of a healthy package (OpenSSF and Datadog both list it).
  • Its other versions: an1 npm:chalk@5.3.0 UNKNOWN_VERSION act=verify ids=2 Not listed as poisoned, but we won't guess clear: check the exact version.
  • A known vulnerability: an1 npm:@zereight/mcp-gitlab@2.1.29 AFFECTED act=fix sev=critical ids=2 fixes=2.1.30 Affected, with the version that fixes it.
  • Clear: an1 npm:@zereight/mcp-gitlab@2.1.30 CLEAR act=proceed Covered, and nothing known affects this version.
  • Outside what we cover: an1 npm:left-pad@1.3.0 NOT_COVERED act=elsewhere mal=none No malware record found; vulnerabilities not checked. Never read as safe.

How to ask

Today's new alerts: /api/today

Take it into your tools.

Small previews you can read in one sitting: no dependencies, no install scripts, a published SHA-256 for every archive. Each lists what works and what does not yet.

  • Claude Code plugin: Checks every install and MCP server launch before it runs. Blocks malicious and affected versions, asks you when there is no answer.
  • Agent rules: One rule in the file each coding agent reads: Codex, Cursor, Copilot, Windsurf, Cline and Claude Code.
  • check-mcp-config: Checks the package behind every MCP server in an mcp.json before you start them.
  • CI check: Checks package-lock.json in GitLab CI or GitHub Actions and fails the job on a malicious or affected version.

Downloads and checksums

Field notes

All posts