1 00:00:00,000 --> 00:00:02,500 Okay, if everyone's ready, we'll get started with the next talk. 2 00:00:02,500 --> 00:00:07,180 The next talk is for Martin and it is from email address to phone number. 3 00:00:07,180 --> 00:00:14,680 I've introduced a lot of talkers so far over the past two days, and each time I get given a wonderful little bio that I then basically get given one line. 4 00:00:14,740 --> 00:00:17,100 For Martin, I got given a whole paragraph. 5 00:00:17,120 --> 00:00:21,100 And I'm not going to read the whole paragraph, I will read the final line of the paragraph. 6 00:00:21,260 --> 00:00:27,960 And it says, outside of the office, Martin enjoys research, bug bounties, gin and tonics, and scuba diving. 7 00:00:27,960 --> 00:00:30,520 On that night, I'm going to hand over for his presentation. 8 00:00:30,520 --> 00:00:32,120 Gin and tonic, gin and tonic for the win. 9 00:00:32,120 --> 00:00:33,000 All right. 10 00:00:33,900 --> 00:00:36,160 Thanks for coming to this talk. 11 00:00:36,160 --> 00:00:49,700 It's going to be audience related and basically what we are trying to see is new ways for you to go from an email address that you may have of your target, how maybe you could get the victim's phone number. 12 00:00:49,700 --> 00:00:52,620 So my name is Martin Vigo, no introductions needed. 13 00:00:53,020 --> 00:00:56,260 I do now red teaming from Galicia Spain. 14 00:00:56,260 --> 00:00:58,080 That's important that I mention that. 15 00:00:58,080 --> 00:01:00,580 And the gin and tonic thing was already said. 16 00:01:00,580 --> 00:01:07,540 So since the talk is about going from an email address to a phone number, I kind of wanted to put these slides up. 17 00:01:07,540 --> 00:01:16,700 And this is my view of it, so kind of like a spectrum of how I feel in terms of privacy when some of my PII leaks. 18 00:01:17,080 --> 00:01:21,240 My email address is something that I hand out, so I'm not concerned. 19 00:01:21,240 --> 00:01:24,680 Obviously my social security number will be the worst thing for me. 20 00:01:24,820 --> 00:01:28,020 And I kind of like put the phone number in between, right? 21 00:01:28,020 --> 00:01:32,440 The phone number, I give it to a lot of people, even to people that I don't know, that I just met. 22 00:01:32,440 --> 00:01:37,920 But it's not something that I'm comfortable making public online or anything like that. 23 00:01:37,920 --> 00:01:42,440 And I will assume that many of you kind of relate to this. 24 00:01:42,820 --> 00:01:47,040 This is from a privacy standpoint, but from security it's also important, right? 25 00:01:47,040 --> 00:01:52,620 What's the difference between your email leaking, your email address and your phone number? 26 00:01:52,980 --> 00:01:55,320 We saw that in terms of privacy, that's important. 27 00:01:55,320 --> 00:01:59,940 But in terms of security, if an attacker has your email address, right, what can they do? 28 00:02:00,080 --> 00:02:07,680 And you know, like they can spam you or try to phish you so that you click on a link or anything like that. 29 00:02:07,680 --> 00:02:13,360 They could potentially target actually people you know by spoofing the email address, right? 30 00:02:13,360 --> 00:02:16,640 So pretending to be you, so that they get to click on something. 31 00:02:16,940 --> 00:02:32,800 And probably the worst part would be going to sites like have I been pounded or any of those sites that give you like, oh this person, you know, their data leaked on LinkedIn in 2012 and then you can go somewhere to get actually those credentials in the deep web or whatever. 32 00:02:33,380 --> 00:02:37,280 If the phone number leaks, in terms of security, we have kind of the same thing, right? 33 00:02:37,280 --> 00:02:42,080 People can spam you, it's actually more annoying because it's more invasive to receive a phone call. 34 00:02:42,760 --> 00:02:48,160 There could be also phishing, someone pretending to be someone else, and spoofing as well, right? 35 00:02:48,160 --> 00:02:55,920 It's online, you can find services even free that you can spoof a caller ID and pretend being someone else, again, maybe targeting someone you know. 36 00:02:55,920 --> 00:02:58,020 And then we get into the more interesting stuff. 37 00:02:58,020 --> 00:03:12,720 You may or may not be related with HLR registers, but that's basically a global database, that's kind of how the phone system works, just very simplified, but you are able to query some information about the phone number and that can include if the phone number is roaming or not. 38 00:03:12,840 --> 00:03:25,760 Someone may know if you are in a different country and maybe target your house, for example, and this is usually free or very, very cheap, for ten cents, Twilio, you go to slash lookup, and you can do that just with a phone number. 39 00:03:26,520 --> 00:03:32,380 And then, like, for example, I gave last year a talk on voicemail hacking, so what you need is the phone number, right? 40 00:03:32,580 --> 00:03:36,480 And the impact is very, very big because they could compromise all your accounts. 41 00:03:36,540 --> 00:03:51,860 We have things like fake cell towers, SS7 attacks, SIM swapping is big, we hear over and over again about people getting their Bitcoin wallets drained because someone did a SIM swapping attack, again, for that you need the phone number. 42 00:03:51,860 --> 00:03:58,580 So there is a big difference between leaking your email and leaking your telephone number in terms of security. 43 00:03:59,100 --> 00:04:01,440 But for who would that be useful, right? 44 00:04:01,440 --> 00:04:06,340 For whom would it be useful to know a technique in which you can go from an email address to a phone number. 45 00:04:06,340 --> 00:04:19,060 On the good spectrum, again, we have private investigators that may be working a case, going after someone that is malicious and they want to find more information, think about it, a phone number gives you, for example, location data, right? 46 00:04:19,060 --> 00:04:24,880 There was an excellent talk a couple hours ago from Joseph Cox, kind of talking about that. 47 00:04:25,220 --> 00:04:33,200 Most professionals, probably like many of you guys, this is important, but also for red teamers, imagine that you actually get credentials from someone, right? 48 00:04:33,200 --> 00:04:36,140 That you are trying to target and they have 2FA. 49 00:04:36,280 --> 00:04:44,220 So now if you have a way from that email address to get the phone number, that would be really useful because you can try to phish the people or do some more advanced attacks. 50 00:04:44,220 --> 00:04:46,420 But unfortunately, we also have the bad side. 51 00:04:46,420 --> 00:04:54,640 If there is ways that someone from an email address can get your phone number, that could be useful for stalkers or for people trying to dox you, right? 52 00:04:54,640 --> 00:04:55,900 Or even for spammers. 53 00:04:55,900 --> 00:05:02,380 We probably got calls from a recording talking in Chinese, talking about some taxes, it's very popular in the U.S. 54 00:05:03,060 --> 00:05:09,740 Okay, so what are the classic methodologies that we know to get from an email address to a phone number? 55 00:05:09,740 --> 00:05:16,060 Like you can do Google dorks, maybe someone has in a forum posted their phone number and their username is actually the email. 56 00:05:16,260 --> 00:05:20,500 Public records, you can go to court and stuff like that, it's more advanced stuff. 57 00:05:21,120 --> 00:05:27,720 Classic, people search engines, you go to Spokeo, two people find there, put an email address, you are likely to get a phone number. 58 00:05:27,720 --> 00:05:31,900 Social engineering, you know, you can target someone, data leaks, yada yada yada. 59 00:05:32,420 --> 00:05:38,000 So the purpose of this talk is just to add new tricks to your back of tricks. 60 00:05:38,020 --> 00:05:41,280 And there are new OSINT tools that you can use for your investigations. 61 00:05:41,280 --> 00:05:44,260 I hope all of you are on the good side of the spectrum. 62 00:05:44,660 --> 00:05:48,920 So, I talked about before the voice, the voicemail hacking, right? 63 00:05:48,920 --> 00:05:53,080 So I did two talks, I did that one and another one related to SMS and stuff like that. 64 00:05:53,080 --> 00:05:59,020 So I spent many, many hours resetting passwords last year during my investigations. 65 00:05:59,240 --> 00:06:00,780 So I started to notice a pattern, right? 66 00:06:00,780 --> 00:06:03,060 Because I was resetting passwords in many accounts. 67 00:06:03,080 --> 00:06:10,320 And the case was that when you reset a password, right, you can get a text and it will tell you, I'm going to send you an SMS to blah blah blah. 68 00:06:10,320 --> 00:06:12,380 So it's basically PII masking. 69 00:06:12,380 --> 00:06:17,760 The problem is, which is what I realized, is that not everyone is masking the same thing. 70 00:06:17,760 --> 00:06:22,040 There is a lack of standardization in the way we do PII masking. 71 00:06:22,040 --> 00:06:25,360 eBay was actually the worst that I could see. 72 00:06:25,360 --> 00:06:34,220 It's showing to anyone that has your email address and initiates the password reset with that, the first three digits of your area code, this is for American numbers, and the last two. 73 00:06:34,220 --> 00:06:36,780 PayPal is the first one and the last four. 74 00:06:37,060 --> 00:06:38,500 LastPass is the last four. 75 00:06:38,500 --> 00:06:40,180 Yahoo is the first one, the last two. 76 00:06:40,180 --> 00:06:43,200 And the most common thing I've seen is the last two. 77 00:06:44,280 --> 00:06:48,240 I want to stress again the lack of standardization in PII. 78 00:06:48,240 --> 00:06:50,580 This is both cases PayPal. 79 00:06:50,640 --> 00:06:57,180 PayPal, if I go to reset your password with just the email, that's all I know, I will get five digits. 80 00:06:57,180 --> 00:07:01,420 If I have your password and I get challenged with 2FA, I only get three. 81 00:07:01,720 --> 00:07:11,000 So the same service thinks that it needs to mask more information from someone that has also your password than from someone that has only your email. 82 00:07:11,000 --> 00:07:18,440 This is obviously different developers working on it, that's my guess, but this again is the proof that we have no standardization. 83 00:07:18,620 --> 00:07:21,700 So the power comes from the combination. 84 00:07:21,880 --> 00:07:28,320 I can perfectly go around to the top websites and start to reset your password just with your email. 85 00:07:28,480 --> 00:07:30,560 Who has eBay and PayPal? 86 00:07:31,860 --> 00:07:33,980 You guys don't want to admit it, right? 87 00:07:33,980 --> 00:07:37,260 Okay, so a bunch of liars, I like it. 88 00:07:37,260 --> 00:07:39,100 So who has eBay and LastPass? 89 00:07:40,000 --> 00:07:42,460 Alright, thank you, he's my friend actually. 90 00:07:43,380 --> 00:07:44,720 Yahoo and LastPass, right? 91 00:07:44,720 --> 00:07:54,080 I'm pretty sure many of you at least can think of someone close to them that may have at least eBay and PayPal, which I will claim is like the most common services. 92 00:07:54,080 --> 00:07:59,260 With that, with those two services, I have 7 out of your 10 digits. 93 00:07:59,260 --> 00:08:01,340 7 out of your 10 digits. 94 00:08:01,340 --> 00:08:08,740 Alright, so when I got here, you know, I was thinking like, okay, I have 1,000 numbers left. 95 00:08:08,800 --> 00:08:11,740 1,000 numbers that are possible for you, right? 96 00:08:12,060 --> 00:08:14,000 From 10 billion is quite significant. 97 00:08:14,000 --> 00:08:18,160 But, you know, I thought it was cool, it was nice, but I didn't know how to go forward. 98 00:08:18,160 --> 00:08:24,080 And I appreciate a coworker, like I showed him this and he told me, oh, you're actually missing the exchange. 99 00:08:24,280 --> 00:08:28,600 And I'm from Spain, so I'm not very familiar with American numbers, right? 100 00:08:28,960 --> 00:08:33,680 And then I said, oh, okay, so the exchange is those three numbers I knew about the area code, right? 101 00:08:33,680 --> 00:08:42,460 So that threw me into a rabbit hole that was fascinating and I learned so much from the telephone system and that's what we are going to talk about now. 102 00:08:42,460 --> 00:08:49,640 So, the thing is, now we are focusing not on how many numbers we don't know, but which ones we don't know. 103 00:08:49,640 --> 00:08:51,000 And that's the exchange. 104 00:08:51,700 --> 00:08:54,580 Enter the... 105 00:08:57,870 --> 00:09:00,130 That's good, that's what we are going to get at. 106 00:09:01,490 --> 00:09:03,010 Exactly, there are actually more. 107 00:09:03,010 --> 00:09:03,650 Good point. 108 00:09:03,650 --> 00:09:05,110 And we are going to get into that. 109 00:09:05,730 --> 00:09:06,590 Exactly. 110 00:09:06,590 --> 00:09:10,410 And actually, 211, 311, we're going to get into that. 111 00:09:10,410 --> 00:09:13,830 So, enter the North American Numbering Plan Administration. 112 00:09:14,050 --> 00:09:20,230 So this is actually an organization that is mostly in charge of assigning phone numbers, right? 113 00:09:20,230 --> 00:09:22,350 That's what they are taking care of. 114 00:09:22,350 --> 00:09:38,150 And they have a website with public available information with basically, apart from many other very interesting things, which is what allowed me to learn all these things, it has the list of area codes and its assigned exchanges. 115 00:09:38,150 --> 00:09:43,610 That means that not all area codes have all the exchanges, right? 116 00:09:43,610 --> 00:09:51,430 For example, as the gentleman said, the first 200 numbers are not assigned to the area code. 117 00:09:51,430 --> 00:09:58,170 So we get there, for example, 800 numbers only possible from the 1,000 that we had because we were missing three digits. 118 00:09:58,170 --> 00:09:59,250 Take Tacoma. 119 00:09:59,250 --> 00:10:07,450 Tacoma 253 area code, I was looking for one that was very significant, only has 458 exchanges. 120 00:10:07,450 --> 00:10:17,610 So we just went down from 1,000 numbers to 558 possible just with your email address and with publicly available information. 121 00:10:18,330 --> 00:10:21,670 So, 458 numbers is very good. 122 00:10:21,670 --> 00:10:32,730 I will even claim that you can, with some automation, maybe using Twilio APIs, do phone calls and try to figure out actually which one it is, but I wanted to go deeper the rabbit hole. 123 00:10:32,730 --> 00:10:39,950 I learned a lot and find ways to actually reduce that list even more because that's ultimately what we are trying to do. 124 00:10:39,950 --> 00:10:42,310 Enter the National Pooling Administration. 125 00:10:42,310 --> 00:10:44,470 I also had no idea about this. 126 00:10:44,610 --> 00:10:46,030 So, hear me out. 127 00:10:46,030 --> 00:10:56,290 The way it works is, area codes and exchanges are assigned historically to a location and specifically to a carrier, right? 128 00:10:56,290 --> 00:11:00,810 So, take 415200 is for AT&T. 129 00:11:01,670 --> 00:11:06,190 415201, I mean the numbers that start by those digits, is for Verizon, right? 130 00:11:06,190 --> 00:11:10,530 And the 415200 and 401 is exchanged for Sausalito. 131 00:11:10,590 --> 00:11:14,910 So, Sausalito has only 7,000 people living there. 132 00:11:14,910 --> 00:11:15,930 Residents. 133 00:11:16,270 --> 00:11:20,610 So, if you think about it, we have 4 or 5 major carriers. 134 00:11:20,650 --> 00:11:26,590 We are assigning 50,000 possible numbers to an area that only has 7,000 residents, right? 135 00:11:26,590 --> 00:11:33,950 Because 401200, 401201 for the different carriers, those are blocks of 10,000 digits. 136 00:11:33,950 --> 00:11:35,710 It's the last four digits. 137 00:11:35,730 --> 00:11:38,330 So, it's a huge waste of phone numbers. 138 00:11:38,330 --> 00:11:46,930 So, I learned that the FCC came out with a document and suggested that the first digit of the subscriber number will represent the block. 139 00:11:46,930 --> 00:11:53,670 So, instead of assigning blocks of 10,000 digits, we will be assigned blocks of 1,000 digits. 140 00:11:53,670 --> 00:12:02,670 So, now it will be 4152000 for AT&T, 4152001 for Verizon. 141 00:12:02,670 --> 00:12:07,350 So, we are assigning blocks of 1,000 numbers so we don't waste that many. 142 00:12:07,690 --> 00:12:25,450 Again, the website has publicly available information, a database, in which you can go check if an area called Proceed Exchange is a pooled area called an exchange, which is kind of the lingo, and if so, what are the blocks that are actually assigned today? 143 00:12:25,450 --> 00:12:42,850 So, there are blocks that are not, so you can discard all those blocks of 1,000 numbers because, as we can see in this slide, this is from the nationalpooling.com, if you look at the bottom, which is zoomed in, we see that the 415272, which is an area code for Sausalito, 144 00:12:42,850 --> 00:12:51,130 the only possible number could be the next one, it would be the 9, because it's the only block that is assigned to that area code in exchange. 145 00:12:51,130 --> 00:12:53,570 We can already discard all the others. 146 00:12:53,590 --> 00:12:54,550 This is great. 147 00:12:54,550 --> 00:12:56,910 This is publicly available information. 148 00:12:57,310 --> 00:13:03,410 So, take now, someone from Tacoma, right, with an e-mail and a Paypal account. 149 00:13:03,410 --> 00:13:07,070 So, I got from eBay the area code, 253. 150 00:13:07,070 --> 00:13:11,550 I got from Paypal the subscriber number, which is 9123. 151 00:13:11,550 --> 00:13:20,830 Now, from Nampa, the website, I get that there are only 458 exchange numbers for the 253 area code. 152 00:13:20,830 --> 00:13:29,950 And from the pooling administration, I get that the block number 9 is only on a 444 exchange number. 153 00:13:29,950 --> 00:13:36,190 So I discarded even 13 exchange numbers that don't have the 9 block available. 154 00:13:36,670 --> 00:13:37,610 Awesome. 155 00:13:37,890 --> 00:13:46,130 So, we got from 10 million numbers to 444 by using an e-mail address and publicly available information. 156 00:13:46,510 --> 00:13:52,630 This is cool, again, but I wanted to find a way in which I could go to actually, this is the number of the person. 157 00:13:52,630 --> 00:13:53,530 This is what I have. 158 00:13:53,530 --> 00:13:59,370 Without having to make any phone calls for free and that it only requires me the e-mail address. 159 00:14:01,030 --> 00:14:12,130 So, I went over what I did, you know, I went back to the drawing board and I thought about, okay, the way I'm doing it is I'm taking the e-mail, initiating password research, and I'm getting digits from the phone number. 160 00:14:12,370 --> 00:14:17,970 Are there services that I can go reset a password with a phone number and get letters back from an e-mail? 161 00:14:18,050 --> 00:14:19,450 Yes, there is. 162 00:14:19,770 --> 00:14:22,510 So, and that is exactly what we are doing. 163 00:14:22,630 --> 00:14:30,210 Amazon shows you when you go reset with a phone number, the first letter and the last letter of the username plus the entire domain. 164 00:14:30,410 --> 00:14:40,870 Twitter, but the best thing is that the stars that you see that are masking those letters match the number of characters that were masked. 165 00:14:40,870 --> 00:14:43,830 So, it's giving me also the length of the username. 166 00:14:44,330 --> 00:14:48,370 Twitter shows you the first two and the first letter of the domain. 167 00:14:48,370 --> 00:14:49,790 And there are many more. 168 00:14:49,790 --> 00:14:51,670 So, this is exactly what we are doing. 169 00:14:51,670 --> 00:14:56,470 We have a list of 445 possible numbers that we reduce with an e-mail address. 170 00:14:56,470 --> 00:15:11,090 All we've got to do now is go and, with that list, iterate over it and start to reset passwords, look at the masked e-mail correlated to the one that we have originally, and we will find the phone number. 171 00:15:11,090 --> 00:15:12,710 So, the attack vector looks like this. 172 00:15:12,710 --> 00:15:16,350 First you go harvest with an e-mail address, different digits on different websites. 173 00:15:16,350 --> 00:15:22,590 Then you use publicly available information and your knowledge of the phone number implant system. 174 00:15:22,590 --> 00:15:35,230 And then with the list that you hopefully reduced quite significantly, you use those other services to initiate password research with the list of phone numbers and correlate the masked characters that you get back from the e-mail. 175 00:15:36,170 --> 00:15:37,130 Automation. 176 00:15:37,210 --> 00:15:38,730 So, this is where the thing, right? 177 00:15:38,730 --> 00:15:42,230 I just told you no one is going to do that manually, right? 178 00:15:42,230 --> 00:15:48,170 So, I created a Python script that is your new OSINT tool to go do this. 179 00:15:48,690 --> 00:15:51,410 And it basically automates the entire process. 180 00:15:51,870 --> 00:15:57,830 So, it will go to those top websites and with an e-mail address it will scrape those digits. 181 00:15:58,370 --> 00:16:14,450 Then it will allow you to generate, by providing a mask, say we found that it's 415, we're missing the next three and we have the subscriber number, you just put that there, it will go fetch the information, it will use all the intelligence that I just told you and give you a list back of the possible phone numbers. 182 00:16:14,450 --> 00:16:21,470 And then it will also allow you to go again back to those services, reset the password with those e-mail lists and think about it. 183 00:16:21,610 --> 00:16:27,970 You cannot be blocked because we are only trying to reset a password once per phone number, right? 184 00:16:27,970 --> 00:16:31,330 It's not that we are hammering a brute force and then they are going to lock the account. 185 00:16:31,330 --> 00:16:36,810 So, actually it supports proxies to bypass captures and things of that nature, right? 186 00:16:36,950 --> 00:16:40,650 And it's publicly available now in the my github repo. 187 00:16:41,090 --> 00:16:42,290 Let's look at a demo. 188 00:16:43,110 --> 00:16:51,330 Alright, so um, eh, we're going to do a victim USA at martinvigo.com, it's a phone number from the US, right? 189 00:16:51,330 --> 00:16:53,650 I hope you can see it, that's why I was saying sit close. 190 00:16:53,650 --> 00:16:58,710 So we're going to use the scrape option and all we're going to provide is an e-mail address. 191 00:16:58,710 --> 00:17:09,390 And in this case for the demo, again this is so you guys also contribute to the tool, it's just going to go to eBay and LastPass because one gives me the first three and the other gives me the last four. 192 00:17:09,570 --> 00:17:15,030 And the way it works is it kind of writes a report for you with everything that it could find about it, right? 193 00:17:15,030 --> 00:17:24,670 Not just the digits, sometimes I can tell for example from LastPass if the phone number is from a different country because in the UI of LastPass it adds the plus if it's not a non US number . 194 00:17:24,670 --> 00:17:29,930 So we just learned 415 are the first three, 8816 are the last four from eBay and LastPass . 195 00:17:29,930 --> 00:17:33,190 Next option I'm going to use with the tool is generate. 196 00:17:33,190 --> 00:17:35,510 And I'm going to give it a mask, right? 197 00:17:35,510 --> 00:17:41,590 With the option M and substitute the digits that I don't know with simple X. 198 00:17:41,630 --> 00:17:44,710 And so we will use that to go and try to reduce the list. 199 00:17:44,710 --> 00:17:55,270 Right now we will have 1000 possible numbers, just as I explained before, it's going and downloading and it gives you a list that you obviously can put in a file as well of possible phone numbers. 200 00:17:55,270 --> 00:17:57,730 Okay, we just reduced it now to 800. 201 00:17:58,090 --> 00:18:05,930 For demo purposes, it's only going to try to go over 10 so I'm going to pretend that I'm actually only missing one character so it's just faster, right? 202 00:18:05,930 --> 00:18:10,250 But we could perfectly do this because we have the proxy support and all that stuff. 203 00:18:10,670 --> 00:18:20,950 So I'm going to use now the brute force option and it's going to use, I think in this case, Amazon to initiate the password reset on those possible phone numbers that we have left. 204 00:18:21,190 --> 00:18:25,070 So I give it the email because I need to give it so it can correlate it, right? 205 00:18:25,070 --> 00:18:34,770 I give it the mask with the digits that I'm missing, again in this case I'm pretending just that I'm missing, I need to find out over just 10 possible phone numbers so that X is just there. 206 00:18:35,350 --> 00:18:40,050 And I'm going to just make it verbose so that we can also see the accounts that don't exist. 207 00:18:40,050 --> 00:18:45,910 So now it's going to Amazon, it's going over the 10 possible phone numbers, resetting the password and boom. 208 00:18:45,910 --> 00:18:58,530 It found that there was an email associated to the phone number that started with a V, that the username ended with an M, that the length matched, that it was martinvego.com and it's obviously possibly the phone number. 209 00:19:03,270 --> 00:19:07,050 So, we're not done yet, we're not done yet, we're not done yet. 210 00:19:07,050 --> 00:19:08,590 And what about other countries? 211 00:19:08,590 --> 00:19:10,270 It gets even worse, it gets even worse. 212 00:19:10,270 --> 00:19:12,630 This is where it gets a little nuts. 213 00:19:12,630 --> 00:19:16,070 So remember eBay and LastPass, so we are masking PII, right? 214 00:19:16,070 --> 00:19:18,390 We are masking phone numbers. 215 00:19:19,090 --> 00:19:19,750 The U.S. 216 00:19:19,750 --> 00:19:25,050 is a very big country and it has digits, phone numbers that are 10 digits long. 217 00:19:25,050 --> 00:19:27,850 But then I thought, in Spain they are 9 digits long. 218 00:19:27,850 --> 00:19:30,670 You know what, there are countries that are only 7 digits long. 219 00:19:30,670 --> 00:19:36,170 Is there anyone, I know you're not going to admit it, but is there anyone here from Estonia, San Salvador, Iceland, Finland? 220 00:19:37,370 --> 00:19:38,170 Alright. 221 00:19:38,250 --> 00:19:41,270 Because the next question was, do you have an eBay and LastPass account? 222 00:19:41,270 --> 00:19:45,310 Because if that's the case, your phone number is public. 223 00:19:45,670 --> 00:19:48,670 Because it's 7 digits long, those phone numbers. 224 00:19:48,770 --> 00:19:50,690 I go to eBay, I get the first three. 225 00:19:50,690 --> 00:19:52,570 I go to LastPass, I get the last four. 226 00:19:52,570 --> 00:19:54,610 I don't need to brute force anything. 227 00:19:56,410 --> 00:19:58,630 So we are pretty good in the U.S. 228 00:19:58,630 --> 00:19:59,750 with 10 digits. 229 00:19:59,850 --> 00:20:03,390 This is a list of the countries by phone number length. 230 00:20:03,750 --> 00:20:05,250 So there are many more. 231 00:20:05,250 --> 00:20:10,110 Think, if they are 8 digits long, you only have 100 possible phone numbers, right? 232 00:20:10,370 --> 00:20:11,810 And so on. 233 00:20:11,850 --> 00:20:23,530 So it gets really, really bad, because now it's not only that we don't have a lack of standardization in the PII masking of phone numbers, but we also do not adjust it based on how long the phone number is. 234 00:20:23,910 --> 00:20:27,490 So, what I wrote the tool is kind of like a POC, right? 235 00:20:27,490 --> 00:20:31,930 I need support, I need the community to add support for other websites, right? 236 00:20:31,930 --> 00:20:40,050 So, but the true power is really going and obtaining the public available information about the phone numbering plan of the country. 237 00:20:40,050 --> 00:20:44,890 So, I'm still working on this, but this is really what is going to be interesting for the OSINT professionals. 238 00:20:44,930 --> 00:20:51,150 I'm scraping all the information, I'm adding it to a database so that you can have advanced filters. 239 00:20:51,150 --> 00:20:53,110 So for example, say you have additional intel. 240 00:20:53,110 --> 00:21:00,650 I know, I have all these digits, but I know that this phone number, the victim had it for the last two years, at least, and it's AT&T. 241 00:21:00,650 --> 00:21:10,930 So it's going to allow you to do that, because this website, it gives me not only to which exchange the area code belongs, but what is the carrier, when it was assigned, there is a lot of intel there. 242 00:21:10,930 --> 00:21:15,010 So I want to provide advanced filtering so that you can do that. 243 00:21:15,170 --> 00:21:16,170 Multicountry support. 244 00:21:16,170 --> 00:21:20,330 I started to learn from other phone numbering systems, so that's going to be added as well. 245 00:21:20,450 --> 00:21:21,410 Detailed info. 246 00:21:21,410 --> 00:21:26,830 Again, now you get block assignments, the dates, what is the OCN, what is the carrier that owns it. 247 00:21:26,830 --> 00:21:36,190 It's very interesting, because I found exchanges that are specifically for satellites and things like that, at least from the carriers that I saw that I was assigned. 248 00:21:36,190 --> 00:21:40,910 So this is very interesting, because you can find stuff for, you know, additional research. 249 00:21:40,910 --> 00:21:42,430 And then historical records. 250 00:21:42,430 --> 00:21:52,570 They keep updating this stuff, so I'm taking care of that, so that we can go back in time and see phone numbers, how it was in the past, and use that again to further filter. 251 00:21:52,930 --> 00:22:00,210 So recommendations, very quick, for online services, my suggestion is, I was thinking how to fix that, just allow customizable labels, right? 252 00:22:00,210 --> 00:22:17,470 Instead of showing in the UI, I'm going to send a text to blah blah blah, 89, what you can do is just let it say my work number, or you know, my personal number, just a label, and so the user has the choice to actually put the digits that he wants, or something else, 253 00:22:17,470 --> 00:22:18,010 right? 254 00:22:18,290 --> 00:22:30,490 And for you, never provide your real phone number, many services just ask for it during the registration process, but they don't really need it, they just want to correlate you around the net, just to give you better ads, or you know, more accurate, not better. 255 00:22:30,730 --> 00:22:44,650 Usually require, yeah, use VoIP numbers, or dedicated numbers, for 2FA, for all those things, when it's mandatory, but don't use your real number, a VoIP number, you know, you get rid of location tracking, for example, which is an issue, so always VoIP, 256 00:22:44,650 --> 00:22:46,730 and ideally even dedicated for that. 257 00:22:46,770 --> 00:23:00,890 And you can also further do, and use email aliases for accounts, there is no reason why you have to be in Uber, with your personal email, and in LastPass, and here and there, with just by using email aliases, you know, when there is password dumps and stuff like that, 258 00:23:00,890 --> 00:23:14,270 these automated attacks, I have one minute left, that's what they will do, they will go scrape in different services and try your passwords that they can clear text, if you have different email aliases, then you will find responsible disclosure, ebay, 259 00:23:14,270 --> 00:23:29,650 now it's only showing one, and the last two is not perfect, but at least it's better, Paypal, for whatever reason they decided this is working as designed, yahoo is still assessing, and um, and uh, the risks and mitigations, and LastPass acted immediately, 260 00:23:29,650 --> 00:23:45,790 and it's only showing the last two now, I like to end the talk without too long reading, that says attackers can use your email address to obtain phone number digits from online services due to a lack of standardization in PII masking, combined with publicly available information and an understanding of the country's phone numbering plan, 261 00:23:45,790 --> 00:23:48,510 it is possible to recover the entire phone number. 262 00:23:48,510 --> 00:23:49,850 Thank you very much. 263 00:23:55,820 --> 00:24:01,400 And I, and I take any questions you may have, happily. 264 00:24:02,480 --> 00:24:03,280 Yep? 265 00:24:09,700 --> 00:24:19,140 I will probably change the phone number, yah, yes, yah because you are gonna get spam and stuff like that, so just use dedicated numbers. 266 00:24:19,140 --> 00:24:31,240 What I do, I use VoIP services, I don't even use the number of my SIM card, I only use VoIP, so if that leaks, somehow I don't even know my phone number, if that leaks, you know, I just get another SIM card, I just need it for the data. 267 00:24:32,360 --> 00:24:33,840 No location tracking. 268 00:24:34,860 --> 00:24:36,000 Any other questions? 269 00:24:40,020 --> 00:24:46,660 Alright, so stay tuned for, for narrator, it's gonna take me a couple of weeks, I think there is a question back there, alright, hi. 270 00:24:46,920 --> 00:24:48,280 Thank you.