Solution:
Root Cause: VBScript Worm Execution Chain
A VBScript worm (such as Houdini, Jenxcus, or Bondat) altered directory attributes on the USB storage volume to System (
+s) and Hidden (
+h). It created dummy
.lnk files that execute
wscript.exe with arguments pointing to a hidden
.vbs or
.vbe payload while silently opening the legitimate folder in the background.
# Diagnostic Verification:
1. Open Command Prompt as Administrator.
2. Inspect shortcut target paths by running:
cmd
wmic shortcut where "Drive='X:'" get Target, Arguments
3. Look for target parameters containing
wscript.exe //B //e:VBScript or references to scripts residing in hidden USB directories.
# Step-by-Step Fix:
1. Terminate all active Windows Script Host processes in PowerShell:
powershell
Stop-Process -Name wscript, cscript -Force -ErrorAction SilentlyContinue
2. Open Command Prompt as Administrator and switch to your USB drive letter (replace
X: with your actual USB drive letter):
cmd
X:
3. Strip System, Hidden, and Read-Only attributes from all files and folders across the volume:
cmd
attrib -h -r -s /s /d X:\*.*
4. Force delete all malicious shortcut
.lnk files on the USB volume:
cmd
del /f /q /s X:\*.lnk
5. Search for and delete dropped script payload files (
.vbs,
.vbe,
.js,
.ini):
cmd
del /f /q /a:h X:\*.vbs X:\*.vbe X:\*.js
6. Move your unhidden original folders out of any suspicious unnamed subdirectories back to the root of
X:.
# Prevention & Long-Term Monitoring:
Disassociate .vbs and .vbe files from wscript.exe by changing their default handler to notepad.exe. Refer to the Microsoft Official Documentation on Attrib Command for attribute parameter reference.