VBA macro writes hosts-file redirect entries

OLE_VBA_HOSTS_FILE_HIJACK

← All detection heuristics · Office Macros

high OLE_VBA_HOSTS_FILE_HIJACK

What it means

VBA macro opens the Windows hosts file for writing and appends 'address hostname' redirect entries.

Why it fires

The macro writes entries into the Windows hosts file (System32\drivers\etc\hosts). The redirect applies to the whole system and survives reboots. Pointed at an attacker's server, it silently replaces a site the user visits; pointed at 127.0.0.1, it blocks antivirus and update sites. Documents have no reason to edit the hosts file.

Other Office Macros heuristics

OLE_VBA_SELF_UPDATING_ADDIN OLE_VBA_BARE_IPV4_LITERAL OLE_VBA_XLSTART_PERSISTENCE OFFICE_MACRO_ENABLE_TRACKER OOXML_VBA_CELL_IMAGE_SOURCE OLE_VBA_ARRAY_SHELLCODE OLE_VBA_SHELLCODE_RUNNER OOXML_VBA_BASE64_CELL_URL OLE_VBA_DLL_DROP_LOAD OFFICE_CUSTOMXML_SHELLCODE_EMULATED OOXML_VBA_DEFINED_NAME_NETWORK_CONSUMED OLE_VBA_PROCESS_HOLLOWING_LOADER OOXML_VBA_DYNAMIC_CELL_URL_SOURCE OLE_VBA_NATIVE_MEMORY_SHELLCODE_ARRAY OLE_VBA_KEYLOGGER_SPYWARE OLE_VBA_BASE64_CELL_URL OLE_VBA_XOR_DECODED_SHELL OLE_VBA_DOCUMENT_BODY_DROP_EXEC OLE_VBA_CELL_WMI_PROCESS_CREATE OLE_VBA_PCODE_HIDDEN_AUTOEXEC OLE_VBA_SPLIT_KEYWORD_OBFUSCATION OLE_VBA_EMBEDDED_ARCHIVE_DROPPER OLE_XF_FORMULA_MACRO_VIRUS OLE_EXCEL95_VBA_MACRO_VIRUS