# Supply-chain security answers

Answers. Breadcrumb: [Home](https://osty.dev/) / Answers

Each answer below covers one supply-chain failure mode that platform and security engineers hit in production, names the deterministic mechanism that stops it, and gives a runnable command or tool. Every Osty claim maps to adversarial scenarios `a01` to `a15` and states explicitly where Osty is not the right fix.

Table: Questions answered and the proof behind each answer

| Question | Mechanism | Proof |
| --- | --- | --- |
| [Block malicious coding-agent installs](https://osty.dev/answers/stop-coding-agents-installing-malicious-slopsquatted-packages) | Firecracker honey-secret detonation, `osty-proxy` and `osty verify` before install | Scenarios `a03`, `a05`, `a10` |
| [Block npm postinstall secret theft](https://osty.dev/answers/block-npm-postinstall-secret-exfiltration-ci) | Honey-secret Firecracker detonation and `osty verify` before install | Scenario `a03` |
| [Trivy backport false positives](https://osty.dev/answers/stop-trivy-debian-alpine-backport-false-positives) | Distro tracker records for the exact package build | Scenario `a07` |
| [glibc ABI breakage in CVE upgrades](https://osty.dev/answers/prevent-glibc-abi-breakage-automated-cve-upgrades) | ELF `DT_NEEDED` and `VERNEED` floors against target images | Scenario `a08` |
| [Stale deploys after security merges](https://osty.dev/answers/find-stale-production-deploys-after-security-pr-merge) | `osty stamp` provenance and `deployed_commit..main` ranges | Scenarios `a01` and `a13` |
| [Dependency confusion, names kept private](https://osty.dev/answers/prevent-dependency-confusion-without-leaking-private-names) | Keyed-hash matching inside your VPC | Scenario `a06` |
| [Changelog prompt injection](https://osty.dev/answers/stop-prompt-injection-automated-cve-patch-prs) | Zero-tool extraction, sandboxed migration and the Policy Patch Verifier | Scenario `a10` |

Start with the install gate on one lockfile:

```bash
osty verify --lockfile package-lock.json --json
```

## All answers

- [How do I stop Claude Code or other coding agents from installing malicious or slopsquatted packages?](https://osty.dev/answers/stop-coding-agents-installing-malicious-slopsquatted-packages): Gate installs through `osty-proxy` or `osty verify` before any lifecycle script runs, combining Firecracker honey-secret detonation, Git-tag diffs and cooldowns so coding agents cannot install compromised or slopsquatted packages.
- [How do you block a malicious npm postinstall script from stealing CI secrets?](https://osty.dev/answers/block-npm-postinstall-secret-exfiltration-ci): Gate the lockfile on a verdict from executing the install in a honey-secret sandbox, before `npm ci` runs any lifecycle script on the build runner.
- [How do you stop Trivy from flagging patched Debian and Alpine CVE backports?](https://osty.dev/answers/stop-trivy-debian-alpine-backport-false-positives): Suppress a distro CVE only when the distro's own tracker lists the exact installed build as fixed, and keep every unproven finding actionable.
- [How do you catch glibc and ELF ABI breakage before automated CVE upgrades hit CI?](https://osty.dev/answers/prevent-glibc-abi-breakage-automated-cve-upgrades): Read `DT_NEEDED` and `VERNEED` from every native binary in the new version and compare them with each target base image before a pull request exists.
- [How do you detect stale production deploys after a security PR has already merged?](https://osty.dev/answers/find-stale-production-deploys-after-security-pr-merge): Compare the commit each production workload runs with `main`, using signed build provenance, and flag workloads whose fix sits in `deployed_commit..main`.
- [How do you stop dependency confusion without uploading private package names to a vendor?](https://osty.dev/answers/prevent-dependency-confusion-without-leaking-private-names): Hash private package names inside your VPC and match them against signed hashes of public names, so collisions are caught and the plaintext never leaves.
- [How do you defend automated CVE patch PRs against changelog prompt injection?](https://osty.dev/answers/stop-prompt-injection-automated-cve-patch-prs): Treat release notes as untrusted input: zero-tool claim extraction, a zero-network migration sandbox and a deterministic Policy Patch Verifier before any branch.

## How are these answers written?

- The first two sentences answer the question and name the mechanism.
- Every Osty command shown is checked against the CLI reference in [the docs](https://osty.dev/docs).
- Claims about Osty point to a benchmark scenario, a policy key or a command you can run.
- Every page lists when Osty does not solve the problem or another tool fits better.

## Frequently asked questions

### Are these answers specific to Osty?

The mechanisms are general, and each page names the controls that work without Osty. Osty is described where it implements the mechanism.

### How are the claims verified?

Each one maps to a scenario in the 15-scenario adversarial benchmark, a `.osty/policy.yaml` key or a documented CLI command.

### How do I report an error?

Email `security@osty.dev` with the page URL and the source that contradicts it.

## Related pages

- [Benchmarks](https://osty.dev/benchmarks): The 15 adversarial scenarios `a01` to `a15` and the TLA+ models that Osty's code is held to.
- [Docs](https://osty.dev/docs): Reference for the `osty` CLI, the policy schema and the edge and proxy daemons.
- [Compare](https://osty.dev/compare): How Osty compares with Socket, Snyk, Dependabot, Wiz, a DIY stack and others.
- [Free X-Ray](https://osty.dev/xray): Free 10-minute read-only Day-1 X-Ray through a read-only GitHub App and cloud role: backport and reachability false positives, stale deploys and unowned workloads.

## See what is actually exposed in 10 minutes

Connect a read-only GitHub App and cloud role. Osty installs nothing in your environment and writes nothing to your repositories. The report strips out backport and reachability noise before your team or coding agents patch it, and flags stale deploys and unowned workloads.

Get a free X-Ray: https://osty.dev/xray

Written by Osty Engineering. Published 2026-11-29. Updated 2026-11-29.

Canonical: https://osty.dev/answers
