Security Guides
In-depth guides and analysis on security guides from the Safeguard engineering team.
5115 articles
How do you test if your scanner finds a vendored library?
A 15 minute test to learn whether your scanner detects a copied library with no manifest entry, using an old jQuery file as the canary.
Should you test a clean install of your release before announcing it?
Yes. Install the exact file users get into an empty environment and run it. It catches missing files, wrong versions and stray content that tests miss.
How do you test a scanner's suggested fix versions on your repositories?
A scanner's fix version is a claim. Apply ten suggested upgrades on a branch, run your tests and score each tool on how many builds stay green.
Can you use real payment cards to test checkout in staging?
No. Use the payment provider's test mode and published test card numbers in staging. Real card details in a test system add risk and break provider terms.
How do you test that log redaction actually works?
Plant fake secrets that look real, run them through your app, and search every log destination. A repeatable canary test for log redaction, with steps.
What should I test after a dependency upgrade, and in what order?
A practical order for testing after a dependency security upgrade: resolver checks, build, unit and integration tests, runtime smoke test, then rescan.
How do you test a regex or detection rule that an AI wrote?
AI-written regexes and detection rules often look right and fail on edge cases. A test plan with positive, negative and hostile samples, plus review steps.
How do you test a container base image upgrade before rollout?
Base image upgrades change OS packages, libraries and sometimes libc. A step by step plan to compare, verify and roll out the new image safely.
Terragrunt source: how to pin the module behind each unit
Terragrunt units fetch Terraform or OpenTofu modules from a source URL. Use a ref to pin each environment to a known version and promote on purpose.
Can Terraform variable validation act as a guardrail in shared modules?
Terraform variable validation blocks can reject unsafe inputs in shared modules at plan time. What they check, what they miss, and how to write messages.
Can a Terraform saved plan serve as change evidence for an audit?
A saved Terraform plan shows exactly what was approved and applied. Here is how to capture it, protect it, and link it to the change ticket.
Does a Terraform Git module without ref follow the default branch?
Yes. A Git module source with no ref uses the default branch at HEAD, and the version argument only works for registry modules. Here is the safe fix.
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.