Togoder security

Glossary

Supply-chain security glossary

Plain definitions of the attacks and tools behind open-source dependency security, with real incidents and the commands that defend against them.

CycloneDX

CycloneDX is an open standard from OWASP for describing the components of software: a bill of materials (BOM) format in JSON, XML or Protocol Buffers that lists each component with its version, package URL, hashes and license, the dependency graph between them and, optionally, known vulnerabilities. It is also published as the Ecma standard ECMA-424.

Dependency confusion

Dependency confusion (also called a substitution attack) is publishing a package to a public registry under the same name as a company's internal package, so that a misconfigured package manager installs the public, attacker-controlled version instead.

Install scripts (postinstall)

Install scripts are commands a package declares in package.json (preinstall, install, postinstall) that npm runs automatically during installation, with the installing user's permissions, for every package in the dependency tree.

Lockfile

A lockfile (package-lock.json, yarn.lock, pnpm-lock.yaml, bun.lock, poetry.lock, Cargo.lock and others) records the exact resolved version, download URL and integrity hash of every direct and transitive dependency, so installs are reproducible.

Maintainer account takeover

A maintainer account takeover is when an attacker gains control of a package maintainer's registry account or publish token, through phishing, password reuse or a leaked token, and uses it to publish a malicious version of a trusted package.

Minimum release age (dependency cooldown)

A minimum release age, also called a dependency cooldown, is a package manager setting that refuses to install a version until it has been public for a set time, for example three days. Hijacked releases are usually found and removed within that time, so the setting keeps most of them out of your installs.

npm audit

npm audit sends a description of your dependency tree to the npm registry and reports the versions that have a known vulnerability in the GitHub Advisory Database. npm audit fix then installs patched versions where a compatible one exists.

npm ci vs npm install

npm ci (clean install) installs exactly the versions recorded in package-lock.json. It deletes node_modules first, stops with an error if the lockfile and package.json disagree, and never changes the lockfile. npm install resolves the version ranges in package.json, can pick newer versions and writes the result back to the lockfile.

Protestware

Protestware is open-source software that its own maintainer deliberately changes to make a protest or political statement, ranging from printing a message to breaking the package or damaging files on certain machines.

Reachability analysis

Reachability analysis is a technique in software composition analysis that checks whether an application can actually execute the vulnerable code in a dependency, by following the calls from the application's own code into the package. Vulnerabilities in code that is never called get a lower priority.

SAST vs SCA

SAST (static application security testing) analyzes the source code your team writes for security bugs such as injection or unsafe deserialization. SCA (software composition analysis) inventories the third-party components you depend on and matches them against databases of known vulnerabilities and licenses. They cover different code, so most teams run both.

SBOM (software bill of materials)

An SBOM (software bill of materials) is a machine-readable inventory of the components in a piece of software, including each open-source package, its version, supplier and license, usually in the SPDX or CycloneDX format.

Slopsquatting

Slopsquatting is registering package names that AI models hallucinate, so that when a coding assistant (or a developer copying its answer) runs the install command, the attacker's package is what gets installed.

SLSA (Supply-chain Levels for Software Artifacts)

SLSA (Supply-chain Levels for Software Artifacts, pronounced "salsa") is a security framework from the OpenSSF that defines levels of assurance about how a software artifact was built. It is based on provenance: a signed, verifiable record of the source, the build platform and the build steps that produced the artifact.

Software composition analysis (SCA)

Software composition analysis (SCA) identifies the open-source components an application uses, usually from lockfiles or manifests, and matches them against databases of known vulnerabilities (CVEs and advisories) and license terms.

Software supply chain attack

A software supply chain attack compromises something a target trusts and installs, such as an open-source dependency, a build tool, a CI action or a vendor update, so that malicious code reaches every downstream user without attacking them directly.

Transitive dependency

A transitive dependency (or indirect dependency) is a package your project installs because one of your dependencies needs it, not because you listed it yourself. Direct dependencies are the ones named in your manifest; everything they pull in below that is transitive.

Typosquatting

Typosquatting is publishing a malicious package (or registering a domain) under a name that is one slip of the keyboard away from a popular one, so that people who mistype the name install the attacker's code instead.

Go deeper

Step-by-step guides to checking packages, locking down install scripts and scanning lockfiles in CI.