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

@mazhu/sec-scan

v1.0.0

Published

AI-powered code security scanner - detect API key leaks, SQL injection, XSS, and more

Downloads

264

Readme

🔒 sec-scan

AI-powered code security scanner - detect API key leaks, SQL injection, XSS, weak cryptography, and more.

npm License Node

Features

  • 🔍 Comprehensive Detection

    • API Key / Secret leaks (AWS, GitHub, Slack, OpenAI, etc.)
    • SQL Injection vulnerabilities
    • XSS vulnerabilities (innerHTML, React dangerouslySetInnerHTML, etc.)
    • Weak cryptography (MD5, SHA1, insecure random)
    • Sensitive file exposure (.env, credentials, SSH keys)
    • Insecure dependencies and configurations
  • 🚀 Developer Friendly

    • Lightning fast static analysis
    • Auto-fix for common issues
    • Real-time file watching
    • Beautiful HTML/JSON reports
  • 💻 Multi-Language Support

    • JavaScript / TypeScript
    • Python
    • Go

Installation

npm install -g @mazhu/sec-scan

Quick Start

Scan a directory

sec-scan scan ./src

Auto-fix issues

sec-scan scan ./src --fix

Watch for changes

sec-scan watch ./src

Generate report

sec-scan scan ./src
sec-scan report --format html

Commands

sec-scan scan <path>

Scan files or directories for security vulnerabilities.

Options:

  • --fix, -f - Automatically fix fixable issues
  • --verbose, -v - Verbose output
  • --include - File patterns to include (comma-separated)
  • --exclude - Patterns to exclude (comma-separated)

sec-scan report

Generate a report from the last scan.

Options:

  • --format, -f - Output format (json, html, text)
  • --output, -o - Output file path

sec-scan watch <path>

Watch files for changes and scan in real-time.

Options:

  • --debounce, -d - Debounce delay in milliseconds (default: 1000)

Detection Types

| Category | Examples | |----------|----------| | 🔑 API Keys | AWS keys, GitHub tokens, Slack tokens, OpenAI keys | | 💉 SQL Injection | String concatenation, template literals in queries | | 🌐 XSS | innerHTML, dangerouslySetInnerHTML, v-html | | 🔐 Weak Crypto | MD5, SHA1, Math.random() for security | | 📁 Sensitive Files | .env, credentials.json, SSH keys | | 🔧 Insecure Config | CORS wildcard, SSL verification disabled |

Severity Levels

  • 🔴 Critical - Immediate action required (API keys, private keys)
  • 🟠 High - Security risk (SQL injection, XSS)
  • 🟡 Medium - Potential issue (weak crypto, CORS)
  • 🔵 Low - Informational (debug flags, log files)

Pricing

| Plan | Price | Features | |------|-------|----------| | Free | $0 | Basic scanning, CLI usage | | Pro | $19/mo | Real-time monitoring, CI/CD integration, Advanced reports |

Contributing

Contributions are welcome! Please read the contributing guidelines first.

License

MIT © Mike Wang [email protected]


Made with ❤️ by Mike Wang