npm.io
0.2.2 • Published 10h agoCLI

scanrail

Licence
Apache-2.0
Version
0.2.2
Deps
1
Size
4 kB
Vulns
0
Weekly
0

Scanrail

npm CI License

Developer-first security scan orchestration from one CLI.

This package installs the scanrail command. It delegates to @scanrail/cli, which installs the matching platform-specific Go binary package for macOS, Windows, or Linux.

Install

npm install -g scanrail
scanrail doctor

You can also run it without a global install:

npx scanrail doctor

First Scan

scanrail init --non-interactive --project-name demo --target https://example.com --openapi ./openapi.yaml
scanrail run --profile quick

The current MVP includes the CLI scaffold, config generation, workspace setup, JSON/HTML reporting, native security headers, TLS certificate, and local OpenAPI baseline scanners, configured web target guardrails, and a Docker-backed Gitleaks secrets adapter. Use scanrail run --only headers, scanrail run --only tls, or scanrail run --only openapi without Docker, or scanrail run --only gitleaks for the secrets scan only. Trivy and Semgrep adapters are planned.

Native interactive scanners reject targets outside targets.web.allowlist and block configured targets.web.exclude_paths / safety.blocked_paths before making network contact.

MCP

Scanrail includes a local stdio MCP server for AI clients:

scanrail mcp serve

The MCP MVP exposes bounded tools for doctor, config reading, latest report summaries, and the native headers scan with explicit active-scan confirmation.

Package Layout

scanrail is the recommended npm entrypoint. It depends on @scanrail/cli, which installs one optional platform package:

  • @scanrail/cli-darwin-arm64
  • @scanrail/cli-darwin-x64
  • @scanrail/cli-win32-x64
  • @scanrail/cli-win32-arm64
  • @scanrail/cli-linux-x64
  • @scanrail/cli-linux-arm64

License

Apache-2.0

Keywords