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

@mitsumi/sec-agent

v0.1.7

Published

LLM-led white-box security review agent for locally-cloned repos

Downloads

1,033

Readme

@mitsumi/sec-agent

LLM-led white-box security review agent for locally-cloned repositories.

Traditional scanners miss most of what a human security reviewer catches — logic-level issues like an MFA bypass hidden in application code, or a JWT secret with a hardcoded fallback, are invisible to pattern-matching tools. This agent makes an LLM the primary security analyst, with real scanners (Gitleaks, npm audit, OWASP ZAP) attached as corroborating evidence rather than the other way around. Every finding is mechanically re-verified against the actual code — a cited file:line that doesn't check out gets dropped, not reported.

Install

npm install -g @mitsumi/sec-agent

Requires Node.js ≥20.

Setup (once per machine)

  1. Create ~/.sec-agent/.env with your own OpenAI API key.

    macOS / Linux / WSL (bash or zsh):

    mkdir -p ~/.sec-agent
    echo 'OPENAI_API_KEY=sk-...' > ~/.sec-agent/.env

    Windows (PowerShell):

    New-Item -ItemType Directory -Force "$env:USERPROFILE\.sec-agent"
    "OPENAI_API_KEY=sk-..." | Out-File -Encoding utf8 "$env:USERPROFILE\.sec-agent\.env"

    WSL users: if Node/npm is installed inside WSL (node -v works from your Ubuntu shell without going through /mnt/c/...), ~ resolves to your Linux home (/home/<you>), separate from the Windows C:\Users\<you> used by a native Windows install. Create the .env file from the same shell you'll run sec-agent from.

  2. Run sec-agent doctor — fetches/verifies the scanner toolchain (Gitleaks, and Docker + the OWASP ZAP image if you want dynamic testing). On WSL, PENTEST/ZAP requires Docker Desktop's WSL integration enabled (Docker Desktop → Settings → Resources → WSL Integration) rather than a separate Docker install inside the WSL distro.

Quick start

sec-agent init /path/to/repo --project-code ACME
sec-agent run /path/to/repo

run walks the full journey in one command: INDEX (inventory + methodology test plan) → REVIEW (all 7 passes + scanner evidence) → interim Assessment Report → optional PENTEST (pass --target <url> to include it) → final consolidated report → Remediation Report (once you've run it more than once against the same repo).

Reports land in ~/.sec-agent/reports/<PROJECT>/<timestamp>/ as HTML, PDF, JSON, and SARIF.

The agent is strictly read-only with respect to the code under review — it never writes inside the repo it's scanning. Everything it produces lives under ~/.sec-agent/.

Commands

| Command | Description | |---|---| | sec-agent doctor | Fetch/verify the scanner toolchain | | sec-agent init <repoPath> --project-code <CODE> | Register a repo | | sec-agent index <repoPath> | Inventory the stack and build the methodology test plan | | sec-agent review <repoPath> [--passes AUTH,SEC,...] | Run the LLM-led review passes with scanner evidence (defaults to all 7) | | sec-agent pentest <repoPath> --target <url> [--full] [--confirm] | OWASP ZAP DAST scan against a running instance | | sec-agent report <repoPath> [--assessment] [--remediation] | Emit report artifacts | | sec-agent run <repoPath> [--all] [--target <url>] [--passes ...] | The full journey in one command | | sec-agent status <findingId> [--annotate mitigated\|action-required] [--note "..."] | Look up a finding, or human-annotate it | | sec-agent history <repoPath> | Scan run history for a repo | | sec-agent memory export <path> / memory import <path> | Back up / restore the local memory store | | sec-agent hooks install <repoPath> | Opt-in git hooks that auto-run review on commit/push |

The seven review passes

Authentication & Session, Secrets & Configuration, Injection & Code Execution, Authorization/IDOR, Cloud/Storage, Dependencies, Client-side. Each pass evaluates a fixed methodology checklist against the files relevant to it, with a bounded tool to fetch one extra file by exact path if needed (capped per pass), and cross-checks against real scanner output where applicable.

License

MIT