Dependency audit nodeclient

From PlamenTSV/plamen · View interactive version

Dependency audit nodeclient is an AI agent skill from the GitHub repository PlamenTSV/plamen. L1 supplement - audits Go modules and Rust crates for known vulnerabilities, outdated versions, supply chain risks, and replace/patch directives.

How to use this skill

Skill file

Injectable Skill: Node Client Dependency Audit

L1 trigger: L1_PATTERN=true — always runs

Inject Into: Recon + any breadth agent

Finding prefix: [DEP-N]

Status: v0.1 draft, Round 4 exemplars pending

When This Skill Activates

Always active in L1 mode. Extends Plamen's existing dependency-audit skill with Go/Rust-specific checks relevant to node clients.

1. Go Module Audit

1a. Version check

1b. Replace directive audit

Tag: [GO-REPLACE:{original}:{replacement}:{trust-note}]

1c. vendor/ directory

Tag: [GO-VENDOR-DIFF:{module}]

1d. Indirect dependency bloat

2. Rust Cargo Audit

2a. Version check

2b. Patch directive audit

Tag: [RS-PATCH:{original}:{replacement}:{trust-note}]

2c. Git dependencies

Tag: [RS-GIT-DEP:{crate}:{rev-pinned}]

2d. Workspace structure

3. Supply Chain Red Flags

Patterns that warrant deeper review across both ecosystems:

  1. Typosquatting: check for dep names that are one character off common names (e.g., tokio-util vs tokio-utils)
  2. Recently created deps with large version numbers: 1.0.0 published 2 weeks ago is suspicious
  3. Deps maintained by a single individual with no org backing: not a bug per se, but worth flagging for critical-path deps
  4. Deps with obvious abandonment signals: last commit >2 years ago on a security-critical dep
  5. Deps with known compromises: cross-reference against the event-stream / ua-parser-js / xz-utils class of events

Tag: [SUPPLY-CHAIN:{dep}:{concern}]

4. L1-Specific Critical Path Deps

These deps are security-critical for L1 clients and deserve extra scrutiny:

Go L1 critical deps

Rust L1 critical deps

For each of these in the target, report: version, whether it's current, any recent advisories.

5. Version Pinning Hygiene

Tag: [VERSION-DRIFT:{dep}:{pin-status}]

6. Output schema

6b. Known bug exemplars (v0.2 — Round 4 verified)

  1. BNB Chain bridge $100M+ loss (October 2022) — root cause: unmaintained IAVL Merkle proof library consumed by the BNB bridge. Dragonberry-class verification flaw in the shared library. Single unmaintained dependency, catastrophic impact. Halborn writeup. Skill catch point: Section 3 — unmaintained cryptographic library flag. Last commit >2 years ago on a security-critical dep = automatic finding.
  1. Moonbeam / Astar / Acala shared paritytech/frontier bug (~$200M at risk, 2022-2023) — single shared dependency blew up across 3 projects. The Immunefi $1M bugfix review covers the initial Moonbeam discovery; Zellic re-discovered the same class in Astar 18 months later after the library was patched. Immunefi Moonbeam/Astar/Acala review; Zellic Astar. Skill catch point: Section 4 — produce a reverse-dependency graph of the core crypto/VM libraries. Any library that, if compromised, would affect ≥2 L1/L2 networks is a critical-review target.
  1. Avalanche RFC6979 Decred library reuse (disputed, 2022) — ava-labs/avalanchego used a Decred library for deterministic signing; cross-project library reuse where an upstream bug can leak into downstream consensus. coingeek report. Skill catch point: Section 4 — every upstream Go module with network/crypto/consensus relevance needs CVE-history and maintainer-response-time check.

7. Fallback if primitives unavailable

Cross-references

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.