b4c84e8a40
* Update Tags * Bump updated date separately to be easy to revert if needed * Update resource_development_ml_linux_anomalous_compiler_activity.toml * Apply changes from the discussion * Update persistence_init_d_file_creation.toml * Update defense_evasion_timestomp_sysmon.toml * Update defense_evasion_application_removed_from_blocklist_in_google_workspace.toml * Update missing Tactic tags * Update unit tests to match new tags * Add missing IG tags * Delete okta_threat_detected_by_okta_threatinsight.toml * Update command_and_control_google_drive_malicious_file_download.toml * Update persistence_rc_script_creation.toml * Mass bump * Update persistence_shell_activity_by_web_server.toml * . --------- Co-authored-by: Mika Ayenson <Mika.ayenson@elastic.co> Co-authored-by: Mika Ayenson <Mikaayenson@users.noreply.github.com>
109 lines
4.9 KiB
TOML
109 lines
4.9 KiB
TOML
[metadata]
|
|
creation_date = "2020/06/11"
|
|
integration = ["aws"]
|
|
maturity = "production"
|
|
min_stack_comments = "New fields added: required_fields, related_integrations, setup"
|
|
min_stack_version = "8.3.0"
|
|
updated_date = "2023/06/22"
|
|
|
|
[rule]
|
|
author = ["Elastic"]
|
|
description = "Identifies a successful login to the AWS Management Console by the Root user."
|
|
false_positives = [
|
|
"""
|
|
It's strongly recommended that the root user is not used for everyday tasks, including the administrative ones.
|
|
Verify whether the IP address, location, and/or hostname should be logging in as root in your environment.
|
|
Unfamiliar root logins should be investigated immediately. If known behavior is causing false positives, it can be
|
|
exempted from the rule.
|
|
""",
|
|
]
|
|
from = "now-60m"
|
|
index = ["filebeat-*", "logs-aws*"]
|
|
interval = "10m"
|
|
language = "kuery"
|
|
license = "Elastic License v2"
|
|
name = "AWS Management Console Root Login"
|
|
note = """## Triage and analysis
|
|
|
|
### Investigating AWS Management Console Root Login
|
|
|
|
The AWS root account is the one identity that has complete access to all AWS services and resources in the account, which is created when the AWS account is created. AWS strongly recommends that you do not use the root user for your everyday tasks, even the administrative ones. Instead, adhere to the best practice of using the root user only to create your first IAM user. Then securely lock away the root user credentials and use them to perform only a few account and service management tasks. AWS provides a [list of the tasks that require root user](https://docs.aws.amazon.com/general/latest/gr/root-vs-iam.html#aws_tasks-that-require-root).
|
|
|
|
This rule looks for attempts to log in to the AWS Management Console as the root user.
|
|
|
|
#### Possible investigation steps
|
|
|
|
- Investigate other alerts associated with the user account during the past 48 hours.
|
|
- Examine whether this activity is common in the environment by looking for past occurrences on your logs.
|
|
- Consider the source IP address and geolocation for the calling user who issued the command. Do they look normal for the calling user?
|
|
- Examine the commands, API calls, and data management actions performed by the account in the last 24 hours.
|
|
- Contact the account owner and confirm whether they are aware of this activity.
|
|
- If you suspect the account has been compromised, scope potentially compromised assets by tracking access to servers,
|
|
services, and data accessed by the account in the last 24 hours.
|
|
|
|
### False positive analysis
|
|
|
|
- The alert can be dismissed if this operation is done under change management and approved according to the organization's policy for performing a task that needs this privilege level.
|
|
|
|
### Response and remediation
|
|
|
|
- Initiate the incident response process based on the outcome of the triage.
|
|
- Identify the possible impact of the incident and prioritize accordingly; the following actions can help you gain context:
|
|
- Identify the account role in the cloud environment.
|
|
- Identify the services or servers involved criticality.
|
|
- Work with your IT team to identify and minimize the impact on users.
|
|
- Identify if the attacker is moving laterally and compromising other accounts, servers, or services.
|
|
- Identify if there are any regulatory or legal ramifications related to this activity.
|
|
- Configure multi-factor authentication for the user.
|
|
- Follow security best practices [outlined](https://aws.amazon.com/premiumsupport/knowledge-center/security-best-practices/) by AWS.
|
|
- Using the incident response data, update logging and audit policies to improve the mean time to detect (MTTD) and the mean time to respond (MTTR).
|
|
|
|
## Setup
|
|
|
|
The AWS Fleet integration, Filebeat module, or similarly structured data is required to be compatible with this rule."""
|
|
references = ["https://docs.aws.amazon.com/IAM/latest/UserGuide/id_root-user.html"]
|
|
risk_score = 47
|
|
rule_id = "e2a67480-3b79-403d-96e3-fdd2992c50ef"
|
|
severity = "medium"
|
|
tags = [
|
|
"Domain: Cloud",
|
|
"Data Source: AWS",
|
|
"Data Source: Amazon Web Services",
|
|
"Use Case: Identity and Access Audit",
|
|
"Resources: Investigation Guide",
|
|
"Tactic: Initial Access"
|
|
]
|
|
timestamp_override = "event.ingested"
|
|
type = "query"
|
|
|
|
query = '''
|
|
event.dataset:aws.cloudtrail and event.provider:signin.amazonaws.com and event.action:ConsoleLogin and aws.cloudtrail.user_identity.type:Root and event.outcome:success
|
|
'''
|
|
|
|
|
|
[[rule.threat]]
|
|
framework = "MITRE ATT&CK"
|
|
[[rule.threat.technique]]
|
|
id = "T1078"
|
|
name = "Valid Accounts"
|
|
reference = "https://attack.mitre.org/techniques/T1078/"
|
|
|
|
|
|
[rule.threat.tactic]
|
|
id = "TA0001"
|
|
name = "Initial Access"
|
|
reference = "https://attack.mitre.org/tactics/TA0001/"
|
|
[[rule.threat]]
|
|
framework = "MITRE ATT&CK"
|
|
[[rule.threat.technique]]
|
|
id = "T1078"
|
|
name = "Valid Accounts"
|
|
reference = "https://attack.mitre.org/techniques/T1078/"
|
|
|
|
|
|
[rule.threat.tactic]
|
|
id = "TA0003"
|
|
name = "Persistence"
|
|
reference = "https://attack.mitre.org/tactics/TA0003/"
|
|
|