Share via

Autorun.inf detected as virus by Microsoft Defender

Anonymous
2023-03-30T06:42:01+00:00

Hi,

I have create a custom autorun.inf which sets the icon and device label for the USB device.

The contents of the autorun.inf are following

[AutoRun]

ICON = .\tS1_img.ico

label=myDevice

It is being detected as a virus with the following information :

               Name: Trojan:Script/Wacatac.H!ml

               ID: 2147814524

               Severity: Severe

               Category: Trojan

               Path: file:_D:\autorun.inf

               Detection Origin: Local machine

               Detection Type: FastPath

               Detection Source: Real-Time Protection

               User: DESKTOP-F0R6SVI\gg

               Process Name: C:\Windows\explorer.exe

               Security intelligence Version: AV: 1.385.1434.0, AS: 1.385.1434.0, NIS: 1.385.1434.0

              Engine Version: AM: 1.1.20100.6, NIS: 1.1.20100.6

           Windows Version: Windows 10 Build 19045

Is there any way to make autorun.inf safe or genuine to keep it in the drive.

I don't want it to be deleted by the Defender without making it as an exclusion in Windows Defender.

Windows for home | Windows 10 | Security and privacy

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. DaveM121 849.2K Reputation points Independent Advisor
    2023-03-30T07:18:45+00:00

    Hi Kunal,

    I am Dave, I will help you with this.

    In general Windows does not trust Autorun.inf files, they are disabled in Windows these days because it was a major source of spreading Tojans from PC to PC, using USB flash drives.

    Are you using .\ to navigate to a folder on the drive, the only hope you ay have is replacing the .\ with the actual folder name you have the icon stored in, that may stop the Autorun file being flagged, and it may not

    1 person found this answer helpful.
    0 comments No comments