Command and Control (TA0011)(external, opens in a new tab or window)
text code block:sequence by process.entity_id with maxspan=15s [process where host.os.type == "macos" and event.type == "start" and process.name in ("curl", "nscurl") and not process.Ext.effective_parent.executable like "/Library/Kandji/Kandji Agent.app/Contents/Helpers/Kandji Library Manager.app/Contents/MacOS/kandji-library-manager"] [network where host.os.type == "macos" and event.type == "start" and process.name in ("curl", "nscurl") and destination.domain in ("script.google.com", "script.google.com.")]
Install detection rules in Elastic Security
Detect Suspicious Curl to Google App Script Endpoint in the Elastic Security detection engine by installing this rule into your Elastic Stack.
To setup this rule, check out the installation guide for Prebuilt Security Detection Rules(external, opens in a new tab or window).