npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

ag-shield

v1.0.0

Published

Antigravity Security Scanner — Yerel güvenlik tarama aracı

Readme

⛨ ag-shield | The Autonomous Agent Security Scanner

One command. Zero trust. Full visibility. Scan your local environment for dangerous AI agent configurations before they become attack vectors.


🔴 The Problem

Modern AI coding agents like Antigravity ship with powerful defaults — defaults that can silently disable human approval gates, auto-execute arbitrary shell commands, and persist scripts in hidden workspace directories. A single misconfigured config.json with "require_human_approval": false is all it takes for a compromised MCP server or a malicious prompt injection to escalate from "helpful assistant" to full remote code execution on your machine. Most developers never audit these settings. Attackers know this.

🟢 The Solution

ag-shield is a lightweight, zero-dependency CLI scanner that inspects your local Antigravity environment in seconds. It reads agent configuration files, flags dangerous permission escalations, and hunts for suspicious persistence scripts (.sh, .py, .exe, .bat) lurking in hidden workspace directories — giving you a clear, color-coded risk report before any damage is done.

🚀 Usage

Quick Scan (no install required)

npx ag-shield scan

Global Install

npm install -g ag-shield
ag-shield scan

Available Commands

| Command | Description | |---|---| | ag-shield scan | Run all security checks | | ag-shield config-check | Audit agent config file only | | ag-shield backdoor-check | Scan workspace for suspicious scripts only | | ag-shield --help | Show help and available commands |

🖥️ Example Output

╔══════════════════════════════════════════════════╗
║                                                  ║
║   ⛨  AG-SHIELD  ·  Security Scanner  v1.0.0     ║
║      Antigravity Güvenlik Tarayıcısı             ║
║                                                  ║
╚══════════════════════════════════════════════════════╝

  [*] Antigravity Güvenlik Taraması Başlatılıyor...

  ─── Config Taraması ─────────────────────────
  → Dosya bulundu: C:\Users\deniz\.antigravity\config.json
  [✘] KRİTİK RİSK: "require_human_approval" değeri FALSE → İnsan onayı olmadan işlem yapılabilir!
  [✘] KRİTİK RİSK: "auto_execute_shell" değeri TRUE → Otomatik shell komutları çalıştırılabilir!

  ─── Arka Kapı (Persistence) Taraması ────────
  → Klasör bulundu: .antigravity\workspace
  [✘] KRİTİK RİSK: ŞÜPHELİ ÇALIŞMA ALANI SCRİPTİ BULUNDU → malicious_backdoor.sh

  ─── Tarama Özeti ────────────────────────────

  ⛔  3 adet KRİTİK RİSK bulundu!

  🚨  Toplam 3 adet risk bulundu! Lütfen yukarıdaki uyarıları inceleyin.

🔍 What It Scans

1. Agent Configuration Audit

Reads ~/.antigravity/config.json and flags:

  • require_human_approval: false — allows the agent to act without user consent
  • auto_execute_shell: true — enables autonomous shell command execution

2. Workspace Persistence Detection

Scans ./.antigravity/workspace/ for executable scripts that could indicate:

  • Backdoor persistence mechanisms
  • Unauthorized automation scripts
  • Malicious payloads planted by compromised MCP servers

🛡️ Why This Matters

AI agents are increasingly given direct access to your terminal, file system, and network. Without guardrails, a single prompt injection or rogue MCP tool can:

  • Exfiltrate environment variables and API keys
  • Install persistent backdoors via hidden scripts
  • Modify source code without human review
  • Pivot to other systems on your network

ag-shield is your first line of defense.

📦 Tech Stack

  • Runtime: Node.js
  • Language: TypeScript
  • CLI Framework: Commander.js
  • Terminal Styling: Chalk

📄 License

ISC