Wilders Security Forums  

Go Back   Wilders Security Forums > Privacy Related Topics > privacy problems
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread
  #1  
Old September 9th, 2007, 05:19 AM
freakish's Avatar
freakish freakish is offline
Infrequent Poster
 
Join Date: Dec 2004
Posts: 46
Question Windows Scripting Host -Should it be disabled to prevent malware?

If the Windows Scripting Host is disabled in the registry ( http://www.microsoft.com/technet/scr..._sbp_lhak.mspx ), will this cause programs to not run at all or have some of their functionality disabled? Or will the advantages of disabling WSH outweigh the cons (disable all Windows Script-based malware from running at all)?

Edit: Added URL on how to disable WSH (not just changing the default handler).
__________________
My Setup: Real-time: AntiVir | On-demand: ClamWin, SuperAntiSpyware| Web: Opera (fraud protection enabled), OpenDNS | Other: Bugmenot.com - bypass compulsory web registration, Windows Scripting Host Disabled, Script Defender

Last edited by freakish : September 10th, 2007 at 02:18 AM.
  #2  
Old September 9th, 2007, 07:20 AM
Mrkvonic Mrkvonic is offline
Linux Systems Expert
 
Join Date: May 2005
Posts: 7,435
Default Re: Windows Scripting Host -Should it be disabled to prevent malware?

Hello,

Not sure how this would affect your everyday work.

You could try changing the default handler from run to edit for common files like .js, .vbs. You could also use an anti-virus or a script-monitoring software - like Script Defender, for example.

Myself, I don't think this is really important. What are the chances you will run some stand-alone script - unknown to you, btw? As to the browser attacks and exploits, just go with non-IE browser.

If you do programming, use scripts etc, disabling the WSH might cause troubles.

Mrk
__________________
http://www.dedoimedo.com

All your base are belong to us

Linux Systems Expert / Systems Programmer, Linux System Administrator, LPIC-1, LPIC-2 (WIP), GSEC, CCHD, CCHA
  #3  
Old September 9th, 2007, 10:21 AM
Longboard's Avatar
Longboard Longboard is offline
Massive Poster
 
Join Date: Oct 2004
Location: Sydney, Australia
Posts: 3,097
Default Re: Windows Scripting Host -Should it be disabled to prevent malware?

@Bunkface

interesting question really: is disabling scripts still relevant.?

I have WSH disabled in registry ( Dword change or at least check it)
http://www.microsoft.com/technet/scr....mspx?mfr=true

Here is an older write-up from Symantec, and a link to NoScript
http://service1.symantec.com/sarc/sa...t.hosting.html

Script Defender is here:
http://www.analogx.com/CONTENTS/down...em/sdefend.htm

Change the settings in options as per MrK

There may be other options.

In the not to distant past, disabling scripts was sine qua non.

A recent security test from the now defunct "Green Border" http://www.wilderssecurity.com/showt...t=Green+Border
Elicited this interesting response from developer of BOClean
http://www.wilderssecurity.com/showp...7&postcount=62
Not entirely sure if this is relevant to you, interesting post nonetheless.

EHowes and spyware warrior were always beating on about scripts in the past and there were some advices from him/them on their older pages.

FWIW I have had both the reg change and Symantec NoScript in place for years and never had issues with any routine runnings. No issues with updates of any kind from anywhere.

AFAICR, dont most AV and "hips" disable scripts one way or another now?

In terms of potential malware the file options could be set to run .vbs in Notepad to see what interesting objects you might otherwise have clicked on.

As per Mrk maybe essential to have both enabled for specific programming needs and some specialised files.

HTH

PS dont forget browser scripts: solution = FF and ( the other) NoScript.
__________________
Don't confuse me with someone who actually knows what they are talking about.
Linux Registered user 469135
Please, support Medecins Sans Frontieres

Last edited by Longboard : September 9th, 2007 at 10:53 AM.
  #4  
Old September 9th, 2007, 11:00 AM
zapjb's Avatar
zapjb zapjb is online now
Very Frequent Poster
 
Join Date: Nov 2005
Location: USA - Back in a real State in time for a real President.
Posts: 1,961
Default Re: Windows Scripting Host -Should it be disabled to prevent malware?

I used to use ScripTrap. Simple & free.
__________________
PCLinuxOS - Radically simple, it just works. That's why PCLOS is "The Distro Hopper Stopper!"
http://www.pclinuxos.com/

If you don't use Linux. You're going to HELL!!!
  #5  
Old September 9th, 2007, 02:04 PM
TOMxEU's Avatar
TOMxEU TOMxEU is offline
Very Frequent Poster
 
Join Date: Oct 2005
Location: Slovakia
Posts: 1,536
Default Re: Windows Scripting Host -Should it be disabled to prevent malware?

Disabling WSH, CMD, BAT increases security, but it causes more problems, that it is worth of.
I put it like this, I had it disabled in XP and Vista for a few months and I do not have it for now.
I have it enabled for another few months and nothing "bad" happened, but that depends on a user.
On the other hand using a utility, which would monitor it to allow/block WSH, sounds really interesting.
__________________
Real-Time: Nothing | On-Demand: Nothing [ Lenovo E525 | Yandex | CCleaner | KC SUMo | WiseCare 365 ] ( BlackViper / DEP / OpenDNS / UAC / WiFiRouter )
  #6  
Old September 11th, 2007, 11:19 AM
freakish's Avatar
freakish freakish is offline
Infrequent Poster
 
Join Date: Dec 2004
Posts: 46
Default Re: Windows Scripting Host -Should it be disabled to prevent malware?

My main concern are trojans and worms that are spread through removable drives like USB flash disks. Most of them enable autoplay (even if I have autoplay disabled) in the removable drives which bypasses most script blockers (I use AnalogX Script Defender). A sure-fire way of disabling these from running is disabling WSH from the registry.

Another concern of mine are programs that might not run or have problems running if WSH is disabled. Have any of you experienced problems with programs if WSH is disabled in the registry?
__________________
My Setup: Real-time: AntiVir | On-demand: ClamWin, SuperAntiSpyware| Web: Opera (fraud protection enabled), OpenDNS | Other: Bugmenot.com - bypass compulsory web registration, Windows Scripting Host Disabled, Script Defender
  #7  
Old September 11th, 2007, 12:06 PM
Mrkvonic Mrkvonic is offline
Linux Systems Expert
 
Join Date: May 2005
Posts: 7,435
Default Re: Windows Scripting Host -Should it be disabled to prevent malware?

Quote:
Originally Posted by BunkFace
My main concern are trojans and worms that are spread through removable drives like USB flash disks. Most of them enable autoplay (even if I have autoplay disabled) in the removable drives which bypasses most script blockers (I use AnalogX Script Defender). A sure-fire way of disabling these from running is disabling WSH from the registry.

Another concern of mine are programs that might not run or have problems running if WSH is disabled. Have any of you experienced problems with programs if WSH is disabled in the registry?

Hello,
If autoplay is disabled, you have nothing to worry about files on the usb drive.
Nothing will execute itself.
Mrk
__________________
http://www.dedoimedo.com

All your base are belong to us

Linux Systems Expert / Systems Programmer, Linux System Administrator, LPIC-1, LPIC-2 (WIP), GSEC, CCHD, CCHA
  #8  
Old September 11th, 2007, 09:25 PM
freakish's Avatar
freakish freakish is offline
Infrequent Poster
 
Join Date: Dec 2004
Posts: 46
Default Re: Windows Scripting Host -Should it be disabled to prevent malware?

I have autoplay disabled in TweakUI on all drive letters. But when I doubleclick the removable drives, autoplay becomes the default action - maybe there is another way to permanently disable autoplay?
__________________
My Setup: Real-time: AntiVir | On-demand: ClamWin, SuperAntiSpyware| Web: Opera (fraud protection enabled), OpenDNS | Other: Bugmenot.com - bypass compulsory web registration, Windows Scripting Host Disabled, Script Defender
  #9  
Old September 11th, 2007, 09:44 PM
Pedro's Avatar
Pedro Pedro is offline
Massive Poster
 
Join Date: Nov 2006
Posts: 3,493
Default Re: Windows Scripting Host -Should it be disabled to prevent malware?

I think that's not autoplay, rather what that usb driver is programmed to do when started.
If you're double clicking, it's not really auto is it?
  #10  
Old September 11th, 2007, 10:48 PM
Firebytes's Avatar
Firebytes Firebytes is offline
Frequent Poster
 
Join Date: May 2007
Posts: 859
Default Re: Windows Scripting Host -Should it be disabled to prevent malware?

I find the Windows Scripting Host unnescessary; at least on my machines. I have the Windows Scripting Host disabled via AVG Anti-spyware. I am still able to run the .bat files I need to run but other ActiveX based scripts and such can no longer run. Why run something you don't need especially if it causes security problems. I have also never had any program need the scripting host turned on to run, but there may be some out there that do. If I ever need it though I can easily enable it again. (I'm betting I never need it).

Here is a site with a discussion on whether WSH is needed or not. I am sure there are many more out there if you want to look.

http://fox.wikis.com/wc.dll?Wiki~RemovingWindowsScriptingHost~WIN_COM_API
  #11  
Old September 12th, 2007, 12:00 AM
freakish's Avatar
freakish freakish is offline
Infrequent Poster
 
Join Date: Dec 2004
Posts: 46
Default Re: Windows Scripting Host -Should it be disabled to prevent malware?

Quote:
Originally Posted by Pedro
I think that's not autoplay, rather what that usb driver is programmed to do when started.
If you're double clicking, it's not really auto is it?

AFAIK, doubleclicking will do the default action (in this case it is Autoplay). So instead of opening the drive in Windows Explorer, the action defined by Autoplay is executed.
__________________
My Setup: Real-time: AntiVir | On-demand: ClamWin, SuperAntiSpyware| Web: Opera (fraud protection enabled), OpenDNS | Other: Bugmenot.com - bypass compulsory web registration, Windows Scripting Host Disabled, Script Defender
  #12  
Old September 12th, 2007, 01:10 PM
lucas1985's Avatar
lucas1985 lucas1985 is offline
Global Moderator
 
Join Date: Nov 2006
Location: France, May 1968
Posts: 4,047
Default Re: Windows Scripting Host -Should it be disabled to prevent malware?

Quote:
Originally Posted by BunkFace
I have autoplay disabled in TweakUI on all drive letters. But when I doubleclick the removable drives, autoplay becomes the default action - maybe there is another way to permanently disable autoplay?
The right way to do this is to right-click the removable drive and choose "Explore" from the contextual menu.
__________________
"Pouvoir à l'Imagination. Power to the imagination. La imaginación al poder".

"Perfect is the enemy of good enough". Voltaire.
  #13  
Old September 12th, 2007, 07:47 PM
herbalist
 
Posts: n/a
Default Re: Windows Scripting Host -Should it be disabled to prevent malware?

Instead of disabling WSH entirely, I effectively made it an "admin only" function. I made SSM rules for Wscript.exe and Cscript.exe that block them from running when SSM's UI is disconnected, which is it's normal setting on my box. I also have Script Sentry installed so I can still read them before deciding if they're going to be allowed to run.

The result is that scripts can't be run at all by other users or accidentally allowed/run by me. I can choose to allow them when I need to but I get to examine them first.
Rick
  #14  
Old September 13th, 2007, 04:29 AM
EASTER's Avatar
EASTER EASTER is offline
Massive Poster
 
Join Date: Jul 2007
Location: U.S.A. (South)
Posts: 4,520
Default Re: Windows Scripting Host -Should it be disabled to prevent malware?

On my Windows 98 box theres now much more freedom to experiment with automation with .VBS files thru WScript/Cscript launchers since little if any attention is directed to them anymore.

Now on my XP Pro system though, like herbalist, i use ScriptSentry also. It is a perfect interceptor of many such extensions especially .reg files etc. Now that i think about it, one might say that programs like ScriptSentry were the real forerunners of HIPS. Think about that one.
__________________
★AX 64 Time Machine★
★Shadow Defender★| EQSecure v4.0 |#Sandboxie 4.08 beta# |FirstDefense-ISR|★FileChangeAlarm★ |Registry Backup VSS|
Maxthon 4 | X Iron 17.0 | Chromium 19.0 | Pale Moon 20.1

Microsoft Windows 8 64bit (UEFI/GPT) Secure Boot¶
¶Linux Mint 14 MATE¶
  #15  
Old September 15th, 2007, 03:35 AM
Longboard's Avatar
Longboard Longboard is offline
Massive Poster
 
Join Date: Oct 2004
Location: Sydney, Australia
Posts: 3,097
Default Re: Windows Scripting Host -Should it be disabled to prevent malware?

Quote:
i use ScriptSentry also

Ahh yes, the great Jason Levine: great little web site, tremendous resource.
http://www.jasons-toolbox.com/BrowserSecurity/

He still maintains his home page:
http://www.jasons-toolbox.com/

heh; one of the first reviews of BING that really got my attention:
http://www.jasons-toolbox.com/Articles/

i think I see him posting at DSLR occasionally.
__________________
Don't confuse me with someone who actually knows what they are talking about.
Linux Registered user 469135
Please, support Medecins Sans Frontieres

Last edited by Longboard : September 15th, 2007 at 03:48 AM.
  #16  
Old September 15th, 2007, 06:54 AM
EASTER's Avatar
EASTER EASTER is offline
Massive Poster
 
Join Date: Jul 2007
Location: U.S.A. (South)
Posts: 4,520
Default Re: Windows Scripting Host -Should it be disabled to prevent malware?

Quote:
Originally Posted by zapjb
I used to use ScripTrap. Simple & free.

zapjb. Thanks for the mention of ScriptTrap. Will check that one out myself.
__________________
★AX 64 Time Machine★
★Shadow Defender★| EQSecure v4.0 |#Sandboxie 4.08 beta# |FirstDefense-ISR|★FileChangeAlarm★ |Registry Backup VSS|
Maxthon 4 | X Iron 17.0 | Chromium 19.0 | Pale Moon 20.1

Microsoft Windows 8 64bit (UEFI/GPT) Secure Boot¶
¶Linux Mint 14 MATE¶
  #17  
Old September 15th, 2007, 06:57 AM
zapjb's Avatar
zapjb zapjb is online now
Very Frequent Poster
 
Join Date: Nov 2005
Location: USA - Back in a real State in time for a real President.
Posts: 1,961
Default Re: Windows Scripting Host -Should it be disabled to prevent malware?

You're welcome EASTER.
__________________
PCLinuxOS - Radically simple, it just works. That's why PCLOS is "The Distro Hopper Stopper!"
http://www.pclinuxos.com/

If you don't use Linux. You're going to HELL!!!
 

Wilders Security Forums > Privacy Related Topics > privacy problems « Previous Thread | Next Thread »

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Settings
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -4. The time now is 09:49 PM.


Powered by vBulletin® Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Copyright ©2002 - 2013, Wilders Security Forums