Solution:
Root Cause: Attribute Flag Modification (-h -s -r Manipulation)
The USB shortcut virus operates by executing a background script that alters the file attributes of your original directories, setting them to
Hidden (-h),
System (-s), and
Read-Only (-r), while generating malicious
.lnk shortcut files bearing the exact names and icons of your original folders. When you click a shortcut, it silently launches the underlying malware payload via WScript before opening the hidden directory to deceive the user.
Diagnostic Verification:
Open the USB drive root in File Explorer > click the View tab > check Hidden items. Your original folders appear translucent or greyed out, alongside matching shortcut files.Step-by-Step Fix:
1Open Command Prompt as Administrator:
Press Win + R, type cmd, and press Ctrl + Shift + Enter.2Identify your USB drive letter (e.g., E:):
Type your drive letter followed by a colon and press Enter: E:
3Execute the Attrib Command to Strip Malware Attributes:
Run the following command (replace E: with your actual USB drive letter): attrib -h -r -s /s /d E:\*.*
4Delete Malware Shortcut Files:
Run the command to remove all malicious .lnk files from the drive root: del *.lnk
5Remove Suspicious Script Files:
Delete any stray .vbs, .bat, or autorun.inf files remaining on the root.Prevention & Long-Term Monitoring:
Never open removable media directly by double-clicking; always inspect contents via File Explorer with hidden items visible.