Safeguard
Topic

Security Guides

In-depth guides and analysis on security guides from the Safeguard engineering team.

5115 articles

Security Guides

Who should be allowed to write the pnpm store cache in CI?

Treat the pnpm store and metadata cache as trusted: only trusted jobs should write them, never fork pull request jobs, or a poisoned cache can spread.

Oct 19, 20263 min read
Security Guides

How do you leave a plugin ecosystem cleanly if you must?

A marketplace can close a plugin, change its rules or suffer an incident. Write an exit plan covering inventory, replacements, data and access up front.

Oct 19, 20264 min read
Security Guides

How do you test scanner coverage with a planted vulnerable package?

Plant a known vulnerable dependency in a throwaway repo and see if your scanner reports it. Steps, a safe example, and how to read a miss.

Oct 19, 20263 min read
Security Guides

How do you plan fix capacity around holidays and release freezes?

Plan remediation around known low capacity periods: burn down routine fixes beforehand, define a freeze exception path, staff the gap and catch up after.

Oct 19, 20263 min read
Security Guides

What should a CI security dashboard show? Six panels that matter

A CI security dashboard needs few panels. Six that answer real questions about coverage, gate outcomes, speed, friction, exceptions and fix flow.

Oct 19, 20263 min read
Security Guides

Pip upgrade-strategy: only-if-needed or eager for a security fix?

Pip upgrades a direct package by default but leaves its dependencies alone. Learn what only-if-needed and eager do, and which fits a security fix.

Oct 19, 20264 min read
Security Guides

Does pip's only-binary option make installs safer, and what breaks?

Only-binary tells pip not to use source packages. It avoids building from source on install, but packages with no wheel will fail. How to try it in CI.

Oct 19, 20264 min read
Security Guides

How do I force a safe version of a transitive Python package?

Use a pip constraints file to cap or raise the version of a transitive Python dependency without adding it as a direct requirement. Steps and limits.

Oct 19, 20264 min read
Security Guides

Should security automation pin third-party actions to a commit SHA?

Yes for actions that touch secrets or write access. Pin to a full commit SHA, verify it, and keep a plan to update. Tradeoffs and a review routine.

Oct 19, 20263 min read
Security Guides

Pin or use a range? A decision guide by package manager

A quick table of how npm, pip, Cargo, Go, Maven, Gradle, NuGet, Composer and Terraform treat version ranges and lock files, and what to commit in each.

Oct 19, 20264 min read
Security Guides

Which scenario should your first dependency compromise tabletop use?

A decision guide for choosing a first dependency compromise tabletop scenario, matched to your biggest worry, team size and how much inventory you have.

Oct 19, 20264 min read
Security Guides

How do you check a PHP file upload safely?

Check the upload error code, size and real MIME type with finfo, then move_uploaded_file to a generated name outside the web root. Steps from the PHP docs.

Oct 19, 20264 min read

Self-healing security runs on Safeguard.

Your first fix PR is minutes away.

No sales call required, even your agent can complete the purchase over MCP.