Osor0s · @Osor0s
4 followers · 31 posts · Server infosec.exchange

ctf.nullcon.net or onsite in Berlin to solve my (quite simple) cloud challenge

#nullcon #aws #cloud #cloudhacking #cloudsecurity

Last updated 2 years ago

Osor0s · @Osor0s
4 followers · 31 posts · Server infosec.exchange

When you are logged into the website, on the top right, chose "Security Credentials". Depending on permissions you can reset the password, get a new awscli key or reset the MFA device.

#aws #cloud #cloudhacking #awscli #hacking #infosec #cybersecurity #cloudsecurity #awssecurity

Last updated 3 years ago

Osor0s · @Osor0s
3 followers · 27 posts · Server infosec.exchange

Let's do something "creative":

Where can you get AWS credentials from?

Add a new vector or give more details for an answer that's already there, e.g. (1) IMDS (2) Instance Metadata Service v1 creds directly from 169.254.169.254/latest/meta-data/iam/security-credentials/<role-name>

#aws #cloud #cloudhacking #awscli #hacking

Last updated 3 years ago

Osor0s · @Osor0s
3 followers · 26 posts · Server infosec.exchange

Thank you goes to @flomb :)
To see all role assignments for a resource group in Azure (including inherited once from management groups), send an API request through the azure-cli:

`az rest --method get --url "management.azure.com/subscript<subscription-id>/resourcegroups/<resource-group-name>/providers/Microsoft.Authorization/roleAssignments?api-version=2022 -04-01" | jq '.value[].properties | .scope + " " + .principalType + ":"+ .principalId'`

The jq collects the scope of the role assignments, then the type like User, service account etc. and then the identifier for the principal that has a role assignment.

#azure #azcli #cloudhacking #cloud

Last updated 3 years ago

Osor0s · @Osor0s
3 followers · 26 posts · Server infosec.exchange

In the azure portal, going to any resource or resource group/subscription and clicking on "Access control" and then "Role Assignments". You see many entries including Inherited once, i.e. "Management group (Inherited)", in the scope column.

**How do you recreate this information in the Azure cli?**

#azure #az #cloud #cloudhacking #azcli

Last updated 3 years ago