# AWS

The lab environment for this workshop is hosted on Amazon Web Services (AWS) to ensure maximum convenience and a seamless experience for all participants. The workshop setup includes a base virtual machine (VM) for our Command and Control (C2) server, alongside a fully configured Active Directory (AD) domain. This domain features a bastion host (serving as a VPN concentrator), three domain controllers, and a workstation. While it's technically possible to host this setup locally, leveraging AWS provides a more streamlined, reliable, and scalable solution to ensure the best possible learning environment.

**Walkthrough: Creating a New AWS Account and Generating IAM Secrets with Full Administrator Access**

A full video walkthrough can be found here:

{% embed url="<https://www.youtube.com/watch?v=lIdh92JmWtg>" %}

1. Open your browser and navigate to <https://signin.aws.amazon.com/signup?request_type=register>
2. You will be asked to provide a root user email address as well as an AWS account name, please fill out these values accordingly.
3. When done, click the Verify email address button&#x20;

<figure><img src="/files/7o36Dp1oS6TnEQ1Et612" alt=""><figcaption></figcaption></figure>

4. after verification of email, you will be requested to create a root user password - please create a secure password and remember it - or use a password manager.
5. AWS will ask for additional details, please fill out the appropriate values, don't worry they do not send you spam (at least they never have to me)

<figure><img src="/files/Nfz2XMTCPMSM57qKF0u5" alt=""><figcaption></figcaption></figure>

6. AWS will ask to provide a payment method. Fill out the appropriate values.

<figure><img src="/files/wyIc4t2z2UhXSQMsrY0I" alt=""><figcaption></figcaption></figure>

7. AWS will ask to verify your identity via a phone call or text message.&#x20;

<figure><img src="/files/NjwSJ685YjPKi4i5m3Qd" alt=""><figcaption></figcaption></figure>

8. Last AWS will ask you to select a support plan - select Basic support.

<figure><img src="/files/X1GzWT9dmLzRwz6oczYq" alt=""><figcaption></figcaption></figure>

Congratulations, you now created your account and should be able to sign in to the management console. <https://aws.amazon.com/>

<figure><img src="/files/5fUHgLcbJkdLrbcxaXNn" alt=""><figcaption></figcaption></figure>

Once Logged in, you will be greeted with a console dashboard.&#x20;

9. Navigate to IAM (Identity Access Management) by clicking on the IAM button if visible or by typing IAM in the search bar&#x20;

<figure><img src="/files/RJQ81RHP50Ka9acxWY85" alt=""><figcaption></figcaption></figure>

10. Click **Users** on the left-hand side.

<figure><img src="/files/p8nrmbIviJ32w36u5Bvk" alt=""><figcaption></figcaption></figure>

11. Click **Create User**

<figure><img src="/files/9g4QlebX6DQhiKp60IYr" alt=""><figcaption></figcaption></figure>

12. provide a username, such as terraform or robodeploy

<figure><img src="/files/VmQsaFdCObOEolGXcR2C" alt=""><figcaption></figcaption></figure>

13. Click **Attach Policies Directly**

{% hint style="info" %}
typically, AdministratorAccess is discouraged. However, since this terraform deployment is managing VPCs, Routing Tables, Security Groups and EC2 instances, it facilitates overhead. If you are uncomfortable with AdministratorAccess, make sure to delete the user after the workshop ends.&#x20;
{% endhint %}

14. Search for **AdministratorAccess**&#x20;
15. Click the little square so the box is checked and then click next \
    (you might have to scroll down to reveal the next button)

<figure><img src="/files/uafytBPGguc8hyDaMNaY" alt=""><figcaption></figcaption></figure>

16. You will be taken to a Review page, click the **create user** button

<figure><img src="/files/HgWsC5tLvdI3xgKp8nCP" alt=""><figcaption></figcaption></figure>

17. Once created, select the user from the overview and click on the **Create access key** button

<figure><img src="/files/lA52vHog5wNHc0wn36bw" alt=""><figcaption></figcaption></figure>

18. Select Command Line Interface (CLI) as use case

<figure><img src="/files/OanyUELrI7Jwn1JwQXAO" alt=""><figcaption></figcaption></figure>

19. check the Confirmation button
20. you can skip the description tag and just click the Create access key button.

<figure><img src="/files/HdkKLCXbyZeDb6ZbK7T6" alt=""><figcaption></figcaption></figure>

21. Note your Access key and Secret Access Key, as you will need  this for terraform later.

<figure><img src="/files/ZkHcuflsmvWgEFkRn2iS" alt=""><figcaption></figcaption></figure>

Congratulations, this is the end of the AWS setup guide. **again, make sure to keep those access key and secret key handy, we will need them later.**


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://sec565.gitbook.io/ad-privesc-with-empire/installing-the-environment/aws.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
