To check the Go modules your project depends on for malicious code, upload its go.sum or go.mod. Togoder Security fetches each module version from the Go module proxy, never builds it, and has an AI model read every source file for init() functions that run at startup, hidden network calls, credential reads and backdoors.
How to scan Go dependencies
- Find your dependency file. Use go.sum, go.mod. Lockfiles pin every transitive dependency, so the whole tree is scanned.
- Upload it for a free quote. Upload the file at https://security.togoder.click/scan, or POST it to https://security.togoder.click/api/quotes. The price covers only files nobody has scanned before.
- Scan with a prepaid balance or monthly plan. Scan new code from a prepaid balance or with monthly access, in the browser or with an API key. Packages are downloaded and read, never executed.
- Review findings before you install. Read each finding's severity, file and line, then run go build only once you are satisfied. Every result is also published as a public report.
curl -X POST https://security.togoder.click/api/paid-scan -H "Authorization: Bearer $API_KEY" -F "file=@go.sum"
API keys work with a prepaid balance or a monthly plan. To see the price first, POST /api/quotes is free. See the package safety API guide.
Where malicious Go code runs
- init() functions: Go has no install scripts, but every
init()in an imported package runs when your program or its tests start, beforemain. - Runtime code: commands spawned with
os/exec, outbound connections and file reads hidden in an otherwise useful library. - Typosquatted module paths: a repository path that looks like a popular module. The module proxy caches versions, so a malicious version can stay downloadable after the repository is cleaned up.
Supported files
go.sum, go.mod. Manifests are resolved to the newest matching versions; lockfiles are scanned exactly as pinned. You can also scan one package and its dependencies by name.
Free tools to run alongside
govulncheck (Go vulnerability database, with reachability analysis) and OSV-Scanner are free and check your modules against reported vulnerabilities. They do not read unreported code. Togoder Security's public reports are free; scanning new code is paid.
Frequently asked questions
Is there a free malicious package scanner for Go modules?
govulncheck and OSV-Scanner are free and check go.mod against known vulnerabilities. For code that nobody has reported yet you need source review: Togoder Security's public module reports are free to read, and scanning new modules is paid from a prepaid balance or with a monthly plan.
Can a Go module run code when I download it?
Not on go get or go mod download. Its init() functions run when a program or test that imports it starts, which in practice is the next go test or go run.
Is scanning Go packages free?
Reading existing reports, parsing your file and getting a price quote are free, and so is a scan in which every file was already reviewed by someone. Scanning code nobody has reviewed yet is paid, from a prepaid balance or with monthly access. Free advisory tools are listed on this page.