# Pacu

## Installation

* Up-to-date steps can be found on [RhinoSecurityLab's GitHub](https://github.com/RhinoSecurityLabs/pacu/wiki/Installation)

## Setup

* Pacu leverages IAM access keys stored in the default location, `~/.aws/credentials`

```sh
# configure user credentials in pacu, specify specific profile or all creds in file
set_keys <awsProfile> | --all

# import current user's permissions (run this anytime permissions change)
run iam__enum_permissions

# validate user's permissions
whoami
```

## Modules

### Backdoor

* Pacu can help give you backdoor access (i.e., another access method)

```sh
# add user to an IAM Role (requires ability to edit the role's trust policy)
run iam__backdoor_assume_role
```

### Privilege Escalation

* Pacu can perform 20+ privilege escalation checks

```sh
run iam__privesc_scan
```

### Enumeration

```sh
# checks if credentials are known canary tokens (i.e., fake creds used to detect you)
iam__detect_honeytokens
```


---

# 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://www.techwithtyler.dev/cloud-security/tools/pacu.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.
