RSS



Go Back   bit-tech.net Forums > bit-tech.net > Article Discussion

Reply
 
Thread Tools
Old 16th Mar 2007, 11:28   #1
WilHarris
Just another nobody
 
WilHarris's Avatar
 
Join Date: Jun 2001
Location: Oxford
Posts: 2,671
WilHarris is on a distinguished road
A field guide to crypto

http://www.bit-tech.net/bits/2007/03..._crypto/1.html



Digg if you feel it's worth it:

http://www.digg.com/security/A_field...omputer_crypto

WilHarris is offline   Reply With Quote
Old 16th Mar 2007, 11:52   #2
DougEdey
I pwn all your storage
 
DougEdey's Avatar
 
Join Date: Jul 2005
Location: Southampton
Posts: 13,933
DougEdey is just really niceDougEdey is just really niceDougEdey is just really niceDougEdey is just really nice
I've personally found out how annoying it is to have a strong AES method. I used Axcrypt on some secure data a while ago (it was data that was given to me and had to be secure) I still have it, but can't remember the bloody password!
__________________
Burnout: Paradise Stats!XBL: DougEdey Bindi
PSN ID: DougEdey
Twitter


Last edited by DougEdey; 16th Mar 2007 at 12:31.
DougEdey is offline   Reply With Quote
Old 16th Mar 2007, 12:24   #3
riggs
^_^
 
riggs's Avatar
 
Join Date: Jul 2002
Location: Lincs.
Posts: 1,645
riggs is on a distinguished road
Very interesting read, made my lunch break less boring!

Quote:
I somehow doubt anyone who didn't grow up watching The New Yankee Workshop will recognize that line, but those of you who did probably got a chuckle.
"The most important rule is to wear these, safety glasses" - Norm's a legend!
__________________
Hell hath no fury like a hippo with a machine gun
PSN ID: buster2006
riggs is offline   Reply With Quote
Old 16th Mar 2007, 16:07   #4
rasmithuk
What's a Dremel?
 
Join Date: Mar 2005
Location: Norwich, UK
Posts: 6
rasmithuk is on a distinguished road
Just a few 'little' corrections

'Hashed data is incredibly hard to crack, but since it destroys the original data there is no real "conversion method" back.'

A hash is designed to be unreversable, cracking it is, in most cases, impossible. The best you can do (with the latest MD5/SHA1 attacks) is subsitute a block of data in the file with a random block.

'This concept is what makes UNIX password hashes so secure in comparison to Windows, which simply encrypts its user data in a basic, readily known method.'

NTLM used to do this (circa NT4), but that disapeared a long time ago.
For domain machines, Kerberos is used instead, which is more secure as the machine you're connecting to never knows your password, or even a hash of it (hashes can be used to perform replay attacks when a recorded response is used). So in actual fact most UNIX boxes are more succeptable to direct password stealing attacks then Windows machines, especially if you're using NIS anywhere.

'you get your devices logged onto it, hide your SSID'

This does nothing to protect you against hackers. Hiding your SSID doesn't slow down most of the hacking tools available. Also, XP SP2 machines assume that the SSID is available and this hiding tends to make your connection unreliable, so people give up and go back to WEP assuming that as they're hidden they can't be attacked. Not the best situation to be in.

'The beauty of SSH is its asymmetrical encryption...'

SSH is not asymmetric, it's too slow. SSH uses Diffie-Hellman key exchange at the beginning of a session to generate a unique random key that is used to symetrically encrypt the traffic for that session.
rasmithuk is offline   Reply With Quote
Old 16th Mar 2007, 16:23   #5
Ramble
Ginger Nut
 
Ramble's Avatar
 
Join Date: Dec 2005
Location: Exeter, Devon/Wantage, Oxfordshire
Posts: 5,235
Ramble will become famous soon enough
Nice little article. I knew most of the back story but the applied crypto stuff could be useful.
Also, I liked the fact that you tackled the weakest part of any encryption - the human part.
__________________
Kirk, Spock, McCoy, and Ensign Ricky are beaming down to the planet. Guess who's not coming back.
Ramble is offline   Reply With Quote
Old 16th Mar 2007, 17:08   #6
Da Dego
Brett Thomas
 
Da Dego's Avatar
 
Join Date: Aug 2004
Location: Cleveland, OH USA
Posts: 3,906
Da Dego is on a distinguished road
Hey rasmiithuk,

Thanks for the input, but I have a couple contentions with your corrections.
Quote:
Originally Posted by Hashes
A hash is designed to be unreversable, cracking it is, in most cases, impossible. The best you can do (with the latest MD5/SHA1 attacks) is subsitute a block of data in the file with a random block.
The best you can hope for is to put something in and have it be properly accepted, not deconstruct the entire list. That would be why I said "there is no conversion method back." I also stated that it is destructive. Therefore, this isn't a correction, it's simply a clarification of my point.
Quote:
Originally Posted by UNIX vs Windows password security
NTLM used to do this (circa NT4), but that disapeared a long time ago.
For domain machines, Kerberos is used instead, which is more secure as the machine you're connecting to never knows your password, or even a hash of it (hashes can be used to perform replay attacks when a recorded response is used). So in actual fact most UNIX boxes are more succeptable to direct password stealing attacks then Windows machines, especially if you're using NIS anywhere.
Particularly for your remote connections, you make a very valid point. However, in the article I spoke of direct, physical access to the box. I bring this up because users may have a roommate in college or in a flat that has access to the physical machine - in that case, Windows becomes far less secure.

Hand me a Windows box (server or client), a knoppix CD and a couple tools of my choosing and I'll have an entire list of all viable login accounts and their passwords. Try doing that with a UNIX box and you'll get nowhere (see your own argument on hashes above). I DO agree with the point you're making about remote login, but please keep in mind that it wasn't what I was intending to say.

Quote:
Originally Posted by SSID point
This does nothing to protect you against hackers. Hiding your SSID doesn't slow down most of the hacking tools available. Also, XP SP2 machines assume that the SSID is available and this hiding tends to make your connection unreliable, so people give up and go back to WEP assuming that as they're hidden they can't be attacked. Not the best situation to be in.
I have several XP machines running on hidden SSIDs, so I'm not sure what your point is. My basic concept for hiding it is to add one more layer of difficulty for a hacker, not to make it foolproof. Sadly, no wireless security is truly "safe" - there needs to be a balance between safety and speed in a streaming method. That's one reason why I put it in as an after-point, though maybe I should have clarified better.

The point of hiding the SSID isn't total hacker protection, it's simply to add one more layer of difficulty. If you are sniffing packets, you now have to determine one more factor before you can use the network in the first place. Most run of the mill, drive-by hacking types will never bother to do something like this. Your SSID should always be hidden when you are not actively inviting people to join your networks - it's a good security precaution to just get in the habit of.
Quote:
Originally Posted by SSH
SSH is not asymmetric, it's too slow. SSH uses Diffie-Hellman key exchange at the beginning of a session to generate a unique random key that is used to symetrically encrypt the traffic for that session.
For this one, I'm just gonna have to say you're wrong. I can handle arguments about where I didn't go into detail enough, but I'd appreciate that you at least give me credit for doing my research first.

The entire creation is done at random and is transparent to the user, but it is indeed assymetric encryption. I can give you a long list of sources explaining the asymmetric-key methods used in SSH, but this should give you a good beginner read:

http://en.wikipedia.org/wiki/Secure_Shell

Make sure to read down to the bottom where it talks about the encryption standards.

Anyhow, thanks for the challenges to some of my points, apparently I didn't clarify them well enough for more discerning eyes
__________________
"Frankly that seems overkill. iluvtrees2 arguing with spec is the intellectual equivalent of a bunny rabbit taking on a pissed-off lion." - Nexxo

Last edited by Da Dego; 16th Mar 2007 at 17:13.
Da Dego is offline   Reply With Quote
Old 16th Mar 2007, 17:17   #7
WilHarris
Just another nobody
 
WilHarris's Avatar
 
Join Date: Jun 2001
Location: Oxford
Posts: 2,671
WilHarris is on a distinguished road
http://www.digg.com/security/A_field...omputer_crypto

WilHarris is offline   Reply With Quote
Old 16th Mar 2007, 17:42   #8
rasmithuk
What's a Dremel?
 
Join Date: Mar 2005
Location: Norwich, UK
Posts: 6
rasmithuk is on a distinguished road
Always fun to have an discussion .

I agree with your hash points, just me reading your description in a funny way.

As for the password storing I believe this depends on the settings of Windows. I'm pretty sure the swap to kerberos can be done on a client machine, but not 100% sure on that.
That said, there are attacks using rainbow tables against unix password tables. They aren't pretty, but they do work. And as you pointed out yourself, once someone has physical access to a machine you're pretty much screwed unless the whole disk is encrypted.

I only mentioned the SSID thing as it's a well know bug with the XP wireless stack. That said, I think it mainly causes problems when the connection isn't very strong.

On SSH we're both wrong, and right .
During setup, key-exchange and other things are done using public key encryption. However, if you look at RFC 4253 (as reference from the Wikipedia article) on page 9 you'll see the list of encryption types used for the transport layer. All of these are symmetric. Page 17 defines the encryption type field used to describe the client-server and server-client channel as: 'A name-list of acceptable symmetric encryption algorithms (also known as ciphers) in order of preference.'

So while the setup is asymmetric the data after that is encrypted using a symmetric cipher, which was the point I was (badly) trying to get at .

Sorry if some of my 'corrections' seemed a bit blunt. It's been a long day at work and I should know better to post replies without having a break to re-read them first.
rasmithuk is offline   Reply With Quote
Old 16th Mar 2007, 17:49   #9
Da Dego
Brett Thomas
 
Da Dego's Avatar
 
Join Date: Aug 2004
Location: Cleveland, OH USA
Posts: 3,906
Da Dego is on a distinguished road
Well said.

I see your point on the SSID, I hope my clarification makes more sense then. And as for SSH, yes, I guess we can say we're both correct. The initial handshakes are done using public-key methods, allowing for authentication. After that, the cypher changes to a symmetric standard. Since the connection method is asymmetric, it guarantees a safe channel with authentication (which is the basic point of public-key to begin with). Once authenticated, it can switch safely to a symmetric method using a randomly-generated key between client and host. That goes quite a bit above and beyond the "field guide" approach of basics and applications, but I agree it's a valid amendment. My point in pointing out the public-key method is to show that there is indeed an authentication mechanism in place for SSH, something that can't be done with solely symmetrical means.

Don't worry about the discussion, that's what a forum is for. It's nice to know where I missed the boat on my explanations and to have some deeper insight provided by our readers. I appreciate the contribution!
__________________
"Frankly that seems overkill. iluvtrees2 arguing with spec is the intellectual equivalent of a bunny rabbit taking on a pissed-off lion." - Nexxo
Da Dego is offline   Reply With Quote
Old 16th Mar 2007, 19:04   #10
Nature
Supermodder
 
Nature's Avatar
 
Join Date: Nov 2005
Location: Jinan, China
Posts: 417
Nature is on a distinguished road
So how do I make nachos?
__________________
Peace, Love, Empathy, Respect, Generosity, Smiles, and Hugs
Nature is offline   Reply With Quote
Old 16th Mar 2007, 20:39   #11
Woodstock
So Say We All
 
Woodstock's Avatar
 
Join Date: Sep 2006
Location: New Zealand
Posts: 1,657
Woodstock is on a distinguished road
well that just showed how lil a know about security, think ill give it a re-read some time
__________________
Hell hath no fury like a hippo with a machine gun.
Woodstock is offline   Reply With Quote
Old 16th Mar 2007, 21:21   #12
David_Fitzy
Multimodder
 
David_Fitzy's Avatar
 
Join Date: Jan 2004
Location: Kiwiland
Posts: 197
David_Fitzy is on a distinguished road
I like these articles, (Introduction to HDDs, this one) is this going to be a frequent type of article?
__________________
Duel of the Duals!

Athlon XP2400+ | Generic FX5200 | SOYO Platinum Dragon Ultra | 1GB Crucial Ram | Maxtor PATA 7200 HDDs: 2x40Gb (RAID0), 2x200Gb(RAID0) | Jeantech Phong case | Black DVD-everything | Black Skythe Kama-meter | dreaded blue LED fans (didn't read the description properly)

At least it's all one colour scheme now
David_Fitzy is offline   Reply With Quote
Old 16th Mar 2007, 21:46   #13
metarinka
I *am* a Dremel
 
metarinka's Avatar
 
Join Date: Feb 2003
Location: Michigan
Posts: 1,623
metarinka is on a distinguished road
next we need an introduction to hiding data. As that's where the money is at, there's 2 techniques I'm familiar with the first which I can't find anymore is storing text files in mp3's by changing the encoding algorythm slightly If you had 3-5gigs of mp3's it would be a tough time just trying to find the mp3 that stored the text file. The next issue which as far as i know hasn't been cracked yet is to grab a stack of digital pics, open them up in photoshop and then just burn in a message one or 2 shades lighter or darker in an image if it's a large photo it will be invisible to the naked eye and it will be invisible unless you know which photo and where to look and then you raise the contrast in that area. I suppose there's million's of ways of hiding data which is what I'm more interested in as it's much harder to crack a file you can't find.

anyways nice article I was always a little clueless to file encryption mainly as I never had a reason to encrypt anything, but it's was an interesting read
metarinka is offline   Reply With Quote
Old 17th Mar 2007, 00:52   #14
cebla
Multimodder
 
Join Date: Sep 2004
Location: Canberra, Australia
Posts: 107
cebla is on a distinguished road
Quote:
Originally Posted by Da Dego

Hand me a Windows box (server or client), a knoppix CD and a couple tools of my choosing and I'll have an entire list of all viable login accounts and their passwords.
I am not sure how you would do that. All the tools I am aware of let you change the password or bruit force (or dictionary) crack them, but I have not seen anything that will tell you what the password is in a timely fashion unless the passwords are not very strong. It took me around 5 hours to crack my local passsword when I tried it. My more secure password hadn't been cracked after 2 days non stop.

Recently I have tried cracking into a couple of windows machines (a customer had locked them selves out) by replacing the password hash and it doesn't seem to work properly with XP SP2.
cebla is offline   Reply With Quote
Old 17th Mar 2007, 01:52   #15
Aankhen
Supermodder
 
Join Date: Oct 2005
Location: India
Posts: 406
Aankhen is on a distinguished road
Excellent article. It was a fascinating read. (Da Dego)++

Now, one question. Let's say I'm paranoid (I am in fact paranoid, but let's pretend I'm actually not and we're just pretending I am ). I've got my USB key which is completely secured using TrueCrypt, except for a small portion which carries DSL (leaving aside how that would work, for now). So I go to a random computer and use QEMU to boot up DSL and get my own secure environment. There's just one concern I have: I'm not sure how QEMU's emulation works, but could a keylogger running in the host operating system (presumably Windows) still log all my keystrokes even within QEMU?
__________________
It sure took me a long time to realize I hadn't changed my forum settings since returning from Canadia-land.
Aankhen is offline   Reply With Quote
Old 17th Mar 2007, 09:38   #16
Glider
/dev/null
 
Glider's Avatar
 
Join Date: Aug 2005
Location: Belgium
Posts: 4,102
Glider has a spectacular aura aboutGlider has a spectacular aura about
Quote:
Originally Posted by cebla
I am not sure how you would do that. All the tools I am aware of let you change the password or bruit force (or dictionary) crack them, but I have not seen anything that will tell you what the password is in a timely fashion unless the passwords are not very strong. It took me around 5 hours to crack my local passsword when I tried it. My more secure password hadn't been cracked after 2 days non stop.

Recently I have tried cracking into a couple of windows machines (a customer had locked them selves out) by replacing the password hash and it doesn't seem to work properly with XP SP2.
It really is that easy... Boot the knoppix cd, copy over the SYSTEM and SAM files, use 2 tools (bkhive and samdump2) to extract the password and done... (goolge it, it'll pop up quite easily)...

But to be fair, Linux isn't more secure when one has physical acces to the system. If you boot into single user (or recovery) mode, you have all the rights you want. Remote access on the contrary is a fair bit more secure
__________________
There Are 10 Types Of People, Those Who Know Binary and Those Who Don't
Glider is offline   Reply With Quote
Old 17th Mar 2007, 10:45   #17
g3n3tiX
Resident frenchie
 
Join Date: Jun 2006
Location: localhost
Posts: 593
g3n3tiX is on a distinguished road
BIOS password rules ! (only if you can't clear CMOS, otherwise it's pretty useless too, I was thinking about laptops.)
As soon as you get physical access and BIOS control (boot sequence...) it gets a tad easier.
I've got a CD you can boot with and reset the windows passwords of any user accounts on WinXP or 2k.

the TOR browser could also be mentioned, as it anonymizes the user. (not very sure)
g3n3tiX is offline   Reply With Quote
Old 17th Mar 2007, 12:04   #18
specofdust
Banned
 
specofdust's Avatar
 
Join Date: Feb 2005
Location: Aberdeen, UK, EU
Posts: 7,622
specofdust has a spectacular aura aboutspecofdust has a spectacular aura about
Excellent article Brett, a very interesting introduction to something I knew a little about. Thanks

Personally I'd played around with Truecrypt once before. I considered using it for my entire RAID. I realised though that while running Truecrypt prevents other people from getting access to my data, if I screw up, it prevents me gaining access to my data. Weighing up the possibility of others getting my data against the possibility of me screwing up and losing my key or somehow messing up my access to a huge ammount of data, I chose not to. That said, I wasn't aware that you could use a file on a USB key as a password type thing, which does sound like it woud work extremely well.
specofdust is offline   Reply With Quote
Old 17th Mar 2007, 12:52   #19
Glider
/dev/null
 
Glider's Avatar
 
Join Date: Aug 2005
Location: Belgium
Posts: 4,102
Glider has a spectacular aura aboutGlider has a spectacular aura about
Quote:
Originally Posted by specofdust
That said, I wasn't aware that you could use a file on a USB key as a password type thing, which does sound like it woud work extremely well.
It works great, untill you mistakenly format your USB drive like a friend of mine did...
__________________
There Are 10 Types Of People, Those Who Know Binary and Those Who Don't
Glider is offline   Reply With Quote
Old 19th Mar 2007, 03:42   #20
cebla
Multimodder
 
Join Date: Sep 2004
Location: Canberra, Australia
Posts: 107
cebla is on a distinguished road
Quote:
Originally Posted by Glider
It really is that easy... Boot the knoppix cd, copy over the SYSTEM and SAM files, use 2 tools (bkhive and samdump2) to extract the password and done... (goolge it, it'll pop up quite easily)...

But to be fair, Linux isn't more secure when one has physical acces to the system. If you boot into single user (or recovery) mode, you have all the rights you want. Remote access on the contrary is a fair bit more secure
Ok I just looked up both bkhive and samdump2 and they only seem to extract the password hashes. This means you still have to use a dictionary or brute force attack to crack the passwords. If you have week passwords then the dictionary crack will give you the password very quickly, but if you have a strong password it could still be quite some time before you get the password.
cebla is offline   Reply With Quote
Reply

Thread Tools

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
Forum Jump


All times are GMT. The time now is 09:52.
Powered by: vBulletin Version 3
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.