Repository navigation
v0.8.0
v0.8.0
Go is now reviewed as fully as Python: the SQL, shell, TLS, open-redirect and path-traversal rules cover Go's
standard library and its common web and database packages, and three Go-specific rules join them. Every rule here
was run over llm-d, Argo CD, KServe, Kubeflow Pipelines, MLflow and etcd-operator before shipping; the false positives
that turned up (an HTTP client's Get read as SQL, TLS turned off in tests, a umask-masked mode) are fixed.
Added
ACR-APP-024: Go servers started withhttp.ListenAndServeor anhttp.Serverwith noReadHeaderTimeout, open
to Slowloris. Argo CD has eleven, Tesla's vehicle-command HTTP proxy two.ACR-APP-025: files and directories created world-writable (0777, 0666) in Python and Go.ACR-APP-026: an authorisation or identity check written as a Pythonassert, which-Oremoves.ACR-GHA-018(high): an action whose owner is one edit, or one swapped pair of letters, from a well-known one
(action/checkout,actoins/setup-python,dockr/login-action).ACR-K8S-021(low): containers withoutallowPrivilegeEscalation: falseorcapabilities.drop: [ALL], the two
restricted-profile settings every container needs.ACR-DOCKER-012:pip,npm -gandgo installof packages with no version in a Dockerfile, one finding per
RUN. Argo CD's and Kubeflow's build images install several tools at@latest.ACR-APP-022:tarfileandzipfileextraction with nofilter=and no member-path check, the zip-slip shape of
model and dataset downloads. Run over MLflow, KServe and Kubeflow Pipelines before shipping: four real
extractions, no false positives left.ACR-APP-023: temporary files created by a fixed name under/tmp(tempfile.mktemp, a literal joined onto the
temp directory,open("/tmp/x", "w"), Go'sfilepath.Join(os.TempDir(), "x")), open to a symlink race. Over Argo CD it found the dex
command writing its TLS key and config to fixed paths under/tmp, and MLflow's REPL cache under/tmp/repl_tmp_data.ACR-DEP-005: pip requirements installed from a git branch, tag or bare URL instead of a commit.
Changed
ACR-APP-010(predictable random numbers for a secret) covers Go'smath/rand, in files that do not import
crypto/rand.ACR-APP-001,-002,-005,-012and-013cover Go: statements built withfmt.Sprintfor+for
database/sql, sqlx, pgx and GORM;exec.Command("sh", "-c", ...)with a built command;InsecureSkipVerify: true
andgrpc.WithInsecure();http.Redirectand Gin redirects to request values; file calls and path joins fed by
request values, route variables or form fields.ACR-APP-005skips test files, where verification is turned off against the test's own self-signed server.
Fixed
ACR-K8S-005no longer reportsimage: ${VAR}or$(VAR)placeholders as unpinned. The image is filled in at
deploy time, often from a file of digests, so the pin is not in the manifest; the Compose rule already skipped them.