Urgent.News

What's breaking now, across thousands of outlets.

Tech

HookAudit: Building a Supply-Chain Security Scanner Without a Supply Chain

What happens when you force a security tool to inspect untrusted code using only standard-library primitives? An engineering postmortem on systems complexity and zero dependencies. Opening Hook We were building a security scanner designed to inspect untrusted repositories before developers open them in their editors. Our first instinct was standard Node.js muscle memory: npm install commander…

HookAudit is a repository execution-topology security auditor that aims to inspect untrusted repositories before developers open them in their editors. The team initially considered using standard Node.js packages, but decided to remove all third-party dependencies to eliminate the risk of supply-chain compromises. This decision led to a descent into the raw systems complexity that libraries normally hide, such as operating system path boundary traps, binary Git object serialization, and subtle bugs in directed graph traversals.

The project's five-stage workflow includes discovering configured execution surfaces, detecting commands and flags, tracing references, analyzing reachable capabilities, and establishing an integrity baseline. The execution graph is the central artifact of the system, and the tool relies on Node.js built-ins for runtime execution.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in Tech

A source map is a claim, and nothing checks whether it is true

A source map is a claim about two files: that this position in the built output came from that position in a source file.

  • A source map links positions in output files to source files.
  • Validity of source maps can be questioned even when structurally sound.
  • Tool sourcemap-truth verifies source map accuracy.

More from Saturday 5 September →