Girl Geekette dotNet

Where the Girl Ends and the Geekette Begins


Archive for the '2003' Category

Alternate Data Streams Windows 2003 Test

Needless to say, I was inspired by an article on Windows SecurityOpens in a new Window that did a test using Windows 2000 to try my own test with Windows XP using NTFS. Now, I have decided to test it using Windows 2003. Below are my findings and screen by screen snapshots (Thumbnails are shown, click them to see a larger picture that opens in a new window):

ADS test using Windows 2003

1. I begin by making a test directory and copying the c:\windows\system32\calc.exe to it. Notice the original date and timestamp (last modified time and date stamp) of the file is 4/3/2003 8:00AM and the size is 113KB.

ADS Test Picture 1

Here is a listing in DOS that shows the directory with the copied calc.exe file.

ADS Test Picture 2

2. I append an ADS (Alternate Data Stream) to the Windows Calculator program I copied to the test directory with another Windows program (Notepad - c:\windows\notepad.exe).

ADS Test Picture 3

Notice the size of the calc program did not change, bit the timestamp (last modified time and date stamp) DID change.

ADS Test Picture 4 Ads Test Picture 5

3. Next, I executed the new ADS notepad.exe using the standard command start.

ADS Test Picture 6

On the desktop, the NOTEPAD program popped up, even though I had executed the CALC program in the command line.

ADS Test Picture 7

4. By using CTRL + ALT + DELETE to get the Task Manager, I noticed that my test varied a bit. In the task manager, I could clearly see that calc.exe was running (which I had executed at the command prompt) but, unlike the simple demonstration using Windows 2000, Windows 2003 displayed the calc.exe name and ADS command, much like Windows XP.

ADS Test Picture 8

This is where I must stop and note that depending on the version of windows used, things can be displayed slightly different.




Search: Cosmos | BlogPulse
Submit: Digg This | Shout this! | Slashdot
Bookmark: Del.icio.us | Furl It | Spurl | Tag!RawSugar | Simpy This! | Shadows Tag! | Blink It | My Web
GirlGeekette dotNet Tags: , ,
Technorati Tags: , , , , ,
Archived in Security , Ramblings , 2003 , Windows
No Comments »

Top of the Page Top of the Page









NTFS Alternate Data Streams

While searching around, I happen to run across something that caught my eye. It deals with Microsoft’s NTFS and security. ADS 0r Alternate Data Streams - was originally created to provide compatibility with HFS (Macintosh Hierarchical File System).

Although widely unknown by most that ADS even exists, it is has been used by sometime by people to exploit Windows Boxes that use NTFS. Not all anti-virus programs will pick up alternate data streams. It is easy to exploit the ADS and let it go undetected for some time. Although with technology getting better, some anti-virus scanners are now picking up the ADS when changes have been made to the default configuration.

Security Focus has a demonstration of how this is used by rooting or exploiting a lab box using the MS04–011 vulnerability. The Metaspoilt Framework can allow someone to break into a computer via the lsass overflow.

The demonstration can be found at securityfocus.com/infocus/1822

An easier way to demonstrate the idea of ADS is to use a simple command such as

“type c:\anyfile.exe > c:\winnt\system32\calc.exe:anyfile.exe”

This will "fork" or run the calculator program in Windows with any executable that is chosen. So, by running a command like this, almost anything can be hidden behind a valid (Windows) program. When seen in task manager, this program looks like or almost like a normal program (depending on the operating system, and that is explained later) and most people will pay no notice.

Many people have noticed when using the MSCONFIG with windows that there are some programs in the startup file that might look like that in the path. It is possible to write it so that in the registry, a program that is used by ADS will start up with every boot up of the Windows box. (Think spyware, viruses, trojans and the like)




Search: Cosmos | BlogPulse
Submit: Digg This | Shout this! | Slashdot
Bookmark: Del.icio.us | Furl It | Spurl | Tag!RawSugar | Simpy This! | Shadows Tag! | Blink It | My Web
GirlGeekette dotNet Tags: , , ,
Technorati Tags: , , , , ,
Archived in Security , 2000 , XP , Ramblings , 2003 , Windows
No Comments »

Top of the Page Top of the Page










About the Geekette

I am a Computer and Network Technician. I love what I do for a living, as my work is also my hobby.

All of the technical information from the original Aleeya.net site became this site - GirlGeekette dotNet - and the remaining became what is now known as Aleeya dotNet. This site is where I store all of my notes related to computers and Technology so I may share it with others.

  Google


Web This site

Feeds

Validations

Ratings

Computer Links

Blog Links

Security Links

Geek Links

You Are Here

You are currently browsing the archives for the 2003 category.

Archives

Powered by WordPress with a modified version of Ragiels Dream theme.

43 queries complete in 0.226 seconds.