This detection identifies potential data exfiltration or malicious document interactions by analyzing Excel files containing external web links that match specific security signatures defined in the WebCops YARA rule. A proactive hunt is essential to uncover stealthy adversaries leveraging benign office documents as a vector for lateral movement or initial access, ensuring early identification of compromised assets within the Azure Sentinel environment before broader impact occurs.
rule WebCopsEXELINKDataSecurity
{
meta:
author="malware-lu"
strings:
$a0 = { EB 03 05 EB 02 EB FC 55 EB 03 EB 04 05 EB FB EB 53 E8 04 00 00 00 72 }
condition:
$a0 at pe.entry_point
}
This YARA rule can be deployed in the following contexts:
This rule contains 1 string patterns in its detection logic.
Here are 4 specific false positive scenarios for the WebCopsEXELINKDataSecurity detection rule, including suggested filters and exclusions:
Scenario: Scheduled Macro Execution in Finance Reports
<a href="...">) that point to internal PowerBI dashboards or external vendor portals. The YARA rule flags these as potential data exfiltration attempts via web links within Office documents.DOMAIN\svc-finance-etl) and restrict the detection to exclude file paths under \\Finance-Share\Reports\MonthlyConsolidation\. Additionally, add a filter to ignore links pointing to trusted internal domains (e.g., *.internal.corp, *.powerbi.com).Scenario: Admin Deployment of Standardized Templates via SCCM
ccmexec.exe and wuauserv.exe. Furthermore, add a hash-based exclusion for the specific SHA-256 hash of the standardized template file (Template_HR_Policy_v4.xlsx) to prevent repeated alerts on identical files.Scenario: Automated Compliance Audit Scans by Qualys