Repository navigation
evnx v0.16.0
0.16.0 is about three things:
scanfinds what was hidden. Secrets inside base64, hex and percent-encoded values, seven more GitLab token types, and the files git history added or changed (scan --history, with a pre-push hook that scans what is being pushed).scanreports less noise, and says why. Classic GitHub stand-ins that fail their checksum are dropped, lockfiles get only the key-format rules, the confidence shown follows the line's context, and the advice to rewrite history is kept for real key matches.- Getting values in and people out.
add importreads many variables from one file,set --fillasks for every empty or placeholder value,--from-filereads a certificate or key, andvault revoke --all-vaultsremoves someone everywhere and lists what to rotate.
This is a minor release with breaking changes. A "no" at a confirmation prompt exits 4, scan JSON is
schema_version3, and CI that passed may now fail on new findings. Read Upgrade in five minutes before you update scripts or CI. The upgrade guide: https://docs.evnx.dev/cli/reference/upgrading-to-0-16-0
Highlights
evnx scan --history [RANGE]scans the file versions git history added or changed:origin/main..HEAD,v0.15.0.., everything reachable fromHEAD, orallrefs. Each finding is reported against the oldest commit that has it (path@abc1234:LINE), so a secret that was added and later removed is still found. A bare--historyreads only the commits since the last clean history scan of this clone.evnx scan hook install --pre-pushblocks a push that adds secrets. When no remote has the commits yet, it says to amend or rebase them, not to force push.EVNX_SCAN_BYPASS="<reason>" git pushpushes anyway, and the reason is logged.- Secrets inside encoded values. A base64, hex or percent-encoded value of 16 to 4096 characters is decoded once and checked against the format rules.
- More GitLab tokens: feed, incoming email, agent for Kubernetes, workspace, SCIM, feature flags client and OAuth application secrets, plus
glrtr-runner tokens and the routable personal access token form. evnx add import <FILE|->adds many variables at once from.env,.properties, INI, JSON, YAML (including a Kubernetes Secret, a docker-composeenvironment:and a GitHub Actionsenv:), CSV andweb.config. Never prints a value.evnx set --fillasks, in file order, for every name whose value is empty or a placeholder, and writes them all at once.--from-file <path|->onadd customandsetreads one multi-line value: a certificate, a private key, a service-account JSON.evnx vault revoke --all-vaults --user <email>removes someone from every vault you can see, andvault revokeends with a "rotate at the source" checklist of credential names grouped by provider. Names only, never a value.evnx config showprints every effective setting and where it came from. Credentials show only asset (hidden)ornot set.evnx cloud watch --on-change -- <COMMAND>...runs a command for each change, andcloud delete-version --latestremoves the latest version safely.- Signed SBOM on every archive: the CycloneDX SBOM is attached to each release archive as a signed attestation. See Verify your download.
Upgrade in five minutes
-
Update with the channel you used before, or:
curl -fsSL https://evnx.dev/install.sh | bashevnx updateprints the right command for your copy. In CI, pin the version withEVNX_VERSION=0.16.0. -
Check scripts that answer "no" to a prompt. A declined confirmation now exits
4. Accept4, or pass--yes. -
Check scripts that read
scan --format json. It isschema_version3. Use the newfileandlinefields instead of splittinglocation. -
Run
evnx scan(andevnx scan --historyif you use it) once before CI does. Findings inside encoded values and new GitLab tokens can fail a CI job that passed. Mark what is not a secret withevnx:allow <rule-id>orevnx scan --update-baseline. -
Pre-commit users: set
rev: v0.16.0. At that rev theevnx-scan-pushhook scans the commits being pushed (evnx scan --history) instead of the files on disk.
Breaking changes
Exit codes
- A "no" at a confirmation prompt exits
4.vault delete,vault leave,vault revoke,vault rekey,org seats,org remove,org delete,org leave,cloud push(the shrink and production-file questions),cloud delete-version,auth rotate-master-password,auth token revoke,auth sessions revoke,auth sessions revoke-othersandauth devices disavowprinted "Cancelled" and exited0. They now exit4after the same message, asset,removeandplatformalready did. Do: accept4where a "no" is expected, or pass--yes.
Scan JSON and SARIF
- Scan JSON is
schema_version3. Every finding hasfileandline(a number, ornull) besidelocation. A finding in a YAML, JSON, TOML or notebook file haskey_path(app.db.password). Allowed and baseline findings carryreason_code, andsummary.by_reasoncounts them. New optional fields:encoded,context,confidence_before_context, and under--historycommit,blob,commit_timeandgit: "history";effective_confighasrules_digest. A field is left out when it does not apply, and therunheader is unchanged. SARIF lists allowed and baseline findings as suppressed results, with the reason as the justification. Do: acceptschema_version3; readfile,lineandkey_pathinstead of parsinglocation.
What scan finds
- More findings: decoded values and GitLab tokens. A value that is base64, hex or percent-encoded text is decoded once and checked against the format rules (known prefixes, private-key headers, connection strings). Such a finding says "found inside a base64-encoded value, decoded once" and carries
encodedin JSON. Seven new GitLab token rules, plusglrtr-and the routable personal access token form. Do: run a scan before CI does, and baseline what is not a secret (evnx scan --update-baseline, orevnx:allowon the line). - Classic GitHub tokens that fail their checksum are no longer findings. A
ghp_,gho_,ghu_orghr_value with 36 characters after the prefix carries a checksum in its last six. A value whose checksum does not match was never issued by GitHub, so it is dropped like a placeholder; one that matches is reported with high confidence.ghs_tokens and other lengths are not judged. CI that failed on made-up stand-ins in test files now passes; real tokens are unaffected. - The confidence shown can move one level. An
AuthorizationorBearerheader, an HTTP client call or a connection string on the line raises it; a file undertest,tests,mock,specorfixtureslowers it (name, entropy and medium findings only). Nothing is dropped, and the exit code, the--confidencefloor and the summary counts use the level before the hint. Do: a script that readsconfidenceand needs the old value readsconfidence_before_contextwhen it is present. - Lockfiles get the key-format rules only. In
package-lock.json,pnpm-lock.yaml,yarn.lock,Cargo.lock,poetry.lock,go.sumand the other common lockfiles,scanno longer judges a key by its name or a value by its entropy, so a package named…-password-toggle-fieldis not a "Sensitive config key". Every format rule still runs. JSONfiles[]notes it;-vprints it.
Next steps and messages (for scripts that read them)
- History-rewrite advice only for a real key match. Revoke,
git filter-repoand force push are given only for a committed file that a format rule matched by value with high confidence. Other committed findings get "Check " with how to accept it if it is not a secret; a staged-only file gets "Unstage ". Outside a repository,scanno longer talks about commits. doctorsays "git would commit it" instead of "NOT in .gitignore":.env is not ignored: git would commit it (security risk), also indoctor --format jsondetails. The answer is git's own, so a global excludes file or.git/info/excludecounts. Outside a git repository it is information, not an error, and does not fail--strict. Do: a script that matched the olddetailstext matches the new one.
YAML
- YAML is read with
yaml-rust2instead of the deprecatedserde_yaml, and the unsafe C portunsafe-libyamlis gone from the build. The rules are unchanged (YAML 1.2:yes,no,on,offare text; anchors resolved;<<not applied; every---document read). Edge files only: a tab right afterkey:is a syntax error, soscanreads that file as text andadd importrefuses it; a key that is a list or a mapping is refused the same way; a numeric or~key is named as written (1.10,~).
New in 0.16.0
Commands and flags
evnx add import <FILE|->:.env,.properties, INI, JSON, YAML, CSV andweb.config(<appSettings>), with--from,--section,--only,--exclude,--dry-runand--json(a source-to-name mapping, never a value).evnx set --fill(with--only <glob>and--dry-run): one atomic write and one.bak; Ctrl-C before the last answer writes nothing.evnx add custom NAME --from-file <path|->andevnx set NAME --from-file <path|->: up to 64 KiB,--keep-trailing-newline,--base64for a binary file. A dry run says118 bytes, 4 lines.evnx scan --history [RANGE],--full, andevnx scan hook install --pre-push(hook uninstallandhook statustake--pre-pushtoo).evnx vault revoke --all-vaults --user <email>, and--dry-runand--jsononvault revoke <vault>.evnx config show(--json).evnx cloud watch --on-change -- <COMMAND>...andevnx cloud delete-version --latest.- An evnx server that refuses an old CLI (HTTP 426) is explained: the running version, the minimum, and
evnx update. Exit 11. - The baseline records
rules_digest, the hash of the rule set it was written under (stillschema_version1).
Changed
- The
evnx-scan-pushpre-commit hook scans the commits being pushed (evnx scan --history). scan'sscanning …line lists git-ignored files apart: "git-ignored (summarised only)".scan hook statusreads.pre-commit-config.yaml, names therev, and says when it is older than the running evnx.validate,initanddoctorpoint to the command that does the job:evnx set --fillfor placeholders,evnx init --yesfor a missing.envbeside a template.doctor --fixadds.env*.bak*to evnx's.gitignoreblock and makes backups owner-only.parse --show-valuesimplies--values.- Refusals that name the next command end with "evnx stopped before making changes (exit 2). Run one of the commands above."
- The
configline names[scan]settings only forscan; a template line with only a name says to writeNAME=. - Every built-in scan rule declares keywords, so rules run only on text that can match. Findings do not change.
indicatif0.18 (no morenumber_prefix).
Fixed
scanno longer reads evnx's own files in.evnx/(rule packs, the baseline, the backups list), which reported their example keys.scanno longer tells you to rewrite history for a file that is only staged.validateno longer compares backups such as.env.bak-20261120as environments, andremove --allleaves them alone.add custom NAME=valuewrites the value when the template lists NAME with another value.doctoroutside a git repository no longer says "run: git add .env.example";initadopting an env file with no template namesevnx sync;spec initwrites "# only in .env" only for names the template lacks.migrate -o FILE,platform pushconflicts,cloud run --min-versionandremovename the right next command;auth token create's CI example names one password variable.auth sessions listandauth devices listline up again;validateandmigrate --to githubend their progress lines on a terminal;run --helpandcloud run --helpshow-- <COMMAND>...again.- On Windows the
scanningline writes paths with/. - A backup passphrase in
EVNX_PASSWORDis no longer removed from evnx's own environment while it is read.
Security
url2.5.9 for RUSTSEC-2026-0592 (reached throughreqwest, in builds withnet, whichcloudandmigrateimply), and the yankedwasm-bindgenfamily refreshed.cargo auditreports no vulnerability; the accepted "unmaintained" notices (chrono,pin-utils, andhumantime, which only the tests use) are listed with reasons in.cargo/audit.toml.
The full list, with the reason for each change, is in the CHANGELOG.
Install
# Linux / macOS
curl -fsSL https://evnx.dev/install.sh | bash
# Homebrew (macOS, Linux)
brew install urwithajit9/evnx/evnx
# npm
npm install -g @evnx/cli # global
npm install --save-dev @evnx/cli # per project, then: npx evnx
npx @evnx/cli --version # no install
# Python
pipx install evnx
# Cargo (compile from source)
cargo install evnx --all-features
# Docker
docker run --rm -v "$PWD:/work" ghcr.io/urwithajit9/evnx:0.16.0 scan# Windows
scoop bucket add evnx https://github.com/urwithajit9/scoop-evnx
scoop install evnx
winget install urwithajit9.evnx
cargo install evnxwithout--all-featuresbuilds a binary withoutauth,vaultandcloud. Every other channel ships them.
Verify your download
Checksum
sha256sum -c evnx-*.tar.gz.sha256Provenance. Every archive has a signed build provenance attestation that ties it to the workflow run and commit that built it:
gh attestation verify evnx-x86_64-unknown-linux-musl.tar.gz -R urwithajit9/evnx \
--signer-workflow urwithajit9/evnx/.github/workflows/release.yml \
--source-ref refs/tags/v0.16.0SBOM. SBOM: evnx-0.16.0.cdx.json (CycloneDX 1.5, signed). It lists every crate in the build, with all features on, and has its own checksum and signed attestation:
sha256sum -c evnx-0.16.0.cdx.json.sha256
gh attestation verify evnx-0.16.0.cdx.json -R urwithajit9/evnx \
--signer-workflow urwithajit9/evnx/.github/workflows/release.ymlNew in 0.16.0: the SBOM is attested per archive. Each archive also carries the SBOM as a second signed attestation, so you can check which SBOM describes the archive you downloaded:
gh attestation verify <archive> --repo urwithajit9/evnx \
--predicate-type https://cyclonedx.org/bomScan it with your own tools:
grype sbom:evnx-0.16.0.cdx.json # or: trivy sbom evnx-0.16.0.cdx.json
osv-scanner scan source -L evnx-0.16.0.cdx.jsonFull Changelog: v0.15.0...v0.16.0