Welcome our next speaker, Sherry Cowley and Dennis Taggart on Two Steps to Owning MFA. All right, well, are you guys having a good time at DEF CON so far? Come on, yeah. All right, so this is our first time at DEF CON, like my first time even being here. Which, and I've worked in this space for quite a long time, so it's surprising this is my first time. In fact, the last time I was here in Vegas at a computer conference was Comdex. I don't know if, yeah, see, there's a couple, a few people that remember the Comdex computer conferences. It was just a little while back. And so I started programming at a really young age. I started hacking things at a young age. That was like high school form. So once I finished high school, I started off with a company that traveled me around to a lot of different computer conferences. But the first time I actually saw some girls at a computer conference was Vegas. And I was really excited because I came into the conference and there's all these girls at these software booths. And I thought, this is fantastic. I'm going to have women that I can talk to about technology, you know, some role models in this space. So I start, and there's a few people smiling because you know where I'm going with this. Yeah. So I start talking to these girls and I'm thinking, this is going to be great. We're going to geek out. We're going to talk about cryptography and technology and programming. No. So most of them were dancers here in Vegas or models. And they were just hired to pretend that they worked for these software companies so they could draw guys in and pretend that they had women working for them. So we've definitely come a long ways since that. Right? I see a few girls here, which I'm really excited about. Walking. Yeah. So walking through the halls here, I see so many women. And these women, we're all excited about technology. We're excited about cryptography and about programming and about biohacking and social engineering. Right? This is exciting to us. So it's great to be here. And just a little bit about myself. So I told you I started off programming at a pretty young age, hacking at a young age. I've worked in software engineering, managed software engineering. For the last six years, I've been a manager in identity and access management and security. And that's where I thought, you know, breaking multi-factor authentication sounded like a lot of fun. So hopefully you guys enjoy this topic because we've had a lot of fun putting this together. And I've asked Dennis to present with me because, first of all, Dennis is one of the most brilliant pen testers that I know. He also recently won NetWars, which that's a pretty cool way to go, Dennis. Oh, come on. Let's go up to Dennis. So I thought he'd have some valuable insights into this topic as well. And so we're going to tag team. So I'm going to have Dennis start us off with the first method. And then I'm going to jump in and we're just going to go back and forth. So hopefully you guys learn a lot. Thanks, Sherry. So when Sherry asked me, hey, Dennis, we're going to present, we're going to submit to DEF CON. I'm like, DEF CON? I've never been there and those people know a lot more than me. But with Sherry, I trust her. And I've been so excited preparing. I'm so excited to do this presentation. So here's a little about me. Just I was kind of a liberal arts guy through college. So I studied a lot of international relations and political science. So I like analysis and it kind of to pay for that, I needed to do some kind of work. So I was in a call center and I got really interested in tech. I love hands-on work like small mount diode is really fun. Probably a lot of you went over to the hardware hacking. I don't know what that village is called here. But I saw like the chip. The chip removal stations and stuff. That was fun. I've been a pen tester for a couple of years. We're just trying to give an educational presentation here. So just standard disclaimer. We're not sponsored by anybody or endorsed or anything and we want everybody to be ethical and use good professional and legal judgment, you know, be smart with what we talk about. So with MFA, we're going to just go over. Basically, the something you have portion. We're not going to talk much about any biometrics or passwords per se, but really focus on something you have. And the real heart of what we want to get at here. It's funny how much when you start a presentation, how many opportunities you have to find weird problems with implementations out there. While I was preparing, I had to get some receipt from a big health provider out where I live. And so I'm calling the help desk. Hey, I need this receipt for this medical record. They authenticate me, you know, with birthday and whatever else. OK, we're going to email you this record now with your PHI. Thanks. Hang up with the representative. Get a mail email. And inside of that is this link. So, OK, I have to click this link. So I open it and it's got this. It says this is an encrypted message. Do you want to sign in with your Microsoft account, your personal one or your professional Microsoft account? I'm like, OK. You don't have either of those for me. I don't want to authenticate with either of those things. What's another option? Send me a link. Send me a code. OK. Click this. I'm like, where are they going to send me a code to? To my email. The same email I was just in. Got my code into my PHI. Super secure, right? And so it just really goes to show that security for the sake of security doesn't really get us many places. And I think that's really the heart of what we're trying to talk about today. Doesn't get us many places. This is good. Anyway, it'll get us somewhere. But so we'll go through SMS, TOTP and talk about push notification and finish up with U2F. This is kind of our plan for today. So another just amazing. I was really sad for Reddit. I think it was nice that they were so open with what happened. So not a roast on them. But what timing? Like the week before we present on this SMS is used. It's bypassed. To get into their information on their users. One of the things they said was we learned the SMS based authentication is not as strong as we had hoped. So they're urging companies and users to move away from SMS based to another form of multi factor authentication. And then I was interested also to find that NIST even in 2016 referred to SMS as a deprecated form of two factor. And they ended up kind of softening that back in 2017. To say it's restricted. So basically it's risky. Like we wouldn't recommend it kind of a thing. But interesting because I feel like I'm just getting I'm seeing most of the places I am on online now finally accepting SMS as a form of MFA. So now we're already needing to kind of move past it. Little bit about how it's working. You've got this application that's just working with an SMS broker. So once the user logs in. The app is going to send. It's going to communicate with some API like Twilio or somebody to say hey send a message out over the publicly switched telephone network. PSTN is how NIST refers to it. To the phone. And you'll get this code. It doesn't have to be even any specific algorithm. It could be just a pseudo random code. They could just dump whatever they want across there. And then you have to as the user now type that into the app. And then you get authenticated or not. But you have a lot of entry points as an attacker. If you can get on the phone or before the network. You attack this broker. You have quite a few places. So bypassing. This is becoming. This is becoming a big. I'm seeing this. I don't know if this is selection bias or what. Like almost every article I'm seeing. Like Krebs just published something like on the 7th of August. About a big ring of people stealing SIM cards. Calling pretending to be employees or working with employees for carriers. And getting SIM cards sent to the attacker. So they plug it into their device. And now the target loses. Oh my phone's not working. Meanwhile all their two factor messages are going across to the attacker control device now. Another. You could also just. There's another one online. I've read about social engineering. So basically this scam involves calling. Calling this Mark's number. So you get their username and password already. To get their two factor. So. You call them up. Hey is. Is Bob there. No you've got the wrong number. Oh wait wait wait wait. Hey. Before you hang up. I fat fingered you. I was. I was trying to call my mom. I'm getting booked into jail. Or something. Like my. You gotta get my son. Just call. Call this number. So that. You give some big story right. Call this number. So. So that my son's not waiting there. And you decide to do it for some reason. Because you're a nice person. And what happens is. You hang up. You dial the string of numbers he gave you. But all you've done is. Done initiated call forwarding. So something like star seven nine. Or whatever. And now all the phone number. Phone calls coming in. Are going to this attacker controlled phone. Where this gets real crazy. I mean a lot of. In case that's. SMS broker goes down. There's a lot of. Sites that'll let you. Use another. You know. Get a phone call or something. Because they don't want to get. They don't want to DOS you. If. If the SMS. Third party. Broker is down. So you just get a. As the attacker. You've got the username. Password. Now you've got the phone call. So. Select to get a. Select to get a. Call. Instead of a. Text message. And you've gotten in. Oh. And phishing here. And this is. One of those things. Where you can kind of. Feel like. Phishing doesn't. Affect me anymore. I've got two. You know. Multi factor. Enabled here. But really. If an attacker. Can get a user. To put in. A username. And a password. They can also. Trick the user. To enter in. Whatever they're getting. On their cell phone. So really. You've got to. Be careful. And then. Here's just an example. Of how much. It can look. Real. I mean. This. This could be an attacker. Controlled page. We've got this. Kind of. Typo squatting type. Domain name. And. If you're not paying attention. As a user. You can get. Phished really easily. And that's. Really one of the main points. That's important here. Is just. Being vigilant. With where we're going. I think with this crowd. We're probably pretty good. About that. But. You can't trust. What's. Being presented. To you. So. I was interested. To find. That fishing. By SMS. Has its own. Name. Smishing. I thought it was humorous. I thought it was kind of lonely. Guy sounding. So. I don't know. I just love that meme. And. I thought. We've got. Fishing. Smishing. I thought spear fishing. Could be called. Spishing. Probably. And that would be cool. And then. If we recall. Whaling. Whale fishing. Which would be. You know. That's not correct. But. Cushing. I thought would be cool. Kind of like a hot rod reference. Or something. But really. I just like to call it. Fishing. So I don't confuse myself. Another thing. Similar to. Fishing. Really. If you can get somebody. To click a link. And install. Mobile device management software. Or something. Now. You're just reviewing. This user's. Messages. Remotely. Because. They've signed up. To be monitored. By you. There's an example there. Of the text coming in. And. You can view the. Targets. Messages. Easily. Finally. How many places. Do we get. SMS messages? You can get them. On your laptops. You can get them. On web applications. You can. They can be popping up. On little. Alerts. On your. Mobile. On your laptops. And really. If you're at work. And you're leaving. Your desktop. Or whatever. That's decided. They want to get. Into your account. For some reason. They can just look over there. And. Get right in. Another example. Is there's a lot of providers. That actually provide. Kind of a second. Messaging app. That you can install. Or sign up for. So. Like. Messages plus. Or whatever. Is one. And if you do this. You can view. All of your mobile. Messages. You will. View all of your messages. On the provider. Like Verizon's. Website. So. Basically. If you don't have. Two-factor setup. On your carrier account. Like. To get into Verizon.com. But you have this. Messages app. Set up. You can just log in. And view your messages. On the web application. And if an attacker. Can get in there. They can get your. Two-factor as well. So really. As we know. We're only as strong. As the weakest link. So. If we're getting. SMS messages. To places. That are not. Protected by. Multi-factor auths. It's a potential. Attack point. For an attacker. To get in. And target us. To. Prevent this. Really. Using something. Besides. SMS. Is a really. Good idea. If at all. Possible. Using. Some form. Of multi-factor. But using. Something else. If possible. Requesting. Port out. Authorization. Can be. A good way. To have it. So that the providers. Don't just. So easily. Let you. Call. And say. Hey. I'm getting a new. Phone number. Will you. Will you. Transfer this. Number. Over to this. One. If. The. Carrier. Needs. To contact. You. First. It'll. Make it. Harder. For the attacker. To do. That. Also. Application. Security. Must. Not. Be. Neglected. Here. If. You. Do. This. Work. For. Two. Multi-factor. And. Then. Once. You. Get. In. There's. Some. Persistent. Cross-site. Scripting. Vulnerability. Sending. Your. Cookie. Somewhere. Else. The. Attacker. Doesn't. Need. To. Do. Multi-factor. Once. You're. Already. Authenticated. So. So. Train. On. Phishing. Train. On. Malware. Document. Strategy. For. Response. And. Then. Handling. These. Unsolicited. Notifications. If. You're. Working. For. Somebody. Else. Or. Protecting. Somebody. Else's. Account. How. Was. This. Person. A. Big. Target. And. Changing. The. Password. As. Soon. As. Possible. Because. That's. If. You. Verified. You're. Getting. Unsolicited. Request. Somebody's. Got. The. Password. Out. There. Identify. All. The. Attacker. Activity. Because. What. Be. Really. Bad. Is. If. You. Go. Through. All. The. Work. You. Run. The. Incident. You. Change. The. Password. And. Then. The. Guy. There's. Some. Vulnerability. Out. There. Still. Getting. The. Account. Recompromised. So. Identifying. How. The. Initial. Compromise. Happening. Also. Helps. And. Continue. To. Monitor. Yeah. Yeah. Yeah. Yeah. So. How. Do. You. Deal. With. The. Timing. For. How. Long. The. Tokens. Good. For. It's. A. Great. Question. And. We. Hope. Usually. It's. Something. Like. With. The. SMS. Ones. You. Have. To. Some. Application. Logic. To. Really. Lock. That. Down. Because. It's. Not. Necessarily. A. Time. Based. One. Time. Password. Which. We're. Going. To. A. Bit. Of. A. Talk. On. Here. In. A. Little. Bit. You. Hope. That. You're. Only. Getting. A. Min. Sweet. All. Right. So. I'm. Just. Going. To. To. Too. So. It. Kind. Of. Depends. On. The. Application. So. It. Be. Five. Minutes. Or. 20. Minutes. To. Enter. The. Code. In. A. Case. You. Grandma. Fat. Fingers. Or. Grandpa. Or. Whoever. Fat. Fingers. That. Number. Any. Give. Them. A. Couple. Of. Tries. But. Usually. That. Condensed. So. People. Can. Just. Brew. Force. That. Right. And. Figure. Out. Your. Digit. Code. Without. Having. The. Code. On. The. Phone. And. Your. Your. Access. Because. I'm. A. Situation. Where. I'll. To. You. Afterwards. So. If. You. Want. Yeah. Yeah. In. Fact. If. We. Run. Out. Of. Time. Because. We. A. Of. Material. So. If. We. Run. Out. Of. Time. We're. Going. You. My. Twitter. Handle. You're. Welcome. To. Reach. Out. To. Me. Or. We. Can. Talk. Afterwards. Because. Yeah. This. Is. A. Field. That. I. Love. To. Talk. About. You're. Great. So. No. You're. Good. So. The. Next. One. We're. Going. To. About. Is. T O T P. So. This. Is. Really. Similar. To. The. Question. We. Just. Got. So. This. Is. A. Time. Based. One. Time. Password. And. It. It's. Based. Algorithm. So. It's. A. Time. Password. And. Typically. It. Generates. Every. 30. Seconds. Right. If. Look. At. Your. Google. Authenticator. App. You. To. Every. 30. Seconds. You. Get. A. Code. They. Usually. Have. About. A. Minute. And. A. Half. Padding. Around. That. Too. So. It. Last. Typically. About. A. Minute. And. A. Half. Maybe. Two. Minutes. Is. Really. The. Length. That. Code. Will. Last. And. This. Is. Based. Off. Of. The. Oath. Standards. The. Only. Reason. I. Mention. That. One. Is. Just. Of. To. Know. Where. Things. Come. From. But. Also. Just. Because. This. Gets. Confused. A. Lot. With. Oath. Two. So. Any. People. Who. Are. Having. That. Discussion. I'd. Love. To. Collaborate. With. You. So. This. Is. Based. Off. Of. The. Oath. Standards. With. A. Set. Algorithm. And. It's. To. Know. That. Because. You're. To. See. That. There's. Some. Great. Vulnerabilities. In. Fact. That. It's. Using. This. Common. Algorithm. Everywhere. And. Oh. And. Just. So. You. Know. There's. Different. Types. This. One's. Time. Based. There's. Also. A. Counter. Based. Which. Is. H. O. T. P. And. That. Just. Means. That. The. Time. You. Use. The. Password. And. Then. Creates. A. One. Or. A. New. Code. And. It. Does. That. Every. Time. You. Create. Every. Time. You. Use. It. So. That's. H. O. T. P. But. Okay. So. This. Is. Probably. What. You're. Used. To. Seeing. When. You. Set. Up. Google. Authenticator. You're. Going. To. A. QR. Code. And. You're. Going. To. See. If. You. Scanned. That. Or. If. You. Went. To. Can't. Scan. It. That's. Typically. You're. To. Something. Like. Can't. Scan. It. Or. Copy. Code. Manually. If. You. Click. On. That. Then. To. The. Shared. Key. And. I'm. Going. To. To. You. Why. That's. Important. Why. We. Want. To. Know. What. That. Shared. Key. Is. And. All. We. Do. Is. Hash. That. With. The. Time. And. This. Is. Looking. At. The. Cisco. Time. Right. This. Our. Server. Time. So. If. You. Were. To. Take. This. Into. A. Calculator. Right. Now. You. Would. See. That. Be. Today. At. 11. O'clock. Right. So. We. Take. The. Time. Of. Right. Now. All. I. Got. This. Hash. And. Now. All. I. Do. Is. I. Look. At. The. Last. Character. Or. The. Last. Four. Bits. But. We're. Just. Going. To. Say. The. Last. Character. Is. That's. Highlighted. In. Red. So. We. Take. The. Next. Four. Bites. After. We. Offset. It. By. Fifteen. Pull. That. And. Then. Convert. It. From. Hex. To. Decimal. Right. And. Then. You. Mod. That. By. A. Million. Because. All. You're. Trying. To. Do. Is. Just. Get. Six. Digits. That's. Typical. Usually. You. Only. Have. Six. Digits. That. Is. In. So. They. Mod. That. By. A. Million. Which. All. That. Is. Is. You. Divide. It. By. A. Million. And. You. Take. The. Remainder. Which. Is. Six. Digits. In. This. Case. And. That's. Your. T. O. T. P. Code. That. Is. The. Standard. Algorithm. That's. Used. Every. Single. Time. And. It's. Nice. To. Know. That. Because. If. I. Your. Shared. Key. I. Could. Be. You. Know. For. Fun. I. Could. Calculate. This. Myself. Or. Of. Course. I. Could. Just. Use. An. Application. To. Do. That. But. The. Important. Part. Of. This. Is. The. Fact. That. There's. A. Shared. Key. Right. All. Have. To. Do. Is. Get. A. Hold. Of. That. That's. Your. Golden. Ticket. And. Fact. That. That's. Available. Now. I. Just. Have. To. Think. About. Okay. Well. Where. Do. They. Store. The. Shared. Key. Well. It's. Stored. On. Their. Phone. Because. Google. Authenticator. Knows. It. So. It's. Going. To. Be. Stored. In. The. Phone's. Database. The. Apps. Database. So. If. Full. Control. Of. Their. Phone. I. Can. Extract. That. Key. And. Now. I. Generate. My. Own. Six. Digit. Code. For. Them. Or. If. I. Get. Ahold. Of. The. Application. Or. Figure. Out. How. To. Compromise. On. It. Just. For. Demo. Purposes. And. For. Fun. But. You. Know. What. It's. Actually. Pretty. Realistic. With. A. Of. Sites. Out. There. So. We. Kind. This. Is. Oh. To. The. Women. Of. Technology. Going. On. So. I'm. Going. To. In. As. Ada. Loveless. If. You. Don't. Know. Who. Ada. Loveless. Is. You. Should. Look. It. Up. Eighteen. Hundreds. She. Helped. Come. Up. With. Algorithms. That. We. Use. Today. In. Programming. All. Right. So. This. Site. It's. Pretty. Awesome. Because. It. Has. Two. Step. Verification. So. Can. Install. Your. Own. Desktop. T. O. T. P. Manager. As. Well. Which. Is. Convenient. Because. In. This. Circumstance. I. Have. To. To. A. Phone. Is. I. Mean. Obviously. This. Is. A. Pretty. Insecure. App. Usually. Not. Your. Password. In. Plain. Text. Right. There. Right. But. Some. Apps. Will. Still. Give. You. Access. To. That. Shared. Key. They. May. Allow. You. To. Into. Google. Authenticator. Or. Authenticator. App. Or. Whatever. They. Called. It. Duo. Or. Whatever. In. Order. To. Edit. Your. Shared. Key. Or. Add. Another. Device. If. It. Lets. You. Do. That. All. You. Have. To. Do. If. They're. Signed. In. You. Just. Come. Across. Access. Their. Account. Settings. And. You're. Able. To. Grab. That. Shared. Key. Now. Let's. Imagine. Though. That. I. Don't. Have. Access. To. This. Web. Site. And. I'm. Just. Going. To. Do. Basic. Hacking. 101. Right. I'm. Going. In. Here. Oops. I. Guess. I. To. Type. It. In. So. I'm. Just. Going. Put. In. Some. Basic. Data. Breaches. Happen. Is. Through. Sequel. Injection. So. Put. In. Some. Sequel. Injection. It. Doesn't. Know. Who. To. Give. Us. So. It. Gives. Us. The. Entire. Database. Isn't. That. Convenient. And. This. Unfortunately. Is. A. Vulnerability. That. Like. I. Said. Is. Pretty. Common. So. Since. They. Have. Stored. The. Shared. Key. Right. Along. With. The. Username. And. The. Password. I. Now. Have. The. Username. I. Have. The. Password. And. I. Have. The. Shared. Key. That. I. Can. Just. Now. Generate. My. Own. T. O. T. P. So. If. We. Wanted. To. Sign. In. As. Hedy. Lamar. Who. You. Should. Also. Look. Up. Hedy. Was. A. Famous. Hollywood. Actress. And. Yeah. She. Also. Invented. Spread. Spectrum. Which. Is. Used. In. Wi-Fi. Bluetooth. And. That's. Pretty. Cool. So. If. Wanted. To. In fact. Let's. Go. Over. Here. So. If. Wanted. To. Sign. In. As. Hedy. All. To. Do. I. Just. Go. Through. That. Algorithm. Myself. Right. Do. The. Offset. Or. I. Can. Be. Lazy. Because. Hackers. Are. Typically. Lazy. So. I'm. Just. Going. To. This. Here. And. Now. We. Just. Generated. It. Went. Through. That. Same. Algorithm. I. Showed. You. And. It. Just. Generated. That. Six. Digit. Code. This. App. Is. There. Go. Little. Chintzy. But. So. Now. All. Have. To. Do. Go. Back. To. Here. Put. In. Since. I. Have. Hedy's. Password. Because. I. Got. That. As. Well. And. Sign. In. Put. This. In. Here. And. And. It. Signs. In. So. If. You. Imagine. If. This. Was. Like. The. Administrator. Right. I. Got. Into. That. Database. To. Database. Of. Where. That. Shared. Key. Is. Stored. If. Find. Some. Vulnerability. On. Your. Web. Application. I. Might. Be. Able. To. Get. Extract. That. Shared. Key. And. Still. Be. Able. To. Get. Past. That. Second. Factor. So. Just. Because. You. Have. Multi. Factor. Authentication. In. Place. It. Doesn't. Mean. That. Your. Sites. Can. Automatically. Secure. And. We. Just. Look. At. I. Mean. Here. Two. Steps. In. Order. To. Get. In. I. Exploit. Either. The. User. Right. Social. Engineering. Is. Always. A. Great. Target. Or. A. Avenue. To. Take. I. Can. Exploit. The. Application. Like. I. Just. Did. Right. Sequel. Injection. Cross. Site. Scripting. Course. Trying. To. Some. Vulnerability. In. The. Application. See. Get. Into. That. Database. Or. Take. Advantage. Of. The. Phone. If. Can. Control. The. Phone. I. Can. Get. The. Share. Key. From. There. As. Well. And. Then. Obviously. Get. Into. The. Targets. Account. So. How. We. Prevent. This. So. First. Of. All. You. Want. To. Sure. You're. Diligent. About. Application. Security. You. Can't. Take. Application. Security. Lightly. So. You. Need. To. Make. Sure. You're. Securing. Your. Site. So. You. Got. To. Think. About. The. Fact. That. I. Mean. How. Many. If. Multiple. Apps. In. Your. Company. Make. Sure. That. All. Of. Them. Are. Protected. That. No. One's. Allowing. You. To. Into. Your. Identity. Database. And. Where. Store. That. Shared. Key. Is. Important. If. You're. Storing. It. Right. Alongside. The. Username. And. Password. Right. If. Someone. Can. Get. Your. Username. And. Password. They're. Going. To. Get. That. Too. So. You. Know. All. The. Same. Things. That. That. All. The. Same. Ways. That. People. Could. Get. Access. To. The. Database. They're. To. Just. Do. That. Same. Thing. And. Get. Access. To. The. Shared. Key. So. You. Want. To. Sure. That. Either. You. Store. It. In. A. Separate. Location. You. Encrypted. And. You. To. Access. The. To. Your. Work. Your. Work. To. Your. Work. To. Your. Work. To. Your. Work. To. Your. Work. One. Those. Things. To. Keep. In. Mind. That. They. You. Got. To. Account. For. You. Know. Network. Lag. Times. Server. Times. Whatever. Problems. In. Between. And. So. That's. Why. That. Code. Still. Worked. Even. Though. If. Looked. At. Screen. Right. Before. She. Entered. There. Have. Been. Another. Code. There. And. I. Think. That's. So. So. Push. Notifications. Here's. An. Example. Do. Want. To. Sign. In. Yes. No. Kind. Of. Thing. How. Does. It. Work. What's. Cool. Is. You're. Kind. Obviously. You're. Talking. Communicating. Over. A. Network. But. You. Basically. When. You. Log. In. The. Application. Instead. Of. Talking. To. An. SMS. Broker. Is. Going. To. Some. Service. Provider. But. Talking. Google. Or. Apple. A. Of. Times. The. Most. Popular. And. You're. Sent. There. The. Application. Is. To. Include. An. Application. I. Mean. A. Device. Token. And. The. Query. That. Goes. Out. To. The. Service. Provider. Who's. Going. To. Also. Forward. That. Along. By. Using. The. Device. Token. Looking. Up. The. Device. Sending. It. To. The. Actual. User. Device. When. Respond. It. Goes. Back. To. The. Same. Channels. And. The. Response. Based. On. That. Allows. Access. In. The. Application. What's. What's. Really. Unique. Here. And. Important. To. Remember. So. This. Device. Token. Is. The. Same. Across. You. Got. It. On. The. Application. You. Got. It. On. The. Service. Provider. And. You. Got. It. On. The. Device. So. How. Going. To. Bypass. That. Well. Getting. Access. To. Try. To. Change. That. Token. Is. Really. What. You. Want. To. Do. And. If. You. If. You. Find. As. An. Attacker. If. You. Know. What. Your. Device. Token. Is. And. You. Can. Impose. That. On. A. Target. Users. Device. Then. All. Of. The. Messages. Destined. For. Them. Going. To. Come. To. Your. Device. So. Ways. To. Do. That. I. Mean. Sherry. Gave. That. Great. Example. With. You. Know. Sequel. Inject. Injection. If. Can. Get. In. That. Through. That. Kind. Of. Weakness. And. Inject. Your. Device. Token. Over. Other. Users. Then. That's. That. Will. Get. You. What. You're. Trying. To. Maybe. You. Can. Change. Another. User's. Account. Through. Some. Parameter. Tampering. Or. Something. And. Update. Also. The. Device. Token. Those. Are. Some. Examples. We'll. Give. Let's. Let's. Of. Show. What. Would. Look. Like. Right. To. Go. Back. To. That. Same. Application. Same. User. Here. Log. In. As. Ada. And. We're. Going. To. The. Message. Is. Destined. For. Heady. Oh. No. Too. Much. Track. Pad. Sorry. Okay. So. Here. We. Are. Familiar. Screen. We're. Going. To. Look. At. Our. Push. Notification. Okay. So. Here's. The. Device. Token. You. Can. See. Here. We've. Got. 64. Characters. So. It's. A. Longer. It's. Mostly. Random. But. At. End. We've. Got. A. Little. Homage. Defcon. Let's. Remember. That. Too. Because. This. Is. Too. Long. Remember. All. Of. These. Things. But. We're. Going. To. Change. Headies. To. Be. This. Key. This. Device. Token. So. Let's. Update. How. Are. Going. To. Do. It. I. Can't. Mess. With. This. Let's. Look. At. The. URL. There's. Some. Parameter. Tampering. Potential. Right. Here. Sorry. That's. Now. We've. Got. This. This. QR. Code. Here. This. Is. The. Kind. Of. Thing. We've. Just. Got. An. Endpoint. Where. If. You. Usually. These. Things. Just. When. You. Scan. A. In. Place. Of. Where. Hedy's. Was. And. That. Would. Be. A. Really. Bad. Vulnerability. To. Have. Right. Nobody. Has. That. But. No. They. Do. And. That. Really. That. Really. Exists. Out. There. Where. These. Values. The. They're. Totally. Obvious. Maybe. What. They're. Used. For. To. Maybe. The. User. But. If. You. Can. If. Attacker. Against. That. Just. Like. What. Sherry. Was. Saying. Application. Security. Is. Really. Important. Here. As. Well. It. Kind. Of. Goes. Back. To. That. First. Example. We. Talked. About. To. Where. I. That. Email. That. Hey. It's. Encrypted. Document. PHI. So. Encrypted. And. Send. Me. A. Token. To. My. Email. You. Know. And. I. Just. Walk. In. Through. The. MFA. It. All. Comes. Down. To. Implementation. That. Wasn't. The. Provider's. Fall. That's. Just. The. Way. It. Was. Implemented. And. Same. Thing. If. You. If. Go. Through. All. This. Work. To. Set. Up. MFA. You. Got. This. I. Know. SMS. Is. Maybe. Not. As. Secure. So. I'm. Gonna. Do. Push. Notifications. On. My. App. But. Then. You've. Got. Some. Roundabout. Way. Of. Just. Walking. In. The. Thing. Falls. Apart. So. Fishing. And. Social. Engineering. Here. As. Well. If. You. Can. Get. The. User. Trying. To. Some. Kind. Of. Downgrade. Attack. To. Happen. If. Let's. Say. The. User. Is. Seeing. A. Lot. Of. Push. Notifications. Coming. Across. And. They're. Just. Sick. Of. It. And. Just. Go. And. Log. In. And. Turn. Off. Push. Notifications. That. Would. Be. A. Really. Dumb. Thing. To. Do. But. That. Could. Totally. Happen. Their. Sick. They're. Bothered. Their. Work. Is. Interrupted. They. Need. To. Back. To. Work. So. I'm. Done. With. This. Broken. Technology. That. Doesn't. Work. Right. Having. A. Strategy. For. How. Know. I. Don't. My. Phone. Today. I. Need. We. Just. Got. To. Do. Something. Else. About. This. I. Can't. Get. In. Can. You. Turn. Off. Multi. My. Factor. For. The. Day. If. Attacker. Can. Successfully. Imitate. The. User. And. Get. Them. To. Just. Turn. It. Off. For. Maybe. Even. Just. Eight. Hours. Just. The. Work. Day. That's. A. Huge. Window. Session. Hijacking. Still. Very. Much. Applicable. Here. As. Well. Once. The. Session. Has. Been. Once. You. Got. That. Session. Made. All. The. Two. Factor. Multi. All. That. Stuff. Is. Done. So. That. Needs. The. Session. To. Be. Protected. I. That's. Pretty. Good. On. This. One. Accidental. Approval. No. We. Talk. About. For. Second. So. Statistically. If. This. Could. Into. Some. More. Social. Engineering. Too. So. You. Could. Just. As. An. Attacker. Just. Log. In. Hopefully. The. Attacker. New. Especially. If. Corporation. You. Don't. Want. To. Blow. Maybe. Your. Opsec. Or. Something. If. You're. A. Tester. But. Hopefully. You. Knew. If. They. Had. Mfa. On. Themselves. Hey. We're. Testing. Out. Some. Functionality. We. Had. Some. Complaints. So. You. Just. Click. One. Of. The. Buttons. When. It. Comes. Up. You're. Going. To. Get. A. Notification. There. Studies. Out. There. Statistically. The. User. Will. Select. Yes. More. Than. No. And. So. That. Sounds. So. Dumb. But. That's. True. And. You. Connect. And. It. Can. Be. That. Simple. So. All. This. Work. All. This. Architectural. Design. All. This. Engineering. Can. All. Be. Foiled. By. Kind. Of. One. Silly. Thing. So. It's. Important. To. Consider. In. The. Message. To. The. User. You. Can. Try. To. Run. Maybe. Cross. You. Try. To. Run. JavaScript. Or. Something. In. That. Target. User. Device. And. Depending. On. The. Device. You. Might. Have. You. Might. Have. Some. Success. There. And. Depending. On. How. Much. Validations. Going. On. Client. Side. And. What's. You're. Actually. Able. To. Submit. To. The. Device. And. With. That. I. Think. That. Rounds. Out. Push. Pretty. Well. Sweet. The. Finale. All. Right. So. We're. To. On. U2F. Security. Keys. And. This. One. Is. Definitely. My. Favorite. There's. A. Of. Incredible. Controls. Here. But. We're. To. You. Still. Some. Ways. To. Get. Around. This. And. One. Thing. That. As. Dennis. Was. Mentioned. Arbitrary. Code. With. Push. Notification. That's. Intriguing. To. Me. Because. You. Think. That. Push. If. Gain. Control. Of. That. You. Could. Send. Whatever. Messages. Whatever. Code. Whatever. Anything. You. Wanted. To. Someone's. Phone. If. You. Owned. That. Application. That. Sending. Those. Messages. So. That's. Just. Kind. Of. Interesting. To. Think. About. But. All. Right. So. You. To. Add. Security. Keys. The. Way. This. Works. So. Security. Key. If. Haven't. Used. One. It's. Kind. Of. A. Thumb. Drive. Goes. Into. Your. USB. Or. USB. C. Port. You. Just. Type. In. Your. Password. Press. The. Button. And. It. Logs. You. In. And. Security. Keys. Especially. Well. There's. Many. Different. Types. Of. Security. Keys. First. Of. All. So. There's. Some. That. Do. Just. Like. Google. Authenticator. Does. Generates. Just. A. Code. You. Can. Get. Past. That. In. The. Same. Way. As. You. Get. Past. Google. Authenticator. Or. Similar. You. Could. Still. Fish. But. With. U2F. It. Has. Additional. Controls. That. Are. In. Place. So. Just. Know. That. Not. All. Security. Keys. Are. The. Same. So. U2F. Was. Created. By. The. Fido. Alliance. And. They. You. Know. Multiple. Organizations. Mostly. Ubico. And. Quite. A. Few. Other. Impressive. Organizations. Came. Together. To. Try. To. Authentication. Stronger. So. What. Came. Up. With. You. Know. Has. So. Many. Controls. And. This. Is. As. Dennis. Mentioned. Reddit. Was. Just. Recently. In. The. News. About. Their. Data. Breach. Reddit. Is. Now. Looking. At. Using. They've. Mentioned. Using. Security. Keys. I. Don't. Use. Google. Authenticator. One. Of. The. Other. Options. I. Just. Go. Straight. Here. And. That's. What. Google. Is. Using. Today. To. Google. Is. Advertised. That. This. Is. Their. Way. To. Get. Past. Fishing. Is. Using. YouTube. Security. Keys. So. Some. The. Benefits. And. The. Reason. Why. There's. Some. Great. Controls. Here. It. Uses. Public. Private. Key. On. The. Initial. Handshake. So. It's. Going. To. Pass. A. Key. First. Of. All. And. Then. It's. Also. Going. To. Pass. Origin. ID. When. I'll. Dive. Into. That. A. Bit. More. That. Helps. You. Avoid. Fishing. And. It's. Also. Going. To. Token. Binding. Which. We'll. Dive. Into. As. Well. Because. That's. Kind. Of. That's. Pretty. Exciting. And. Interesting. You. Can't. Write. To. The. Security. Key. It's. Right. Blocked. So. Like. A. Phone. A. Phone. I. Can. Get. Control. Of. This. Right. You're. You're. Browsing. The. Internet. With. Your. Phone. So. There's. Multiple. Ways. To. Get. Control. Of. Someone's. Phone. But. A. Security. Key. You. Can't. Write. To. It. So. I. Can't. Get. Remote. Access. To. Your. Security. Key. I. Also. They. Use. A. Nonce. They. Use. A. Counter. So. I. Can. Do. A. Replay. Attack. On. It. If. Get. The. Message. Is. Transferring. Across. I. Can't. Use. It. More. Than. It. Because. You. Can't. Automate. That. Right. So. Some. Really. Cool. Things. That. U2F. Offers. So. Origin. Bound. Oh. This. Just. Shows. Kind. Of. That. Process. That. Initial. Setup. So. You're. To. And. This. Is. Good. To. Know. Because. There's. Always. A. Message. Or. Some. Data. That's. Going. To. Be. Stored. On. Both. Sides. Right. So. The. Security. Key. Is. Going. To. Store. That. Public. Private. Key. The. Origin. ID. The. TLS. Channel. ID. Or. Token. Binding. You're. Also. Going. To. That. Same. Thing. Stored. On. The. Application. So. If. Access. To. That. Right. Swap. Out. Your. Message. With. Someone. Else's. Then. You. Just. Use. Your. Security. Key. So. Know. That. There's. Some. Storage. That. Takes. Place. Really. Similar. To. Push. Notification. You. Still. Could. Take. Advantage. Of. This. We'd. Have. To. Access. To. The. Identity. Provider. Database. All. Right. So. Just. A. Little. Bit. More. About. Origin. Binding. So. This. Binds. Against. The. Domain. Name. And. So. Like. With. Fishing. I'm. Going. To. Pretend. You. Know. Google. One. Dot. Com. Right. You. Not. Notice. You. Think. You're. The. Real. Site. But. With. Origin. Bound. It's. Going. To. Look. At. The. Uri. So. It's. Not. That. Whole. Tunnel. Is. Protected. But. You. Don't. Know. If. Going. From. Point. A. To. Point. B. If. Someone. Got. In. The. Of. That. Message. Now. If. You. Used. You. Have. To. Use. Token. Binding. To. Protect. Your. Access. Token. Or. Your. I. D. Token. If. Using. Open. I. D. Connect. If. You. Protect. Those. Tokens. With. Token. Binding. Then. You. Be. Able. To. Protect. Against. Session. Hijacking. Now. The. Interesting. Thing. Here. Right. So. There's. All. These. Complexities. That. Go. With. Token. Binding. Which. Is. Really. Really. Cool. But. It's. Also. Complex. And. It's. Fairly. New. Still. So. There's. A. Lot. Of. Servers. So. Web. Servers. Network. Systems. That. May. Not. Be. Able. To. Support. This. Yet. So. If. You. Look. At. The. U2F. Specs. You're. Going. To. See. That. This. Is. Listed. As. Optional. So. Token. Binding. Even. Though. It's. Not. Cool. And. Protects. Against. Men. In. The. Middle. And. Protects. Against. Session. Hijacking. It's. Optional. Which. Means. That. Not. All. Companies. Have. Probably. Taken. Advantage. Of. This. Yet. So. Have. To. Have. A. Web. Server. Apache. Does. Support. It. But. There's. Some. Web. Servers. That. Don't. So. You. Have. To. Have. A. Web. Server. That. Supports. Token. Binding. In. Order. To. Use. It. You. Have. To. Use. This. Throughout. Your. Network. Right. If. You. Think. About. Kind. Of. Hops. That. Are. Taking. Place. If. You're. Not. Using. Token. Binding. In. One. Spot. Then. That. Area. Is. Still. Going. To. Be. Vulnerable. To. Man. In. The. Middle. Of. Tax. So. There's. Still. Even. Though. I. We. Hear. About. This. And. It. Sounds. Super. Cool. There's. Still. Ways. Around. It. And. If. Not. Using. Token. Binding. With. All. Their. Access. Or. Refresh. Tokens. With. To. Open. ID. Connect. Then. You. Still. Would. Probably. Be. Able. To. Use. Session. Hijacking. So. If. Was. A. Pen. Tester. Of. A. Large. Organization. And. We. Just. Announced. That. We're. To. Over. To. U2F. Security. Keys. This. Is. One. Thing. I. Want. To. Test. To. See. Okay. Yeah. It. Advertises. It. Can. Do. This. But. Is. Our. Company. Actually. Doing. This. Because. This. An. Architecture. Change. You. Actually. Have. To. Think. About. The. Architecture. Throughout. Your. Network. In. Order. Make. Any. Physical. Attack. Would. Be. Probably. Your. Easiest. Method. Right. Just. Get. Access. To. The. Security. Key. And. Then. Now. You. Get. The. Password. Like. You. Always. Did. Before. You. In. You. Can. Manipulate. The. Database. Like. We. Talked. About. Switch. Out. The. Message. It's. Usually. Json. Message. You. Switch. That. Out. With. Your. Own. And. Can. Get. In. Social. Engineer. The. Support. Team. Try. A. Backup. Method. That. Security. Key. Is. So. Small. It's. Easy. To. Leave. At. Home. Or. To. Lose. They. May. Have. Up. A. Backup. Method. Like. Sms. Which. Would. Obviously. Be. A. Lot. Easier. To. Get. Past. So. As. We. Looking. To. This. Kind. Of. Kind. Reminded. Us. Of. That. Comic. I. Think. You. Guys. Probably. Seen. This. Before. You. Know. How. Can. We. Get. Past. This. Complex. Encryption. System. Kind. Of. The. Same. Thing. With. Security. Key. How. Can. Get. Past. U2F. We. Can. Create. Fish. You. Know. Cry. And. Create. Some. Type. Of. Expensive. Solution. Or. I. Could. Buy. A. Five. Dollar. Wrench. Hit. Somebody. On. The. Head. And. Ask. Them. To. Me. Their. Security. Key. Right. And. That's. Probably. Your. Easiest. Solution. Is. Just. Get. Access. To. The. Security. Key. Social. Engineer. The. Support. Team. That's. Probably. The. Simplest. Way. To. Past. It. But. Then. There's. Also. Still. Some. Vulnerabilities. All. Right. To. Protect. We. Want. To. The. Authentication. Database. Make. Sure. That. Someone. Can. Get. Access. To. That. If. I. Was. Able. To. Do. Sequel. Injection. Still. On. The. Database. And. Do. An. Update. I. Might. Be. Able. To. Just. Swap. Out. My. Security. Key. Message. With. Yours. And. Now. I'm. Using. My. Security. Key. And. Nobody. Know. Patch. Monitor. All. Of. Your. Systems. Obviously. Protect. Against. Malware. So. All. The. Basics. So. End. Result. You. Know. It's. Multi. Factor. A. Silver. Bullet. Is. Going. To. Protect. You. Against. Everything. No. Me. Obviously. It's. An. Incredible. Layer. No. Security. Is. All. About. Complexities. And. Want. To. As. Much. Complexity. As. We. Can. To. Deter. People. From. Getting. Out. Of. Time. So. I. Apologize. We. Don't. Get. A. Chance. To. Ask. Any. Questions. But. Dennis. And. Be. Out. In. The. Hall. You. Can. Talk. To. Us. Or. Feel. Free. To. Send. Us. A. Message. On. Twitter. And. Pretty. Easy. To. Find. Sherry. Callie. And. Dennis. Feel. Free. To. Add. Us. And. Ask. Us. Any. Questions. And. We. Love. To. Collaborate. So. Thank. You. Very. Much.