This hunt targets adversaries leveraging macro-enabled Excel documents disguised as job applications to execute initial payload delivery or credential harvesting within the organization. Proactively hunting for this behavior in Azure Sentinel is critical because low-severity alerts often mask sophisticated social engineering campaigns that rely on user interaction with seemingly benign files like “Schneider-Bewerbung.xls.”
rule GoldenEye_Ransomware_XLS {
meta:
description = "GoldenEye XLS with Macro - file Schneider-Bewerbung.xls"
author = "Florian Roth"
reference = "https://goo.gl/jp2SkT"
date = "2016-12-06"
hash1 = "2320d4232ee80cc90bacd768ba52374a21d0773c39895b88cdcaa7782e16c441"
strings:
$x1 = "fso.GetTempName();tmp_path = tmp_path.replace('.tmp', '.exe')" fullword ascii
$x2 = "var shell = new ActiveXObject('WScript.Shell');shell.run(t'" fullword ascii
condition:
( uint16(0) == 0xcfd0 and filesize < 4000KB and 1 of them )
}
This YARA rule can be deployed in the following contexts:
This rule contains 2 string patterns in its detection logic.
Here are 4 specific false positive scenarios for the GoldenEye XLS with Macro detection rule in an enterprise environment, along with suggested filters:
HR Department Automated Recruitment Workflow
Schneider-Bewerbung.xls from a shared network drive, injects candidate data via VBA macros, and saves it back to the server. Since this file is part of a standard hiring package, its macro execution is expected behavior rather than an anomaly.svc-hr-automation) or whitelist the known hash of Schneider-Bewerbung.xls if it remains static across all instances.IT Admin Distribution via Group Policy
Schneider-Bewerbung.xls is deployed as part of this package and executed automatically upon user login to initialize local settings or launch the training interface.ccmexec.exe (System Center Configuration Manager) or gpupdate.exe, specifically targeting the file path within the corporate distribution point folder (e.g., C:\Program Files\Company\Templates\).Finance Department End-of-Month Reporting Job
Schneider-Bewerbung.xls (which contains complex VBA macros for financial calculations) to generate reports that are