DEF CON 31 - SpamChannel - Spoofing Emails From 2M+ Domains & Virtually Becoming Satan - byt3bl33d3r

  Переглядів 123,284

DEFCONConference

DEFCONConference

7 місяців тому

Ever wake up and ask yourself: “Damn, how could I make email security suck even more today”? Tired of your Red Teams phishing emails not landing in your targets inbox?
Do you dislike Boston (the city) and love Satan?
If you answered yes to any of those questions you should come to this talk!
I'll be showing you how to spoof emails from 2 million+ domains (while also “bypassing” SPF & DMARC!) by (ab)using a partnership between Cloudflare and the “biggest transactional email service” on the interwebs. We'll be diving into "edge" serverless applications and the magical world of email security where everything is (still) held up by duct tape, pasta, and marinara sauce. Finally, I’ll be dropping code and releasing a tool that demonstrates how to impersonate emails from 2million+ domains.

КОМЕНТАРІ: 118
@lrhache
@lrhache 7 місяців тому
You should have wrote to the ceo from their own domain
@easternplatypus
@easternplatypus 7 місяців тому
that would've been funny but probably not worth risking criminal charges 😭
@LinkageAX
@LinkageAX 7 місяців тому
Is it really criminal if the CEO says it's a feature of the product? It's being used as intended at that point imo
@alexc7095
@alexc7095 7 місяців тому
lol... just lol waw..... I can see it now scam as a service on darkweb 😂😂😂😂😂
@MasterThief117
@MasterThief117 6 місяців тому
​@@easternplatypus The CEO themselves said it was a feature of the service and if domains didn't like it, they could secure themselves via DMARC/DKIM. The CEO essentially gave free reign to spoof their own domain using the service.
@claudiusraphael9423
@claudiusraphael9423 7 місяців тому
Endless stream of Bruh-moments from minute 9 on .. Nicely done!
@eternalillusion
@eternalillusion 7 місяців тому
Love this mofo. Splendid and efficient, zero-hopium talk. 10/10.
@YuanLiuTheDoc
@YuanLiuTheDoc 7 місяців тому
I can believe that your E-mail to the CEO went to spam folder - because he marked you as nuisance after your second "offense". But I cannot believe that a CEO who was perhaps not very tech savvy didn't pass your concern about the Cloudflare API might change the calculus to CTO.
@Shpongle64
@Shpongle64 7 місяців тому
Well now the world knows about cloud flare
@juliacaesar8462
@juliacaesar8462 6 місяців тому
This guy is a great speaker. So comfortable and fun to listen to. Very informative and I enjoyed the humor. Well done!!
@criticaloptimist
@criticaloptimist 7 місяців тому
I’m both shocked this vulnerability is a thing but also not surprised so many companies don’t have SPF/DKIM set up. Email is a mess to secure, super complicated, and I don’t think most companies really have an expert managing their domains. But I do know that any company that would find out about this vulnerability would never be ok with this.
@thefloorhasgone
@thefloorhasgone 7 місяців тому
Great talk. I found his manner of speaking quite relaxing to listen to 😊
@TheCocoaDaddy
@TheCocoaDaddy 7 місяців тому
Awesome video. I have experience with SPF, DKIM and DMARC but have never looked into the ARC headers. Thanks for the thorough explanation!
@Leetfin
@Leetfin 7 місяців тому
Patched after this talk lol
@adrianantoci1187
@adrianantoci1187 4 місяці тому
That is just incredible. Amazing talk.
@rpm10k.
@rpm10k. 7 місяців тому
This is hilarious and fantastic. Great speaker.
@rhysperry111
@rhysperry111 7 місяців тому
Still can't believe DKIM isn't widely setup and that most mail providers ignore it if SPF passes
@geroffmilan3328
@geroffmilan3328 7 місяців тому
This
@Tetsuo6995
@Tetsuo6995 7 місяців тому
What I truly don't understand is why DMARC passes if SPF "OR" DKIM is passed. So with an AND you would verify that : 1. The correct IP sent you the email (SPF) 2. The correct server signed the mail and that its headers are not tampered with DKIM But no, you can just set it to an OR. But on the other hand, some providers trust ARC as some kind of guarantee that an email is what it pretends to be. Email security is shite. I kind of hope we will one day drop SMTP alltogether and move on to completely different tech.
@geroffmilan3328
@geroffmilan3328 7 місяців тому
@@Tetsuo6995 it's fkn dumb💯 I need to re-check what the RFCs say here, but agree 100% about email security. This is what we get when we continue bolting shit onto a protocol from the 1970s whilst shackling ourselves to backwards compatibility. On the other hand, as a pen tester "by design" flaws are the gift that keeps on giving. The only thing which will move the needle on this, sadly, will be an attack which is a) trivial to implement and b) has staggering adverse *financial* impact. Add this to the already-huge pile of "why market forces don't solve everything".
@thewhitefalcon8539
@thewhitefalcon8539 7 місяців тому
DKIM is hard to get right. SPF is easy.
@geroffmilan3328
@geroffmilan3328 7 місяців тому
@@thewhitefalcon8539 I find it's the reverse, but it does vary by mail service/platform. With DKIM you're just creating a keypair, ensuring the mail service uses it when sending, and publishing the DNS record for it. With SPF, you have to ensure there are no more than 10 entries or it becomes useless - so it's a good to a) never use a mail service that can't handle DKIM and b) always use DKIM rather than SPF to authorise third-party mail services to use the domain
@stdint.h
@stdint.h 7 місяців тому
This guy is great.
@fiendlybrds
@fiendlybrds 7 місяців тому
Nice I am loving this defcon dump!
@carlmelgaard5423
@carlmelgaard5423 7 місяців тому
Awesome stuff!
@magnusthorne
@magnusthorne 7 місяців тому
Wow. What a great talk. Great job.
@Spooky_OG
@Spooky_OG 6 місяців тому
Thanks for the knowledge. Very cool.
@NeverGiveUpYo
@NeverGiveUpYo 7 місяців тому
Epic talk
@idiotwidowmaker8932
@idiotwidowmaker8932 7 місяців тому
Soooo it would be hypothetically very interesting if some people delivered to the CEOs mailbox AI generated invoices, “escalations” , etc just things that cant be ignored and see how fast it gets fixed
@theycallme_nightmaster
@theycallme_nightmaster 7 місяців тому
35:36 I can tell you that this is indeed possible using certain security gateways.
@qmurec
@qmurec 7 місяців тому
awesome talk!
@n.lightnin8298
@n.lightnin8298 7 місяців тому
“A heroin convention” 🤔 😂
@SadeN_0
@SadeN_0 7 місяців тому
Just... wow.
@RandornCanis
@RandornCanis 7 місяців тому
You can sometimes enforce DKIM alignment inside DMARC by setting your SPF record to -all. This isn't so uncommon because forwards and mailing lists break SPF anyways. You'll just need another SPF domain for the envelope from header, but this intentionally leaves only DKIM for domain alignment.
@drstefankrank
@drstefankrank 7 місяців тому
The only problem is receivers who don't support DKIM an solely rely on SPF, but I consider this their problem.
@YuanLiuTheDoc
@YuanLiuTheDoc 7 місяців тому
(Mail) security is everybody's problem. Breach of a recipient can negatively impact the sender, not to say a million other entities that the breached party has connections with.
@jfbeam
@jfbeam 7 місяців тому
MC's CEO is technically correct... SPF assumes one domain = one IP = one domain. That's not necessarily true. And it's never true on any email aggregation site like MC. Their API needs to authenticate who is attempting to send the message, then they can police what domains are used. The way they've integrated with CF eliminates all that - they just look for it to come from any CF IP, without CF disclosing anything about the CF user / account. (this would be rather simple for both of them to fix.)
@randomblogger2835
@randomblogger2835 5 місяців тому
At SMTP2GO we had a simmilar issue authenticating email sourced from Salesforce, but fortunately they exposed their customer id in an email header so we used that in combination the the source IP address, Salesforce now support full SASL SMTP authentication.
@drstefankrank
@drstefankrank 7 місяців тому
It would have been so easy, even with their relay in SPF. Do the same like Microsoft or Google does. Do API authentication and tie this authentication to a verified list of domain you own. They all need you to authenticate your domain at initial setup with a unique txt record in dns for example.
@louis-lau
@louis-lau 7 місяців тому
They really should have done that, but I can also understand the perspective. Since their target market is hosts that don't control the domains and probably use standard control panels like cpanel or directadmin, there's no way to verify the domains with mailchannels out of the box in those panels. Now their customers need to do some kind of custom integration instead of just using them as an SMTP relay with any off the shelf setup they want. Before these authentication protocols email had been spoofable for decades, and for many organizations today it still is. For them, it's simply a tradeoff between ease of customer acquisition, and protection against spoofing between customers. So while I agree with you, I can understand why this wasn't done. Email is insecure in a variety of ways. Hopefully one day we'll get to the point that it's not.
@comosaycomosah
@comosaycomosah 7 місяців тому
Lmao thats awesome spoofed his entry
@robmorgan1214
@robmorgan1214 7 місяців тому
Welp... time to block all cloudflare addresses.
@hangingwithvoid360
@hangingwithvoid360 7 місяців тому
His demo vid didn't play because its synced to online only XD its not stored on his PC. lmaooo The cloud strikes again.
@MrMilarepa108
@MrMilarepa108 7 місяців тому
Can't follow but he's got it, I'd trust him with my email server 10 days out of 10.
@MrMilarepa108
@MrMilarepa108 7 місяців тому
Additional note: I do not have an email server. But if I had, I know who I wanted to be in charge of it.😊
@louis-lau
@louis-lau 7 місяців тому
​@@MrMilarepa108 To be completely fair, if whoever is hosting your email isn't aware of this issue, they're not that competent or specialized. I found myself nodding along with almost the whole talk, none of it was really news to me. Email is layers upon layers of stuff, all meant to be backwards compatible. Mailchannels should just really have their customers upload a list of domains they intend to send from, but they're far from the only one that this issue applies to. Email just isn't great for secure messaging in many ways, maybe we'll get there one day :)
@Crypto_Chief
@Crypto_Chief 7 місяців тому
😂😂😂. This hilarious
@comediavietii1245
@comediavietii1245 7 місяців тому
this is dangerous
@stonelox
@stonelox 5 місяців тому
They must be in on the email spam profit scheme
@Its-Just-Zip
@Its-Just-Zip 7 місяців тому
If I remember correctly, there was a talk recently about fixing Dmarc to where dmarc would fail if either dkim or SPF failed. What's going on with that stuff? I believe some email providers will throw an error if either DKIM or SPF fail but that really needs to become like a standard and they need to start throwing that error if DKIM is not set up because there is really no reason not to be running all of the above.
@Pervy
@Pervy 7 місяців тому
Hey it's byt3bl33d3r. I've been checking out this blog posts for years lol.
@tripletsborn4628
@tripletsborn4628 7 місяців тому
Impersonating brainpop lol
@MatthiewMarks
@MatthiewMarks 7 місяців тому
31:46 This is why I hate using cloud storage
@Tahsn31
@Tahsn31 7 місяців тому
I am the first person who is watching this. Feel like special hahaha
@claudiusraphael9423
@claudiusraphael9423 7 місяців тому
You are the One.
@feuerherz007
@feuerherz007 7 місяців тому
the chosen one 😢
@frango_e_salada
@frango_e_salada 7 місяців тому
PARABÉNS POR CALAR A BOCA DAQUELE VELHO FACISTA!!!
@Stoney_Eagle
@Stoney_Eagle 7 місяців тому
I guess this is why I can no longer escape the spam 😑
@connoradair
@connoradair 7 місяців тому
Straight jokes
@qu3nt
@qu3nt 6 місяців тому
oh look it’s 1996 again
@alexasouza4152
@alexasouza4152 5 місяців тому
Spoofing blackhat in a defcon talk, awesome! LMAO HAHA
@skyracer-mk8hg
@skyracer-mk8hg 7 місяців тому
Didnt they add domain lockdown or whatever it is called for fix that? EDIT: Just got to 34:00 and well yea..
@byt3bl33d3r
@byt3bl33d3r 7 місяців тому
You can still just sign up via their website and spoof all domains via their normal SMTP relay. The domain lockdown record addressed a symptom not the root cause (lack of sender identity verification)
@-Ncrypt
@-Ncrypt 6 місяців тому
Bet you he’s got a job by now 😂
@svettnabb
@svettnabb 7 місяців тому
Arc=pass working must be because of lazy and greedy regex.
@Michael_Jackson187
@Michael_Jackson187 7 місяців тому
You get domain lockdown when you try this, has anyone done this or is everyone just watching lol
@user-ni1fl5dp5v
@user-ni1fl5dp5v 6 місяців тому
domain lockdown?
@Michael_Jackson187
@Michael_Jackson187 6 місяців тому
@@user-ni1fl5dp5v yea i spent like 30min to an hour setting everything up, went to use some of the domains provided in that list and they are all locked down lol.
@quadrupledamage
@quadrupledamage 5 місяців тому
@@user-ni1fl5dp5v He talked about it at the end, Cloudflare added Domain Lockdown to make sure other Cloudflare Worker users can't send emails from your domain. From what I understand, this issue still affects MailChannel, and with $80 you can spoof every single MC user.
@deancrypto5939
@deancrypto5939 7 місяців тому
patched ??
@thegu5
@thegu5 7 місяців тому
yupp
@deancrypto5939
@deancrypto5939 7 місяців тому
actually NO@@thegu5 just deploy your own worker and use a different domain ill drop some updated code later to make it 10 times easier
@muhammadgoran4898
@muhammadgoran4898 7 місяців тому
i think they patched it cuz i tried my domain which hasnt any email record and it didnt work@@deancrypto5939
@rpm10k.
@rpm10k. 7 місяців тому
He won't
@KingKongBlanue
@KingKongBlanue 7 місяців тому
@@deancrypto5939Where’s the updated code sir ?
@magicpenuts6934
@magicpenuts6934 7 місяців тому
LMAO i was doing this before 2012 i was just bombing company's email accounts for a laugh
@Ofzah
@Ofzah 7 місяців тому
Does it work anymore?
@ChairmanHehe
@ChairmanHehe 6 місяців тому
cloudflare so fuckin sussy
@Michael_Jackson187
@Michael_Jackson187 7 місяців тому
You need an api key
@stubstunner
@stubstunner 7 місяців тому
What if you host your own MX record for a non-existent domain? I bet it works.
@mini_bomba
@mini_bomba 7 місяців тому
you can't put a DNS record on a DNS domain that doesn't exist...
@geroffmilan3328
@geroffmilan3328 7 місяців тому
​@@mini_bomba 💯 - or one you don't own/have zone file access
@Tetsuo6995
@Tetsuo6995 7 місяців тому
@@mini_bomba Nothing prevents you from putting anything in your public DNS server. It's simply that nobody will contact your server for these records since the associated domain is not registered anywhere. At least that's my understanding. I say that because I think you can prepare in advance some records for a domain you are about to obtain. And when you become the Authority for this domain, your MX, SPF records will start to get hits.
@anonymousalexander6005
@anonymousalexander6005 7 місяців тому
The DNS is controlled by IANA root servers and provisioned by providers like cloud flare and Google, so unless you have access to them or to the end-points’ DNS configuration to point it to you, you’re non-existent domain does in fact not exist within DNS.
@gamer-gw9iy
@gamer-gw9iy 7 місяців тому
7:37
@superhanspaul
@superhanspaul 5 місяців тому
"null" is german and means "zero" "0"
@jbs.
@jbs. 7 місяців тому
Closed when I heard 'allowlist'
@skyemegakitty
@skyemegakitty 7 місяців тому
you won't be missed o/ bye
@Michael_Jackson187
@Michael_Jackson187 7 місяців тому
Where can you point me? I tried this and you get domain lockdown if you try to use any of these domains
@jackda2168
@jackda2168 5 місяців тому
@@Michael_Jackson187 hey did you find any solution ??? or do you pay 80$ for spoofing other domains ?
Kitten has a slime in her diaper?! 🙀 #cat #kitten #cute
00:28
Этого От Него Никто Не Ожидал 😂
00:19
Глеб Рандалайнен
Переглядів 9 млн
Has Generative AI Already Peaked? - Computerphile
12:48
Computerphile
Переглядів 123 тис.
NFC Technology (Mifare Access Control)
9:15
Tech Security Tools
Переглядів 2,3 тис.
DEF CON 26 -  smea  - Jailbreaking the 3DS Through 7 Years of Hardening
47:29
DEFCONConference
Переглядів 126 тис.
Robin Dreeke - Sizing People Up - DEF CON 27 Social Engineering Village
53:48
DEF CON 31 -  Closing Ceremonies & Awards - The Dark Tangent, DEF CON Senior Staff
1:53:33
Tactics of Physical Pen Testers
44:17
freeCodeCamp Talks
Переглядів 879 тис.
The PA042 SAMSUNG S24 Ultra phone cage turns your phone into a pro camera!
0:24