$ For millions of years mankind lived just like animals. Then something happened which unleashed the power of our imagination.

rigscore

security, ai, cli, open-source, devtools

A security score for your AI development environment

One command. 7 checks. A score out of 100. Know where you stand before something breaks.

1
npx rigscore
  โ•ญโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฎ
  โ”‚                                        โ”‚
  โ”‚        rigscore v0.1.0                 โ”‚
  โ”‚   AI Dev Environment Security Scan     โ”‚
  โ”‚                                        โ”‚
  โ•ฐโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฏ

  Scanning /home/user/my-project ...

  โœ— CLAUDE.md governance.......... 0/20
  โœ“ MCP server configuration...... 15/15
  โœ“ Secret exposure............... 20/20
  โœ“ Docker security............... 15/15
  โœ— Git hooks..................... 5/10
  โœ“ Skill file safety............. 10/10
  โœ“ Permissions hygiene........... 10/10

  โ•ญโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฎ
  โ”‚                                        โ”‚
  โ”‚         YOUR RIGSCORE: 75/100          โ”‚
  โ”‚         Grade: B                       โ”‚
  โ”‚                                        โ”‚
  โ•ฐโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฏ

Why this exists

AI coding tools are powerful. Claude Code, Cursor, Windsurf, and autonomous agents can read your filesystem, execute commands, call APIs, and modify your codebase. Most developers set them up fast and never audit the security posture.

rigscore checks the things that matter:

  • Does your AI agent have governance rules, or is it operating without boundaries?
  • Are your MCP servers scoped to project directories, or can they access your entire filesystem?
  • Are your API keys in .gitignore, or one commit away from being public?
  • Are your containers configured safely, or is the socket exposed?
  • Do you have commit hooks catching mistakes?
  • Are your skill files clean, or could they contain injection payloads?
  • Are file permissions locked down?

Run it. See the score. Fix what’s broken.


What it checks

CheckPointsWhat it scans
CLAUDE.md governance20Governance file existence, forbidden actions, approval gates, access restrictions
MCP server config15Transport type, wildcard env passthrough, filesystem scope, version pinning
Secret exposure20.env in .gitignore, API key patterns in configs, file permissions, SOPS
Container security15Docker socket mounts, privileged mode, host paths, missing user/cap_drop
Git hooks10Pre-commit hooks, Claude Code hooks, push URL guards
Skill file safety10Injection patterns, shell execution, external URLs, encoded content
Permissions hygiene10SSH directory/key permissions, world-readable sensitive files

Supports all major AI coding clients: Claude Code, Cursor, Windsurf, Cline, Continue, Copilot, Aider, and AGENTS.md.


Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
# Scan current directory
npx rigscore

# Scan a specific project
npx rigscore /path/to/project

# JSON output for CI
npx rigscore --json

# Monorepo recursive scan
npx rigscore . --recursive --depth 2

# Run a single check
npx rigscore --check docker-security

# Generate a README badge
npx rigscore --badge

Scoring

ScoreGradeMeaning
90-100AStrong security posture
75-89BGood foundation, some gaps
60-74CModerate risk, needs attention
40-59DSignificant gaps
0-39FCritical issues, fix immediately

Each CRITICAL finding zeroes out its sub-check. Each WARNING reduces it by 50%.


Privacy

Runs entirely on your local machine. No data collected, transmitted, or stored. No API calls. No telemetry. No accounts.


Source

MIT licensed. Issues and PRs welcome at github.com/backroadcreative/rigscore.