☁️
CTHFM: AWS
  • Welcome
  • Getting Started
    • Account Setup
  • AWS CLI
    • AWS CLI Overview
    • Installation
  • AWS Fundamentals
    • AWS Documentation
    • AWS Shared Responsibility Model
    • Organizational Hierarchy
    • AWS Principals
    • IAM Fundamentals
      • IAM Policy Components
      • IAM Documentation References
    • AWS Security Services Overview
    • AWS Core Services
    • AWS Frameworks
    • Regions and Availability Zones
  • SQL
    • SQL Refresher for Threat Hunting
  • Logging Reference
    • Cloudtrail
      • What is Cloudtrail?
      • Setting Up Cloudtrail
      • Cloudtrail Events Structure
      • Filtering and Searching CloudTrail Logs
      • IAM ID Prefixes
      • Additional Resources
      • API References
    • VPCFlow Logs
    • GuardDuty
      • Multi-Account Setup
      • GuardDuty Concepts
      • GuardDuty Finding References
      • S3 Protection
      • Malware Protection
        • EC2 Malware Protection
          • EC2 Protection Resources
          • Monitoring Scans
          • EC2 Malware Protection Events: CloudWatch
        • S3 Malware Protection
          • Enabling S3 Malware Protection
          • After Enabling S3 Malware Protection
          • S3 Malware Resource Plan Status
          • S3 Malware Protection Quotas
      • RDS Protection Enablement
      • Lambda Protection Enablement
      • Trusted IP Lists and Threat Lists in Amazon GuardDuty
      • Remediation Recommendations
      • GuardDuty API Reference
      • GuardDuty Quotas
    • Access Analyzer
      • Setup
      • External Access and Unused Access Analyzer Findings
      • Review Findings
      • Access Analyzer Resources
      • Access Analyzer API Reference
    • AWS Network Firewall
      • Permissions
      • Firewall Log Contents
      • Logging Destinations
      • CloudWatch Firewall Metrics
    • AWS Config
      • Resource Management in AWS Config
      • AWS Config Integrations
      • AWS Config Resources
      • Configuration Item
      • Config Rules
        • Evaluation Modes
  • CloudWatch
    • Amazon CloudWatch
      • CloudWatch Concepts
      • CloudWatch Metrics
        • Filter Pattern Syntax
      • CloudWatch Alarms
        • Alarm Recommendations
      • Subscriptions
      • CloudWatch Agent
      • CloudWatch Insights
        • Supported Logs and Discovered Fields
        • CloudWatch Insights Query Syntax
      • Anomaly Detection
        • Create Anomaly Detector
        • Alarms for Anomaly Detections
      • CloudWatch Filter Syntax
      • CloudWatch Service Quota
  • Athena For Threat Hunting
    • Introduction to Athena
    • Setting Up Athena
    • SQL For Threat Hunters
    • Automated Response
    • Query Best Practices
  • AWS Security Research and Resources
    • AWS Security Blog
    • AWS Goat
    • Cloud Goat
    • Pacu
    • Prowler
    • Scout Suite
  • Threat Hunting in AWS
    • Threat Hunting in AWS
    • Threat Hunting Introduction
    • Threat Hunting Process
      • Hypothesis Generation
      • Investigation
      • Identification
      • Resolution & Follow Up
    • Pyramid of Pain
    • MITRE Att&ck
      • MITRE Att&ck Concepts
      • MITRE Att&CK Data Sources
      • MITRE Att&CK Mitigations
    • MITRE Att&ck: AWS
      • MITRE Att&CK Matrix
      • Amazon Web Services Security Control Mappings
    • AWS Threat Hunting Ideas
      • AWS Threat Hunting Ideas: EC2
      • AWS Threat Hunting Ideas: Lambda
      • AWS Threat Hunting Ideas: SQS
      • AWS Threat Hunting Ideas: SNS
      • AWS Threat Hunting Ideas: RDS
Powered by GitBook
On this page
  • Overview:
  • 1. Unauthorized Queue Creation (CreateQueue)
  • 2. Queue Policy Modification (SetQueueAttributes)
  • 3. Suspicious Message Consumption (ReceiveMessage)
  • 4. Deleting Messages from Queues (DeleteMessage/DeleteMessageBatch)
  • 5. Deleting Queues (DeleteQueue)
  • 6. Unauthorized Access (AddPermission/RemovePermission)
  • 7. Message Injection or Spamming (SendMessage/SendMessageBatch)
  • 8. Changes to Dead-Letter Queues (SetQueueAttributes)
  • 9. Cross-Account Queue Access Abuse (AddPermission)
  1. Threat Hunting in AWS
  2. AWS Threat Hunting Ideas

AWS Threat Hunting Ideas: SQS

Overview:

The following are some threat hunting ideas for the SQS service.

1. Unauthorized Queue Creation (CreateQueue)

  • Goal: Detect unauthorized SQS queue creation, which could be used for malicious purposes.

  • CloudTrail Event: CreateQueue

  • Hunting Idea:

    • Look for CreateQueue events initiated by unusual users or during off-hours.

      aws cloudtrail lookup-events --lookup-attributes AttributeKey=EventName,AttributeValue=CreateQueue
    • Monitor for large numbers of queues being created suddenly, indicating possible abuse or misconfiguration.

2. Queue Policy Modification (SetQueueAttributes)

  • Goal: Detect unauthorized modifications to queue attributes or policies.

  • CloudTrail Event: SetQueueAttributes

  • Hunting Idea:

    • Hunt for changes that make queues publicly accessible or remove security controls.

      aws cloudtrail lookup-events --lookup-attributes AttributeKey=EventName,AttributeValue=SetQueueAttributes
    • Investigate changes to policies that allow cross-account access.

3. Suspicious Message Consumption (ReceiveMessage)

  • Goal: Detect unauthorized or unexpected message consumption from queues.

  • CloudTrail Event: ReceiveMessage

  • Hunting Idea:

    • Identify high-frequency ReceiveMessage events, which may indicate data scraping or abuse.

      aws cloudtrail lookup-events --lookup-attributes AttributeKey=EventName,AttributeValue=ReceiveMessage
    • Look for message consumption from unexpected users or roles.

4. Deleting Messages from Queues (DeleteMessage/DeleteMessageBatch)

  • Goal: Detect attackers removing messages to disrupt workflows or hide activities.

  • CloudTrail Event: DeleteMessage, DeleteMessageBatch

  • Hunting Idea:

    • Monitor for large-scale or unauthorized DeleteMessage events that may disrupt critical operations.

      aws cloudtrail lookup-events --lookup-attributes AttributeKey=EventName,AttributeValue=DeleteMessage

5. Deleting Queues (DeleteQueue)

  • Goal: Detect attackers deleting queues to disrupt workflows or remove evidence.

  • CloudTrail Event: DeleteQueue

  • Hunting Idea:

    • Monitor for DeleteQueue events, especially involving critical queues.

      aws cloudtrail lookup-events --lookup-attributes AttributeKey=EventName,AttributeValue=DeleteQueue
    • Cross-reference with other events to detect if the deletion is part of a larger attack.

6. Unauthorized Access (AddPermission/RemovePermission)

  • Goal: Detect unauthorized permission changes to SQS queues.

  • CloudTrail Event: AddPermission, RemovePermission

  • Hunting Idea:

    • Monitor AddPermission events for actions that grant cross-account access or make the queue publicly accessible.

      aws cloudtrail lookup-events --lookup-attributes AttributeKey=EventName,AttributeValue=AddPermission
    • Investigate RemovePermission events to detect potential privilege reduction attempts.

7. Message Injection or Spamming (SendMessage/SendMessageBatch)

  • Goal: Detect unauthorized message injection or spam messages disrupting the system.

  • CloudTrail Event: SendMessage, SendMessageBatch

  • Hunting Idea:

    • Look for unexpected or high-frequency SendMessage events from unknown sources.

      aws cloudtrail lookup-events --lookup-attributes AttributeKey=EventName,AttributeValue=SendMessage
    • Identify cases where batch messages flood a queue, causing disruptions.

8. Changes to Dead-Letter Queues (SetQueueAttributes)

  • Goal: Detect unauthorized changes to dead-letter queues (DLQs) used for error handling.

  • CloudTrail Event: SetQueueAttributes

  • Hunting Idea:

    • Monitor SetQueueAttributes events for changes that disable or redirect dead-letter queues.

      aws cloudtrail lookup-events --lookup-attributes AttributeKey=EventName,AttributeValue=SetQueueAttributes

9. Cross-Account Queue Access Abuse (AddPermission)

  • Goal: Detect attackers attempting to grant cross-account access to SQS queues.

  • CloudTrail Event: AddPermission

  • Hunting Idea:

    • Identify AddPermission events that allow cross-account access or anonymous usage.

      aws cloudtrail lookup-events --lookup-attributes AttributeKey=EventName,AttributeValue=AddPermission
    • Investigate permissions granted to unknown AWS accounts or public access.

PreviousAWS Threat Hunting Ideas: LambdaNextAWS Threat Hunting Ideas: SNS

Last updated 8 months ago