You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[HIGH] spored role grants unconditioned ec2:CreateTags on * → tag-then-terminate escalation #174
Severity: HIGH — from the 2026-06 suite audit (verified: iam.go:606 CreateTags on Resource "*" with no condition).
Where
pkg/aws/iam.go:601-625 (buildInlinePolicy)
Problem
ec2:CreateTags is granted on * with no condition, while destructive TerminateInstances/StopInstances are conditioned on ec2:ResourceTag/spawn:managed=true. A compromised spore can tag ANY instance with spawn:managed=true then terminate it — the condition scoping the destructive perms provides no containment. The owner tag (spawn:iam-user) is likewise forgeable.
Fix
Condition ec2:CreateTags to the instance's own ARN/ID or restrict keys via aws:RequestTag/aws:TagKeys; forbid setting spawn:managed via the instance role; at minimum condition CreateTags on ec2:ResourceTag/spawn:managed=true so a spore can only re-tag already-managed instances.
Activity
test: update TestBuildInlinePolicy for the #174 3-statement spored po…
fix(security): scope spored CreateTags to managed instances (#174) (#236
feat: DCV handshake retry + bounded idle grace + IAM/SG reconcile (sp…
fix(reaper): make the max-age ceiling apply inside a live deadline, a…
security: scope the portal onboarding role, and give cmd/onboard.go i…