Enumerate service accounts for project¶
Platform | Author | Last Update |
---|---|---|
gcp | Richard Slaney | 2023-07-01 |
An adversary may attempt to enumerate the configured IAM users within an account, to identify entities that they might wish to gain access to or backdoor.
MITRE IDs¶
Required Permissions¶
- iam.serviceAccounts.list
Required Parameters¶
Name | Type | Description | Example Value |
---|---|---|---|
project_id | str | ID of the project to list service accounts from | phrasal-crowbar-284615 |
Attacker Action¶
gcloud iam service-accounts list
Detection Case¶
ELK query¶
When logs are ingested into ELK, the following Lucene query can be used to identify relevant events.
eventName:ListUsers AND eventSource:*.iam.amazonaws.com
Sigma Definition¶