Windows Vista Tips

Windows Vista Tips > Newsgroups > Windows Server > How to Prevent Virus from Changing Read-Only and Hidden Attributes on Files Folders?

Reply
Thread Tools Display Modes

How to Prevent Virus from Changing Read-Only and Hidden Attributes on Files Folders?

 
 
W
Guest
Posts: n/a

 
      01-17-2012
We have our Windows 2003 servers fairly locked down by NTFS, and when a user
browses the Internet they are logged in as an ordinary user with minimal
access to the file system. So imagine my horror to see that a virus was
able to change every single file and folder on the file system to be
read-only and hidden, apparently using the attributes for files that are
affected by the ATTRIB commandline command.

Is the ability to use ATTRIB controlled by NTFS permissions? Or is this
the Write Attributes permission in NTFS? Unfortunately we probably did
enable that because it was generating too many false positive audit
messages.

The command

attrib -h -r *.* /s /d

apparently does NOT affect all folders under the current folder. Is there
a command that can be used that would change every file and folder from the
current location and down all subtrees?

Is there any utility that would restore any critical system files and
folders to their original attributes?

--
W


 
Reply With Quote
 
 
 
 
Char Jackson
Guest
Posts: n/a

 
      01-17-2012
On Tue, 17 Jan 2012 01:49:56 -0800, "W" <>
wrote:

>We have our Windows 2003 servers fairly locked down by NTFS, and when a user
>browses the Internet they are logged in as an ordinary user with minimal
>access to the file system. So imagine my horror to see that a virus was
>able to change every single file and folder on the file system to be
>read-only and hidden, apparently using the attributes for files that are
>affected by the ATTRIB commandline command.
>
>Is there any utility that would restore any critical system files and
>folders to their original attributes?


It sounds like you might need a tool called unhide.exe.
<http://www.bleepingcomputer.com/forums/topic405109.html>

 
Reply With Quote
 
Peter Foldes
Guest
Posts: n/a

 
      01-17-2012
Crossposted from microsoft.public.windows.server.general


"W" <> wrote in message
news: ...
> We have our Windows 2003 servers fairly locked down by NTFS, and when a user
> browses the Internet they are logged in as an ordinary user with minimal access to
> the file system. So imagine my horror to see that a virus was able to change
> every single file and folder on the file system to be read-only and hidden,
> apparently using the attributes for files that are affected by the ATTRIB
> commandline command.
>
> Is the ability to use ATTRIB controlled by NTFS permissions? Or is this the
> Write Attributes permission in NTFS? Unfortunately we probably did enable that
> because it was generating too many false positive audit messages.
>
> The command
>
> attrib -h -r *.* /s /d
>
> apparently does NOT affect all folders under the current folder. Is there a
> command that can be used that would change every file and folder from the current
> location and down all subtrees?
>
> Is there any utility that would restore any critical system files and folders to
> their original attributes?
>
> --
> W
>


 
Reply With Quote
 
David H. Lipman
Guest
Posts: n/a

 
      01-17-2012
From: "Peter Foldes" <>

| Crossposted from microsoft.public.windows.server.general
|
| "W" <> wrote in message
| news: ...
>> We have our Windows 2003 servers fairly locked down by NTFS, and when a
>> user browses the Internet they are logged in as an ordinary user with
>> minimal access to the file system. So imagine my horror to see that a
>> virus was able to change every single file and folder on the file system
>> to be read-only and hidden, apparently using the attributes for files
>> that are affected by the ATTRIB commandline command.
>>
>> Is the ability to use ATTRIB controlled by NTFS permissions? Or is this
>> the Write Attributes permission in NTFS? Unfortunately we probably did
>> enable that because it was generating too many false positive audit
>> messages.
>>
>> The command
>>
>> attrib -h -r *.* /s /d
>>
>> apparently does NOT affect all folders under the current folder. Is
>> there a command that can be used that would change every file and folder
>> from the current location and down all subtrees?
>>
>> Is there any utility that would restore any critical system files and
>> folders to their original attributes?
>>


A virus didn't hide files and folders, a System Fix trojan or other rogue
malware did.

If I understand this post, a user was ALLOWED to browse the Internet from
the POC of the Win2003 Server. If that was the case that was the mistake.
Nobody, users or administrators should be browsing on a server platform.
This is disrepecting the role of the server. A System Fix type trojan is
bad enough but that kind of behavioour (which should never be alloewd on a
server) coold have had more disaterous effects.

The first think to do is find and eliminate the System Fix type trojan and
then use Lawrence Abrams' (aka; Grinler) Unhide utility.
http://download.bleepingcomputer.com/grinler/unhide.exe

The Server may have to be booted in Safe Mode such that the trojan isn't
loaded. Note also do NOT dump TEMP folders prior to running Unhide. Unhide
may also be executed in Safe Mode.


--
Dave
Multi-AV Scanning Tool - http://multi-av.thespykiller.co.uk
http://www.pctipp.ch/downloads/dl/35905.asp

 
Reply With Quote
 
Dave Warren
Guest
Posts: n/a

 
      01-17-2012
In message <> someone
claiming to be "David H. Lipman" <DLipman~nospam~@Verizon.Net> typed:

>If I understand this post, a user was ALLOWED to browse the Internet from
>the POC of the Win2003 Server. If that was the case that was the mistake.
>Nobody, users or administrators should be browsing on a server platform.
>This is disrepecting the role of the server.


It really depends on the role of this particular server. If it's a
terminal server, then this could be well within it's designed usage
scope.
 
Reply With Quote
 
David H. Lipman
Guest
Posts: n/a

 
      01-17-2012
From: "Dave Warren" <dave->

| In message <> someone
| claiming to be "David H. Lipman" <DLipman~nospam~@Verizon.Net> typed:
|
>> If I understand this post, a user was ALLOWED to browse the Internet from
>> the POC of the Win2003 Server. If that was the case that was the
>> mistake.
>> Nobody, users or administrators should be browsing on a server platform.
>> This is disrepecting the role of the server.

|
| It really depends on the role of this particular server. If it's a
| terminal server, then this could be well within it's designed usage
| scope.

Browsing the Internet should not be within an accepted scope of the use of a
Terminal Server session.

--
Dave
Multi-AV Scanning Tool - http://multi-av.thespykiller.co.uk
http://www.pctipp.ch/downloads/dl/35905.asp

 
Reply With Quote
 
Dave Warren
Guest
Posts: n/a

 
      01-17-2012
In message <> someone
claiming to be "David H. Lipman" <DLipman~nospam~@Verizon.Net> typed:

>From: "Dave Warren" <dave->
>
>| In message <> someone
>| claiming to be "David H. Lipman" <DLipman~nospam~@Verizon.Net> typed:
>|
>>> If I understand this post, a user was ALLOWED to browse the Internet from
>>> the POC of the Win2003 Server. If that was the case that was the
>>> mistake.
>>> Nobody, users or administrators should be browsing on a server platform.
>>> This is disrepecting the role of the server.

>|
>| It really depends on the role of this particular server. If it's a
>| terminal server, then this could be well within it's designed usage
>| scope.
>
>Browsing the Internet should not be within an accepted scope of the use of a
>Terminal Server session.


Why not?
 
Reply With Quote
 
David H. Lipman
Guest
Posts: n/a

 
      01-17-2012
From: "Dave Warren" <dave->

| In message <> someone
| claiming to be "David H. Lipman" <DLipman~nospam~@Verizon.Net> typed:
|
>> From: "Dave Warren" <dave->
>>

>|> In message <> someone
>|> claiming to be "David H. Lipman" <DLipman~nospam~@Verizon.Net> typed:
>|>
>>>> If I understand this post, a user was ALLOWED to browse the Internet
>>>> from
>>>> the POC of the Win2003 Server. If that was the case that was the
>>>> mistake.
>>>> Nobody, users or administrators should be browsing on a server
>>>> platform.
>>>> This is disrepecting the role of the server.

>|>
>|> It really depends on the role of this particular server. If it's a
>|> terminal server, then this could be well within it's designed usage
>|> scope.
>>
>> Browsing the Internet should not be within an accepted scope of the use
>> of a
>> Terminal Server session.

|
| Why not?

Browsing should be done on the client machine (workstation) and *never* done
on a Server because the chances of malware infections (infestation for you
Kurt) are increased significantly and this would be isolated to a
workstation (client). An infection on a Server affects all users and their
ability to use the services that Server provides. Thus a violation of the
role of the Server. One can simply state it reduces its IA status.


--
Dave
Multi-AV Scanning Tool - http://multi-av.thespykiller.co.uk
http://www.pctipp.ch/downloads/dl/35905.asp

 
Reply With Quote
 
Ant
Guest
Posts: n/a

 
      01-17-2012
"Peter Foldes" wrote:

> Crossposted from microsoft.public.windows.server.general
> "W" wrote:
>> The command
>>
>> attrib -h -r *.* /s /d
>>
>> apparently does NOT affect all folders under the current folder.


Yes it does.

>> Is there a command that can be used that would change every file and
>> folder from the current location and down all subtrees?


Yes, attrib, just as you show above works fine. Maybe it doesn't work
on your system because of the permissions you set (which the malware
bypassed or temporarily reset) or because the malware is still active
and preventing any change.

And as has been said, WTF are you doing browsing the internets from a
server?


 
Reply With Quote
 
Dustin
Guest
Posts: n/a

 
      01-19-2012
"David H. Lipman" <DLipman~nospam~@Verizon.Net> wrote in
news:3rudnR0qL--:

> From: "Dave Warren" <dave->
>
>| In message <> someone
>| claiming to be "David H. Lipman" <DLipman~nospam~@Verizon.Net>
>| typed:
>|
>>> From: "Dave Warren" <dave->
>>>

>>|> In message <> someone
>>|> claiming to be "David H. Lipman" <DLipman~nospam~@Verizon.Net>
>>|> typed:
>>|>
>>>>> If I understand this post, a user was ALLOWED to browse the
>>>>> Internet from
>>>>> the POC of the Win2003 Server. If that was the case that was the
>>>>> mistake.
>>>>> Nobody, users or administrators should be browsing on a server
>>>>> platform.
>>>>> This is disrepecting the role of the server.

>>|>
>>|> It really depends on the role of this particular server. If it's a
>>|> terminal server, then this could be well within it's designed
>>|> usage scope.
>>>
>>> Browsing the Internet should not be within an accepted scope of the
>>> use of a
>>> Terminal Server session.

>|
>| Why not?
>
> Browsing should be done on the client machine (workstation) and
> *never* done on a Server because the chances of malware infections
> (infestation for you Kurt) are increased significantly and this would
> be isolated to a workstation (client). An infection on a Server
> affects all users and their ability to use the services that Server
> provides. Thus a violation of the role of the Server. One can
> simply state it reduces its IA status.
>
>


A virus would prefer the users allow it access to the server. Makes it's
life alot easier from an infection POV. [g]


--
Character is doing the right thing when nobody's looking. There are too
many people who think that the only thing that's right is to get by, and
the only thing that's wrong is to get caught. - J.C. Watts
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off




1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59