Safeguard
Tag

go

Safeguard articles tagged "go" — guides, analysis, and best practices for software supply chain and application security.

35 articles

Security Guides

Go Security Best Practices: A 2026 Field Guide for Backend Teams

Go ships secure defaults most other languages lack — but its supply chain, concurrency model, and cgo edges still leak real vulnerabilities. Here are the practices that actually move the needle.

Jul 1, 20268 min read
DevSecOps

Go: Check If a Key Exists in a Map (Comma-Ok Idiom)

How to check if a key exists in a Go map using the comma-ok idiom, why a plain lookup can't tell 'missing' from 'zero value', and the patterns for sets, nil maps, and concurrent access.

May 23, 20266 min read
Open Source Security

How to Monitor Go Module Substitution Attacks

Defend against Go module substitution attacks with GOPROXY, GOSUMDB, vendor verification, and checksum database monitoring — complete with working examples.

Mar 31, 20265 min read
Engineering

Go Module Security: sumdb, GOPROXY and Private Modules

How Go's checksum database actually protects you, where GOPROXY ordering bites, and the GOPRIVATE mistakes that leak internal module paths to public infrastructure.

Mar 30, 20267 min read
Supply Chain

The boltdb-go Backdoor: A Three-Year Go Module Mirror Persistence

A typosquat of boltdb hid a Go module mirror cache-poisoning attack for three years before Socket researchers disclosed it on January 30, 2025.

Mar 23, 20266 min read
DevSecOps

Go Build Cache Poisoning Risks

The Go build cache makes builds fast and reproducible, but a poisoned cache can reuse malicious compiled output indefinitely while the source looks clean.

Mar 16, 20267 min read
DevSecOps

go generate Supply Chain Risks

go generate is a seam where arbitrary commands run with the full privileges of the developer, and it does not show up in any manifest of trusted dependencies.

Mar 12, 20267 min read
Open Source Security

Go Toolchain Distribution Security

The Go toolchain directive can automatically download and run a different compiler version than the one your developers installed, which is convenient, reproducible, and worth understanding as a supply chain surface.

Mar 6, 20266 min read
Open Source Security

Go Checksum Verification Patterns

go.sum and the Go checksum database are among the most rigorous integrity mechanisms in any language ecosystem, and the verification patterns around them deserve to be understood and used well.

Mar 3, 20267 min read
Open Source Security

Go Module Hijacking Detection

Module hijacking in Go is rare compared to npm, but it does happen, and the patterns worth watching are different from what you might expect from other ecosystems.

Mar 1, 20267 min read
Open Source Security

Go Workspaces Supply Chain Risks

Go workspaces make multi-module development feel natural, but the go.work file introduces a new trust boundary that can quietly override pinned versions and bypass checksum verification.

Feb 27, 20266 min read
SBOM & Compliance

SLSA for Go Releases: A Practical Guide

Go's build model makes SLSA provenance more tractable than most ecosystems. Here is the practical guide for producing and verifying provenance on Go releases.

Feb 26, 20266 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.

go (Page 2) — Safeguard Blog