Detection Engineering Brief - Thursday, December 3, 2026

Threat intelligence translated into detection engineering action.

By DevSecOpsDad

Detection Engineering Summary

This brief produced 5 detection candidates.

3 production candidates, 1 hunting-only, 1 require environment mapping, and 0 rejected.

5 detections include KQL. 5 include ATT&CK mappings. 5 include triage guidance.

Search metadata extracted for this run includes: Q-Dir, DesktopOK, Windows, Python, T1059, SCADA, Zimbra Collaboration Suite, Zimbra, Classic web client, Modern web client, Web, T1190, T1071, T1071.001, T1547, T1547.001, T1003, T1003.001, T1059.006.

No explicit IOCs were preserved for this run.

Deployment blockers or scheduling gates were identified for: Python Backdoor Establishing Persistence and Outbound Network Access; Unauthenticated Calendar Modification Request to Zimbra Endpoint.

Detection candidates were derived from recent cybersecurity reporting, operational threat research, RSS intelligence feeds, and related detection engineering sources.



Detection 1: SoftwareOK Installer Spawning Python Interpreter

Detection Opportunity

Tampered Q-Dir or DesktopOK installers spawn Python interpreter processes as a backdoor deployment mechanism.

Intelligence Context

Search Metadata

  • CVEs: Not specified
  • Threat actors: Not specified
  • ATT&CK tags: T1059, T1071, T1071.001, T1547, T1547.001
  • Products: Q-Dir, DesktopOK
  • Platforms: Windows, Python
  • Malware: Not specified
  • Tools: Not specified
  • Search tags: Q-Dir, DesktopOK, Windows, Python, T1059, T1071, T1071.001, T1547, T1547.001

Relevant IOCs

No explicit IOCs were preserved for this detection.

Metadata

  • Readiness: production candidate
  • Platform: Defender XDR
  • Analytic type: scheduled_rule
  • Severity recommendation: high
  • MITRE ATT&CK: command-and-control: T1071 Application Layer Protocol/ T1071.001 Web Protocols (medium); persistence: T1547 Boot or Logon Autostart Execution/ T1547.001 Registry Run Keys / Startup Folder (high)

Deployment Gates

  • No gate-level deployment blockers identified.

Required telemetry:

  • DeviceProcessEvents

KQL

let SoftwareOKInstallerNames = dynamic(["Q-Dir", "QDir", "DesktopOK"]);
let LegitParentPaths = dynamic([@"C:\Program Files\", @"C:\Program Files (x86)\"]);
DeviceProcessEvents
| where Timestamp > ago(1d)
| where FileName in~ ("python.exe", "pythonw.exe")
| where InitiatingProcessFileName has_any (SoftwareOKInstallerNames)
| where not(InitiatingProcessFolderPath has_any (LegitParentPaths))
| project
    Timestamp,
    DeviceName,
    AccountName,
    InitiatingProcessFileName,
    InitiatingProcessFolderPath,
    FileName,
    FolderPath,
    ProcessCommandLine

False Positives / Tuning / Risks / Caveats

Expected false positives:

  • Software packaging or build systems that use Q-Dir or DesktopOK installer naming conventions alongside Python tooling.
  • Developer machines where Python is invoked by scripts that happen to share naming patterns with SoftwareOK products.

Tuning notes:

  • Extend SoftwareOKInstallerNames with any additional installer filename variants observed in your environment.
  • Add specific FolderPath or InitiatingProcessFolderPath exclusions for known legitimate Python installations on developer or build machines.
  • Consider adding InitiatingProcessSHA256 logging to support hash-based allowlisting of known-good installer binaries.

Risks / caveats:

  • Tampered installers that rename themselves to avoid SoftwareOK product name strings will evade this detection.
  • Lookback window should be adjusted to match scheduled rule frequency to avoid duplicate alerts.
  • Environments with legitimate Python bundled inside Q-Dir or DesktopOK installer wrappers may generate false positives until the FolderPath exclusion list is baselined.

Triage Runbook

First 15 minutes:

  • Confirm the parent process name, folder path, and command line match a SoftwareOK installer and are not under Program Files or a known software deployment path.
  • Check whether the Python process was launched from a user-writable or temporary directory and whether the account is a standard user, admin, or service account.
  • Look for immediate follow-on activity from the same host: outbound network connections, registry Run/RunOnce changes, scheduled task creation, or additional child processes spawned by python.exe.
  • Identify whether the installer was downloaded recently, delivered by email, or executed from a shared staging location used by software packaging or patching.

Evidence to collect:

  • DeviceProcessEvents for the installer parent, python.exe child, and any subsequent child processes on the same host.
  • ProcessCommandLine for both the installer and python.exe to capture script paths, arguments, and any encoded content.
  • FolderPath and InitiatingProcessFolderPath to determine whether execution came from Downloads, Temp, or a software distribution directory.
  • AccountName, DeviceName, and Timestamp to establish who executed the installer and when.
  • Any related DeviceNetworkEvents and DeviceRegistryEvents from the same device within the same time window.

Pivot points:

  • DeviceProcessEvents filtered to the same DeviceName and AccountName for the prior and subsequent 24 hours.
  • DeviceNetworkEvents for python.exe or the same DeviceName to identify outbound connections after installer execution.
  • DeviceRegistryEvents for Run/RunOnce or Startup folder changes on the same host.
  • DeviceFileEvents for newly dropped files in user-writable paths associated with the installer execution.

Benign explanations:

  • Legitimate software packaging or build systems that use Q-Dir or DesktopOK naming conventions alongside Python tooling.
  • Developer workstations where Python is invoked by scripts or wrappers that resemble installer behavior.
  • Known-good software distribution or patch management staging directories that launch bundled helper processes.

Escalation criteria:

  • python.exe was launched from a non-Program Files path by a SoftwareOK-named installer and is followed by persistence or outbound C2-like activity.
  • The same host shows registry Run/RunOnce changes, scheduled task creation, or additional suspicious child processes after the alert.
  • The installer source is untrusted, recently downloaded, or cannot be tied to an approved software deployment process.
  • Multiple hosts or multiple users show the same pattern, suggesting a broader campaign or packaged malicious installer.

Containment actions:

  • Isolate the host from the network if the installer is confirmed or strongly suspected to be malicious and the system shows follow-on persistence or network activity.
  • Terminate the suspicious python.exe and the installer process if they are still active and the user confirms no legitimate installation is in progress.
  • Disable or reset the affected user account if there is evidence of unauthorized execution or lateral spread.
  • Quarantine the installer file and any dropped scripts or payloads for forensic analysis.

Closure criteria:

  • The installer is verified as a sanctioned package from an approved software distribution source and no suspicious follow-on activity is present.
  • Python execution is explained by a documented packaging, testing, or developer workflow and the host shows no persistence or network indicators.
  • Any suspicious files, registry changes, or network connections are ruled benign after review of process lineage and endpoint telemetry.
  • A documented allowlist or exclusion is added for the known-good installer path or deployment mechanism.



Detection 2: Python Backdoor Establishing Persistence and Outbound Network Access

Detection Opportunity

Python-based backdoor deployed via tampered SoftwareOK installer creates persistence artifacts and makes outbound network connections to enable remote access.

Intelligence Context

Search Metadata

  • CVEs: Not specified
  • Threat actors: Not specified
  • ATT&CK tags: T1059, T1071, T1071.001, T1547, T1547.001
  • Products: Q-Dir, DesktopOK
  • Platforms: Windows, Python
  • Malware: Not specified
  • Tools: Not specified
  • Search tags: Q-Dir, DesktopOK, Windows, Python, T1059, T1071, T1071.001, T1547, T1547.001

Relevant IOCs

No explicit IOCs were preserved for this detection.

Metadata

  • Readiness: hunting-only
  • Platform: Defender XDR
  • Analytic type: hunting
  • Severity recommendation: high
  • MITRE ATT&CK: command-and-control: T1071 Application Layer Protocol/ T1071.001 Web Protocols (medium); persistence: T1547 Boot or Logon Autostart Execution/ T1547.001 Registry Run Keys / Startup Folder (high)

Deployment Gates

  • Do not schedule yet; validate as an analyst-led hunt first.

Required telemetry:

  • DeviceNetworkEvents, DeviceRegistryEvents

KQL

let LookbackWindow = 7d;
let CorrelationMinutes = 60;
let C2Ports = dynamic([80, 443, 4444, 8080, 8443]);
let RunKeyPaths = dynamic([
    @"HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run",
    @"HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce",
    @"HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Run",
    @"HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce"
]);
let PythonNetwork = DeviceNetworkEvents
    | where Timestamp > ago(LookbackWindow)
    | where InitiatingProcessFileName in~ ("python.exe", "pythonw.exe")
    | where RemotePort in (C2Ports)
    | project
        NetworkTime = Timestamp,
        DeviceName,
        RemoteIP,
        RemotePort,
        InitiatingProcessFileName,
        InitiatingProcessCommandLine;
let PythonPersistence = DeviceRegistryEvents
    | where Timestamp > ago(LookbackWindow)
    | where InitiatingProcessFileName in~ ("python.exe", "pythonw.exe")
    | where RegistryKey has_any (RunKeyPaths)
    | project
        PersistTime = Timestamp,
        DeviceName,
        RegistryKey,
        RegistryValueData,
        InitiatingProcessFileName,
        InitiatingProcessCommandLine;
PythonNetwork
| join kind=inner PythonPersistence on DeviceName
| extend MinutesDelta = abs(datetime_diff('minute', NetworkTime, PersistTime))
| where MinutesDelta <= CorrelationMinutes
| project
    NetworkTime,
    PersistTime,
    MinutesDelta,
    DeviceName,
    RemoteIP,
    RemotePort,
    RegistryKey,
    RegistryValueData,
    InitiatingProcessFileName,
    InitiatingProcessCommandLine
| sort by NetworkTime desc

False Positives / Tuning / Risks / Caveats

Expected false positives:

  • Python-based automation or deployment agents that make outbound HTTP connections and register themselves for persistence via Run keys.
  • Developer tools or package managers that use python.exe for update checks and write startup entries.

Tuning notes:

  • Narrow the CorrelationMinutes variable if the environment generates excessive cross-signal noise.
  • Add RemoteIP exclusions for known legitimate Python package repositories (e.g., pypi.org ranges) to reduce noise on port 443.
  • Consider adding a DeviceProcessEvents lookup to filter python.exe instances launched from known IDE or virtual environment paths before joining.

Risks / caveats:

  • The C2 port list (80, 443, 4444, 8080, 8443) is speculative; actual ports used by this backdoor are not disclosed in the source article, so both over- and under-detection are possible.
  • The 60-minute correlation window may produce false correlations on busy devices where Python processes run frequently for unrelated purposes.
  • Registry key matching using has_any on full path strings requires the RegistryKey field to be populated with the full canonical path; partial paths may not match.
  • Large environments may experience join performance issues if PythonNetwork or PythonPersistence result sets are very large; consider adding device-group scoping.

Triage Runbook

First 15 minutes:

  • Validate that the network event and registry persistence event belong to the same host and occur within the correlation window.
  • Inspect the registry value data to determine what executable or script is being launched at logon or startup.
  • Review the remote IP, port, and command line to assess whether the traffic resembles remote control, beaconing, or update activity.
  • Check whether the host is a developer or automation system where Python-based tools legitimately create startup entries and make outbound web requests.

Evidence to collect:

  • DeviceNetworkEvents showing destination IPs, ports, and timestamps for python.exe/pythonw.exe.
  • DeviceRegistryEvents showing the exact Run/RunOnce key path and value data created or modified.
  • DeviceProcessEvents for the python parent, child processes, and any script or interpreter arguments.
  • DeviceFileEvents for dropped scripts, executables, or configuration files referenced by the persistence entry.
  • AccountName, DeviceName, and any related sign-in or logon context for the user who initiated the activity.

Pivot points:

  • DeviceRegistryEvents on the same DeviceName for additional persistence mechanisms such as scheduled tasks, services, or startup folder writes.
  • DeviceNetworkEvents for the same DeviceName to identify repeated connections, beacon timing, or additional remote destinations.
  • DeviceProcessEvents to trace the full process tree from the original installer or launcher to python.exe and any spawned tooling.
  • DeviceLogonEvents or identity telemetry to determine whether the account was interactive, privileged, or unusual for the host.

Benign explanations:

  • Python-based automation or deployment agents that legitimately write to Run keys and make outbound HTTP/HTTPS connections.
  • Developer tools or package managers that use python.exe for update checks and startup registration.
  • Lab or test systems where persistence is intentionally configured for automation or remote management.

Escalation criteria:

  • Persistence is confirmed in a Run/RunOnce key and the same python process is making outbound connections to non-approved destinations.
  • The host shows repeated or periodic outbound connections consistent with beaconing, especially if the destination is unfamiliar or newly observed.
  • The registry value points to a script or binary in a user-writable location, temp directory, or other suspicious path.
  • Additional hosts show the same persistence-and-network pattern, indicating possible spread or a common payload.

Containment actions:

  • Isolate the host if persistence is confirmed and the destination is not an approved management or automation endpoint.
  • Remove the malicious Run/RunOnce entry and terminate the python process if the activity is unauthorized and still active.
  • Block the remote IP or domain at the network edge if it is confirmed malicious or part of the same campaign.
  • Reset credentials for the affected account if the host was used interactively and compromise is suspected.

Closure criteria:

  • The persistence entry is verified as legitimate and tied to an approved application or automation workflow.
  • Outbound connections are explained by sanctioned update, telemetry, or management traffic and do not recur suspiciously.
  • No additional malicious process, file, or registry activity is found on the host after review.
  • The alert is linked to a known-good Python application with documented startup behavior and approved destinations.



Detection 3: Python RAT Communicating with Telegram API

Detection Opportunity

Python RAT process makes outbound connections to Telegram API endpoints as its command-and-control channel.

Intelligence Context

  • Unit 42: Neural Override: The Evolution of a Python RAT That Uses AI to Plan Its Own Attacks and Target SCADA Systems — https://unit42.paloaltonetworks.com/neural-override-ai-telegram-rat/
    • Context: The Neural Override Python RAT uses Telegram as its C2 channel, with python.exe or pythonw.exe making outbound HTTPS connections to api.telegram.org. Legitimate Telegram desktop clients use distinct binaries, making Python-originated Telegram API connections anomalous.

Search Metadata

  • CVEs: Not specified
  • Threat actors: Not specified
  • ATT&CK tags: T1059, T1003, T1003.001, T1059.006
  • Products: Not specified
  • Platforms: Windows, SCADA
  • Malware: Not specified
  • Tools: Not specified
  • Search tags: Windows, SCADA, T1059, T1003, T1003.001, T1059.006

Relevant IOCs

No explicit IOCs were preserved for this detection.

Metadata

  • Readiness: production candidate
  • Platform: Defender XDR
  • Analytic type: scheduled_rule
  • Severity recommendation: high
  • MITRE ATT&CK: credential-access: T1003 OS Credential Dumping/ T1003.001 LSASS Memory (medium); execution: T1059 Command and Scripting Interpreter/ T1059.006 Python (high)

Deployment Gates

  • Defender for Endpoint file-event coverage must be confirmed on the target host population.

Required telemetry:

  • DeviceNetworkEvents

KQL

DeviceNetworkEvents
| where Timestamp > ago(1d)
| where InitiatingProcessFileName in~ ("python.exe", "pythonw.exe")
| where isnotempty(RemoteUrl)
| where RemoteUrl has "api.telegram.org"
| project
    Timestamp,
    DeviceName,
    AccountName,
    InitiatingProcessFileName,
    InitiatingProcessFolderPath,
    InitiatingProcessCommandLine,
    RemoteUrl,
    RemoteIP,
    RemotePort

False Positives / Tuning / Risks / Caveats

Expected false positives:

  • Sanctioned Python-based Telegram bots or notification scripts running on developer or operations machines.
  • Data science or monitoring tooling that uses the Telegram API for alerting.

Tuning notes:

  • Add a DeviceDnsEvents supplemental query matching python.exe DNS queries for api.telegram.org as a fallback when RemoteUrl is unpopulated.
  • Add device group or tag exclusions for sanctioned Telegram bot environments.
  • Consider adding InitiatingProcessSHA256 to the projection to support hash-based investigation.

Risks / caveats:

  • RemoteUrl may not be populated for all HTTPS connections in DeviceNetworkEvents if DNS/SNI resolution data is unavailable to the MDE sensor; in that case the query will produce no results for URL-based matching.
  • If RemoteUrl is not populated by the MDE sensor for a given connection, the detection will not fire; consider supplementing with DNS query logs (DeviceDnsEvents) matching api.telegram.org initiated by python.exe.
  • Attackers who proxy Telegram API traffic through an intermediate host or use IP-direct connections will evade the RemoteUrl filter.
  • Lookback window should match scheduled rule frequency to avoid duplicate alerts.

Triage Runbook

First 15 minutes:

  • Confirm the destination is api.telegram.org and that the initiating process is python.exe or pythonw.exe, not a legitimate Telegram client.
  • Review the command line and folder path to identify the script, virtual environment, or dropped payload responsible for the connection.
  • Check whether the device belongs to an approved Telegram bot, monitoring, or notification workflow before treating it as malicious.
  • Look for repeated connections, unusual timing, or additional suspicious child processes that indicate active C2 rather than a one-off API call.

Evidence to collect:

  • DeviceNetworkEvents showing RemoteUrl, RemoteIP, RemotePort, and connection frequency for the Python process.
  • DeviceProcessEvents for the python command line, parent process, and any spawned child processes.
  • InitiatingProcessFolderPath to determine whether the interpreter or script is running from a user profile, temp directory, or sanctioned application path.
  • AccountName and DeviceName to identify the user and host context.
  • Any related DNS or proxy telemetry if RemoteUrl is missing or incomplete.

Pivot points:

  • DeviceDnsEvents for queries to api.telegram.org from the same host or account.
  • DeviceProcessEvents for python.exe/pythonw.exe on the same device to identify the script path and parent lineage.
  • DeviceNetworkEvents for repeated destinations, alternate ports, or other suspicious external hosts from the same process.
  • DeviceFileEvents for scripts or archives dropped near the python execution path.

Benign explanations:

  • Sanctioned Python-based Telegram bots or notification scripts on developer or operations machines.
  • Monitoring or alerting tools that use Telegram for outbound notifications.
  • Test or lab systems where Telegram API access is part of a documented workflow.

Escalation criteria:

  • The host is not part of an approved Telegram bot or automation environment and python.exe is connecting to api.telegram.org.
  • The command line or script path is suspicious, user-writable, or associated with a recently downloaded payload.
  • Connections are repeated or periodic and coincide with other suspicious activity such as persistence, credential theft, or file staging.
  • Multiple hosts or accounts show the same Telegram API pattern without an approved business justification.

Containment actions:

  • Isolate the host if the Telegram API traffic is unauthorized and the Python process appears to be a RAT or backdoor.
  • Terminate the suspicious python process and remove the script or payload if confirmed malicious.
  • Block api.telegram.org only if the organization has no approved Telegram-based automation and the traffic is clearly malicious.
  • Reset affected credentials if the host shows signs of interactive compromise or token theft.

Closure criteria:

  • The Python process is verified as part of an approved Telegram bot or notification workflow.
  • The script path, account, and destination are documented and match a sanctioned use case.
  • No additional suspicious network destinations, persistence, or child processes are observed.
  • The alert is attributed to a known-good automation tool after review of process lineage and change records.



Detection 4: Python RAT Spawning Credential Theft Tooling

Detection Opportunity

Python RAT executes credential theft by spawning known credential-dumping child processes or accessing LSASS from a Python interpreter parent.

Intelligence Context

  • Unit 42: Neural Override: The Evolution of a Python RAT That Uses AI to Plan Its Own Attacks and Target SCADA Systems — https://unit42.paloaltonetworks.com/neural-override-ai-telegram-rat/
    • Context: The Neural Override Python RAT includes credential theft as one of its command capabilities on Windows. Detecting python.exe spawning credential-dumping child processes provides a behaviorally specific signal tied to this RAT’s operational capability.

Search Metadata

  • CVEs: Not specified
  • Threat actors: Not specified
  • ATT&CK tags: T1059, T1003, T1003.001, T1059.006
  • Products: Not specified
  • Platforms: Windows, SCADA
  • Malware: Not specified
  • Tools: Not specified
  • Search tags: Windows, SCADA, T1059, T1003, T1003.001, T1059.006

Relevant IOCs

No explicit IOCs were preserved for this detection.

Metadata

  • Readiness: production candidate
  • Platform: Defender XDR
  • Analytic type: scheduled_rule
  • Severity recommendation: high
  • MITRE ATT&CK: credential-access: T1003 OS Credential Dumping/ T1003.001 LSASS Memory (medium); execution: T1059 Command and Scripting Interpreter/ T1059.006 Python (high)

Deployment Gates

  • No gate-level deployment blockers identified.

Required telemetry:

  • DeviceProcessEvents

KQL

let CredDumpFileNames = dynamic(["mimikatz", "procdump", "wce", "pwdump", "gsecdump", "lsass"]);
let CredDumpCLIPatterns = dynamic(["sekurlsa", "lsadump", "MiniDump", "lsass", "SAMDump", "comsvcs"]);
DeviceProcessEvents
| where Timestamp > ago(1d)
| where InitiatingProcessFileName in~ ("python.exe", "pythonw.exe")
| where FileName has_any (CredDumpFileNames)
    or ProcessCommandLine has_any (CredDumpCLIPatterns)
| project
    Timestamp,
    DeviceName,
    AccountName,
    InitiatingProcessFileName,
    InitiatingProcessFolderPath,
    InitiatingProcessCommandLine,
    FileName,
    FolderPath,
    ProcessCommandLine

False Positives / Tuning / Risks / Caveats

Expected false positives:

  • Authorized penetration testing or red team exercises using Python to invoke credential-dumping tools.
  • Security tooling or EDR agents that use Python wrappers around diagnostic utilities with overlapping command-line patterns.

Tuning notes:

  • Extend CredDumpFileNames with additional tool names observed in threat intelligence relevant to your environment.
  • Add a DeviceEvents query for ActionType == ‘OpenProcessApiCall’ targeting lsass.exe initiated by python.exe as a complementary detection for in-memory credential access.
  • Add InitiatingProcessFolderPath exclusions for known red team or security testing workstations.

Risks / caveats:

  • The CredDumpCLIPatterns list includes ‘lsass’ and ‘comsvcs’ which may appear in legitimate diagnostic command lines; analyst review is required for each hit.
  • Lookback window should match scheduled rule frequency to avoid duplicate alerts.

Triage Runbook

First 15 minutes:

  • Inspect the child process name and command line to confirm whether it is a known dumping tool or an LSASS dump command.
  • Check the parent python.exe/pythonw.exe command line and folder path to identify the script or wrapper launching the activity.
  • Determine whether the account is a sanctioned security testing account or a normal user/service account.
  • Look for concurrent signs of compromise on the host, including persistence, suspicious network connections, or additional reconnaissance activity.

Evidence to collect:

  • DeviceProcessEvents for the full process tree, including the Python parent and any spawned credential-dumping child process.
  • ProcessCommandLine and InitiatingProcessCommandLine to capture the exact dump method, target process, and arguments.
  • FolderPath and InitiatingProcessFolderPath to determine whether the tooling was dropped in temp, downloads, or another user-writable location.
  • AccountName, DeviceName, and Timestamp for correlation with logon and other endpoint activity.
  • Any DeviceEvents or security telemetry indicating LSASS handle access or memory-dump behavior.

Pivot points:

  • DeviceEvents for LSASS-related handle access, process access, or dump indicators on the same host.
  • DeviceProcessEvents for additional suspicious tools spawned by python.exe or the same account within the last 24 hours.
  • DeviceNetworkEvents for outbound connections from the same host that may indicate post-theft exfiltration or C2.
  • DeviceFileEvents for creation of dump files, archives, or staging directories on the host.

Benign explanations:

  • Authorized penetration testing or red team activity using Python to invoke credential-dumping tools.
  • Security tooling or diagnostics that use Python wrappers around legitimate utilities with overlapping command-line patterns.
  • Lab systems where credential-dumping tools are intentionally executed for validation or training.

Escalation criteria:

  • The activity is not tied to an approved security test and the child process or command line matches credential dumping behavior.
  • The host shows evidence of LSASS access, dump file creation, or credential-related follow-on activity.
  • The same account or host exhibits additional suspicious behavior such as persistence, lateral movement, or outbound exfiltration.
  • The process tree indicates a script or payload launched from a user-writable or recently downloaded location.

Containment actions:

  • Isolate the host immediately if credential dumping is confirmed or strongly suspected.
  • Terminate the Python process and any spawned dumping tools if they are still active.
  • Reset credentials for the affected user and any privileged accounts that may have been exposed.
  • Preserve dump files, command lines, and memory-related telemetry for incident response.

Closure criteria:

  • The activity is verified as authorized testing with documented scope and approved accounts.
  • The child process and command line are explained by a legitimate diagnostic or security workflow.
  • No LSASS access, dump files, or other compromise indicators are found after review.
  • The alert is linked to a known-good toolchain and excluded through documented allowlisting.



Detection 5: Unauthenticated Calendar Modification Request to Zimbra Endpoint

Detection Opportunity

Unauthenticated HTTP requests modify calendar data in Zimbra, enabling calendar forgery without a valid account.

Intelligence Context

  • Rapid7: Untrusted Email to Browser Authority: Calendar Forgery and Stored XSS in Zimbra (Part 2) — https://www.rapid7.com/blog/post/ve-calendar-forgery-and-stored-xss-in-zimbra-part-2
    • Context: Rapid7 reported that an attacker without a Zimbra account can send crafted calendar invites during email delivery to modify another user’s calendar. Unauthenticated write requests to Zimbra calendar endpoints are anomalous and detectable in web application or WAF logs ingested into Sentinel.

Search Metadata

  • CVEs: Not specified
  • Threat actors: Not specified
  • ATT&CK tags: T1190
  • Products: Zimbra Collaboration Suite, Zimbra, Classic web client, Modern web client
  • Platforms: Web
  • Malware: Not specified
  • Tools: Not specified
  • Search tags: Zimbra Collaboration Suite, Zimbra, Classic web client, Modern web client, Web, T1190

Relevant IOCs

No explicit IOCs were preserved for this detection.

Metadata

  • Readiness: requires environment mapping
  • Platform: Microsoft Sentinel
  • Analytic type: hunting
  • Severity recommendation: medium
  • MITRE ATT&CK: initial-access: T1190 Exploit Public-Facing Application (high)

Deployment Gates

  • The Syslog branch was separated from the primary query because it produces an incompatible result schema; analysts should run a separate Syslog query if CEF ingestion is not available.

Required telemetry:

  • CommonSecurityLog, Syslog

KQL

let ZimbraCalendarPaths = dynamic(["/zimbra/calendar", "/service/home", "/dav/", "/ical"]);
let XSSPatterns = dynamic(["<script", "javascript:", "onerror=", "onload=", "%3Cscript", "alert("]);
CommonSecurityLog
| where TimeGenerated > ago(7d)
| where RequestURL has_any (ZimbraCalendarPaths)
| where RequestMethod in ("POST", "PUT")
| where (isempty(SrcUserName) or SrcUserName in~ ("anonymous", "-", ""))
    or RequestURL has_any (XSSPatterns)
    or Message has_any (XSSPatterns)
| project
    TimeGenerated,
    SourceIP,
    SrcUserName,
    RequestMethod,
    RequestURL,
    Activity,
    Message,
    RequestClientApplication

False Positives / Tuning / Risks / Caveats

Expected false positives:

  • CalDAV sync clients that do not send authentication headers in the initial request before challenge-response.
  • Internal monitoring or health-check systems that probe Zimbra calendar endpoints without credentials.
  • WAF or proxy configurations that strip or do not forward the SrcUserName field, causing legitimate authenticated requests to appear unauthenticated.

Tuning notes:

  • Add a filter on EventOutcome (the CEF ResponseCode field) for values 200 or 201 to focus on requests accepted by the Zimbra server.
  • Extend ZimbraCalendarPaths with additional endpoint paths specific to your Zimbra deployment version or custom URL rewriting rules.
  • Add SourceIP exclusions for known internal CalDAV sync clients and monitoring systems after baselining.
  • Run the following supplemental Syslog query separately if CEF ingestion is unavailable: Syslog → where TimeGenerated > ago(7d) → where SyslogMessage has_any (ZimbraCalendarPaths) → where SyslogMessage has_any (XSSPatterns) → project TimeGenerated, HostIP, SyslogMessage

Risks / caveats:

  • CommonSecurityLog requires a CEF-compatible data connector forwarding Zimbra application or WAF logs; if this connector is not configured, the table will contain no Zimbra-related rows and the query will produce no results.
  • RequestURL, SrcUserName, and RequestMethod are CEF extension fields that are only populated when the upstream device explicitly maps them; Zimbra native logs do not natively emit CEF without a syslog forwarder or WAF in front.
  • The Syslog branch relies on free-text matching in SyslogMessage with no structured field guarantees; field availability depends entirely on the syslog source configuration.
  • UserAgent is referenced in the projection but is not a standard CommonSecurityLog field in all connector versions; it may appear as RequestClientApplication or be absent depending on the CEF mapping used by the forwarding device.

Triage Runbook

First 15 minutes:

  • Confirm the request targets a Zimbra calendar-related endpoint and that SrcUserName is empty, anonymous, or otherwise unauthenticated.
  • Review the request method, URL, and message content for exploit indicators such as script tags, JavaScript URIs, or other injected payloads.
  • Check whether the source IP is internal, external, or a known sync/proxy service that could strip authentication context.
  • Determine whether the request was accepted by the server and whether any calendar objects were created or modified.

Evidence to collect:

  • CommonSecurityLog fields including SourceIP, SrcUserName, RequestMethod, RequestURL, Activity, Message, and RequestClientApplication.
  • Any available response or outcome fields to determine whether the request succeeded or was blocked.
  • Zimbra application logs or WAF logs around the same timestamp to confirm calendar object changes or exploit payloads.
  • SourceIP reputation and whether the IP belongs to an internal network, proxy, or known sync client.
  • Related requests from the same source IP or to the same endpoint before and after the alert.

Pivot points:

  • CommonSecurityLog for the same SourceIP and RequestURL over a wider time window to identify repeated attempts.
  • Syslog if CEF is unavailable, using the same endpoint and payload patterns to validate whether the request appears in raw logs.
  • Zimbra application or audit logs to confirm whether calendar entries were created, modified, or viewed.
  • WAF or reverse proxy logs to determine whether the request was challenged, blocked, or forwarded.

Benign explanations:

  • CalDAV sync clients that do not send authentication headers on the initial request before challenge-response.
  • Internal monitoring or health-check systems probing Zimbra calendar endpoints without credentials.
  • Proxy or WAF logging artifacts where authenticated requests appear anonymous because the username field was not forwarded.

Escalation criteria:

  • The request was accepted and calendar data was modified without a valid authenticated user.
  • The payload contains clear exploit or injection indicators and originates from an external or untrusted source.
  • Multiple unauthenticated requests target Zimbra calendar endpoints from the same source or across multiple users.
  • There is evidence of stored XSS, forged calendar entries, or other user-impacting changes in Zimbra.

Containment actions:

  • Block or rate-limit the source IP at the WAF or reverse proxy if the activity is confirmed malicious.
  • Disable or restrict the affected Zimbra endpoint if exploitation is ongoing and business impact allows.
  • Preserve relevant web, WAF, and Zimbra logs for incident response and forensic review.
  • Notify the Zimbra application owner to validate calendar integrity and user impact.

Closure criteria:

  • The request is confirmed as a benign sync, monitoring, or proxy artifact with no unauthorized calendar modification.
  • The source IP and request pattern are tied to an approved internal service or known client behavior.
  • Server-side logs show the request was rejected and no calendar data changed.
  • The alert is explained by logging limitations or a known proxy behavior and documented for future tuning.



Pre-Deployment Checklist by Dependency Type

Schema / correlation keys:

  • Python Backdoor Establishing Persistence and Outbound Network Access: Do not schedule yet; validate as an analyst-led hunt first.
  • Unauthenticated Calendar Modification Request to Zimbra Endpoint: The Syslog branch was separated from the primary query because it produces an incompatible result schema; analysts should run a separate Syslog query if CEF ingestion is not available.

Other deployment dependency:

  • Python RAT Communicating with Telegram API: Defender for Endpoint file-event coverage must be confirmed on the target host population.

Shared-table notes:

  • DeviceProcessEvents: shared by SoftwareOK Installer Spawning Python Interpreter; Python RAT Spawning Credential Theft Tooling
  • DeviceNetworkEvents: shared by Python Backdoor Establishing Persistence and Outbound Network Access; Python RAT Communicating with Telegram API

Sequenced Deployment Plan

  1. Start with production candidates that have no gate-level blockers: SoftwareOK Installer Spawning Python Interpreter; Python RAT Communicating with Telegram API; Python RAT Spawning Credential Theft Tooling.
  2. Resolve environment-mapping detections next: Unauthenticated Calendar Modification Request to Zimbra Endpoint.
  3. Keep hunting-only detections in analyst-led mode until their promotion criteria are met: Python Backdoor Establishing Persistence and Outbound Network Access.

Hunting Agenda and Promotion Criteria

  • Python Backdoor Establishing Persistence and Outbound Network Access: Do not schedule yet; validate as an analyst-led hunt first.; prove correlation keys join correctly on real tenant telemetry.
  • Unauthenticated Calendar Modification Request to Zimbra Endpoint: The Syslog branch was separated from the primary query because it produces an incompatible result schema; analysts should run a separate Syslog query if CEF ingestion is not available..

Unique Blind Spot Callout

No unique blind spot was isolated beyond the detection-specific gates above.



Generated by DevSecOpsDadAttack threat intelligence and detection engineering. Validate detections before deployment.

Share: X (Twitter) LinkedIn