プロトタイプ · プレビュー版:公式レジストリのすべてのサーバーを掲載し、30分ごとに同期しています。Google でログインするとレビューを書けます。プロトタイプ · 30分ごとに更新
PopNx MCPAIを使う人のためのMCPサーバー · やさしい言葉で解説

vibe-shield — security scanner for AI-generated code

作者:avivgerz-hueバージョン 2.1.3i★ 74iパソコンで動くリポジトリ ↗
レジストリ名io.github.avivgerz-hue/vibe-shield

インストール方法

What it does

Scans AI-written code for leaked secrets, unguarded routes and missing RLS.

  • Connects パソコンで動く
  • Account or key No key needed
  • Category サイバーセキュリティ

この順位の理由

一覧は利用スコア(100 点満点)で並びます。内訳は次のとおり

人気29/80GitHub スターか週間ダウンロード数。大きい方を 60、小さい方を 20 で数えます
新しさ12/1230 日以内のリリースかコード更新で満点
応答中0/8前回の確認でクラウドのエンドポイントが応答
利用スコア41/100

品質: 基本チェック 3/3 項目に合格(表示のみ、並び順には不使用) · 勢い: 70 (「急上昇」タブでのみ使用)

インストール

使っているAIアプリを選んで、設定をコピーしてください。

ひとことで AI にインストールしてもらう

vibe-shield — security scanner for AI-generated code をインストールして。https://mcp.popnx.com/i/avivgerz-hue-vibe-shield.md に従い、コマンドを見せて、私が OK するまで実行しないで。

パソコンで作業できる AI(Claude Code や Cursor など)に貼り付けます。手順を読み、コマンドを見せて、あなたの OK を待ちます。キー不要・登録不要。 · AI が読む全文を見る

チェック 3/3 合格 · あなたのパソコンで動きます · ✓ コマンド確認済み 2026年11月17日

まず:どの AI を使っていますか?

使っているアプリを選ぶと、下に手順が表示されます。

Claude につなげますが、先に準備が必要です

先にパソコンへ Node.js を入れてください(1 回だけ) · パソコン版 Claude アプリ(Windows または Mac)のみ。Web やスマホでは使えません

AI にインストールしてもらう

このメッセージを Claude のチャットに貼り付けます。AI がパソコンを確認し、変更するファイルを伝え、毎回あなたの了承を待ちます。

このパソコンの Claude に MCP server vibe-shield — security scanner for AI-generated code を入れてください。順番に:1) node -v で Node.js があるか確認。なければ https://nodejs.org/en/download から入れるよう私に伝え、自分では入れない。2) この設定だけを使う(PopNx MCP の確認済み):{ "mcpServers": { "vibe-shield": { "command": "npx", "args": [ "-y", "@vibefoundry/vibe-shield", "mcp" ] } } } 3) 変更するファイルのフルパスか実行するコマンドを伝えて、私の了承を待つ。4) キーは不要。5) 了承した内容を実行し、vibe-shield — security scanner for AI-generated code のツールが本当に表示されるか確認する。

このメッセージにあなたのキーは含まれません。キーが必要な場合は、AI がファイルやアプリの入力欄にご自身で貼るよう案内します。

  1. Node.js を入れる(まだなければ)

    もう入っていますか?先に確認 · ターミナルを開き、このコマンドを入力して Enter

    node -v
    • バージョン番号(例 v26.13.1)が出る = 入っています。この手順は飛ばせます
    • "command not found"(Windows では "is not recognized")が出る = まだ入っていないか、入れた直後でターミナルを開き直す必要があります
    ターミナルの開き方

    Mac:⌘ + Space を押し、Terminal と入力して Enter

    Windows:スタートメニューを開き、Windows PowerShell と入力して「開く」

    まだ入っていない場合: 公式ダウンロードページで LTS 版と、クリックで進むインストーラーを選びます:Mac は .pkg、Windows は .msi。ダブルクリックして最後まで進めるだけで、curl コマンドは不要です

    Node.js のダウンロードページを開く ↗

    入れ終わったらターミナルを閉じて開き直し、同じコマンドをもう一度実行します。バージョン番号が出れば完了です: node -v

    一度入れれば、Node.js を使うすべてのツールで使えます

  2. パソコン版 Claude アプリの設定ファイルを開く

    SettingsDeveloperEdit Config

  3. この設定を貼り付けて保存

    {
      "mcpServers": {
        "vibe-shield": {
          "command": "npx",
          "args": [
            "-y",
            "@vibefoundry/vibe-shield",
            "mcp"
          ]
        }
      }
    }
  4. Claude を終了してもう一度開く

  5. 試してみる

    vibe-shield — security scanner for AI-generated code を使って、私に何ができるか教えて、1 つやってみせて

    ✓ Claude が vibe-shield — security scanner for AI-generated code を使っていると言うか、回答に vibe-shield — security scanner for AI-generated code のツール名が出れば接続成功です

メニュー名は 2026年11月11日 に Anthropic のヘルプページで確認 · アプリのバージョンにより画面が少し違うことがあります

ChatGPT はまだ vibe-shield — security scanner for AI-generated code につなげません

vibe-shield — security scanner for AI-generated code はパソコンに入れて使うものですが、ChatGPT は Web 上で動くサーバーにしかつなげません

代わりにできること

A · vibe-shield — security scanner for AI-generated code につなげるアプリを使う

  • 先にパソコンへ Node.js を入れてください(1 回だけ) · パソコン版 Claude アプリ(Windows または Mac)のみ。Web やスマホでは使えません
  • 先にパソコンへ Node.js を入れてください(1 回だけ)
  • 先にパソコンへ Node.js を入れてください(1 回だけ)
  • 先にパソコンへ Node.js を入れてください(1 回だけ)

B · サイバーセキュリティ の中で ChatGPT につなげる別のサーバー

同じカテゴリでよく使われているものから、キーなしでアドレスだけでつなげるものを選びました

Claude Code につなげますが、先に準備が必要です

先にパソコンへ Node.js を入れてください(1 回だけ)

AI にインストールしてもらう

このメッセージを Claude Code のチャットに貼り付けます。AI がパソコンを確認し、変更するファイルを伝え、毎回あなたの了承を待ちます。

このパソコンの Claude Code に MCP server vibe-shield — security scanner for AI-generated code を入れてください。順番に:1) node -v で Node.js があるか確認。なければ https://nodejs.org/en/download から入れるよう私に伝え、自分では入れない。2) この設定だけを使う(PopNx MCP の確認済み):claude mcp add --scope user vibe-shield -- npx -y @vibefoundry/vibe-shield mcp 3) 変更するファイルのフルパスか実行するコマンドを伝えて、私の了承を待つ。4) キーは不要。5) 了承した内容を実行し、vibe-shield — security scanner for AI-generated code のツールが本当に表示されるか確認する。

このメッセージにあなたのキーは含まれません。キーが必要な場合は、AI がファイルやアプリの入力欄にご自身で貼るよう案内します。

  1. Node.js を入れる(まだなければ)

    もう入っていますか?先に確認 · ターミナルを開き、このコマンドを入力して Enter

    node -v
    • バージョン番号(例 v26.13.1)が出る = 入っています。この手順は飛ばせます
    • "command not found"(Windows では "is not recognized")が出る = まだ入っていないか、入れた直後でターミナルを開き直す必要があります
    ターミナルの開き方

    Mac:⌘ + Space を押し、Terminal と入力して Enter

    Windows:スタートメニューを開き、Windows PowerShell と入力して「開く」

    まだ入っていない場合: 公式ダウンロードページで LTS 版と、クリックで進むインストーラーを選びます:Mac は .pkg、Windows は .msi。ダブルクリックして最後まで進めるだけで、curl コマンドは不要です

    Node.js のダウンロードページを開く ↗

    入れ終わったらターミナルを閉じて開き直し、同じコマンドをもう一度実行します。バージョン番号が出れば完了です: node -v

    一度入れれば、Node.js を使うすべてのツールで使えます

  2. ターミナルを開く

    Mac:Command+スペースで Terminal と入力 · Windows:PowerShell を開く

  3. このコマンドを貼り付けて Enter

    claude mcp add --scope user vibe-shield -- npx -y @vibefoundry/vibe-shield mcp
  4. Claude Code で /mcp と入力

    vibe-shield — security scanner for AI-generated code が一覧にあり、接続済みと表示されれば OK です

  5. 試してみる

    vibe-shield — security scanner for AI-generated code を使って、私に何ができるか教えて、1 つやってみせて

    ✓ Claude Code が vibe-shield — security scanner for AI-generated code を使っていると言うか、回答に vibe-shield — security scanner for AI-generated code のツール名が出れば接続成功です

メニュー名は 2026年11月11日 に Anthropic のヘルプページで確認 · アプリのバージョンにより画面が少し違うことがあります

Cursor につなげますが、先に準備が必要です

先にパソコンへ Node.js を入れてください(1 回だけ)

AI にインストールしてもらう

このメッセージを Cursor のチャットに貼り付けます。AI がパソコンを確認し、変更するファイルを伝え、毎回あなたの了承を待ちます。

このパソコンの Cursor に MCP server vibe-shield — security scanner for AI-generated code を入れてください。順番に:1) node -v で Node.js があるか確認。なければ https://nodejs.org/en/download から入れるよう私に伝え、自分では入れない。2) この設定だけを使う(PopNx MCP の確認済み):{ "mcpServers": { "vibe-shield": { "command": "npx", "args": [ "-y", "@vibefoundry/vibe-shield", "mcp" ] } } } 3) 変更するファイルのフルパスか実行するコマンドを伝えて、私の了承を待つ。4) キーは不要。5) 了承した内容を実行し、vibe-shield — security scanner for AI-generated code のツールが本当に表示されるか確認する。

このメッセージにあなたのキーは含まれません。キーが必要な場合は、AI がファイルやアプリの入力欄にご自身で貼るよう案内します。

  1. Node.js を入れる(まだなければ)

    もう入っていますか?先に確認 · ターミナルを開き、このコマンドを入力して Enter

    node -v
    • バージョン番号(例 v26.13.1)が出る = 入っています。この手順は飛ばせます
    • "command not found"(Windows では "is not recognized")が出る = まだ入っていないか、入れた直後でターミナルを開き直す必要があります
    ターミナルの開き方

    Mac:⌘ + Space を押し、Terminal と入力して Enter

    Windows:スタートメニューを開き、Windows PowerShell と入力して「開く」

    まだ入っていない場合: 公式ダウンロードページで LTS 版と、クリックで進むインストーラーを選びます:Mac は .pkg、Windows は .msi。ダブルクリックして最後まで進めるだけで、curl コマンドは不要です

    Node.js のダウンロードページを開く ↗

    入れ終わったらターミナルを閉じて開き直し、同じコマンドをもう一度実行します。バージョン番号が出れば完了です: node -v

    一度入れれば、Node.js を使うすべてのツールで使えます

  2. このボタンで Cursor を開く

    Cursor で開く

    Cursor がインストールの確認をするので Install を押します

  3. Cursor の AI チャットを Agent モードで開く

  4. 試してみる

    vibe-shield — security scanner for AI-generated code を使って、私に何ができるか教えて、1 つやってみせて

    ✓ Cursor が vibe-shield — security scanner for AI-generated code を使っていると言うか、回答に vibe-shield — security scanner for AI-generated code のツール名が出れば接続成功です

メニュー名は 2026年11月11日 に Cursor のヘルプページで確認 · アプリのバージョンにより画面が少し違うことがあります

VS Code につなげますが、先に準備が必要です

先にパソコンへ Node.js を入れてください(1 回だけ)

AI にインストールしてもらう

このメッセージを VS Code のチャットに貼り付けます。AI がパソコンを確認し、変更するファイルを伝え、毎回あなたの了承を待ちます。

このパソコンの VS Code に MCP server vibe-shield — security scanner for AI-generated code を入れてください。順番に:1) node -v で Node.js があるか確認。なければ https://nodejs.org/en/download から入れるよう私に伝え、自分では入れない。2) この設定だけを使う(PopNx MCP の確認済み):{ "servers": { "vibe-shield": { "type": "stdio", "command": "npx", "args": [ "-y", "@vibefoundry/vibe-shield", "mcp" ] } } } 3) 変更するファイルのフルパスか実行するコマンドを伝えて、私の了承を待つ。4) キーは不要。5) 了承した内容を実行し、vibe-shield — security scanner for AI-generated code のツールが本当に表示されるか確認する。

このメッセージにあなたのキーは含まれません。キーが必要な場合は、AI がファイルやアプリの入力欄にご自身で貼るよう案内します。

  1. Node.js を入れる(まだなければ)

    もう入っていますか?先に確認 · ターミナルを開き、このコマンドを入力して Enter

    node -v
    • バージョン番号(例 v26.13.1)が出る = 入っています。この手順は飛ばせます
    • "command not found"(Windows では "is not recognized")が出る = まだ入っていないか、入れた直後でターミナルを開き直す必要があります
    ターミナルの開き方

    Mac:⌘ + Space を押し、Terminal と入力して Enter

    Windows:スタートメニューを開き、Windows PowerShell と入力して「開く」

    まだ入っていない場合: 公式ダウンロードページで LTS 版と、クリックで進むインストーラーを選びます:Mac は .pkg、Windows は .msi。ダブルクリックして最後まで進めるだけで、curl コマンドは不要です

    Node.js のダウンロードページを開く ↗

    入れ終わったらターミナルを閉じて開き直し、同じコマンドをもう一度実行します。バージョン番号が出れば完了です: node -v

    一度入れれば、Node.js を使うすべてのツールで使えます

  2. このボタンで VS Code を開く

    VS Code で開く

    VS Code がインストールの確認をするので Install を押します

  3. VS Code の AI チャットを Agent モードで開く

  4. 試してみる

    vibe-shield — security scanner for AI-generated code を使って、私に何ができるか教えて、1 つやってみせて

    ✓ VS Code が vibe-shield — security scanner for AI-generated code を使っていると言うか、回答に vibe-shield — security scanner for AI-generated code のツール名が出れば接続成功です

メニュー名は 2026年11月11日 に VS Code のヘルプページで確認 · アプリのバージョンにより画面が少し違うことがあります

Windsurf、Zed、Gemini CLI など MCP を使える他のアプリは追加方法がそれぞれ違います。アプリ一覧で確認してください

MCP を使えるアプリをすべて見る →

JSON 設定は下の「開発者向け」にあります

つまずいたら?vibe-shield — security scanner for AI-generated code を使っている人に聞いてみましょう💬 ディスカッション →
開発者向け:ターミナルのコマンドと JSON 設定

パソコンにインストール

Claude Code

claude mcp add --scope user vibe-shield -- npx -y @vibefoundry/vibe-shield mcp

Claude Desktop (claude_desktop_config.json)

{
  "mcpServers": {
    "vibe-shield": {
      "command": "npx",
      "args": [
        "-y",
        "@vibefoundry/vibe-shield",
        "mcp"
      ]
    }
  }
}

Cursor (~/.cursor/mcp.json)

{
  "mcpServers": {
    "vibe-shield": {
      "command": "npx",
      "args": [
        "-y",
        "@vibefoundry/vibe-shield",
        "mcp"
      ]
    }
  }
}

VS Code (mcp.json)

{
  "servers": {
    "vibe-shield": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@vibefoundry/vibe-shield",
        "mcp"
      ]
    }
  }
}

この設定は、作者のレジストリ登録情報から作成しています。READMEと違う場合は、READMEに従ってください。

ひと目でわかる

週あたりのダウンロードi
648/週
接続方法
パソコンで動く
最新バージョンi
2.1.3
レジストリ公開日i
2026年11月17日
コードの最終更新i
2026年11月17日
作者
avivgerz-hue
パッケージ
npm: @vibefoundry/vibe-shield
ウェブサイト
github.com
レジストリでの状態
有効

使えるアプリ

このサーバーのつなぎ方と、各アプリの公式ドキュメントに基づきます。2026年11月10日に確認。

パソコン上で動かせるアプリ

ClaudeGooseLM StudioMsty StudioCherry StudioCursorVS Code + GitHub CopilotVisual StudioWindsurf (Devin Desktop)ZedKiroClineContinueJetBrains AI AssistantClaude CodeCodex CLIGemini CLIOpenCodenodecodeWarpLibreChatRaycast

すべてのアプリと長所・短所 →

できること

パソコンで動くサーバーです。インストールすると、ツール一覧がAIアプリに表示されます。

基本チェックi

誰でも見られる情報をチェックしており、コードは読んでいません。当てはまらない項目は数に入れていません。 · 2026年11月19日にチェック

  • ✓ 合格

    作者とリポジトリが一致

    レジストリ名は、リポジトリを所有するGitHubアカウント avivgerz-hue で確認済みです

  • ✓ 合格

    今もメンテナンスされている

    コードの最終更新:一昨日

  • ✓ 合格

    ライセンスがある

    MITを使用

  • – 対象外

    エンドポイントが応答する

    これはパソコンで動くため、インターネット上のエンドポイントはありません

  • – 対象外

    OAuthでサインイン

    パソコンで動き、代わりにローカルの設定を使います

  • … 未チェック

    ツールの説明に隠れた指示がない

    パソコンで動くサーバーです。ツール一覧を読み取れるのは、インターネット上のエンドポイントがある場合だけです

公開済みの脆弱性(OSV.dev)

まだ確認していません

確認していること → · JSON

作者の方へ:再確認の依頼・情報の誤りの報告
作者向け:README にバッジを付ける

作者の方は、このコードを README に貼れます。バッジはこのページにリンクします。

[![Featured on PopNx MCP](https://mcp.popnx.com/badge/avivgerz-hue-vibe-shield.svg)](https://mcp.popnx.com/en/servers/avivgerz-hue-vibe-shield)

話し合い

質問、コツの共有、使えないことの報告ができます。「役に立った」の多い順です。

まだ投稿はありません。最初の質問や共有をどうぞ。

ここの投稿は利用者によるもので、PopNx チームのものではありません。

ログインして投稿

ユーザーレビュー

まだレビューはありません

ログインしてレビューを書く

サイバーセキュリティのほかのサーバーとの比較i

  • このカテゴリのほかの1117件のうち97%よりスターが多い
  • このカテゴリのほかの1117件のうち91%より最近レジストリに公開
  • 基本チェックの結果が、このカテゴリのほかの1117件のうち99%と同じかそれ以上

レジストリでこのカテゴリにある有効なすべてのサーバーと比較しています。スターは、公開者がリポジトリの所有者である場合だけ数えます。

よくある質問

vibe-shield — security scanner for AI-generated codeは安全ですか?

当てはまる基本チェック3項目のうち3項目に合格しました。コードは読んでいません。キーやトークンを追加する前に、サーバーがどんなアクセスを求めているかを確認し、必要な権限だけを持つキーを使ってください。

どんなキーやコードが必要ですか?

レジストリには必須のキーは載っていません。ただし、最初に使うときにサインインを求めるサーバーもあります。

パソコンで動きますか、それともクラウドですか?

あなたのパソコンで動きます。必要なときにAIアプリが起動し、データは作者のサーバーを通りません(サーバー自体がオンラインサービスを呼び出す場合を除きます)。

今もメンテナンスされていますか?

GitHubリポジトリの最終更新は一昨日、最新バージョン(2.1.3)がレジストリに届いたのは一昨日です。

どのアプリで使えますか?

Claude Desktop、Claude Code、Cursor、VS CodeなどのMCP対応アプリで使えます。パソコンにNode.jsも必要です。

代わりに使えるものは?

同じカテゴリには:GitHits, Dependency Management MCP Server, Snyk MCP, TokenSafe, Draugr

似た働きのほかの候補

同じカテゴリでほかの作者のもの。コマンドは確認済み。公式を先に、次にスター順。

カードの見方:↓ 週あたりのダウンロードi★ GitHubスターi3つの柱:レビュー · チェック · 利用状況i更新=最新バージョンをレジストリに公開した日i

GitHits

Search public open-source code, documentation, metadata, vulnerabilities, changelogs, and examples.

作者:githits-com成長中↓ 3807/週★ 138今日更新

パソコンでもクラウドでも✓ 提供元 · githits.com

Snyk MCP

Easily find and fix security issues in your applications leveraging Snyk platform capabilities.

作者:snyk広く使われている↓ 76.2万/週★ 617 か月前更新

パソコンで動く✓ 提供元 · snyk.io

TokenSafe

Your AI agent is smart enough to code all day. Local firewall & zero-loss runtime.

作者:tokensafe-dev広く使われている↓ 6785/週★ 47今日更新

パソコンでもクラウドでも✓ 提供元 · tokensafe.dev
似たものと比べる
これ
vibe-shield — security scanner for AI-generated code
GitHitsDependency Management MCP ServerSnyk MCPTokenSafeDraugr
動く場所パソコンにインストールが必要クラウドでもパソコンにインストールでも使えるクラウドで動き、インストール不要パソコンにインストールが必要クラウドでもパソコンにインストールでも使えるパソコンにインストールが必要
キーが必要いいえいいえいいえいいえいいえいいえ
Claude で + から追加いいえいいえいいえいいえいいえいいえ
基本チェック3/35/53/43/35/53/3
ライセンスMITApache-2.0–Apache-2.0MITApache-2.0
料金登録情報に費用の記載なし登録情報に費用の記載なし登録情報に費用の記載なし登録情報に費用の記載なし登録情報に費用の記載なし登録情報に費用の記載なし

作者のREADME

READMEを開く

作者のリポジトリから書かれたとおりにコピーしたものです。PopNx MCPは内容を確認・推奨していません。HTML、画像、スクリプトは取り除いています。リンクはこのサイトの外へ移動します。

🛡️ vibe-shield

The security gate for AI-written code. Find exposed secrets, unguarded routes and missing RLS before you ship.

⭐ If this tool helps your AI coding workflow, please give this repository a Star! It helps more developers discover the project.

npx -y @vibefoundry/vibe-shield@latest scan .

Illustrative two-file scan; fixes are applied manually. Results vary by project. A clean score is not a security guarantee.

VibeFoundry Agent Suite
  • 🎨 [unslop](https://github.com/avivgerz-hue/unslop) — UI Design DNA & Anti-Slop Engine · npx -y unslop-mcp@latest init
  • 🛡️ [vibe-shield](https://github.com/avivgerz-hue/vibe-shield) — Security Scanner for AI Code · npx -y @vibefoundry/vibe-shield@latest scan .
  • 👻 [ghost-qa](https://github.com/avivgerz-hue/ghost-qa) — Autonomous Headless Browser QA · npx -y ghost-qa@latest test http://localhost:3000

vibe-shield is a static security scanner plus an Agent Skill that helps Claude Code, Codex, Cursor and Windsurf audit before they say *“done”*.


v2.0.0: eight defensive vectors

The v2 catalogue covers client exposure; auth and route protection; database/RLS; AI and web sinks; infrastructure; dependency hygiene; secrets and cryptography; and agent/MCP integrity. The new hardening checks include production source maps, insecure JWT settings, explicit and omitted cookie flags, locally absent security headers, container users, lifecycle scripts, lockfiles and weak cryptography. Run rules for the complete catalogue.

The scanner produces a heuristic attack-surface inventory of route methods, observed guard signals, SQL tables and RLS signals, AI entrypoints, and MCP/agent files. Header checks cover recognized server configuration files; cookie checks cover common literal setter options. Both are advisory: external middleware, deployment settings and dynamic options require review. Signals do not prove guards or policies work, and code outside the scanned scope is not assessed. Run audit-skills separately for agent-integrity checks.

Generate an executive report or agent remediation prompt explicitly:

npx -y @vibefoundry/vibe-shield scan --report SECURITY-REPORT.md --patch-prompt PATCH-PROMPT.md

npx -y @vibefoundry/vibe-shield scan --format html --out security-report.html npx -y @vibefoundry/vibe-shield audit-skills --report agent-report.html

Reports include severity, CWE, locations, snippets, OWASP 2025 web mappings for every rule and contextual LLM mappings when applicable, and illustrative remediation. Examples are not automatic project-specific patches; validate them against the application. The scanner itself is offline and read-only by default; --cache, --out, --report, --patch-prompt and init explicitly write files. Installing with npx can require network access. An A+ score applies only to the rules and files examined and is not a security certification.

The npm 2.0.0 artifact predates the universal --agents initializer. Use npm 2.1.0 or later (once published), or the GitHub v2 ref. To exercise this checkout locally, run npm ci && npm run build, then node dist/bin/vibe-shield.js with the same arguments.


The problem, in one file

This is the shape of code an agent writes when you ask for "a delete endpoint":

// app/api/users/route.ts

export async function DELETE(req: Request) { const { id, userId } = await req.json(); await db.query(DELETE FROM users WHERE id = ${id} AND owner = ${userId}); return new Response('ok'); }

It works. It also has three critical vulnerabilities — no authentication, SQL injection, and an IDOR that lets the caller choose whose data they delete. Nothing in a normal review loop catches all three, and the agent reported the task as complete.

npx -y @vibefoundry/vibe-shield scan catches all three in 17 milliseconds:

🛡️  vibe-shield · security scan (illustrative output for current source)

target /home/you/app

💀 GRADE F — 0/100 · 3 critical

CRITICAL 3 ███

Findings

app/api/users/route.ts CRITICAL 2:1 VSB-AUTH-001 Next.js App Router mutation handler has no authentication check export async function DELETE(req: Request) { CRITICAL 4:22 VSB-DB-007 SQL statement built by concatenating request data await db.query(DELETE FROM users WHERE id = ${id} AND owner = ${userId}); CRITICAL 4:22 VSB-AUTH-004 Record ownership taken from the request instead of the session (IDOR)

7 files · 1 KiB · 412 files/s · 17 ms · 80 rules

⚠ 3 critical findings — rotate any exposed credential before anything else. Fix it npx -y @vibefoundry/vibe-shield scan --fix-prompt # writes SECURITY_PATCH_PROMPT.md for your agent Explain npx -y @vibefoundry/vibe-shield explain VSB-AUTH-001 Gate CI npx -y @vibefoundry/vibe-shield scan --fail-on critical --format github

Then hand the fix list to the agent that wrote the bug:

npx -y @vibefoundry/vibe-shield scan --fix-prompt   # → SECURITY_PATCH_PROMPT.md

That file contains, for every finding: the severity, the CWE id and link, the exact file:line, the vulnerable snippet, the ordered remediation steps, the target code shape, and a verification command. It is written for a machine to execute and a human to audit.


⚡ Quick start

# 1. Scan (npx may download the package; the scanner itself is offline)

npx -y @vibefoundry/vibe-shield scan

2. Give your agent the fix list

npx -y @vibefoundry/vibe-shield scan --fix-prompt

3. Install the gate permanently — skill + CI + ignore file

npx -y github:avivgerz-hue/vibe-shield#v2 init --agents all

Use the scoped name. vibe-shield is published as

@vibefoundry/vibe-shield.

The *unscoped* name vibe-shield on npm belongs to an unrelated project, so

npx vibe-shield runs someone else's code. Always include the @vibefoundry/

scope. The package ships a prebuilt dist/, needs no TypeScript, and

starts in milliseconds.

Supported Coding Agents (1-Command Setup)

Run this from the repository you want to protect (Node.js and Git required):

npx -y github:avivgerz-hue/vibe-shield#v2 init --agents all

To configure selected agents, substitute a comma-separated list such as --agents claude,cursor,zed:

AgentSelectorNative integration
Claude Codeclaude.mcp.json, CLAUDE.md, .claude/skills/vibe-shield/SKILL.md, .claude-plugin/plugin.json
OpenCodeopencodeopencode.json MCP and AGENTS.md
OpenAI Codex CLI / universal agentscodexAGENTS.md and .agents/skills/vibe-shield/SKILL.md
Cursorcursor.cursor/mcp.json and .cursor/rules/vibe-shield.mdc
Windsurfwindsurf.windsurfrules
VS Code / GitHub Copilotcopilot.vscode/mcp.json and .github/copilot-instructions.md
Cline / Roo Codecline or roo.clinerules
Zedzed.zed/settings.json context server

The existing --agent claude|cursor|generic|all remains supported. The shared .mcp.json, ignore file, and (unless --no-workflow is set) CI workflow are also installed. JSON configuration is merged by server name; malformed JSON or JSON with comments is left untouched and reported. Existing instructions are appended only once, and existing files are not overwritten without --force. Restart the relevant editor or reload its configuration after setup.

🧠 Why AI code needs its own scanner

Traditional SAST rules are built around human mistakes: a forgotten escape, a missing prepare(). Agent-written code fails differently — it is *confidently complete* and *structurally plausible*:

What a human doesWhat an agent does
forgets to validate one inputwrites a perfect endpoint with no auth at all
uses eval in one legacy fileputs a tool `execute` that shells out behind an LLM
commits a .env by accidentputs SUPABASE_SERVICE_ROLE_KEY behind NEXT_PUBLIC_ because "it needed the env var"
writes CREATE TABLEwrites CREATE TABLE and forgets the `ENABLE ROW LEVEL SECURITY`, so the anon key reads everything
adds dangerouslySetInnerHTML to render a docrenders model output with it, creating stored XSS with a step counter

vibe-shield encodes those specific shapes: 92 signatures across eight defensive categories, each one derived from a real agent-generated bug rather than a generic CWE checklist.


📊 Vulnerability Coverage Matrix

Client-boundary limitation: Client reachability is a best-effort static graph of literal imports, re-exports and require calls using relative paths and root tsconfig.json/jsconfig.json aliases. Dynamic paths, inherited or nested configurations, excluded or oversized files and other bundler resolution may be missed. A server-side service-role helper still bypasses RLS: use import 'server-only', authorize every privileged request, and verify the production bundle. Auth-helper names and with* wrappers are signals, not proof that authorization is enforced.

80 code signatures + 12 agent-integrity signatures = 92. The scan command runs the 80 code rules; audit-skills runs the 12 agent rules. Every rule has an id, a CWE, an illustrative vulnerable shape, remediation guidance, and an OWASP association — run npx -y @vibefoundry/vibe-shield rules or npx -y @vibefoundry/vibe-shield explain .

Client-side secret & data exposure — VSB-CLIENT-*
IDDetectsCWESev
VSB-CLIENT-001NEXT_PUBLIC_ / VITE_ / PUBLIC_ / REACT_APP_ + a server-only secret name (SERVICE_ROLE_KEY, OPENAI_API_KEY, STRIPE_SECRET_KEY, DATABASE_URL…)CWE-200critical
VSB-CLIENT-002server-only process.env.*SECRET* read inside a "use client" moduleCWE-200high
VSB-CLIENT-003createClient(url, SERVICE_ROLE_KEY) — RLS bypass in a client-reachable file or public envCWE-250critical
VSB-CLIENT-004supabaseAdmin / adminClient / serviceRoleClient referenced from browser codeCWE-250critical
VSB-CLIENT-005dangerouslyAllowBrowser: true, provider SDK keyed in the browserCWE-749high
VSB-CLIENT-006.env* assigns a live-looking credential to a public variableCWE-540critical
VSB-CLIENT-007next.config.js env / publicRuntimeConfig / Vite define inlining a secretCWE-798critical
Unguarded mutation routes — VSB-AUTH-*

| ID | Detects |

冒頭だけを表示しています。続きはリポジトリで読めます