T1585.003 IBM QRadar · QRadar

Detect Cloud Accounts in IBM QRadar

Adversaries may create accounts with cloud providers to support operations, including leveraging cloud storage (Dropbox, MEGA, OneDrive, AWS S3) for exfiltration or tool hosting, and using cloud infrastructure for C2. Cloud accounts may be created to impersonate legitimate services — Storm-1811 is documented creating Microsoft Teams accounts spoofing IT helpdesk personas to conduct vishing attacks. Detection must focus on observable usage of adversary-controlled cloud accounts within the victim environment, since the account creation itself occurs externally.

MITRE ATT&CK

Tactic
Resource Development
Technique
T1585 Establish Accounts
Sub-technique
T1585.003 Cloud Accounts
Canonical reference
https://attack.mitre.org/techniques/T1585/003/

QRadar Detection Query

IBM QRadar (QRadar)
sql
SELECT
  DATEFORMAT(starttime, 'yyyy-MM-dd HH:mm:ss') AS event_time,
  username,
  sourceip AS source_ip,
  QIDNAME(qid) AS event_name,
  LOGSOURCETYPENAME(devicetype) AS log_source_type,
  "AppName" AS app_name,
  "AppDisplayName" AS app_display_name,
  "UserType" AS user_type,
  "RiskLevelDuringSignIn" AS risk_level,
  CASE
    WHEN LOWER(username) MATCHES '.*(?:helpdesk|itsupport|servicedesk|techsupport|itadmin|sysadmin|microsoftsupport|o365support|m365support).*'
      THEN 'Teams_ITImpersonation'
    WHEN "AppName" MATCHES '(?i).*(dropbox|mega|pcloud|sync\.com|mediafire|box\.com).*'
      THEN 'SuspiciousOAuthGrant'
    WHEN "UserType" = 'Guest'
      THEN 'RiskyGuestSignin'
    ELSE 'Unknown'
  END AS detection_type
FROM events
WHERE
  (
    (
      LOGSOURCETYPENAME(devicetype) LIKE '%Office 365%'
      AND (
        QIDNAME(qid) LIKE '%MessageSent%' OR
        QIDNAME(qid) LIKE '%ChatCreated%' OR
        QIDNAME(qid) LIKE '%MeetingInvited%'
      )
      AND LOWER(username) MATCHES '.*(?:helpdesk|itsupport|servicedesk|techsupport|itadmin|sysadmin|microsoftsupport|o365support|m365support).*'
    )
    OR
    (
      LOGSOURCETYPENAME(devicetype) LIKE '%Office 365%'
      AND QIDNAME(qid) LIKE '%Consent to application%'
      AND "AppName" MATCHES '(?i).*(dropbox|mega|pcloud|sync\.com|mediafire|box\.com).*'
    )
    OR
    (
      LOGSOURCETYPENAME(devicetype) LIKE '%Azure%'
      AND QIDNAME(qid) LIKE '%Sign-in%'
      AND "UserType" = 'Guest'
      AND ("RiskLevelDuringSignIn" = 'high' OR "RiskLevelDuringSignIn" = 'medium')
      AND (
        "AppDisplayName" LIKE '%Teams%' OR
        "AppDisplayName" LIKE '%SharePoint%' OR
        "AppDisplayName" LIKE '%OneDrive%' OR
        "AppDisplayName" LIKE '%Office 365%'
      )
    )
  )
LAST 7 DAYS
high severity medium confidence

AQL detection for T1585.003 Cloud Accounts abuse across Microsoft 365 and Azure AD log sources in QRadar. Three adversary patterns are covered: external Teams accounts with IT helpdesk impersonation keywords in the sender username (Storm-1811 vishing campaign TTP), OAuth application consent grants to cloud storage platforms commonly used for adversary exfiltration or payload staging, and high/medium risk Azure AD guest sign-ins to Microsoft cloud services. Custom Event Properties 'AppName', 'AppDisplayName', 'UserType', and 'RiskLevelDuringSignIn' must be defined in QRadar via the Office 365 and Azure AD DSM field mappings.

Data Sources

IBM QRadar Microsoft Office 365 DSMIBM QRadar Microsoft Azure Active Directory DSM

Required Tables

events

False Positives & Tuning

  • Authorized third-party IT vendor accounts (MSP helpdesk) using Microsoft UPNs containing 'helpdesk' or 'support' communicating with internal staff via Teams federation for contracted IT service delivery
  • Sanctioned cloud storage OAuth integrations (Dropbox for Business, Box Enterprise) where employees process consent through the end-user OAuth flow because admin pre-consent has not been configured
  • Guest users from trusted partner tenants whose Azure ID Protection risk scores temporarily elevate to medium due to travel-related sign-in location changes not attributable to adversary access
Download portable Sigma rule (.yml)

Other platforms for T1585.003


Testing Methodology

Validate this detection against 4 adversary techniques from Atomic Red Team. Each test below lists the behaviour to exercise and the telemetry you should expect to see. Executable commands and cleanup steps are available with Pro.

  1. Test 1Simulate External Teams Account IT Impersonation Contact

    Expected signal: OfficeActivity (M365 Audit Log) with RecordType=MicrosoftTeams, Operation=MessageSent, UserId containing the external account UPN with helpdesk/IT support keywords, CommunicationType=OneOnOne. In KQL: OfficeActivity | where RecordType=='MicrosoftTeams' | where UserId contains 'helpdesk'.

  2. Test 2OAuth Grant to Unauthorized Cloud Storage Application

    Expected signal: AuditLogs table: OperationName='Consent to application', TargetResources[0].displayName matching the cloud storage app name, InitiatedBy.user.userPrincipalName showing the consenting user, InitiatedBy.user.ipAddress for geo-correlation. Event visible in Azure AD audit logs within 15 minutes.

  3. Test 3Simulate Outbound Data Transfer to Cloud Storage Following Adversary Account Contact

    Expected signal: DeviceNetworkEvents: RemoteUrl matching 's3.amazonaws.com' or 'content.dropboxapi.com', InitiatingProcessFileName='aws.exe' or 'curl.exe', SentBytes > 10485760 (10MB). Sysmon Event ID 3 (Network Connection) to destination IPs resolving to cloud storage infrastructure. DNS resolution events (Sysmon Event ID 22) for cloud storage hostnames.

  4. Test 4Guest Account Invitation Burst Simulation

    Expected signal: AuditLogs: OperationName='Invite external user', 6 events within a 1-hour window from the same InvitingUser and SourceIP. Each event contains TargetResources[0].userPrincipalName with '#EXT#' suffix. InviteCount summary exceeds threshold of 5 per hour. Events appear in Azure AD audit logs within 15 minutes.

Unlock Pro Content

Get the full detection package for T1585.003 including response playbook, investigation guide, and atomic red team tests.

Response PlaybookInvestigation GuideHunting QueriesAtomic Red Team TestsTuning Guidance

Related Detections