SPHIOR CODE is a deterministic code security scanning tool focused on finding security issues in source code locally. It supports 14 languages, maps detection results to CWE and OWASP Top 10 (2021) standards, and can be used in the terminal, CI, VS Code, JetBrains IDEs, and AI coding assistants. All detection runs on the user's machine, does not upload source code, has no telemetry, requires no account, and always produces the same results for the same code.
Main capabilities include:
- Hardcoded secret detection: includes 36 rules, covering specific vendor signatures and generic high-entropy rules, and scans all text files (including .env*, .github/, and *.example files).
- Insecure code pattern detection: includes 85 rules, covering OS command injection, SQL injection, code injection/eval, XSS, path traversal, SSRF, insecure deserialization, disabled TLS verification, weak hashing/encryption, insecure randomness, XXE, LDAP/XPath/NoSQL injection, file inclusion, open redirect, header injection, prototype pollution, format strings, and buffer overflow, with each rule mapped to CWE and OWASP categories.
- Data flow (taint) analysis: includes 69 rules, covering 13 languages, tracks the flow of untrusted input from entry points to use points, can cross function calls within the same file (including multi-level calls), and reports taint findings with "possible" confidence.
Usage:
- Command line: run via npx @sphior/scan run ., with terminal output as a table sorted by severity, and SARIF format generated when output is piped. Supports options such as --json, --sarif, and --fix-context, can scan a single specified file, and reads .sphiorignore to exclude paths.
- CI integration: supports GitHub Actions (using Toraastrta/sphior-scan-action@v1), and can also run commands in other CI systems and read exit codes, archiving SARIF or JSON. Provides a pre-commit hook.
- Editor plugins: VS Code extension (requires VS Code 1.85+) and JetBrains plugin (requires 2024.2+, depends on Node.js and LSP4IJ), showing findings in the editor and providing quick fixes.fixes.
- AI coding assistants: through the MCP server (sphior-code-mcp), assistants such as Claude Code, Cursor, GitHub Copilot, Windsurf, Cline, Continue, Zed, and JetBrains AI Assistant can scan the workspace and fix issues. Provides four Agent skills (in SKILL.md format), suitable for Claude Code, Codex, Cursor, GitHub Copilot, and claude.ai. There is also the sphior-code-guard plugin, which automatically scans after each file edit and reports high-risk issues.
Use cases: developers performing local code security self-checks, integrating security gates into CI pipelines, getting real-time security hints in the IDE, or using AI assistants to automatically fix security issues.
Limitations:
- Detection does not rely on AI and is based only on rules and pattern matching.
- The scan limit for text files is 512 KB; binary files are skipped.
- By default, directories such as node_modules, dist, and build are skipped, and .gitignore is not read.
- Uploading SARIF to private repositories requires GitHub Advanced Security.
- Some features (such as reading connected repositories) require a SPHIOR account and API key, but local scanning never contacts the server.
- claude.ai cannot access local files, so scan output must be attached manually.
- Specific pricing information is not currently provided.