Cross-source coverage
T1059.009 / ATT&CK
Command and Scripting Interpreter: Cloud API
6 rules across 3 sources.
From MITRE ATT&CK 19.2
Adversaries may abuse cloud APIs to execute malicious commands. APIs available in cloud environments provide various functionalities and are a feature-rich method for programmatic access to nearly all aspects of a tenant. These APIs may be utilized through various methods such as command line interpreters (CLIs), in-browser Cloud Shells, PowerShell modules like Azure for PowerShell, or software developer kits (SDKs) available for languages such as Python.
Cloud API functionality may allow for administrative access across all major services in a tenant such as compute, storage, identity and access management (IAM), networking, and security policies.
With proper permissions (often via use of credentials such as Application Access Token and Web Session Cookie), adversaries may abuse cloud APIs to invoke various functions that execute malicious actions. For example, CLI and PowerShell functionality may be accessed through binaries installed on cloud-hosted or on-premises hosts or accessed through a browser-based cloud shell offered by many cloud platforms (such as AWS, Azure, and GCP). These cloud shells are often a packaged unified environment to use CLI and/or scripting modules hosted as a container in the cloud environment.
- Tactics
- Execution
- Platforms
- IaaS · Identity Provider · Office Suite · SaaS
- Telemetry
-
AWS:CloudTrailazure:activityOkta:SystemLog
How MITRE says to detect it DET0078
Behavioral Detection of Malicious Cloud API Scripting
IaaS Analytic 0215
Detects adversarial use of cloud APIs for command execution, resource control, or reconnaissance. Focuses on CLI/SDK/scripting language abuse via stolen credentials or in-browser Cloud Shells. Monitors for anomalous API calls chained with authentication context shifts (e.g., stolen token -> privileged action) and cross-service impacts.
AWS:CloudTraileventName: RunInstances, CreateUser, PutRolePolicy, InvokeCommandazure:activityoperationName: Write, Access Review, RoleAssignmentOkta:SystemLogeventType: user.authentication.sso, app.oauth2.token.grant
SigmaHQ/sigma
3 rules| Detection | Severity | Format |
|---|---|---|
| AWS IAM S3Browser LoginProfile Creation | High | Sigma |
| AWS IAM S3Browser Templated S3 Bucket Policy Creation | High | Sigma |
| AWS IAM S3Browser User or AccessKey Creation | High | Sigma |
elastic/detection-rules
2 rules| Detection | Severity | Format |
|---|---|---|
| AWS CloudShell Environment Created | High | Elastic TOML |
| AWS EC2 Stop, Start, and User Data Modification Correlation | High | Elastic TOML |
splunk/security_content
1 rule| Detection | Severity | Format |
|---|---|---|
| Windows SQL Server Extended Procedure DLL Loading Hunt | Undefined | SPL |