Skip to main content

10-second security scan for developers who ship fast

Project description

Shinobi

Shinobi

10-second security scan for developers who ship fast

Shinobi is a local-first security scanner that checks your codebase for exposed secrets, dangerous defaults, vulnerable dependencies, missing security basics, and AI-specific risks โ€” all in seconds, right from the terminal.

100% local. Zero data ever leaves your machine.

Install

pip install shinobi-scan

Or install from source:

git clone https://github.com/AkrijSama/shinobi.git
cd shinobi
python generate_logo.py
pip install .

Usage

# Scan current directory (fast mode)
shinobi

# Scan a specific directory
shinobi /path/to/project

# Clone and scan a remote public repo
shinobi --repo https://github.com/user/project

# Deep scan โ€” includes git history for previously committed secrets
shinobi --deep

# Save JSON report to a specific file
shinobi --output report.json

# Plain text output (no ANSI colors)
shinobi --no-color

What It Scans

Scanner What It Checks
Secrets API keys (OpenAI, Stripe, AWS, GitHub, etc), passwords, tokens, private keys, .env files not in .gitignore
Defaults DEBUG=True, CORS wildcards, 0.0.0.0 bindings, default database passwords, weak SECRET_KEYs
Dependencies Known CVEs via pip-audit/npm-audit, unpinned versions
Armor Missing rate limiting, CSRF protection, security headers, input sanitization, authentication
AI Risks LLM keys in client code, prompt injection patterns, model files in repo, exposed system prompts
Git History Previously committed secrets across last 500 commits (with --deep)

Sample Output

   __ _     _             _     _
  / _\ |__ (_)_ __   ___ | |__ (_)
  \ \| '_ \| | '_ \ / _ \| '_ \| |
  _\ \ | | | | | | | (_) | |_) | |
  \__/_| |_|_|_| |_|\___/|_.__/|_|

  v1.0 โ€” shadow guard for your code

  ๐Ÿ” shinobi v1.0 โ€” security scan complete

  Project: my-app
  Scanned: 342 files in 2.1s

  โ•”โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•—
  โ•‘  THREAT LEVEL: CRITICAL ๐Ÿ”ด                    โ•‘
  โ•šโ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•

  ๐Ÿ”‘ SECRETS EXPOSED          3 found
     โ†’ src/config.py:12 โ€” OpenAI API Key: sk-a****...x9f2
     โ†’ .env:5 โ€” AWS Access Key: AKIA****...XMPL

  โš ๏ธ  DANGEROUS DEFAULTS       1 found
     โ†’ settings.py:8 โ€” Debug mode is enabled

  ๐Ÿ›ก๏ธ  MISSING ARMOR            2 gaps
     โ†’ No rate limiting detected
     โ†’ No CSRF protection detected

  Total issues: 6  |  Critical: 3  |  High: 1  |  Medium: 2

Privacy

Shinobi runs entirely on your machine. It does not make network requests, phone home, or transmit any data. The only external calls are to pip audit and npm audit (which are your own local tools calling their own registries).

License

MIT


Built by SolidDark โ€” https://soliddark.net

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

shinobi_scan-1.0.1-py3-none-any.whl (73.5 kB view details)

Uploaded Python 3

File details

Details for the file shinobi_scan-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: shinobi_scan-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 73.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for shinobi_scan-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 0e245a6f77c7fe0a0a7876b545e2de2186f8cad99609179eb057bd8af6147603
MD5 71e51f8d0c699d2c737fac2969e7a830
BLAKE2b-256 ed0fb49a1cf18e7a8ea6eeae1b9d7849a92cbc9a5e24339a5458c1d2d24e8877

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page