Malicious Office (OOXML) — malware analysis report

Static analysis result for SHA-256 bb4a2cd8f805802f…

MALICIOUS

Office (OOXML)

12.1 KB Created: 2020-12-15 08:40:20 UTC Authoring application: Microsoft Excel 16.0300 First seen: 2021-07-10
MD5: 9b11db97e3a607abe6ebee14970eb447 SHA-1: bc028c3864f6a7f4c2b699509d9485ec98ee7d80 SHA-256: bb4a2cd8f805802f53b1235052bce77865e21158c978dc59ad98a1464fca8f36
142 Risk Score

Malware Insights

MITRE ATT&CK
T1059.005 Visual Basic T1203 Exploitation for Client Execution

The sample is an OOXML document containing a VBA macro with an Auto_Open subroutine. This macro utilizes WinHttp.WinHttpRequest.5.1 to download content from the URL http://wwwtesting.kurumsalgiris.com/api/Analytics/Macro?iid=dd45ad5f-c5b6-4068-913c-1005c3de3aba, which is likely a second-stage payload. The presence of the CreateObject call and the Auto_Open execution token strongly indicate malicious intent.

Heuristics 5

  • VBA project inside OOXML medium 3 related findings OOXML_VBA
    Document contains a VBA project — VBA macros present
  • Auto_Open macro high OLE_VBA_AUTO
    Auto_Open 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://wwwtesting.kurumsalgiris.com/api/Analytics/Macro?iid=dd45ad5f-c5b6-4068-913c-1005c3de3aba In 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) 1204 bytes
SHA-256: 2837d6b345461aa4fbcc9ce2a52b1885925579648d06317d069b3a2d2d03a660
Preview script
First 1,000 lines of the extracted script
Attribute VB_Name = "BuÇalışmaKitabı"
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

Attribute VB_Name = "Sayfa1"
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 = "Module1"
Sub Auto_Open()
            Application.DisplayAlerts = False
            Dim result As String
            Dim myURL As String
            Dim winHttpReq As Object
            Set winHttpReq = CreateObject("WinHttp.WinHttpRequest.5.1")
            myURL = "http://wwwtesting.kurumsalgiris.com/api/Analytics/Macro?iid=dd45ad5f-c5b6-4068-913c-1005c3de3aba"
            winHttpReq.Open "GET", myURL, False
            winHttpReq.Send
            result = winHttpReq.responseText
            
            MsgBox "Oltaya geldin dikkatli ol"

End Sub
vbaProject_00.bin vba-project OOXML VBA project: xl/vbaProject.bin 11264 bytes
SHA-256: fb1f0402a339bb363da6fe51807ac95585bf3bcdd7a70b6f6430b79840a5fa0f