Time
7 hours 35 minutes
Difficulty
Intermediate
CEU/CPE
12

Video Transcription

00:01
Hey, guys. Welcome to another episode of the S S C P Exam Prep Siri's I'm your host, Pierre Simple. Oh,
00:09
this is going to be the fifth and last lesson off Do mean five.
00:15
So far in the fifth domain, we've taken a look at fundamental concepts of cryptography. We've taken a look at symmetrical cryptography and how it only uses one key, and it's very quick.
00:27
We've taken a look at asymmetric cryptography, which uses two keys and solves a lot of key management issues. We've taken a look at methods off Captain Alec attacks, which all our different ways that Attackers try to break encryption. And now, in this lesson, we're gonna look at some
00:46
key management concepts, such as
00:48
how to keep a management safe, that you had to keep a key safe house, keep updating the life cycle of a key and how to dispose of the key. But it's done.
00:58
We want to be taking a look at secure protocols, different protocols that all for authentication and encryption.
01:04
Let's get started
01:08
when it comes to public, he's There's a lot of doubt of whose key belongs to who people are very people to be very worried that they might be encrypting something with so and so's public key.
01:23
But that public he might not actually be theirs might belong to an attack or who could then decrypt it and see what they're trying to send. As a result, public he infrastructure is in place.
01:34
Public key infrastructure is a set of system software and communication protocols required for public key cryptography
01:45
mystery main purposes for P k I public he infrastructure. And that is to publish public keys and certificates,
01:53
certify a key, is actually tied to an individual or entity,
01:59
and provide verification of the validity of a public kid.
02:04
So the P K I simply exists to purr as 1/3 party to provide trust that someone's public. He that they say, is the public. He is. Actually, their public
02:19
certificate authority is a component of the of the P. K. I. On maintains the digital certificates of keys There are has two main jobs.
02:29
It is that has the registration authority, which verifies and entities identity,
02:36
and it has it maintains a certificate re vocation list. This is a list that is maintained by the CIA
02:44
that contains information on revoked digital signatures.
02:51
Key management is the most important part of any cryptographic implementation.
02:57
Kirk trough principle
02:59
states that encrypted system should be secure, even if everything about the system except the key is public knowledge.
03:06
So what he's saying is everything about the encryption algorithm should be known, and the only thing that should be kept hidden are the keys. He says this because he understands that key management is the most important part of any cryptographic implementation. And also when people have access to the ER
03:25
encryption algorithm,
03:27
they contest it themselves. They can see if there's any bugs or flaws which otherwise might not maintain the integrity off. Whatever being encrypted,
03:38
there are to mean
03:39
key management applications. There's the Extensible markup language key management specifications to point out, which is simply a group of protocols for distributing and registering Public Key's On. There's also an SI x 9.17 which is developed to address the needs
03:58
off financial institutions in public key cryptography.
04:01
Now this uses two types of keys,
04:03
data, keys and key, encrypting the data keys or otherwise known as session keys or the ones that encrypt the data. These are smaller keys that are used to encrypt and decrypt data very, very fast.
04:18
Now, key encrypting keys are very long and beefy keys that take a while to decrypt it take forever. In fact, it is almost takes too long to encrypt them to make it worthwhile.
04:31
So the key encrypting keys encrypting the data keys, which and then,
04:39
ah, encrypt the data
04:41
key distribution of management. Let's take a look about how this works.
04:45
Secure keys depend on automated key generation randomness on key. Like
04:50
so, key generation is the key policy enforcement. All the policies for creating key. All the steps must be followed every time, so that a secure, valid key is created every time
05:03
randomness, zeros and ones need to be random. And obviously the key length plays a major factor in any off the key and encryption. The longer the key, the better off you are.
05:16
Keep rapping Is the process of using key encryption keys to protect session keys.
05:23
This is good for sending keys over an untrusted transport and supports symmetric and asymmetric ciphers. Now, this is how
05:31
keep wrapping session takes place. So you start with this session
05:35
and the session key is encrypted with the key key in red encrypting key
05:42
and then that is transported over a network.
05:45
Once they're over the network, the encryption key
05:48
it's decrypted, and then you're left with a session,
05:51
which can then in from any encrypt or decrypt. Any data that's needed
05:58
out of band is the key exchange that used the medium other than through which secure messages will be sent.
06:04
So if the secure messages will be sent through email, then you want to send the key, either in person or by hand
06:14
or through the mail, the regular mail or something. Something like that. You don't want to send the key.
06:20
We're the medium which make your secure messages will be sent. The problem with this is that it's not very skilled. I mean, if you live near someone or if you were close by someone, yes, you can give them to keep personally. But many times that is not simply the case. Many times
06:38
you need to send someone a key that lives halfway around the world or, you know, thousands thousands of miles away, and that's that. That that becomes a problem. It's very hard to get them a key when They're not nearby,
06:51
obviously. So this is where a K D. C key distribution center comes it. It contains public. He's with balance certificates on there's two keys, master keys
07:02
and session keys.
07:04
Remember, Kerberos Curtain Rose is an example off key of a key distribution center.
07:13
There's a lot of key aspects when it comes to keys and key management. The first is storage. It's very important to store your keys in a very safe location and also to have a life cycle for these keys. So
07:29
if you have a key one, make sure it's encrypted if it's not being used.
07:32
And also you want to make sure there's an expiration deep. So if anyone is trying or actively trying to drag, get your key. If the key expires after a while, and if the key expires before the person trying to grab the keys.
07:48
Ah, successfully decrypt sit, then they're gonna have to start all over again. It's just another way to keep your key secure. And once the expiration date happens, get rid of your key and you definitely want to get a new one.
08:03
When it comes to backups, you want to make sure you have a sort of key backup in place so you can recover any type of key now different key recovery methods, the more of the most common ones is Multiparty said. This is where you break up
08:22
your key and give it to different people,
08:24
friends or whoever may be some co workers.
08:28
And they all have a different part of your key. So if you ever lose your key or you can't use it anymore and you need it,
08:37
you can call up your friends and get the part of the key from all three of them or however many there are, and you and you can put your key back together That way.
08:46
There's also a common directories, which is usually managed by the I T department, which contains a lot of the public keys in case there's a backup. And obviously there's password wallets where
09:00
you went on your Web browser or a system managed the keys for you, and you only have to remember one key. So
09:07
if you can't seem to remember the key or whatever, they can give it to you.
09:13
The key escrow on the third party holds a key in case you do lose it
09:18
on the web of trust, authenticity of a public key and it's over
09:26
figure protocols.
09:28
I p sec is a suite of particles for communicating securely with i p by giving mechanisms for authentication and encryption.
09:37
So the board of the parts of this is the authentication hair. This is used to identify the center and to ensure the integrity off the packet or the payload that this they used this on by using hashes and sequence numbers. So the hashes, or used
09:56
to ensure the data has not been altered inside the packet.
10:01
So when the packet is encrypted, the hash is sent over and then the packet is sent over with the hash, and then when the packet reaches the destination to hashes are compared if they're the same, then clearly nothing happened to the packet.
10:18
Now sequence numbers are there to ensure that all the packets arrived there successfully.
10:24
If a number is missing, then obviously a packet is missing.
10:28
Encapsulating security payloads E S P.
10:33
This contains off four different parts.
10:35
You have the header which is that contains the security number and security associations. Where the packet supposed to go.
10:45
You have the payload, which is the encrypted part off the packet,
10:48
and you have the trailer. This is not always required, but sometimes if the packet is not completely full and it needs to be patting can be added to keep the packet at the full at the full size on authentication. Obviously hash value of the packet if
11:09
to ashes match
11:11
that nothing happened to the packing all the way,
11:13
so endpoints talk through eyepiece. Act by using transport ward total moods
11:20
with transport mood. The payload is protected. Bought the header is not so. You can see the sequence number and the hash of the authentication matter as where with tunnel mood that pay Loader and the header are both protected
11:37
Internet. He exchanged. Awesome, it's like is an authentication part of I P. Security
11:43
Face. One establishes authentication using either a shared secret, which would be like a key in symmetric key encryption
11:52
public key encryption, where there is a private and a public key
11:58
and there is the revised mood off public key encryption. This is there to us to reduce the overhead off regular public key encryption, so a random you know, bit number is encrypted with the communicating partner of Public Key and the piers identity
12:18
is encrypted with the symmetric encryption
12:20
using that same random number string as the key
12:26
face two of the Internet. Each change is where the security associations are established using ah, the secure tunnel and a secure association methods at the end of phase one
12:41
secure socket layer and the transport layer Security S S l N C l s. This is like a total used to encrypt confidential data over a secure network. So think of a tunnel going from point A to point B and nothing can get inside. So once the data from point A and there's the tunnel,
13:01
nothing can come in to the total. Nothing can come out of the tunnel. No one can peer inside. They can't access the information anywhere that tall,
13:09
and then the information comes out the other side at point B. Now the secure socket says between the application layer and the transport layer
13:20
secure multipurpose Internet mail extensions. Otherwise, notice asked mine. This is used to send digitally signed and encrypted messages through email. This provides authentication, integrity and non repudiation.
13:35
Into these lecture, we discussed the management concepts and secure protocols
13:41
scenario.
13:43
John has lost his private encryption key.
13:46
Darn it, Jon. Thankfully, he has split up his private key among three different friends, and now he calls them up and pieces his bribe key back together.
13:56
This is an example of what?
13:58
Hey, he exchanged
14:00
be the wrapping.
14:01
See key storage or D key recovery.
14:09
If you said d key recovery, then you are correct. Remember, John lost his private encryption key, but thankfully, he had split it up among his friends to get it back.
14:22
All his friends have to do is come together, give John each third piece of the key, and then John will be able to have his private encryption key once again.
14:31
Thanks for watching guys. I really hope you learned a lot in this video and I'll see you next time.

Up Next

Systems Security Certified Professional (SSCP)

Obtaining your SSCP certification signifies that you possess the ability to tackle the operational demands and responsibilities of security practitioners, including authentication, security testing, intrusion detection/prevention, incident response and recovery, attacks and countermeasures, cryptography, malicious code countermeasures, and more.

Instructed By

Instructor Profile Image
Pete Cipolone
Cyber Security Analyst and Programmer
Instructor