Showing posts with label password. Show all posts
Showing posts with label password. Show all posts

Friday, March 16, 2012

Using Common Phrases Makes Your Passphrase Password Useless: Here’s How to Pick a Better Phrase [Security]

 We've discussed how using passphrases as passwords can boost your security, but if you've chosen a phrase used in every-day speech, you're not doing yourself—or your data—any favors. According to a new Cambridge study, a common phrase, like, say, "outofthepark," is only marginally more secure than a dictionary word, and anyone looking to crack your password already knows to try common phrases along with common words. If you prefer passphrases, here's how to make them more secure.


 


The reason that many password systems won't allow you to choose dictionary words as you passwords—or at least require you to add numbers, capitals, or special characters to those words—is because the first thing a hacker will do to try and guess a password is try every word in the dictionary to see if they can get in. Even swapping out "i" for "1" or "e" for "3" often isn't enough—the fact that those tricks have been around for as long as they have means that those common substitutions are easily added to your dictionary list and included with the brute force attack. The goal of encouraging passphrases instead is to create credentials that are entirely nonsensical to a password cracking utility, but memorable to the human who needs to access a given system every day. Photo by Francis Storr.


The trouble though is that so many people, when they embrace passphrases, use common phrases from books, popular movies, memorable quotes, sports teams, or other proper nouns that are easily guessed. A group of researchers from Cambridge University recently published a study (PDF link) where they found that using a dictionary of these common phrases allowed them to crack open about 8,000 passphrases in Amazon's old PayPhrase system. They conclude that passphrases as a password system ultimately provide less then 30 bits of security, which they note is too weak to withstand most online attacks. Ars Technica explains what this means in plain terms:



The "30 bits of security" means the chances of a single guess cracking a four-word passphrase would be one in 2^30. What's more, the two-word phrases cracked in the study provided just 2^20.8 (or 20,656/0.0113) bits of security. Another way of expressing the same finding is that a dictionary of slightly less than 21,000 phrases is enough to guess the login credentials that slightly more than 1 percent of people in the real world will use.


Admittedly, 1 percent of phrases is a very small number, but it's still cause for concern, and drives home the point: any security system, even if it's well built and sufficiently complex, can easily fall prey to user-introduced patterns. In the end, the user—and their password—is almost always the weakest link.


 


This doesn't mean that all hope is lost for passphrases, or that you should give up on them and go back to standard strong passwords. Honestly, if you can combine the two, you should—the strength of a strong password with letters, numbers, varying case, and special characters is improved significantly when strung together as a phrase. The key is to pick a phrase that's easy for you to remember, but not, for example, your favorite sports team, or the name of your city and state strung together, or the make and model of your car. Yes, it diminishes the ease of memorization, but it vastly improves your security.


The study explicitly points out that "multi-word phrases, if chosen naively according to natural language tendencies, are not as effective at mitigated guessing attacks as alternate choices, such as choosing 2 random words or choosing a personal name at random." So, in order to boost your passphrase security, you need to pick words that matter to you, but don't matter to anyone else. For example, "NissanAltima" may not be a dictionary word, but it's a proper noun that's easily guessed. Instead, you might try "My03AltimaIsBlue."


When we discussed The XKCD passphrase generator, we pointed out another more secure method worth repeating. If you want to use your favorite lyric from a song, grab the first couple of characters from the words in your favorite line, instead of stringing the whole lyric together. We proposed that a Jackson 5 lover might extract a password from the lyrics "Oh baby give me one more chance to show you that I love you" and come up with "obgmomctsytily," which is significantly more secure.


The XKCD Password Generator itself is a robust tool to generate passwords, mostly because the words it strings together are random—they have no meaning behind them, and would be difficult to break in a dictionary attack, and even harder if you mix case and special characters. You could also take it up a notch and use the shift-to-right method for your passwords, which really makes them unintelligible.


Finally, once you've done all of this, and built a great passphrase that's difficult to crack and hard to break, do yourself a favor and plug it into a password management system like LastPass, KeePass, or 1Password, so you can use different strong passphrases for every service you use, and one memorable one to get into your password vault.

Saturday, March 10, 2012

Exposing the Password Secrets of “Apple Safari”

Safari is one of the top 5 browsers known for its innovative look and feel reflected in every product of Apple!  It offers one of the best ways to browse online, greater support for HTML5, and other new features that make the web even better experience.


Like other browsers, Safari also comes with built-in ‘password manager’ feature for securely storing and managing the user's web login passwords.


This article is set to expose – in first ever public disclosure - password secrets of Safari including the stored password location, encryption algorithm and code for decryption of stored passwords!


Safari Password Storage Location


Safari features good password manager with better security model and encryption algorithms to keep it as much as secure as possible. Unlike other browsers such as Firefox, Chrome, you cannot see the stored passwords in Safari.


You can enable or disable the Safari password manager by toggling the option through "Settings -> AutoFill -> Usernames & Passwords" (as shown below). Once enabled Safari will prompt to save the password for every website login for the user. Upon confirmation, website URL along with username & password are saved to secret password file.


 


Safari stores all such web login passwords at a secret file named 'keychain.plist' at following location (based on platform).


[Windows XP]
C:\Documents and
Settings\\Application
Data\Apple Computer\Preferences
[Windows Vista & Windows 7]
C:\Users\\AppData\Roaming\
Apple Computer\Preferences


Safari stores the contents of 'keychain.plist' in 'Binary Property List' file format - variation of Property List [Reference 1] format used by Apple for storing binary data.


Here is how a typical 'keychain.plist'  file looks like,


 


Decoding the Safari 'Keychain' Secrets!


Looking at above 'keychain file' content, there is hardly anything you can make out. Only hint that you get here is the 'bplist' keyword at the beginning of file.


After long search hours on 'bplist' keyword, I finally figured out the way to decode its content to plain XML file. Apple provides the tool called 'plutil.exe' for playing with these 'Property List' files. You can find this console tool at following location,


[Windows x86]
C:\Program Files\Common
Files\Apple\Apple Application
Support
[Windows x64]
C:\Program Files (x86)\Common
Files\Apple\Apple Application
Support


Here is the command to covert cryptic 'keychain.plist' file to easily readable 'keychain.xml' file


plutil.exe -convert xml1 -s -o
c:\keychain.xml
"c:\users\administrator\appdata\roam
ing\apple
computer\preferences\keychain.plist"


This is how it will look like after decoding to XML file.



 


Internals of Safari Encryption Algorithm


The generated XML file (as shown above) contains encrypted password data along with website URL and user login information. This stored password data is encoded using BASE64 algorithm.


Note that original password data stored in 'keychain.plist' file is not encoded with BASE64. When we convert it to XML using Plutil tool, the encrypted password data is further encoded with BASE64 format.


Once you decode the password using BASE64 you will see original encrypted password data. Safari uses standard 'Windows Data Protection' mechanism (DPAPI) [Reference 2] to encrypt the password data with user isolation layer. Windows DPAPI provides functions like CryptProtectData/CryptUnprotectData for easy encryption/decryption of user oriented sensitive data such as passwords.


Safari uses CryptProtectData [Reference 3] along with static entropy (salt) to securely encrypt all website login passwords. Finally it is stored in the 'keychain.plist' file along with other user login information.


Decoding & Decryption of Safari Password


As mentioned in previous section, successful Safari password recovery will require following 2 steps:-
1. Base64 Decoding of password data from XML file
2. Windows DPAPI decryption of encrypted data


First you have to use standard Base64 decoder algorithm [Reference 5] to get original password data from encoded password bytes in XML file.


After that we have to perform decryption of this encrypted password data. In order to decrypt this encrypted password data we need to figure out salt data used in CryptUnprotectData.  Here is the salt data that I found during my reverse engineering work.


 


Entire salt generation algorithm and decryption functions are within the Apple shared library 'CFNetwork.dll' which is present at following location.


[Windows x86]
C:\Program Files\Common
Files\Apple\Apple Application
Support
[Windows x64]
C:\Program Files (x86)\Common
Files\Apple\Apple Application
Support


Here is the disassembly of CFNetwork.dll from IDA Pro Disassembler [Reference 6] showing the location of salt generation & decryption function.


Initially salt generation algorithm appeared to be dynamic but after few reversing session on different systems my doubts cleared and it was just static data. Salt data is of 144 byte size and ends with standard signature pattern as 'com.apple.Safari' as shown in the above screenshot.
Once you get hold of the salt data, the encrypted password can easily be decrypted using CryptUnprotectData function [Reference 4] as shown below:



BYTE salt[] = {
0x1D, 0xAC, 0xA8, 0xF8, 0xD3, 0xB8, 0x48, 0x3E, 0x48, 0x7D, 0x3E, 0x0A, 0x62, 0x07, 0xDD, 0x26,
0xE6, 0x67, 0x81, 0x03, 0xE7, 0xB2, 0x13, 0xA5, 0xB0, 0x79, 0xEE, 0x4F, 0x0F, 0x41, 0x15, 0xED,
0x7B, 0x14, 0x8C, 0xE5, 0x4B, 0x46, 0x0D, 0xC1, 0x8E, 0xFE, 0xD6, 0xE7, 0x27, 0x75, 0x06, 0x8B,
0x49, 0x00, 0xDC, 0x0F, 0x30, 0xA0, 0x9E, 0xFD, 0x09, 0x85, 0xF1, 0xC8, 0xAA, 0x75, 0xC1, 0x08,
0x05, 0x79, 0x01, 0xE2, 0x97, 0xD8, 0xAF, 0x80, 0x38, 0x60, 0x0B, 0x71, 0x0E, 0x68, 0x53, 0x77,
0x2F, 0x0F, 0x61, 0xF6, 0x1D, 0x8E, 0x8F, 0x5C, 0xB2, 0x3D, 0x21, 0x74, 0x40, 0x4B, 0xB5, 0x06,
0x6E, 0xAB, 0x7A, 0xBD, 0x8B, 0xA9, 0x7E, 0x32, 0x8F, 0x6E, 0x06, 0x24, 0xD9, 0x29, 0xA4, 0xA5,
0xBE, 0x26, 0x23, 0xFD, 0xEE, 0xF1, 0x4C, 0x0F, 0x74, 0x5E, 0x58, 0xFB, 0x91, 0x74, 0xEF, 0x91,
0x63, 0x6F, 0x6D, 0x2E, 0x61, 0x70, 0x70, 0x6C, 0x65, 0x2E, 0x53, 0x61, 0x66, 0x61, 0x72, 0x69
};
DATA_BLOB DataIn;
DATA_BLOB DataOut;
DATA_BLOB OptionalEntropy;
DataIn.pbData = byteEncBuffer;     //encrypted password data
DataIn.cbData = dwEncBufferSize;   //encrypted password data size


OptionalEntropy.pbData = (unsigned char*)&salt;
OptionalEntropy.cbData = 144;
if( CryptUnprotectData(&DataIn, 0, &OptionalEntropy, NULL, NULL,0, &DataOut) == FALSE ) {   
printf("CryptUnprotectData failed = 0x%.8x", GetLastError());
return FALSE;
}
//Decrypted data is in following format => Password Length [4 bytes] + Pass Data []
BYTE  *byteData = (BYTE *) DataOut.pbData;
DWORD dwPassLen = byteData[0];
memcpy(strPassword, &byteData[4], dwPassLen);
strPassword[dwPassLen] = 0;
printf("Decrypted Password %d - %s",  dwPassLen, strPassword);


Above program initializes the salt data and then passes it to CryptUnprotectData along with decoded password data to finally get the decrypted data. First 4 bytes of this decrypted data contains length of the password and then follows the password in clear text!


That is all it takes to successfully decrypt the Password from Safari Store!


Recovering Safari Passwords using SafariPasswordDecryptor


 


SafariPasswordDecryptor [Reference 7] is the FREE software to automatically recover website login passwords stored by Safari web browser. It helps in instantly decoding and decrypting all the stored website login passwords from Safari Keychain file.


It presents both GUI as well as command line interface, the later is more helpful for Penetration testers in their work. Apart from normal users who can use it to recover their lost password, it can come in handy for Forensic folks in their investigation.


SafariPasswordDecryptor works on most of the Windows platforms starting from Windows XP to latest operating system, Windows 7.


References
1. Apple's 'Property List' File format
2. Windows Data Protection  Technology – DPAPI
3. CryptProtectData Function
4. CryptUnprotectData Function
5. Base64 Decoder Algorithm – C/C++ Program
6. IDA Pro – Most Popular Disassembler on the Planet
7. SafariPasswordDecryptor - Apple Safari Password Recovery Software

Friday, March 9, 2012

Note to self: Encrypt data, memorize password

Note to self: Encrypt data, memorize password | InSecurity Complex - CNET News CNET News @import "http://i.i.com.com/cnwk.1d/Ads/common/css/SponsoredTextLink/sponsoredTextLink.live.css"; Manage Packages With UPS My Choice Home Reviews Cell Phones Camcorders Digital Cameras Laptops TVs Car Tech Forums Appliances Cell Phone Accessories Components Desktops E-book Readers Games and Gear GPS Hard Drives & Storage Headphones Home Audio Home Video Internet Access Monitors MP3 Players Networking and Wi-Fi Peripherals Printers Software Tablets Web Hosting You are here: News Latest News Mobile Startups Cutting Edge Media Security Business Tech Health Tech Crave Apple Microsoft Politics & Law Gaming & Culture Blogs Video Photos RSS Download Windows Software Mac Software Mobile Apps Web Apps The Download Blog CNET TV How To Computers Home Theater Smartphones Tablets Web Marketplace Log In | Join Log In Join CNET Sign in with My profile Log out
CNET News InSecurity Complex Note to self: Encrypt data, memorize password Elinor Mills by Elinor Mills February 24, 2012 6:37 PM PST Follow @elinormills

Court rules that prosecutors can't force people to decrypt data that could potentially be used against them.

In a case that serves as a reminder to: a) use encryption, and b) memorize the encryption pass-phrase, an appeals court has ruled that people have a constitutional right not to be forced to decrypt data that potentially includes evidence that could be used to prosecute them in court.

The Fifth Amendment privilege against self-incrimination that prohibits authorities from forcing a suspect to reveal the combination to open a lock on a safe in an investigation also applies to the digital equivalent--data locked up with encryption, the U.S. District Court of Appeals for the Northern District of Florida ruled yesterday.

Compelling a suspect to reveal the pass-phrase, in either case, would essentially be forcing testimony out of that person that could be used against him or her, the court said.

"Requiring (defendants) to use a decryption password is most certainly more akin to requiring the production of a combination because both demand the use of the contents of the mind, and the production is accompanied by the implied factual statements...that could prove to be incriminating," the court said.

Marcia Hofmann, senior staff attorney at the Electronic Frontier Foundation, praised the decision, saying it means that just because information is in digital form doesn't preclude people from enjoying constitutional protections.

"Encryption is going to be used more and more by average people," she said. "The important thing here is that the government is not going to be able to force people to decrypt data just to basically conduct a fishing expedition."

The situation might be different if the suspect were to have written down the pass-phrase, she said. The key to this case is that the information sought was in the mind of the defendant.

Even though the data being protected could easily be obtained with a warrant if it were not locked up with encryption technology, the act of using the cryptographic lock puts it in a protected zone if it can only be accessed by memory.

Related storiesJudge: Americans can be forced to decrypt their laptopsDOJ takes swipe at EFF over encryption passphrasesJudge orders defendant to decrypt PGP-protected laptop "This ruling keeps with the spirit of the Fifth Amendment, which is intended to make sure law enforcement does its job," Hofmann said. "If they're going to prosecute you, they have to make the case against you and can't force you to help them out with that."

Encryption not only helps people maintain their privacy from data thieves but it is also helpful in protecting civil liberties in the event of overreaching law enforcement or government investigations, Hofmann said.

This case, which involves an unidentified suspect accused of possessing child pornography, is different from one in Colorado in which a court ordered a defendant to decrypt the contents of a laptop seized by authorities. In the Colorado case, prosecutors had reason to suspect that evidence that would be useful to the investigation was on the laptop, she said. Law enforcement agents had recorded a conversation between the defendant and her husband in which she made reference to specific files on the computer that would be useful in the case, according to Hofmann.

"We still think the case in Colorado was wrongly decided, but that's the critical difference that led the courts to come to two different decisions," Hofmann said.

The EFF provides more analysis in this blog post. The defendant had used the TrueCrypt hard drive encryption program.

Monday, March 5, 2012

Why Windows 8 says that your Password is Incorrect?

Are you trying to log into Windows 8 using your Windows Live ID (or Microsoft Account) but the system thinks that your password is incorrect? Here's a possible reason.


Microsoft has made one important change in Windows 8 around user accounts. You can sign into Windows 8 using your online Microsoft Account (the new name for Windows Live ID) instead of creating a local user account. There are two advantages here:

If you work across multiple computers that are connected to the same Microsoft Account, your various Windows settings, themes, passwords and app purchases will automatically sync* across all these computers.This is good from security point of view as well. When someone logs into a new Windows 8 computer using your Microsoft Account, the system will send you an instant email notification to confirm the same. You can easily disable that connection by following a a link available in the same email message.[*] If you have used the Google Chrome browser that is connected to your Google Account, you know how the browser can sync your bookmarks, extensions and installed apps across multiple computers where you have logged in with the same Google Account. Microsoft is taking a similar approach but at the larger OS level.

I encountered a strange issue yesterday. I connected my Windows 8 machine to my Windows Live account but whenever I tried logging into the machine, the system would say that the password is wrong though I was entering the correct password (I could still sign-in to my Hotmail and SkyDrive account using the same Windows Live credentials).


 


It turned out that the problem was related to the length of the password that I was using with my Windows Live ID.


The password field on the Windows 8 login screen can only accept 15 characters so if you are using a long password, the system won’t let you in. It looks like a UI bug to me or they could have set 15-characters as the new maximum length of passwords in Windows 8.


In either case, if you have the habit of using “really” long passwords, you might have to visit your Windows Live profile and change your password to a shorter less-secure password to get inside Windows 8.


Also see: How to Install Windows 8 – Step by Step Guides

Sunday, March 4, 2012

Login to your computer using Webcam instead of typing password

Most of people use password protection to their computers for preventing unauthorized access. Therefore, the correct password must be typed in order to access to the system when the user login in to the computer. So this is also somewhat tedious and old way. However, with new technology, modern laptops such as Dell XPS laptops use face detection techniques for getting access to the system with webcam. There, user can previously enter his face details using the webcam. When login to the computer, it compares image of the face with the registered face and if both images are similar, then the system allows to access. Today, I will discuss on how to login to your computer or a laptop using the webcam instead of typing the password. Hence, i will introduce an application called Luxand Blink Pro for this purpose.

Get Luxand Blink Pro from here



Install Luxand Blink Pro in your PC and then run it, small icon will appear in the taskbar
Now, it will open the main window so here you can enable the Face authentication method. Click on the camera button to select the camera then it will show all the cameras which connected to your PC. Choose the webcam as a camera and after click Apply button. Now, you can register your face with the application. Click on Remember button in the main menu.
When you register your face with the application, the webcam capture your face and the details will be saved.
To register your face, look at the monitor and slowly turn your head from left to right. Then it will process the information and it will be saved.
Enter the Login password after capturing the face details. In addition to this features, you can see login history with a login persons picture and Pro settings can also be used to enable face lock. After that, you can log off or restart the computer for testing this application. You will be prompted to access using two methods so that you can choose face detection for login to the system. In the same way that you as before, you can look at the monitor and turn your head from left to righ then the system will be recognize your face and allow for accessing. Following figure was taken while recognizing the face at the login window.
Download

Click the link to get Luxand Blink

Thursday, February 23, 2012

Login to your computer using Webcam instead of typing password

Most of people use password protection to their computers for preventing unauthorized access. Therefore, the correct password must be typed in order to access to the system when the user login in to the computer. So this is also somewhat tedious and old way. However, with new technology, modern laptops such as Dell XPS laptops use face detection techniques for getting access to the system with webcam. There, user can previously enter his face details using the webcam. When login to the computer, it compares image of the face with the registered face and if both images are similar, then the system allows to access. Today, I will discuss on how to login to your computer or a laptop using the webcam instead of typing the password. Hence, i will introduce an application called Luxand Blink Pro for this purpose.

Get Luxand Blink Pro from here


Install Luxand Blink Pro in your PC and then run it, small icon will appear in the taskbar
Now, it will open the main window so here you can enable the Face authentication method. Click on the camera button to select the camera then it will show all the cameras which connected to your PC. Choose the webcam as a camera and after click Apply button. Now, you can register your face with the application. Click on Remember button in the main menu.
When you register your face with the application, the webcam capture your face and the details will be saved.
To register your face, look at the monitor and slowly turn your head from left to right. Then it will process the information and it will be saved.
Enter the Login password after capturing the face details. In addition to this features, you can see login history with a login persons picture and Pro settings can also be used to enable face lock. After that, you can log off or restart the computer for testing this application. You will be prompted to access using two methods so that you can choose face detection for login to the system. In the same way that you as before, you can look at the monitor and turn your head from left to righ then the system will be recognize your face and allow for accessing. Following figure was taken while recognizing the face at the login window.
Download

Click the link to get Luxand Blink


View the original article here

Wednesday, February 22, 2012

How to hack a wireless network with password

Sorry, I could not read the content fromt this page.Sorry, I could not read the content fromt this page.

View the original article here