|
Posted by TwistedPair on September 23, 2006, 8:06 pm
Please log in for more thread options
All,
Hopefully this isn't a completely ridiculous question, but with IPSec when
two machines negotiate a connection, they can be configured to initially use
Kerberos, Certificates, or shared key authentication (if I understand
correctly). How much more secure are certificates than shared secrets?
Wouldn't it be possible to use a Man in the Middle (MITM) attack by simply
replaying a cert the same way you would a shared secret?
-P
|
|
Posted by S. Pidgorny on September 24, 2006, 9:02 am
Please log in for more thread options
Shared secrets is something that you can share without access to the systems
in question - knowledge only is required.
To compromise access using "soft" certificates, you usually need physical
access to the hardware and/or admin rights.
If certificates are implemented in hardware (smart card/HSM/TPM), you cannot
copy/clone the access credential. This is the safest.
Man in the middle attack won't work with either. IPsec is using proper
cryptographic handshake, thus never transmitting the credential/creating
opportunity for replay.
--
Svyatoslav Pidgorny, MS MVP - Security, MCSE
-= F1 is the key =-
> All,
> Hopefully this isn't a completely ridiculous question, but with IPSec when
> two machines negotiate a connection, they can be configured to initially
> use Kerberos, Certificates, or shared key authentication (if I understand
> correctly). How much more secure are certificates than shared secrets?
> Wouldn't it be possible to use a Man in the Middle (MITM) attack by simply
> replaying a cert the same way you would a shared secret?
>
> -P
>
|
|
Posted by Karl Levinson, mvp on September 24, 2006, 9:19 am
Please log in for more thread options
> All,
> Hopefully this isn't a completely ridiculous question, but with IPSec when
> two machines negotiate a connection, they can be configured to initially
> use Kerberos, Certificates, or shared key authentication (if I understand
> correctly). How much more secure are certificates than shared secrets?
> Wouldn't it be possible to use a Man in the Middle (MITM) attack by simply
> replaying a cert the same way you would a shared secret?
Certificates are generally considered more secure than shared secret.
Often, the same shared secret is deployed across multiple system, which is
sort of like a shared password that many people know (in this case,
administrators of those devices). With shared secret, you often don't have
the ability to globally change the "password" at regular intervals or when
an administrator leaves the organization, which is generally considered
important to security.
Both certificates and shared secrets are equally vulnerable to man in the
middle attacks, which are fairly easy to mount with SSL and SSH. With
IPSec, however, the risk of man in the middle attacks is mitigated.
--
kind regards,
Karl Levinson, MS MVP
Security FAQ site:
http://securityadmin.info/faq.asp
|
|
Posted by TwistedPair on September 24, 2006, 8:19 am
Please log in for more thread options Thank you both for your explanations. Quick question below:
>
>> All,
>> Hopefully this isn't a completely ridiculous question, but with IPSec
>> when
>> two machines negotiate a connection, they can be configured to initially
>> use Kerberos, Certificates, or shared key authentication (if I understand
>> correctly). How much more secure are certificates than shared secrets?
>> Wouldn't it be possible to use a Man in the Middle (MITM) attack by
>> simply
>> replaying a cert the same way you would a shared secret?
>
> Certificates are generally considered more secure than shared secret.
> Often, the same shared secret is deployed across multiple system, which is
> sort of like a shared password that many people know (in this case,
> administrators of those devices). With shared secret, you often don't
> have
> the ability to globally change the "password" at regular intervals or when
> an administrator leaves the organization, which is generally considered
> important to security.
>
> Both certificates and shared secrets are equally vulnerable to man in the
> middle attacks, which are fairly easy to mount with SSL and SSH. With
> IPSec, however, the risk of man in the middle attacks is mitigated.
Unless I miss my guess here, this is because with SSL the first time a
client establishes a connection to the server, the certificate is
transmitted to the client. A MITM attack could intercept this certificate
and use it to decrypt the session once it's been established. With IPSec
however, the certificate is never transmitted because it needs to be
manually installed on the client machine. Does this sound correct?
-P
>
> --
> kind regards,
> Karl Levinson, MS MVP
> Security FAQ site:
> http://securityadmin.info/faq.asp
>
>
>
begin 666 Re_ IPSec certs vs shared secret.nws
M1G)O;3H@(E,N(%!I9&=O<FYY(#Q-5E ^(B \<VQA=FEC:W! >6%H;V\N8V]M
M/@T*4F5F97)E;F-E<SH@/$\W;317,3(S1TA!+C4P.3) 5$LR35-&5$Y'4# T
M+G!H>"YG8FP^#0I3=6)J96-T.B!293H@25!396,@8V5R=',@=G,@<VAA<F5D
M('-E8W)E= T*1&%T93H@4W5N+" R-"!397 @,C P-B R,SHP,CHT-R K,3 P
M, T*3&EN97,Z(#(Y#0I8+5!R:6]R:71Y.B S#0I8+4U336%I;"U0<FEO<FET
M>3H@3F]R;6%L#0I8+4YE=W-R96%D97(Z($UI8W)O<V]F="!/=71L;V]K($5X
M<')E<W,@-BXP,"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on September 24, 2006, 1:32 pm
Please log in for more thread options
>> Both certificates and shared secrets are equally vulnerable to man in the
>> middle attacks, which are fairly easy to mount with SSL and SSH. With
>> IPSec, however, the risk of man in the middle attacks is mitigated.
>
> Unless I miss my guess here, this is because with SSL the first time a
> client establishes a connection to the server, the certificate is
> transmitted to the client. A MITM attack could intercept this certificate
> and use it to decrypt the session once it's been established. With IPSec
> however, the certificate is never transmitted because it needs to be
> manually installed on the client machine. Does this sound correct?
Well, I don't believe SSL certificates are exactly exchanged, but session
keys. A MITM can observe and influence the key exchange in a few ways. A
MITM who observes the initial session negotiation can pretend to be the
server and establish encrypted SSL sessions with both ends. If SSL 2.0 is
enabled on the client [which is the default on all versions of Internet
Explorer today], a MITM could also spoof the server response during the
negotiation of which protocol to use, and then attack weaknesses in SSL 2.0,
do a brute force of the session keys, send spoofed requests to one side to
gather pairs of unencrypted and encrypted data for comparison and key
analysis, etc. SSL 2.0 negotiates encryption protocols in unencrypted clear
text that is not protected against modification en route.
With many SSL and SSH implementations, humans can click a button to allow an
encrypted session to continue when the SSL certificate fails to check out.
This wouldn't happen with IPSec between two routers, for example.
--
kind regards,
Karl Levinson, MS MVP
Security FAQ site:
http://securityadmin.info/faq.asp
|
| Similar Threads | Posted | | AD CS 2008 - issuing IPSEC certs from a stand-alone CA: | January 31, 2008, 3:17 pm |
| Shared key for 3des IPSEC encryption | September 18, 2006, 6:51 am |
| Child domain laptops autoenrolling user certs but not computer certs | May 21, 2008, 4:19 pm |
| Problem with Machine Certs being used as User Certs | June 15, 2005, 7:06 am |
| Self-signed certs for FTP | October 10, 2006, 7:07 pm |
| CA configuration to publish certs in AD | October 2, 2006, 9:42 am |
| GPO for trusted root CA certs | November 7, 2006, 8:12 am |
| Certs in non-domain environment: | January 24, 2008, 12:51 pm |
| Auto-renewing certs w/ VPN clients | February 15, 2006, 9:44 am |
| Issuer Statement does not appear in user certs | October 4, 2006, 4:52 pm |
|