WEBVTT

00:00:00.840 --> 00:00:03.570
There's a family of standards that aim to protect

00:00:03.580 --> 00:00:06.450
cardholder PINs wherever they are processed.

00:00:07.240 --> 00:00:12.300
The first member of the family, PTS POI, or Point of Interaction, is

00:00:12.300 --> 00:00:16.490
concerned with the manufacture and cryptographic key management of

00:00:16.490 --> 00:00:21.090
Points of Interaction, so that's any device that reads a card where

00:00:21.090 --> 00:00:22.750
the customer can enter their PIN.

00:00:23.740 --> 00:00:29.380
It also, confusingly now, also applies to Points of Interaction

00:00:29.500 --> 00:00:31.620
where the cardholder doesn't enter a PIN,

00:00:32.000 --> 00:00:34.060
such as a contactless‑only reader.

00:00:34.440 --> 00:00:37.940
But the standard has been out there for such a long time

00:00:37.950 --> 00:00:40.050
that it's not going to change its name.

00:00:40.940 --> 00:00:43.860
So this standard applies to physical hardware,

00:00:44.010 --> 00:00:47.660
the POI, the Point of Interaction, and the firmware in it.

00:00:48.140 --> 00:00:51.340
It is usually the manufacturer of the device that gets

00:00:51.340 --> 00:00:53.290
their hardware tested against the standard,

00:00:53.510 --> 00:00:55.980
which covers things like tamper resistance,

00:00:56.150 --> 00:01:00.070
how the encryption keys that protect the PIN are secured internally,

00:01:00.080 --> 00:01:03.550
how they are inserted into the device, and how the devices

00:01:03.550 --> 00:01:06.760
looked after from manufacturer to user.

00:01:08.240 --> 00:01:12.310
Making sure these devices are secure from the moment they are manufactured

00:01:12.570 --> 00:01:16.890
to when they are installed in a merchant is actually a real problem.

00:01:16.890 --> 00:01:21.850
Criminals have in the past compromised manufacturing facilities and the

00:01:21.850 --> 00:01:25.010
supply chain, so when the devices were used,

00:01:25.040 --> 00:01:28.570
they kept a record of the customer's card data and PINs,

00:01:28.700 --> 00:01:32.560
which the criminals then downloaded from the device and used themselves.

00:01:33.340 --> 00:01:35.940
The second standard, PCI PIN,

00:01:35.950 --> 00:01:39.910
is concerned with how organizations look after cryptographic keys

00:01:40.030 --> 00:01:42.790
used for PIN encryption and PIN decryption.

00:01:42.940 --> 00:01:45.200
That's mainly going to be very large merchants,

00:01:45.250 --> 00:01:48.060
acquirers, and other payment processes.

00:01:48.440 --> 00:01:51.950
So this standard is a bit like DSS, in that it applies to an

00:01:51.950 --> 00:01:56.330
organization and it contains a number of logical and physical controls

00:01:56.470 --> 00:02:00.050
that apply to how the organization manages security.

00:02:01.140 --> 00:02:05.440
The final PIN standard is one that you don't often come across and is

00:02:05.440 --> 00:02:10.380
concerned with the security of Hardware Security Modules, or HSMs.

00:02:10.380 --> 00:02:14.880
Hardware Security Modules are typically used to manage and secure the

00:02:14.880 --> 00:02:19.090
cryptographic keys which are used to encrypt and decrypt PINs in banks and

00:02:19.090 --> 00:02:23.960
payment service providers, and like PTS POI, this is a standard that

00:02:23.960 --> 00:02:28.150
applies to physical hardware, the HSM and the firmware in it.

00:02:28.540 --> 00:02:31.190
So that's the three members of the PIN family, Point of

00:02:31.190 --> 00:02:35.860
Interaction, PIN, and HSM. Let's see where they apply.

00:02:36.640 --> 00:02:40.550
The retail environment will contain devices where people enter their PIN.

00:02:40.960 --> 00:02:44.470
So these devices could be tested against PTS POI.

00:02:44.700 --> 00:02:47.860
And remember, this isn't the merchant's responsibility.

00:02:47.920 --> 00:02:52.360
It's the manufacturer of a device that gets their hardware tested against

00:02:52.360 --> 00:02:57.520
the standard. All the merchant has to do is to buy compliant devices, and

00:02:57.520 --> 00:03:01.680
whether a merchant has to use a compliant device or not is usually a

00:03:01.680 --> 00:03:06.250
condition that's put on the merchant by their acquirer. To see where PTS

00:03:06.250 --> 00:03:10.260
PIN may apply, let's see how a PIN moves between the entities and the

00:03:10.260 --> 00:03:11.150
payment system.

00:03:11.540 --> 00:03:15.280
And I'm really simplifying the process here, just for clarity. So

00:03:15.280 --> 00:03:18.630
the cardholder enters a PIN on the PIN entry device, or the POI

00:03:18.630 --> 00:03:20.460
device, in the merchant's coffee shop.

00:03:20.940 --> 00:03:25.800
The POI contains an encryption key placed there by the merchant's acquirer,

00:03:25.950 --> 00:03:27.790
which is used to encrypt the PIN.

00:03:28.740 --> 00:03:32.640
The encrypted PIN is sent to the acquirer, where it is decrypted and then

00:03:32.640 --> 00:03:35.850
it's re‑encrypted using the card scheme's encryption key.

00:03:36.440 --> 00:03:40.330
The PIN is then sent to a scheme, where it's once again decrypted and

00:03:40.330 --> 00:03:42.950
then re‑encrypted with the issuer's encryption key.

00:03:43.340 --> 00:03:46.550
The scheme then sends the encrypted ping to the issuer, where

00:03:46.550 --> 00:03:49.690
it's decrypted, and then checked against the PIN that the

00:03:49.690 --> 00:03:52.060
issuer has on file for the cardholder.

00:03:52.540 --> 00:03:56.320
And in this way, the merchant's Point of Interaction doesn't have to have

00:03:56.320 --> 00:03:59.440
the encryption keys for every single issuer in the world.

00:03:59.740 --> 00:04:03.420
So, just as we saw in the first module how a payment card transaction moves

00:04:03.420 --> 00:04:07.500
from the merchant through to the acquirer to the card scheme or brand and

00:04:07.500 --> 00:04:12.140
then to the issuer, the PIN does exactly the same thing, actually, is part

00:04:12.140 --> 00:04:13.900
of the same authorization request.

00:04:14.050 --> 00:04:16.440
But because the PIN has to travel encrypted,

00:04:16.600 --> 00:04:19.610
it has to be encrypted and decrypted at each stage in the

00:04:19.610 --> 00:04:22.450
process so the issuer can eventually decrypt it.

00:04:23.040 --> 00:04:26.840
So, it's obviously really important that the PIN and the keys

00:04:26.840 --> 00:04:30.110
used to encrypt and decrypt it, protect it, and that's the

00:04:30.110 --> 00:04:32.160
whole purpose of the PTS standards.

00:04:33.240 --> 00:04:37.560
So as we know, PTS POI is concerned with the design,

00:04:37.660 --> 00:04:39.330
manufacturer, distribution,

00:04:39.470 --> 00:04:45.350
and management of the end user devices used in the merchants. PIN describes

00:04:45.350 --> 00:04:49.060
the physical and logical controls for all the entities that do encryption

00:04:49.060 --> 00:04:53.210
and decryption of PINs, so that acquirers, payment processes, and it may

00:04:53.210 --> 00:04:55.160
apply to also some larger merchants.

00:04:55.640 --> 00:05:00.500
And finally, PTS HSM is a security standard for the Hardware Security Modules

00:05:00.620 --> 00:05:05.290
that may be used to generate, store, encrypt, and decrypt PINs and PIN keys in

00:05:05.290 --> 00:05:08.560
acquirers, in schemes or brands, and issuers.

00:05:08.940 --> 00:05:14.500
Now, learning the intricacies of PTS and the 3 PIN standards would be a whole

00:05:14.500 --> 00:05:17.630
Pluralsight course in itself, and there's probably only about,

00:05:17.640 --> 00:05:20.460
I don't know, 50 people in the world who would be interested in it.

00:05:20.840 --> 00:05:24.450
So there's one simplification I made on the previous slide that I actually

00:05:24.450 --> 00:05:28.990
do need to expand on a little. When a PIN is encrypted,

00:05:29.110 --> 00:05:33.270
it's not just a 4‑digit or 32‑bit PIN that's encrypted using the

00:05:33.270 --> 00:05:37.280
encryption key to produce a 4‑character ciphertext. This would be

00:05:37.280 --> 00:05:39.850
too weak, and it would be easily broken.

00:05:40.240 --> 00:05:43.620
What happens is that the PIN is mathematically combined with some other

00:05:43.620 --> 00:05:47.370
data, and actually, that's based on the primary account number, and then an

00:05:47.380 --> 00:05:51.250
XOR operation to generate a 64‑bit PIN block.

00:05:51.390 --> 00:05:55.370
And it's this PIN block that's encrypted using the PIN encryption key, and

00:05:55.370 --> 00:05:58.150
that's sufficiently long enough and much harder to break.
