ClamWin Free Antivirus Forum Index
ClamWin Free Antivirus
Support and Discussion Forums
Reply to topic
Do you know how to protect yourself against autorun.inf ?
wisely


Joined: 14 Aug 2008
Posts: 0
Location: Asia
Reply with quote
autorun.inf is a file use by Windows to autorun a setup program.

However, it is currently exploit by virus writer to launch virus.

As Clamwin doesn't have an on-access scanner. You need to know how to protect your PC.

One method I learn from other forum is to create a FOLDER called autorun.inf at C:\ and D:\

If the virus try to infect your PC, they cannot create the autorun.inf file at this location because of same name conflict.

You can do the same on your USB drive.

If you have problem create the FOLDER, you may already be infected by the virus.

The solution is to unhide the autorun.inf file and delete it. Then create the folder.

attrib -r -s -h autorun.inf

del autorun.inf

mkdir autorun.inf
View user's profileSend private message
NiveusLuna


Joined: 08 Apr 2008
Posts: 0
Reply with quote
or you can just disable autorun for CDs and DVds, then never use autorun on flash drives (since those ask you about it on windows xp and have to be manually executed on vista)
View user's profileSend private message
wisely


Joined: 14 Aug 2008
Posts: 0
Location: Asia
Reply with quote
If the autorun.inf and the virus.exe already exist in your USB flash drive.

The moment you plug it in, windows will run the autorun.inf and trigger the virus.

Unless you use my method to create a folder at c:\
or disable autorun in the registry.

Most of the viruses are spread by USB flash disk and network drives but not by CD/DVD.

In my company, share network drives are also affected.
For example if your network drive is H:
The moment you connect to H drive, you will be infected.

The file is hidden and need to unhide using the attrib command to unhide.
View user's profileSend private message
sherpya


Joined: 22 Mar 2006
Posts: 0
Location: Italy
Reply with quote
I've made an explorer extension that disables autorun.inf parsing, yes there is a registry key but windows likes to reset the value often
I'll make it available as soon I can make a little setup
View user's profileSend private message
wisely


Joined: 14 Aug 2008
Posts: 0
Location: Asia
Reply with quote
Here is a VBscript to disable the autorun in registry

' removing registry keys
set rg = CreateObject("WScript.Shell")

' disabling autoplay on all disks
rg.regwrite "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\explorer\NoDriveTypeAutoRun",255,"REG_DWORD"
rg.regwrite "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\explorer\NoDriveAutoRun",255,"REG_DWORD"
rg.regwrite "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\explorer\NoDriveTypeAutoRun",255,"REG_DWORD"
rg.regwrite "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\explorer\NoDriveAutoRun",255,"REG_DWORD"
View user's profileSend private message
sherpya


Joined: 22 Mar 2006
Posts: 0
Location: Italy
Reply with quote
I've already tested these reg keys, but windows was always re-enabling o partially re-enabling them
so I've decided to mem patch explorer to avoid parsing autorun.inf files
View user's profileSend private message
wisely


Joined: 14 Aug 2008
Posts: 0
Location: Asia
Reply with quote
Can Clamwin developer a feature to disable autorun ?

I find that this kind of feature it is more effective than trying to find all the autorun virus signiture that exist.
View user's profileSend private message
akar


Joined: 22 Apr 2008
Posts: 0
Location: Russia
Reply with quote
https://davisr.com/cgi-bin/content/products/flashguard.htm - this program is very good after autoruns Smile
View user's profileSend private message
wisely


Joined: 14 Aug 2008
Posts: 0
Location: Asia
Reply with quote
Thanks for your info Very Happy
I am also aware of other freewares that can do the job Razz

a) Ninja pendrive.
https://www.softpedia.com/get/Antivirus/Ninja-Pendisk.shtml

b) iKill
https://www.softpedia.com/get/Antivirus/iKill.shtml

The NASA spent millions $ to invent a pen that could write in zero gravity.
The Russian spent $0 and use a pencil to do the same thing.
I prefer simple solutions that works and do not need to use additional system resources.
My method do not requires any software. Just need to create a few empty folders.

I have also use this method to immune some of the PC in my office.
Once there was a worm that keep infecting a PC. Symantec cannot detect it so I install Clamwin and do a schedule scan everyday and remove the worm. But the worm keep coming back to the c:\windows\system32 folder everyday.

So I created a FOLDER using the worm's name at the c:\windows\system32.
From that day onwards, the PC is free from infection.
View user's profileSend private message
calande


Joined: 28 Nov 2007
Posts: 0
Reply with quote
I have also been infected by a USB flash drive from a friend of mine, although my ClamWin is updated on a daily basis. The virus was located in an autorun.inf file. I think these problems will be solved once we have on-access scanning.
View user's profileSend private message
GuitarBob


Joined: 09 Jul 2006
Posts: 9
Location: USA
Reply with quote
I suggest running a behavior blocker alongside ClamWin. They work in different ways and are complimentary to each other. Both ThreatFire (from PC Tools) and WinPatrol (from BillP Studios) have free versions that are fairly "quiet" and are proven products.

Regards,
View user's profileSend private message
Do you know how to protect yourself against autorun.inf ?
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT  
Page 1 of 1  

  
  
 Reply to topic