Skip to main content

Documentation

Scan locally

devarmour scan ./my-project
devarmour scan --format sarif --fail-on high
devarmour scan --git-history
devarmour scan --advisory-db advisories.json

Exit codes: 0 gate passed, 1 gate failed, 2 scan incomplete or error. A scan that did not complete is shown as Incomplete in the dashboard, never as a clean result.

What is checked

JavaScript and TypeScript source, config files and npm/yarn/pnpm lockfiles. 21 rules are implemented: SEC001, SEC002, SEC003, SEC004, SEC005, SEC006, SEC007, SEC008, SEC009, SEC010, SEC011, SEC012, SEC013, SEC014, SEC015, SEC016, SEC017, SEC018, SEC019, SEC020, SEC021. Nothing else is scanned, so a clean result does not cover other languages, infrastructure files or running systems.

Known limits

  • Taint analysis is within a single file; flows across functions or files are not followed.
  • Access-control and rate-limiting checks are heuristic and report low confidence ("no check visible").
  • Dependency findings need an OSV advisory file you supply, or the opt-in online lookup, which sends only package names and versions.
  • NoSQL injection (SEC021) covers MongoDB-style filters built from req.body/req.query and $where; it does not follow objects built in one place and queried in another.

Upload to this dashboard

Scans stay on your machine unless you ask for an upload. Sign in once with devarmour login (it prints a link and a code that you approve in the browser), then run devarmour scan . --upload. The project is created for you and the scan appears in your own dashboard only. In CI, create a project API token in project settings and set it as DEVARMOUR_TOKEN. devarmour logout removes the stored login and revokes it. Uploads contain masked findings and metadata, never source code or .env files, and the server rejects any upload that contains something that looks like an unmasked secret.

npm install -g devarmour
devarmour login
devarmour scan . --upload
devarmour whoami
devarmour logout

Finding lifecycle

New findings are OPEN. If a later complete scan no longer reports one (and its check ran and was not hidden by your severity threshold or ignored rules), it becomes FIXED, then VERIFIED on the following confirming scan. A reappearing finding is reopened.