DET-141 · human · confidence High
Signing Outside the Release Path
Alert on any use of a code or artifact signing key by an identity or host other than the release pipeline.
Signing keys held in KMS, Key Vault, Cloud KMS or an HSM log each Sign call with the caller. When only one pipeline role should sign, any other caller is a strong signal. For keyless signing, the public Rekor transparency log shows which identity signed what, which can be checked against expected workflows.
When an alert fires, pull the artifact hash from the signing request and search build records for it. A signature with no matching build is the evidence you need.
- Data sources
- AWS CloudTrailAzure Key Vault diagnostic logsGCP Cloud KMS audit logsSigstore Rekor
- Platforms
- AWSAzureGCPSaaS
Logic
CloudTrail: eventSource = "kms.amazonaws.com" AND eventName = "Sign" AND requestParameters.keyId IN (<signing_key_arns>) AND userIdentity.arn NOT LIKE "%role/release-signer%" Azure: AzureDiagnostics | where ResourceProvider == "MICROSOFT.KEYVAULT" and OperationName == "KeySign" and identity_claim_appid_g != "<release-app-id>" Rekor: certificate SAN not matching `https://github.com/<org>/<repo>/.github/workflows/release.yml@refs/tags/*`
False positives
Key rotation tests and break-glass signing during a pipeline outage.