MITRE ATT&CKtechnique
T1580 Cloud Infrastructure Discovery
- Domain
- enterprise
- Tactics
- Discovery
- Platforms
- IaaS
- Version
- 1.3
- Created
- 2020-08-20
Description
An adversary may attempt to discover infrastructure and resources that are available within an infrastructure-as-a-service (IaaS) environment. This includes compute service resources such as instances, virtual machines, and snapshots as well as resources of other services including the storage and database services.
Cloud providers offer methods such as APIs and commands issued through CLIs to serve information about infrastructure. For example, AWS provides a DescribeInstances API within the Amazon EC2 API that can return information about one or more instances within an account, the ListBuckets API that returns a list of all buckets owned by the authenticated sender of the request, the HeadBucket API to determine a bucket’s existence along with access permissions of the request sender, or the GetPublicAccessBlock API to retrieve access block configuration for a bucket. Similarly, GCP's Cloud SDK CLI provides the gcloud compute instances list command to list all Google Compute Engine instances in a project , and Azure's CLI command az vm list lists details of virtual machines. In addition to API commands, adversaries can utilize open source tools to discover cloud storage infrastructure through Wordlist Scanning.
An adversary may enumerate resources using a compromised user's access keys to determine which are available to that user. The discovery of these available resources may help adversaries determine their next steps in the Cloud environment, such as establishing Persistence.An adversary may also use this information to change the configuration to make the bucket publicly accessible, allowing data to be accessed without authentication. Adversaries have also may use infrastructure discovery APIs such as DescribeDBInstances to determine size, owner, permissions, and network ACLs of database resources. Adversaries can use this information to determine the potential value of databases and discover the requirements to access them. Unlike in Cloud Service Discovery, this technique focuses on the discovery of components of the provided services rather than the services themselves.
Related
Tactic · MITRE ATT&CK (1)
- TA0007 Discovery tactic
Referenced by MITRE ATT&CK · mitigates (1)
- M1018 User Account Management mitigation
Referenced by MITRE ATT&CK · uses (6)
Referenced by Compliance · mitigates (6)
- CIS-6.8 Define and Maintain Role-Based Access Control CIS Safeguard v8.1
- NIST-AC-2 Account Management NIST 800-53 control
- NIST-AC-3 Access Enforcement NIST 800-53 control
- NIST-AC-5 Separation of Duties NIST 800-53 control
- NIST-AC-6 Least Privilege NIST 800-53 control
- NIST-IA-2 Identification and Authentication (Organizational Users) NIST 800-53 control
References
- https://expel.io/blog/finding-evil-in-aws/ Expel IO Evil in AWS
- https://docs.aws.amazon.com/AmazonS3/latest/API/API_HeadBucket.html AWS Head Bucket
- https://docs.aws.amazon.com/AmazonS3/latest/API/API_GetPublicAccessBlock.html AWS Get Public Access Block
- https://docs.aws.amazon.com/AmazonRDS/latest/APIReference/API_DescribeDBInstances.html AWS Describe DB Instances
- https://docs.aws.amazon.com/cli/latest/reference/ssm/describe-instance-information.html Amazon Describe Instance
- https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeInstances.html Amazon Describe Instances API
- https://cloud.google.com/sdk/gcloud/reference/compute/instances/list Google Compute Instances
- https://www.mandiant.com/sites/default/files/2021-09/mtrends-2020.pdf Mandiant M-Trends 2020
- https://docs.microsoft.com/en-us/cli/azure/ad/user?view=azure-cli-latest Microsoft AZ CLI
- https://blog.malwarebytes.com/researchers-corner/2019/09/hacking-with-aws-incorporating-leaky-buckets-osint-workflow/ Malwarebytes OSINT Leaky Buckets - Hioureas