Results for Registry

Prefetcher | What is it? and Forensic Analysis.

Tuesday, November 09, 2010
It is indeed very vital for a computer forensic analyst to get the details of the application we launch,the timestamp and the path.Here in this post we will discuss how to can find that and the tools needed for this...so lets start.......
Prefetcher
What is a Prefetcher?

It is a feature added to Ms Windows Xp to speed up or improve boot time and the loading time of applications we run on a windows box.During booting a large no of files are loaded into the memory and there by a specific amount of time is consumed in this process.But the prefetcher keeps a track of the files and the data that are loaded during boot time and make a trace of it.So when again the system is booted then this information stored by the prefetch can be used and this can certainly reduce the boot time...the same thing happens with the application that we launch after the system has been logged in.

Where we can find this prefetch?

1.It is stored in the a folder named "Prefetch" in the system root "%SYSTEMROOT%\Prefetch",in my testing system it is found in "C:\WINDOWS\Prefetch"

2.It can be enabled by changing the registry value at as shown in the image below.(By default it is enabled.)

"HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management\PrefetchParameters"


Information stored in Prefetch file:

*When a application is loaded or launched then a prefetch file is created with .pf extension.Suppose an application called "XYZ.exe" is launched then a prefetch file is created in the "Prefetch" directory and named is in a format as "XYZ.EXE-0870E38D.pf" as shown in the image below.

*Above the hash file contains the path of the application.If the same application is launched from different location then also two different files are created.

*The Prefetch contains information like:

-Name of the application

-The no.of times the application is launched.

-Volume serial number

-Dll used by the application.

-Serial numbers of external thumb drives.

-MD5 hash

-Some binary data and some unicode information

-Volume information

-Application path

-Timestamp of volume creation.

Forensic view of Prefetch file:

If some unknown application say a malware is launched from the hard disk or from external drive then the launch time its path can be found out.If the malware is being deleted still then its leaves its traces in the prefetch which can come handy to a forensic analyst.


How to get the information:

Once you browse to the "Prefetch" folder then u can open the .pf file using a hex editor but it may be bit difficult and confusing.So here I will show you few tools which you can use to retrieve the information.

1.Windows File Analyser.(Download)

2.Win Prefetch View.(Download)

3.Prefetch Parser.(Download)


Here I have show you the screen shots of "Win Prefetch View" , here you cannot find all the information mentioned above but the others tools that I mentioned above can surely retrieve that so do give it a try.

"If you find this post useful and informative do post your comment and share it."
Prefetcher | What is it? and Forensic Analysis. Prefetcher | What is it? and Forensic Analysis. Reviewed by Satyajit (Admins,a.k.a Satosys) on Tuesday, November 09, 2010 Rating: 5

Few Security Tips for Windows user.

Saturday, September 11, 2010
Well!! security is the buzzing word these days because of new form of  attacks and threats.These attacks are mainly targeted to Windows user compared to Linux or other OS in the series.One thing I must say that 90% of the victims fall in the trap of attackers due to there lack of alertness and there own flaws.Lets see how we can avoid these types of attacks if not completely but to some extent.

1.I would recommend that always update your OS and software that are installed if the update is available.If  you do not do that then there may be some vulnerability in your present OS or software and the attacker can find that by Fingerprinting and Banner grabbing and plant an exploit for it.

2.Attacker  install R.A.T or Keylogger on a remote PC by tricking the user by social engineering.So I will recommend you to always look out for the extension of the file before clicking on it.It may sometime be the case that the file sent to you may look like an image but having an extension of an executable format(.exe).How to tackle it? Read here.

3.Always use an updated AntiVirus,Anti-Logger,Link Checker,Site Advisor and keep with you a latest rescue disk of an Antivirus.
  • Anti-logger:I would recommend  Zemana antilogger compared to KeyScrambler because the later can protect your keystrokes from the browser window but Zemana has anti-keylogger,anti-screen logger,anti-webcam logger,anti-clipboard logger.
  • Link Checker:You can use Dr.Web link checker,by this you can scan a file before downloading it.Just right click on the required link and click on the Dr.web icon.It is also available as a Firefox addon.
  • Site Advisor:Here you have two options,you can use Macfee site advisor or WOT both can be integrated with your browser.
  • Rescue Disk:I would recommend using Kaspersky's.Download the .iso file and burn it into a Cd and can use it.
4.If  sometime you have left your PC  "ON"  in your absence then it may be possible that someone may have plugged in an USB (Pendirve) and done some data transfer or some unethical activity.Read here how to find out this.

5.Most of the time attackers bind a file with another file inorder to trick the victim.Learn how to find this,Read here.

6.A simple Autorun.inf can even crash your PC.Learn how to avoid it,Read here.

7.Have you ever given a thought that someone may have logged into your box in your absence.Learn how to find out,Read here.

8.Always look out for print and file sharing option before using internet.I would recommend to disable it as it can open gateway for netbios attack.Follow the path  Control panel > Network Connection > Right click on the desired icon >Networking Tab > Disable the print & file sharing option.

9.Always use a strong password to your administration account,try to access internet form a limited user account rather than from administration account.

10.Use a good firewall rather than using the default windows firewall,you can choose from Comodo or Zone Alarm but I would recommend using Zone Alarm even if it is the free version.

I must say even if you follow all these tips still then you cannot make your PC 100% hack proof because nothing is non-hackable.I recommend to follow these tips so that you can avoid certain attacks or threats to some extent.

If you find these tips helpful and read worthy then do drop a comment,it will be appreciated.
Few Security Tips for Windows user. Few Security Tips for Windows user. Reviewed by Satyajit (Admins,a.k.a Satosys) on Saturday, September 11, 2010 Rating: 5

Autorun.inf :Removal,Threats & Countermeasures.(Part-I)

Monday, August 09, 2010
What is an Autorun.inf ?

It is just an instruction file which tells the operating system what executable file to use,commands and other programs to launch automatically.Actually it is not a virus but i will show you how it can be used to run malware/virus codes.A autorun.inf  can be opened  with a text file format and i will show you how to edit it.
What is an Autorun.inf
 Threats imposed by Autorun.inf :

As i said before that it is not a virus but it can be used to execute virus code/malware,I will explain this through a simple example below.
[autorun]
open=Viruscode.bat----------(1)
icon=Viruscode.ico
[autorun.mips]
open=filename2.exe----------(2)
icon=filename2.ico
[autorun.alpha]
open=filename3.exe----------(3)
icon=filename3.ico
a)In the above examples you can see  the first "open=" is assigned to a ".bat" file,by batch programming a killer virus can be made and put in the same folder containing the autorun.inf so it can be executed automatically.Suppose the autorun.inf in there in the USB,when the USB is plugged in then the autorun.inf file will launch the ".bat" file there by the commands in the ".bat" file get executed.
 c:\windows\system32\shutdown -s -f
The above code can be copied to a text file and saved as ".bat" extension,when executed it will shutdown the PC forcefully.It is just a simple example with batch file more extensive damage can be done with it.

b)The filename2.exe can also be a Trojan/Keylogger.

c)The filename3.exe can be a exploit for the vulnerabilty of the system.

Autorun Disabling:

One of the secured way is to disable the autorun option in Windows xp,Vista.For doing that you have to install the corresponding patch/update file from windows.
-Update for Windows XP (KB967715)(DOWNLOAD)

-Update for Windows XP x64 Edition (KB967715)(DOWNLOAD)

-Update for Windows 2000 (KB967715)(DOWNLOAD)

- Windows Vista must have 950582 update.
We will use the registry edit to disable Autorun option.

For Vista and  Xp,this method is used to disable autorun feature in all the drives.
 Note:Click on the images to zoom them.
1)Click Start & type Gpedit.msc in"run" for Xp and in "start search box" for Vista and follow the instruction as shown in the image below.

2)After selecting the properties use the "enabled option" and use the appropriate option from the drop down menu as shown in the image below.

3)Now apply and restart the PC,its done after that.


Method 2:
This method has more fuctionality than the previous one as you can disable autorun option for specific drives.

1)Click the start button and type "regedit" in the run box and hit enter.

2)Now search for the following path :
HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\policies\Explorer\NoDriveTypeAutorun
Now follow the instruction given in the image below.

3)Right click and select modify,put the appropiate hex value as shown in the images below.

4)Use the appropriate Hex value in the Value data space,below the Hexcode and the corresponding function is mentioned.
Image source:Microsoft support.

5)Click ok and restart the PC,its done after that.

Autorun.inf can be removed by Command Prompt and few Tools also.....so visit for the Part-II of this post.

If you find this post worthy to read then do drop a comment...it will be appreciated.

IF YOU LIKED THE CONTENT OF THIS BLOG THEN DO "VOTE" FOR IT........Click here to Vote!
Autorun.inf :Removal,Threats & Countermeasures.(Part-I) Autorun.inf :Removal,Threats & Countermeasures.(Part-I) Reviewed by Satyajit (Admins,a.k.a Satosys) on Monday, August 09, 2010 Rating: 5

How to retrieve USB history and delete them ?(Part-I)

Sunday, July 18, 2010
Well!! nowadays we use our USB port to plugin many devices like mp3 players,ipods,pendrives etc,it is also very true that these devices are also vector of  many viruses,trojans and backdoors etc which can be lethal sometimes.Today  I am  going to discuss how we can keep a track of  all the USB devices that  were connected to our computer(WIN Xp / 7 / Vista).This trick can be very helpful in case you find that some data has been stolen  from your PC.

The USB history in a PC can be tracked by two methods:

a)By looking directly into the registry files.

b)Or by using Tool.
Note:Click on the images to zoom them.
Lets first start with Registry file method.

1.First open up  Run and  type "regedit"  and hit enter.

Note:USB history can be found at two places in registry
 --HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\USB
 --HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\USBSTOR

2.A registry editor  window open up,in that window follow the steps as shown in the image below.
(Here we will look into the second  registry path mentioned above but you can also try with the first one)
In the above image you can see that after I connected a pendrive and its information is present there in the registry.

So lets  see how we can do this with a tool.The tool that we will be using for this is Nirsofts's USBDVIEW. (Download)

1.Download the Tool  and just run , it will show all the devices that were connected to your PC.

Note:Serial numbers are  unique for external devices but internal devices as you can see have same serial number.

2.Now select anyone of the external device and right click on it and select Properties.It will show you all the details about the external device as shown in the image below.

Now we have retrieved the history of the USB  devices so,lets see how we can delete these history informations.

1.Open up the registry editor window as shown in the above steps then follow the on screen steps as shown in the image below.

2.After completing all the steps in the above image you will be able to delete the registry key or subkey.
By doing this the traces are removed....but still then  it can be detected so we will cover that in Part-II.

Note:For Linux  you can use USBVIEW(Download)

If you find this post  worthy enough to read do drop a comment  it will be appreciated. :)



IF YOU FIND THIS BLOG WORTH READING THEN DO "VOTE" FOR IT........Click here to Vote!
How to retrieve USB history and delete them ?(Part-I) How to  retrieve USB history  and delete them ?(Part-I) Reviewed by Satyajit (Admins,a.k.a Satosys) on Sunday, July 18, 2010 Rating: 5

How to Log UnAuthorized Login Attempts in WIN (XP,7 or VISTA)??

Wednesday, July 07, 2010
Have you ever thought  that some person would have tried to  login to your  box in your absence....lol  :) may be you are unaware of it till now and he may be planting some other trick(may be he has already read my last post lolzz) to get success!!!.
Ok today I am going to tell you how u can  track that....it is very simple,you do not need any extra software for it  if you have Mr.Gates's OS(WIN XP.7 OR VISTA) running in your box.By default that facility in disabled but i will show you how to enable it and what info it contains.
So lets start..........

1.First open  up RUN and type  Gpedit.msc as shown below and hit enter.

2.After that you will see an console window and follow the onscreen information as shown below......


3.When you reach the 7th step in the above image then double click on it to change its settings as shown below.
In the above image you can see that both the options as marked  are disabled 

a)So if you want only to log your login success then enable success  in the above image.

b)If you want to log login failures then enable failure in the above image.

c)If you want to log both login  success and failure attempts then enable both.
 After selecting your suitable option click ok.

4.Then inorder to test if it works or not,logout from your system and try few wrong passwords and  then login again.

5.Now right click on the "My computer" icon on the desktop and navigate to where it is written "Manage"

6.Now after clicking manage in the above step a new console will open and then follow the steps as illustrated in the image below.
Here you can see there are many success login attempts but there is one failure login attempt...marked as step 5,so double click on it to see the information it contains.

7.After double clicking on it  the image below shows the information in it..just give it a look.... :)
As you can see it contains the time & date,username,reason etc
I hope this will add to ur knowledge.....and you will be any day  helped by this.... :)

If you find this article interesting and worth reading so plzz  drop your comments it will be appreciated.... :)
How to Log UnAuthorized Login Attempts in WIN (XP,7 or VISTA)?? How to Log  UnAuthorized Login Attempts in WIN (XP,7  or VISTA)?? Reviewed by Satyajit (Admins,a.k.a Satosys) on Wednesday, July 07, 2010 Rating: 5
Powered by Blogger.