Loading the path…
Loading the Northline workspace…
Loading the path…
A long-lived key in build #1844 assumes the deploy role. The build host also answers IMDSv1.
Revoke the deploy key
Delete the long-lived organization key in the build log and require IMDSv2 on the build host.
Read-only cloud run.
AKIA key, redacted.
host: ci.northline.example log: build #1844 key: AKIA[redacted] role: build-deploy scope: organization deploy GuardDuty: no finding (the call looks like the build role)
Fix. Revoke the key, rotate to short-lived credentials, and stop printing secrets into build logs.
Open weaknessOrganization deploy role.
The same role is also on the instance metadata service.
host: ci.northline.example IMDSv1: reachable role: build-deploy credential: [redacted] No hop limit required.
Fix. Require IMDSv2 and a hop limit of 1 on the build host.
Open weaknessThe key can publish to every account the role reaches.
Found on PT-1811.