AWS Console GetSigninToken Potential Abuse

Original Source: [Sigma source]
Title: AWS Console GetSigninToken Potential Abuse
Status: test
Description:Detects potentially suspicious events involving "GetSigninToken". An adversary using the "aws_consoler" tool can leverage this console API to create temporary federated credential that help obfuscate which AWS credential is compromised (the original access key) and enables the adversary to pivot from the AWS CLI to console sessions without the need for MFA using the new access key issued in this request.
References:
  -https://github.com/NetSPI/aws_consoler
  -https://www.crowdstrike.com/blog/analysis-of-intrusion-campaign-targeting-telecom-and-bpo-companies/
Author: Chester Le Bron (@123Le_Bron)
Date: 2024-02-26
modified:None
Tags:
  • -'attack.lateral-movement'
  • -'attack.t1021.007'
  • -'attack.t1550.001'
Logsource:
  • product: aws
  • service: cloudtrail
Detection:
  selection:
    eventSource: 'signin.amazonaws.com'
    eventName: 'GetSigninToken'
  filter_main_console_ua:
    userAgent|contains: 'Jersey/${project.version}'
  condition:selection and not 1 of filter_main_*
Falsepositives:
  -GetSigninToken events will occur when using AWS SSO portal to login and will generate false positives if you do not filter for the expected user agent(s), see filter. Non-SSO configured roles would be abnormal and should be investigated.
Level: medium