Showing posts with label USB Flash Drives. Show all posts
Showing posts with label USB Flash Drives. Show all posts

How to Secure Your PC

So you have just bought a new personal computer for your home (rather than for a workplace or as a server) and want to secure it (including protecting it from viruses and spyware). Privacy (including encryption, cryptography and anonymity) is a part of security but broad enough to need covering separately. Think of Privacy as the flipside of the coin. Making backups of data, defragging, system restore points are only indirectly related.

This article assumes you wish to use a network (such as the internet), share files on thumbdrives and that your PC might be physically accessible to others. If none of those apply, then your many of these steps may be redundant as your PC will already be quite secure.

Steps

  1. Operating system
    1. BACK UP YOUR DATA. Above all else, be sure your data is backed up, and that the backed up data is stored in such a manner that a single disaster will not destroy both copies. As a minimum, put any backup in closet in a separate room. In a water-proof and fire-proof container is better (i.e. in an envelope, in a well-burped zip lock baggy in a cheap safe or steel box with a 'fire rating'). In a separate building (like in an outbuilding or at a trusted friend or family member's home) is better, but somewhat less convenient.
    2. Choose an operating system based on its security and vulnerability (Linux has no known active viruses in the wild, OpenBSD is focused on security). Find out if it uses limited user accounts, file permissions and is regularly updated. Make sure you update your operating system with security updates and update your other software too.
    3. When setting up, use strong passwords in your user account, router account etc. Hackers may use dictionary attacks and brute force attacks.
  2. Antivirus and malware
    1. Install good antivirus software (particularly if you use P2P). Antivirus software is designed to deal with modern malware including viruses, trojans, keyloggers, rootkits, and worms. Find out if your antivirus offers real-time scanning, on-access or on-demand. Also find out if it is heuristic. Avast[1] and AVG[2] are very good free editions. Choose one, download and install it and scan regularly. Keep your virus definitions up to date by updating regularly.
    2. Download and install software to deal with spyware such as Spybot Search and Destroy[3], HijackThis[4] or Ad-aware[5] and scan regularly.
  3. Encryption
    1. Encrypt the data on your computer using FreeOTFE -this software works on all disks, not just USB drives
  4. Networking
    1. Download and install a firewall. Either ZoneAlarm[6] or Comodo Firewall[7] (Kerio, WinRoute or Linux comes with iptables). If you use a router, this gives an added layer of security by acting as a hardware firewall.
    2. Perform Penetration Testing. Start with ping, then run a simple nmap scan. Backtrack Linux[8] will also be useful.
    3. Close all ports. Hackers use port scanning (Ubuntu Linux has all ports closed by default).
    4. Consider running intrusion detection software (HIDS) such as ossec, tripwire or rkhunter.
    5. Choose a web browser based on its security and vulnerabilities because most malware will come through via your web browser. Disable scripts too (NoScript, Privoxy and Proxomitron can do this). Look at what independent computer security analysts (such as US-CERT[9]) and crackers (similar to hackers) say.
    6. When downloading software (including antivirus software), get it from a trusted source (softpedia, download, snapfiles, tucows, fileplanet, betanews, sourceforge) or your repository if you are using Linux.
  5. Physical
    1. Don't forget to think in terms of physical security, like setting a BIOS password and preventing access to your machine or its removable devices (USB, CD drive etc.).
  6. Use an external hard drive
    1. Get yourself an external storage device, like a USB 'Thumb Drive' for your most sensitive data. Don't buy the biggest, best, most expensive one with the largest capacity available unless you truly need it. Small, cheap and relatively valueless is best. Maybe shop for 'fast', though. If it's a FLASH format compatible with cameras, make sure it doesn't match any camera that you have, but that you do have a convenient flash reader that handles it.
    2. Again, encrypt everything you store on it using FreeOTFE
    3. Treat that external drive like you would an internal drive, and back it up occasionally to CD or some other media. Keep that backup very safe, such as in a safe deposit box. Then if your home burns, at least you still have a backup of your most sensitive things.
    4. Plug that drive in ONLY to access or modify the information that is on it. Unplug it (in windows, 'Safely Remove Hardware' first, in Linux/Unix/etc. 'unmount' it first) when you are finished.
    5. Physically disconnect from the network (if paranoid) whenever the drive is to be plugged in. If your connection is wireless, unplug or disable the wireless adapter, or unplug your router, (assuming you own it).
    6. If you are not a 'computer geek', get one to help you track down your files and help you migrate them so that software runs right while accessing your files from the external drive. Then make sure the files no longer exist on your computer's hard drive(s).
    7. Find some software that will securely wipe files and histories and such in a convenient, automatic manner. Use it after using the external drive.
    8. Move all sensitive files ('TAX', 'Quicken', etc.) that formerly resided on your computer's hard disk to that external drive. Make sure the originals are removed.
    9. Type a text file onto the external drive containing a list of all of your accounts, account passwords, contact information, etc. for future reference. Keep this file up-to-date. See 'Tips' for what is meant by 'text file'.
    10. Type a text file onto the external drive containing a list of all of the 'registration codes' and electronic receipts for services that you may have received as email. Keep this file/folder up-to-date. Include web sites, order numbers and whatever other pertinent information is needed to access support for those tools. Include software registration codes printed on CD sleeves, boxes, books, etc.
    11. Disable and clear EVERY form of 'Password' caching you have in your computer. Especially in your web browser(s). All manner of data mining spyware is well acquainted with the location, format, encryption method, etc. of password caches, and will usually steal those first. It's nice and convenient to log in, go to your bank's web site and instantly be in and accessing your account, but ANYONE can do that just as conveniently if they gain access to your machine. Your windows password is absolutely no protection against this.
    12. Don't leave email in your 'inbox' that has username/account/regcode/receipts/etc. information. Save that information somewhere (copy/paste if necessary) and remove the email. Put it onto the external drive when you get around to it.#
  7. Add 'private' documents and information next. Anything that won't cause you financial/identity harm, but would be embarrassing if they were read by others.
    1. Scan sensitive paper documents into files on the drive, assuming there is space. Use 'adequate' black&white scanner resolution to read their content. According to the nature of the documents, they can then be destroyed, but at least you'll still have a copy of them in case of fire or flood.
    2. Consider backing up other data from your computer onto it. You can use 'xcopy' or 'rsync' or Microsoft's 'SyncToy' or other tools to backup incrementally and keep files synchronized on the thumb drive.
    3. Consider adding some basic system recovery tools, like downloaded installations for certain applications you need to access your files, or at least links to where you can find them.
    4. When not in use, put the drive away somewhere obscure and secure, well away from your computer(s) or anything valuable.

Tips

  • There is an extremely popular podcast called Security Now[10].
  • Do the course at HackerHighSchool[11].
  • Consider security through obscurity or security by design.
  • BACK UP YOUR DATA
  • have (at least) two backup media, and keep one of them in your bank safe box. Backup on the other one, and every other month, when you go to the bank anyway, switch them. In case of a fire, you might lose your computer and your backup (together with potentially your home); but you still have a copy in the bank.
  • You might want to add a 'home inventory' to the drive. Just go through all the more expensive stuff you have and add the description, manufacturer, model, serial number, etc. to a text file, like the other ones. If you have an insurance claim for a loss, this will help a LOT.
  • In the US, the maximum total liability to you on credit card fraud is $50. 'Identity theft insurance' and 'fraud insurance' for your credit cards costs significantly more than $50 a year. How many times in your life has your credit card really been raped so badly that they haven't given you every disputed charge back?
  • Your bank accounts are a different matter from credit cards. If you can prove it wasn't you, they may refund your account up to the FDIC maximum amount covered, eventually. They might not. Keep your electronic bank account logins more secure than other things.
  • After you have manually entered user names and passwords for a while, you will need the external drive less and less to 'remember' these logins. It will become safer the less you use it.
  • Keep your external thumb/pen/flash card/etc. hidden somewhere safe and secure, away from the PC or any other high-value items when you don't need it. If you bought cheaply enough, and it's apparent that it is valueless, thieves will pass it over. Under the paperclips or among other valueless odds and ends in your 'junk' drawer, for instance. Maybe with the word 'Defective' written on it.
  • Consider creating an encrypted "virtual drive", using something like FreeOTFE and moving your data onto it. It will prevent unauthorized access should someone discover it.

Warnings

  • BACK UP YOUR DATA
  • The only was to be absolutely sure that your data is safe is to disconnect from the internet and keep your computer in an access-controlled location. For most users, this is not a realistic option though! Any breech in physical security may result in compromise, whether someone steals your computer, steals your hard drive or physically changes ROM to remove bios passwords and gain complete control of your computer. Encryption will prevent your files falling into the wrong hands, which is where tools such as FreeOTFE come in.
  • While the recommendations in this article can be used to nearly guarantee network security, especially on Unix-like systems, there could always be a security vulnerability that a sufficiently skilled hacker may exploit. In particular, there is no such thing as "complete" or "guaranteed" security. You can be more secure or less secure, but nothing is perfect.
  • DO NOT sell or give away your used thumb drive. Destroy it thoroughly with a hammer if you're not going to use it anymore. Deleted data on any storage device can still be recovered unless it was completely overwritten. On mechanical hard drives, it may need to be overwritten many times. Virtually all EEPROM/FLASH 'format' operations are 'quick formats'. The FAT and root directory are wiped, but every bit of every file that wasn't overwritten is still there to be found by a skilled technician, or any monkey with an 'unformat' tool.
  • A 'thumb drive' is very small and very easy to misplace. Do not lose your thumb drive!
  • If you discover this is a convenient way to carry work around, buy a DIFFERENT thumb drive for that purpose. Keep your 'private' one secure.
  • Learn what the 'standard' light-blinking looks like when accessing the device. It shouldn't keep running on and on unless you are doing something with the device, or have recently written something very large with write caching enabled.
  • Consider firewall, anti-spyware, and ON-DEMAND anti-virus, to be run fairly routinely. Most anti-virus solutions tend to cripple your machine worse than most viruses ever do, while performing 'real time scans' of everything you do, hoping to find a virus.
  • A LOT of people can't remember ANY username or password that they let Windows or their web browser, email client, etc. remember for them. When something happens to their PC, they lose access to all manner of services that they may have even paid for.
  • DO NOT use the same password for everything. If you use the same username and password as your BANK password for other non-critical things, then ANY number of administrators of any number of systems has your bank password, and might just idly try that account/password on some banks.
  • In the event that you have data that absolutely must be destroyed to prevent it falling into 'enemy hands', make sure it's on a separate, different-looking device than the one with your more routine personal, private things. You don't want to smash your do-or-die records with a hammer, and then realize you don't have access to your online bank account anymore, or no longer have about a dozen expensive registration codes for important software that you need. Similarly, you don't want to get the devices mixed up.
  • If data must be destroyed to prevent unauthorized access, a lot of conscientious backups of THAT kind of data is unwise.
  • If you encrypt the data, MAKE SURE you don't forget the encryption key. If you can't remember it, you will effectively lose all of the data.

Things You'll Need

  • A cheap FLASH drive of some sort; USB, CF, SD, MMC, MS, etc., that your computer has a place to plug it into.

Set The System's Boot Device Sequence

AMI-BIOS: For most versions, managing a PC's boot device sequence appears under the "Advanced BIOS Features" menu

If your PC has a relatively new motherboard, its BIOS will already include the functions necessary to support USB-attached boot media. If so, you need only make the right selections in that BIOS menu to boot from a USB flash drive. Older PCs, on the other hand, won't accept USB drives as valid boot devices. This means a BIOS update that supports USB boot options is necessary. You can find information about where to obtain such updates from your PC's (or motherboard's) user manual, on the driver CD included with the PC (or motherboard) or on the vendor's Website.

Normally, the hard disk precedes the USB flash drive (which falls under the heading of USB-HDD in most BIOS menus) in the boot order. If the hard disk contains a viable boot sector, the PC will start up automatically using the information it contains. Only when the hard disk suffers from a boot sector defect or an operating system can't be found will the PC boot from the USB flash drive instead.

Change this boot order. Plug the flash drive in, boot the computer and enter the BIOS setup utility. Normally, this means holding down the DEL or F2 key just as the computer powers up and begins the boot process. If you read the initial startup screen on your PC carefully, it will tell you exactly what you must do to access and alter your BIOS settings.

If your PC uses AMI-BIOS from American Megatrends, there are two possible ways to alter the boot device sequence. Each varies depending on the version of AMI-BIOS that's installed.

For the first variant, there is no menu entry named "Boot." Navigate to the sub-menu named "Advanced BIOS Features." Navigate to the item named "Boot Device Select... " and designate the USB flash drive as the first device in the "Boot Device Priority" list by selecting "1st" as its value. Then, hit the Esc key and set both the "Quick Boot" and "Full Screen LOGO Show" items to "Disabled" (this lets you see the BIOS messages during startup on the monitor). Exit the BIOS Setup utility using the "Save and Exit Setup" item in the main menu.

For the second variant, use the "Boot" menu to select the USB flash drive. It will show up under one of the following headings: "Hard Disk Drive", "Removable Device" or "Removable Storage Device. " Next, select the USB flash drive as "1st Drive" in the first position, then hit the Esc key. That device should appear in the menu named "Boot Device Priority" which might also show up as "Boot Sequence". Inside that menu, designate the USB flash drive as the "1st Boot Device", hit the Esc key and save all changes in the "Exit" menu by selecting "Exit and Save Changes".

The Phoenix BIOS that's so popular in notebook computers also lists the USB flash drive in its "Boot" menu (which might also appear as "Boot Device Priority"). In this case, the flash drive may show up as an entry in the "-HDD" or "-Removable Devices" sub-menu. Select the device class ("-Hard Drive" or "-HDD" for example) and use the F6 key to move the flash drive to the top of that list. Exit the BIOS Setup program by striking the F10 key, followed by the Enter key, to save all settings.

Expanding The Role Of USB Flash Drives

Flash drives aren't always recognized during the PC boot process. The USB flash drive controller and the PC's BIOS must be properly introduced to one another. That said, nearly all flash drives and PC can be configured so that the PC can boot from the flash drive.

You Need This: XP On The USB Pen Drive

In most cases, any compatible USB flash drive makes a suitable target for Windows XP installation. But the following system requirements must also be met:

  • A USB flash drive with at least 256 MB of storage is enough for the uses described in this article. Additional system tools or applications require more space. The upper bound limits for storage in this case is 2 GB - a byproduct of the tool's use of FAT16 for the local file system.
  • Most new motherboards recognize USB flash drives as valid boot media. But conventional motherboards that are more than two years old aren't likely to boot from a USB flash drive. But in many cases, this omission can be remedied through a BIOS update for that board.
  • 1.5 GB of unused disk space is the maximum needed for the tool to do its job, particularly if you want to pre-install Service Pack 2 and RAM disk capabilities. 190 MB of unused space is all that's needed to use PE Builder and the applications described in this article, however. Additional plug-ins will increase storage requirements, as will additional tools or software.
  • 512 MB of USB flash drive storage space is needed only if boot-up works from a RAM disk. Otherwise, 256 MB is big enough.
  • Access to a USB 2.0 port is not mandatory, though booting with a USB 1.1 port takes about five times longer.
  • A Windows XP Setup CD works fine as a foundation for PE Builder to generate the USB flash drive's contents.

Formatting The USB Flash Drive

Disk Storage Format Tool: This program from HP can format any USB flash drive

Most BIOS versions accept a USB flash drive as a boot disk only if it uses the FAT (File Allocation Table) file system. Before you can install Windows on the USB flash drive, it must first be formatted.

Warning! Windows XP also provides a tool to format USB flash drives, but the results of that process are error-prone. In a worst case situation, it can even destroy the flash RAM in a USB flash drive.

Installation requires the use of HP's freeware tool HP USB Disk Storage Format Tool instead. Once installed, you can run the program through this sequence of menu choices: Start, All Programs, HP Company. Select the USB flash drive you wish to format from the Device entry, then select FAT as the target file system for that device. Click Start to launch this process. Once complete, you must then copied the Windows XP boot files to the USB flash drive - namely,

%systemdrive%\boot.ini, %systemdrive%\ntldr, and %systemdrive%:\ntdetect (if you know the drive ID where these files live, use that instead - it's normally C). To make Windows Explorer display these files (they're ordinarily hidden), choose Folder Options... from the Tools menu, then click the View tab in the Folder Options window. Finally, in the Advanced Setting pick list, click the radio button underneath Hidden Files and folders that reads "Show hidden files and folders." Finally uncheck the box next to "Hide protected operating systems (Recommended)," so you can select and copy these all-important Windows XP files to the flash drive. The USB flash drive is now ready to boot your system. Next, you learn how to instruct your PC to boot from a USB flash drive.

 
 
 
 
Copyright © PcBerg