# 通过混淆Cloudtrail日志和GuardDuty来掩盖踪迹

```
在 Kali Linux、Pentoo 和 Parrot Linux 上使用 awscli 时，会根据用户代理生成日志。

Pacu 通过定义自定义用户代理绕过这个问题（https://github.com/RhinoSecurityLabs/pacu/blob/master/pacu.py#L1473）

boto3_session = boto3.session.Session()
ua = boto3_session._session.user_agent()
if 'kali' in ua.lower() or 'parrot' in ua.lower() or 'pentoo' in ua.lower():  # If the local OS is Kali/Parrot/Pentoo Linux
    # GuardDuty triggers a finding around API calls made from Kali Linux, so let's avoid that...
    self.print('Detected environment as one of Kali/Parrot/Pentoo Linux. Modifying user agent to hide that from GuardDuty...')
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://www.heresecurity.wiki/yun-an-quan/aws/tong-guo-hun-xiao-cloudtrail-ri-zhi-he-guardduty-lai-yan-gai-zong-ji.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
