VeriKQL by Kaushik Saha

T1648 Serverless Execution

Executionon attack.mitre.org

ATT&CK Enterprise 20.0 · 20.1 released, update in review

How MITRE detects it

DET0374 Detection Strategy for Serverless Execution (T1648)

AN1053 IaaS

Correlate creation or modification of serverless functions (e.g., AWS Lambda, GCP Cloud Functions, Azure Functions) with anomalous IAM role assignments or permissions escalation events. Detect subsequent executions of newly created functions that perform unexpected actions such as spawning outbound network connections, accessing sensitive resources, or creating additional credentials.

MITRE log sourceIn Microsoft Sentinel
AWS:CloudTrailCreateFunction / UpdateFunctionConfiguration: Function creation, role assignment, or configuration change eventsNot mapped to Sentinel yet.
AWS:CloudTrailInvokeFunction: Unexpected or repeated invocation of functions not tied to known workflowsNot mapped to Sentinel yet.

AN1054 Office Suite

Monitor for creation of new Power Automate flows or equivalent automation scripts that trigger on user or file events. Detect anomalous actions performed by these automations, such as email forwarding, anonymous link creation, or unexpected API calls to external endpoints.

MITRE log sourceIn Microsoft Sentinel
m365:unifiedAddFlow / UpdateFlow: New automation or workflow creation eventsinterpreted
  • Microsoft 365 (formerly Office 365) → OfficeActivity
    OfficeActivity | where OfficeWorkload in ("Exchange", "SharePoint", "OneDrive", "MicrosoftTeams")
  • Microsoft Defender XDR → CloudAppEvents
    CloudAppEvents

The Office 365 connector brings the Exchange, SharePoint and Teams workloads of the unified audit log; Entra sign-ins in it are in SigninLogs; CloudAppEvents carries Microsoft 365 app activity.

m365:exchangeNew-InboxRule: Automation that triggers abnormal forwarding or external link generation
  • Microsoft 365 (formerly Office 365) → OfficeActivity
    OfficeActivity | where OfficeWorkload in ("Exchange")

AN1055 SaaS

Track creation or update of SaaS automation scripts (e.g., Google Workspace Apps Script). Detect when these scripts are bound to user events such as file opens or account modifications, and correlate with subsequent abnormal API calls that exfiltrate or modify user data.

MITRE log sourceIn Microsoft Sentinel
saas:appsscriptCreate / Update: Deployment of scripts with event-driven triggersNot mapped to Sentinel yet.
saas:googledriveFileOpen / FileAccess: Event-driven script triggering on user file actionsNot mapped to Sentinel yet.

Content Hub rules tagged with it (0)

No Content Hub rule is tagged with this technique.

Rules tagged with this technique (or a sub-technique) in their metadata. Whether one fits your connectors is the coverage view (M2).

In Sigma rules

No SigmaHQ rule names it or one of its sub-techniques in their tags outright.

Community rules, not Microsoft's, and not checked by VeriKQL (Sigma is not KQL). From SigmaHQ/sigma at f083329, under the Detection Rule License (DRL) 1.1; each rule is credited to its author.

Mitigations

MITRE ATT&CK® is a registered trademark of The MITRE Corporation. VeriKQL is not affiliated with or endorsed by MITRE. ATT&CK data © The MITRE Corporation, used under its terms of use.