Aws Ioc Detection
CloudTrail
Disable CloudTrail
aws cloudtrail delete-trail --name cloudgoat_trail --profile administratoraws cloudtrail update-trail --name cloudgoat_trail --no-include-global-service-event aws cloudtrail update-trail --name cloudgoat_trail --no-include-global-service-event --no-is-multi-region --region=eu-westGuardDuty
OS User Agent
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...')Last updated