So, I got a warning, so I will not cover any U.S. products or any U.S. company issue, and I'm not here to give a demonstration, but we will go over the technology. A little bit of agenda for my speech today. Something about the motivation, why we got these electronic passports, what does the government think about electronic passports, some basics, and probably you heard about this cloning thing. Who of you guys knows about cloning passports? Oh, only a few, so I will cover this. And how to use a clone passport to attack the systems, like the reader and the inspection database behind. We will cover some stupidity on the basic access control and the extended access control. The extended access control seems to be the silver. There is a lot of bullets against cloning and doing everything nasty with it. And some unexpected risks at the enrollment. So, all of you guys know what is the motivation to get biometric into the passports and for the visas. This is actually the recovered visa that I found at Ground Zero. So, I don't know if he is still on the watch list, but I can see from some evidence that he is involved. So, that was the main motivation to raise the security for the US borders and to improve the border security by using biometric solutions. There was this initiative. So, the government after 9-11 got a dream. And the dream is telling. So, we have to divide high risk travelers from medium risk travelers and low risk travelers. If one of you guys come the first time to the States, they have to create a file on you, put your fingerprints in and a picture of you. So, you are at this moment a medium risk traveler. At the moment you are crossing the border about 100 times a year and nothing happens and you are not on the watch list. You are a low risk traveler. And if you are coming from a suspected country or you have a common name like Mohammed Ali, Mata or something like this, you end up on a watch list and be investigated as a high risk traveler. And the government dreams about this automatic multi-biometric entry gates. So, there is a normal passenger just waving his electronic passport, putting his fingerprint on it or looking with his iris scan into a camera and magically the door opens and he is in. While for the medium and high risk travelers, the door stays closed and they have to check an inspection officer and the officer is making investigations. And by the way, it saves a huge amount of money on personnel, especially for European entries. They want just to shut down the amount of inspectors needed per passenger. So, first the government is going to ask, oh, who can help us by this? And they start asking the security print shops. And all the security stuff over the time. And these are general and global print shops. They know how to produce micro-ink. They know how to make counterfeit safe banknotes. They know how to use special holographs and putting it in and making special drawing on your passport cover and gluing it. And putting it together so it cannot be split anymore and stuff like that. But are they known for IT security know-how? Do they have a history on IT security, on cryptography? No. So they have never done actually an IT security project. So what's coming out is these security print shops are going to ask the smart card industry. And now we've got a problem. The smart card industry is focused on selling their products and AdvoCards multi-purpose use. So some of the original ideas for the electronic passport. You would have a multi-purpose use. We will get the identical design for the national ID cards. These cards can be used for electronic banking, for e-government. So you don't need to go to your DMV. You just put in your ID card into a reader on your PC. And you can cryptographically sign electronic signatures. And don't go in person anymore. Even in Estonia they made this year, they have something like multi-purpose smart card based ID card. They made this option so that the citizens are allowed to vote using their ID card and a normal PC. And use it for email encryption. And ID and travel document as passport. And of course for electronic payment. Sounds it nice? One card that fits all. And let's have a look of the design goal. So they want to use cryptography and PKI. The best thing is we put all biometrics that's possible into this card. If you got more biometric. You got a higher safe level. And of course it will be 100% secure. And improve the facilitation. Something like minimize time spent on legitimate travelers. Once again segmenting low and high risk travelers. And minimize immigration time. All wonderful. And then they came up with a design approach from the ICAO. The ICAO was setting up a standards group. And all this group was stuffed with printing experts. So they know how to make secure passports. But even know IT security expertise. And pretty soon they discovered oh we need some experts on the crypto. We need to do crypto. At the first design approach there was no cryptography. So they thought oh we just put in the files into a storage and that's it. And the very first ICAO design doesn't care about cryptography. And this scares even some experts at the governmental level. No, no, no. We cannot use it. We have to use cryptography. Otherwise it will be a nightmare. But no one knows anything about implementation. And the whole thing was driven by RFID manufacturers. And of course no one looked at risks and design goals. You all know this. Keep it stupid and simple. But they unfortunately don't know it. And by the way the industry got a new standard for biometric encoding. Oh we got new encoding. We have to put all this together into this passport. And the next problem they found out was they got a problem with patents. Typically if you store biometric data you are looking only for some points of interest. Like from your fingerprint. And generate via a tractor algorithm a type of hash. And this hash ends up in a database. So they don't put actually a full picture of a fingerprint into a database. They're just putting in the hash. So it makes things easy to compare. It's always easy to compare about a hash and look for collision. But it's highly difficult to compare images. Even if they are put from different angles and stuff like that. And as well the ICAO decided to store the facial image of the passport holder. Like as a JPEG or JPEG 2000. And they decided to do the same with the fingerprint. The problem was the most hash algorithm was patented by one or other company. And if they want to use it on a global basis. They have to do a decision for one hash algorithm. Unfortunately all these hash algorithms don't fit with the national fingerprint databases. So every country is operating their own fingerprint database. And using a slightly different hash algorithm. And up to this time it was for instance not possible to compare a fingerprint from a US citizen. Using a hash from the FBI database with the European, Europol database. Because they got completely different values. So they decided just make a picture of the fingerprint and put it into the passport. And we got here some compromises. But we all know compromises don't work with security at all. So let's have a small excourse how the e-passport looks today. And how the e-passport is implemented from the German point of view. By the way all these pictures are public domain. I put the reference behind. So actually as far as I know I can use it for this talk. So the e-passport is most likely called MRTD. This stands for Machine Readable Travel Document. And it's known as electronic passport. The specification was one done by this experts groups from the ICAO. And the enrollment was planned on a global basis. This is one actual picture from the e-passport from Germany. They decided to embed the alpha detect into the cover. And not into the data page. Normally you have one of this plastic covered page. Where for instance Great Britain or Australia putting in the alpha detect. And they decided we don't need a shield. The passport could be readable even if the passport cover is closed. By the way this is one of the decisions why the Germans can microwave the alpha detect in the e-passport and the British can't. No one sees the marks from the burning if the alpha detect is embedded into the cover. If you do it with a British passport you're most likely melting some plastic on this page. There's an alternative method of storing data. So right now it's possible to store biometric data or hashes as a 2D barcode under the facial image. And we have this line. It's called MRZ. That stands for Machine Readable Zone. And this will play a second role for authentication and cryptography if we look deeper at the electronic passport. So let's look for the data layout of the electronic passport. They invented a huge branch of new code names. We have to deal with the LDS. That stands for Logical Data Structure. And the data is stored in DGs. DGs data groups. Some of the data groups are mandatory. Other are optional. Some of the data groups are slightly controversly discussed. For instance, the British wants to have an iris image inside the data group. The German decided not to use iris images. You can look for the actual health status if you do the immigration. And you can check if someone was consuming drugs or alcohol. It's not a problem in GB but probably in Germany. And it's not illegal in Germany to travel drunken. As soon as you are not driving a car. And so they decided not to use the iris image in Germany. We have a special file. That's called EF-SUD. SUD stands for Security Object Data. And this is a file that holds cryptographic signatures. And we have the EF-COM. You can compare to a directory that lists the existing data groups. All data is stored in BER encoding like ASN1. But it's not ASN1 that's important. And the data group 2 up to 4 uses CBEFF for encoding. This is a common barometric file format. It's specified in ISO-19785. We have in Germany some unique security features. So normally if you activate a security feature, you can create an RFID chip. You've got a unique ID. This unique ID is fixed for each RFID transponder or chip. And this unique ID is needed for anti-collision. Unfortunately, with this unique ID, you are trackable and traceable without knowing. So just to install and they know who you are and that you are holding a passport and stuff like that. So they decided to prevent tracking of the owner of the passport without access control by generating random serial numbers for these RFID chips. So actually they could use the special tag and the special ISO-14443 tag can jump after it got started or evaked by the radio field. And use the random number generator and use this random number as unique ID. And by the way, you can use this random number generator just to put in any ID you like. So another way to cloning RFID chips. And the problem is IKO MRTD specification don't require a unique serial number. So by the way, some countries will generate random ID and random serial numbers. Some countries don't. So for instance, some guys from Belgium and some guys from Australia are highly trackable and traceable without a shield and carrying a device that identifies they exactly. And for the Europeans, especially for the Germans and the British, it is slightly a bit more complicated to track them, but it's still possible. But for the first phase, you get this unique ID. And then, they put in a method. It's called passive identification. And this method is mandatory for all passports. And this method is a proof that the passport files are signed by the issuing country. So if you get a passport, each issuing country is operating their own CA. And this CA is signing the hashes of the data of your passport. And with this private key signed, the public key can prove at the border control or at the entry if this data are manipulated originally. That's all in theory. And the document signer key is retrieved from the public key directory that's operated by the ICAO. And useful only if country would CA is known. So actually, this public key is, right now, as far as we know, hard-coded in the RFID readers. They read the passport at the inspection. This is a slide showing how the signed data works. So we have all these different data groups. Then, hashes generated over each of these data groups. And over a list of all these hashes, they are generating a type of master hash. And this hash, over the hashes of the data group, is signed by the country CA and stored at the EF slot. By the way, who of you guys thinks putting a password on a monitor is a secure and safe way to hide it? Isn't it a nice idea? No one can read my passport because we put in a cryptography. So, they have this method. It's called basic access control. And actually, they're using the credentials. They are printed on top of your passport. So, to grant access to the data, after the inspection system are authorized, the authorization is done through the machine-readable zone. So what they are actually doing is, they are generating over the document ID and your six-digit date of birth and the document expiry date and triple-death key. And, using it for identification against the passport to read your data that are stored on the passport. And that's exactly what they are doing to protect the privacy of the passport holder. Even some European passports, for instance, Belgium, don't have basic access control. They can be just read by walking through. And, yeah. So, what do we have is the basic access control. So the access key is printed on top of the passport. And, what the politics is always denying, oh, it's illegal to make copies of banknotes. It's illegal to make copies of passports. Who of you guys experience that his driver's license or passport was put on a Xerox machine because you want to rent a ski or you want to check in a hotel and it's highly crowded and, yeah, we got some up. And, they're just making Xerox and you don't know what's happened with this document. Anyway, all this data needed for accessing the machine readable zone is as well stored in many private databases like airlines, banks, and so on. Credit history. And, no one knows what's happened to this database if there's identity theft or if someone breaks into the database and retrieves all this data. And, as soon as this data are known, there's no protection for your facial image, for your barometric template. You can just track, trace, and read from behind. So, and you don't need to do a full read of the passport. It takes sometimes up to 40 seconds. But, if the data are known, you can just start with a basic access control handshake and you are still traceable. So, the random unique ID is simple, worthless if you have access to the data you need for generating the access key or to generate the first phase of communication to your electronic passport. And, access to the content of the logical data structure, data group one and two, is possible. Even access to the SOD is possible. So, you can try to run a brute force attack against the company signing CA. After my last talk last year at I mentioned this, I make a small demonstration and they are telling us, oh, yes, but, you know, basic access control was yesterday. Today, and we will have in the future, extended access control. This will take care of all these needs and this is a highly cryptographic thing and you don't have to worry about your privacy anymore. So, what's the idea of extended access control? The extended access control should prevent unauthorized access to biometric data. Unfortunately, it's not international standard. So, each country decides what data they want to share with what exact country and it's implemented by the individual issuers and only shared with those countries that are allowed access. So, in theory, for instance, if Germany wants to share the fingerprints and the biometric data with their citizens between the states, they're setting up an IT project for exchanging certificates and algorithms and putting in additional software into the readers and they're pointing out that access is only possible with the certificates from the issuing countries. So, if at the point of entry at the port or at the airport, the inspector wants to read your fingerprint, by the way, it's a GIF image, you need to get a certificate from the issuer from the issuing country and they are telling all the time this certificate is only valid a really small amount of time and only at this small time slot you are able to read the biometric data from the passport. Unfortunately, just imagine, you're a train conductor and you have to check if the tickets are valid and if the passengers are on the right train and if the tickets are for the right route date and time but you don't have a clock. So, how do you check it? How do you check if the ticket is valid? And we got the same problem because they forgot to implement a clock inside the machine reader travel document. So, you've got a small amount of time, you've got a certificate for unlocking the passport and for reading the biometric data but the MRTD does not have any reliable and secure time information. Once the CV is captured, all MRTDs which have been read using a CV certificate that's the name of this unlocking certificate issued earlier could be accessed without any problems. And the MRTD could not verify the validity of the timestamp from the CV certificate because he don't have a time signal, he don't have a date so he cannot check. But, you know, the politics are telling you we are safe, we have only an issued certificate for a small amount of time. Even they are going to save the last time of access and if the next CV certificate has an earlier date it's going to reject. So, if someone is using a false CV certificate with an issued date far out in the future the pass is rejecting all earlier CV certificates. So, one possible attack could be just faking GPS or just faking GPS time signal for the data center. They are issuing in Germany the CV certificates and trying to put the clock of the servers up to 2080. And if they are not using Windows or Unix machines and don't have this problem most probably they can issue certificates from the year 2080 and deactivate all issued passports with extended access control because after they fix the time all the passports get deactivated. The next problem is a vote regime could misuse the CV certificate to obtain fingerprints from the passport stored as a GIF image so you can make fake fingerprints. And this is fake fingerprints it is possible to produce false evidence. The next glorious idea was we are using X509 certificates but it is not possible to revoke certificates from the MRTD. So CRL is effective not existing and everyone can verify it seems to be secure but it is not possible to revoke a certificate. So why do we clone passports last year? We got a huge media attention on this and they are telling us cloning a passport is just normal behavior and there is nothing dangerous on it and you don't have to care about this because it is all cryptographically signed. So the normal tags inside the passport are actually read it. Then you have to microwave your original from the state and now the clone tag behaves like an official e-passport. And that's where the fun part starts but what the industry is not understanding. I had long phone conversations with the head of research and development from an e-passport reader company and she is just not believing. Oh if something is not put in the right way we are triggering an exception everything will be fine. But you can put in an exploit and extend your official passport and putting in some malware inside the MRTD. And the nice thing about this exploit is it could attack inspection systems as well backends or databases behind this. And I guess they are using some standard of the shelf components like Oracle or DB2. So what happens if someone is using a drop database or alter table or just changing some data inside. Now let's have a closer look to the inspection system. First of all there came this all inspection systems should be evaluated. What does it mean? No one is telling us. What does it mean to evaluate an inspection system? Right now they are using off-the-shelf PCs. And off-the-shelf PCs are far too complex to be formally validated for correctness. Otherwise we don't have to deal with malware, with viruses, with crashing operating systems and stuff like that. Then they decided to use JPEG and JPEG 2000. We all know JPEG 2000 is a very complicated format. You can easily produce huge images, allocate a huge amount of memory. It's really easy to put in some shell code in your passport. Isn't it nice? And that's actually a vendor's design of an e-passport inspection system. You know it was designed for Windows XP, even not for Vista. So, and actually we found no security improvement to the software. The stack is still executable. And imagine what's happened if you just ask an officer, oh, did you mind putting in this USB stick into your inspection system and make a double-click on this program? You think they're going to do it? But they're putting your passport on the reader. And where's the difference? It's just memory, 72 kilobyte memory that's got read into his machine and executed. And that's part. And after the whole structure from the passport is read into the reader, into the inspection system, it can be validated just after this. So they have to build all these hashes inside the machine. And then after they have decoded this highly complex tree of ASN1BN coding, after they got through all these different stages and highly complex processing units, and I know what I'm talking about. We have implemented this e-passport design, and it was a hell of coding because they have to decode the payload and finally they can verify the document cryptography. It's something like you go to an ATM, you put in your card, then you get the cache, and after you've got the cache, you put in your pin number. And they're I would like to have such ATMs. So, and right at this moment, many vendors are happy if they can read the passport from a different vendor. So they have actually the problem to read the passports, and no one has checked for illegal structures, or even for some malware onto it. The next problem we have to deal with are biometric data. So at this moment data should be reduced to hashes only, but fingerprints are still stored as pictures. So reverse engineering of fingerprints is possible, and this is contrary to any best practice in IT security. Don't give up your credentials, and even don't make them public available. And we got this nice chaos of standards. So all the experts from the ICAO know, oh, we have to use ASN1. You know how ASN1 works normally? You have a lex, you generate a grammar, you put in your data structures in C, and they're putting in into, you make a formal description of the ASN1 data structures, and the ASN1 generator is generating a parser for you, and an encoder. So you've got two pieces of software, and then you put your like, valid XML, and you get it back in your C data structures. But unfortunately they don't ask a student in the first semester who knows how ASN1 works. They have done it a different way. They make the encoding by hand, and they make as mistake without generating a lex, they're saying, it looks like ASN1, it's 90% like ASN1, but you cannot use a formal ASN1 encoder because it's not like ASN1. They just don't understand how such meter formats and encoders are working. The next problem is we have a lot of redundant meter formats for biometric data. They use JPEG images, but they encode the JPEG image in a different meter format like the CBEFF common barometric file format. You know why? Oh, the industry from the smart card came up. Oh, we designed a cool format. No one is using it. We have to put it into the e- passport. The next problem is if a signing key got lost, the whole country is doomed. I'm pretty sure sooner or later some of these keys got lost. Not in the U.S., probably not in Germany, but there are far too many countries outside. We have sometimes performance structures in the countries. Sometimes we got a country that converts its false passwords. And the whole design was made by politicians and not by IT security experts. And of course it's possible to manipulate data. So I went with a short version of this presentation to an ICAO meeting or to the security document and I got a huge We know what we are doing. The next was a nice quote from one. We removed the standards from the ICAO website. Now we are safe. The next standard is for my own State Department in Germany. So Grunwald was using the primary purpose of the passport. He read it. There's no security risk at all. And the next I really like this. The RFID ship will be protected by security features of the printed paper in the passport. Wait a minute. Why do we make this RFID passport? We want to protect And normally the RFID ship should increase the security and not need to be protected by the printed paper of the passport. So where's the need for an RFID ship? If the ship must be protected by the printed paper, why can't my person protect me? And this is a important point. And this is a very important point. And we need to protect ship. And this But it runs on Windows XP. So isn't it funny? And if they don't change their thinking about IT systems and structures and how to audit the state things and where are the risks and pitfalls, I don't know how can they, I don't, I have no advice for them. They're experts out in every country, they're IT experts, they're experts on structures and encoding, but if they don't listen to them, it's not our fault. So and that was pretty much my update for the last year, what we have done on electronic passports. And we can start the question and answer session first, that's here. And after I'm finished here, I think I'm moving to the Q&A room for additional question and answer. So, yes? Yes. With everyone supporting the RFID so strongly, the objection to all the facts, do you feel that there's any ulterior motives to the RFID on the passport? Yes, the question is why are you still keeping the RFID on the passport if there are some questionings. And one of the results is they wasted so many tax payers money, they just can't tell us oh, sorry, we are wrong, by the way, we wasted billions of dollars worldwide, but we have to live with them. So I think it's about personalities and reputation of the print shops, and it has nothing to do with IT security and anti-terrorism and counterfeit documents. Yes? Okay. Thank you. I have done some tests with, okay, so the question was what happened if a manipulated picture gets through an RFID reader or gets through customs. So I've tried this with some manipulated images at a conference, I'm not going to tell what conference is what. and not the vendor, but actually one inspection system gets in an infinite loop, reading the things, and another just crashed, so we got a blue screen. And if you are able to get a blue screen, you are most able to put in exploits. But everyone is welcome to prove. I can't check with any U.S. passports, but if some of you guys have one of those U.S. passports, probably, you will be here next year at my position and presenting us the ultimative inspection database takeover, world domination inspection-owned applet just to apply to an U.S. passport. I can't do it, but I don't know if I inspire some of you guys. Next question. Yes? Do you know why they didn't do a standard ASL documentation? Actually, they didn't. They don't know how to do it. They don't ask anyone who knows anything about IT security, and they had such huge time pressure, and they want to do it all on their own. So the group from the ICAO was a pretty closed group, and they don't want to get as many external experts in because it was so complicated at that specific level. The industry wants to push in so many different standards and so many different encodings. They just want to keep the group as small as possible, to make effective working. So that was my point. And I got a quote from a German passport manufacturer, and he is telling me, oh, I know, we know, the whole thing is junk, the whole standard is junk, but we have to live with it, and we cannot change it anymore. Next question. Yes? Can you speak up a little bit? Yes, there are many parallels. One of the problems is every time you want to create a protocol, a security protocol, by a committee and by compromises and not by public discussion, you end up with such a mess like this ICAO passport. So my advice would make sense, make a RFC of it, put it on the internet, make a public discussion, ask the experts, ask the security experts, and not make a design by committee. Mostly the crowd is just smarter than you are. Next question. Okay. Thank you.