Route53 Resolver Query Log Configuration Deleted
Identifies when a Route53 Resolver Query Log Configuration is deleted. When a Route53 Resolver query log configuration is deleted, Resolver stops logging DNS queries and responses for the specified configuration. Adversaries may delete query log configurations to evade detection or cover their tracks.
Rule type: query
Rule indices:
- filebeat-*
- logs-aws.cloudtrail*
Rule Severity: medium
Risk Score: 47
Runs every: 10m
Searches indices from: now-60m
Maximum alerts per execution: ?
References:
Tags:
- Domain: Cloud
- Data Source: AWS
- Data Source: Amazon Web Services
- Data Source: Amazon Route53
- Use Case: Log Auditing
- Resources: Investigation Guide
- Tactic: Defense Evasion
Version: ?
Rule authors:
- Elastic
Rule license: Elastic License v2
This rule detects when a Route53 Resolver Query Log Configuration is deleted. Deleting these configurations stops the logging of DNS queries and responses, which can significantly impede network monitoring and compromise security visibility. Adversaries may delete these configurations to evade detection, remove evidence, or obscure their activities within a network.
Adversaries target Route53 Resolver query log configurations because these logs can contain evidence of malicious domain queries or responses. By deleting these logs, an adversary can prevent the capture of information that could reveal unauthorized network activities, aiding in avoiding detection and thwarting incident response efforts.
- Review the Deletion Details: Examine the CloudTrail logs to identify when and by whom the deletion was initiated.
- Check the
event.action
anduser_identity
elements to understand the scope and authorization of the deletion.
- Check the
- Contextualize with User Actions: Assess whether the deletion aligns with the user’s role and job responsibilities.
- Investigate if similar modifications have occurred recently that could suggest a pattern or broader campaign.
- Analyze Access Patterns and Permissions: Verify whether the user had the appropriate permissions to delete log configurations.
- Investigate any recent permission changes that might indicate role abuse or credentials compromise.
- Correlate with Other Security Incidents: Look for related security alerts or incidents that could be connected to the log deletion.
- This includes unusual network traffic, alerts from other AWS services, or findings from intrusion detection systems.
- Interview the Responsible Team: If the deletion was initiated by an internal team member, confirm their intent and authorization to ensure it was a legitimate action.
- Legitimate Administrative Actions: Confirm that the deletion was part of scheduled IT operations or network management activities, possibly linked to maintenance or infrastructure updates. Validate this action against change management records or through interviews with relevant personnel.
- Restore Logs if Feasible: If the deletion was unauthorized, consider restoring the configuration from backups to ensure continuous visibility into DNS queries.
- Review and Tighten Permissions: Ensure that only authorized personnel have the capability to delete critical configurations.
- Adjust AWS IAM policies to reinforce security measures.
- Enhance Monitoring of Log Management: Implement or enhance monitoring rules to detect and alert on unauthorized changes to logging configurations, focusing on critical deletions.
- Conduct Comprehensive Security Review: If the deletion is verified as malicious, initiate a thorough security assessment to identify any further unauthorized changes or ongoing malicious activities.
For detailed instructions on managing Route53 Resolver and securing its configurations, refer to the Amazon Route53 Resolver documentation.
event.dataset:aws.cloudtrail and event.provider: route53resolver.amazonaws.com
and event.action: DeleteResolverQueryLogConfig and event.outcome: success
Framework: MITRE ATT&CK
Tactic:
- Name: Defense Evasion
- Id: TA0005
- Reference URL: https://attack.mitre.org/tactics/TA0005/
Technique:
- Name: Impair Defenses
- Id: T1562
- Reference URL: https://attack.mitre.org/techniques/T1562/
Sub Technique:
- Name: Disable or Modify Cloud Logs
- Id: T1562.008
- Reference URL: https://attack.mitre.org/techniques/T1562/008/