10 ms·
The Case of the Modified Binaries
- tantalor 12y ago> this is the only node that I found patching binaries This suggests the exit relay itself is doing the patching. Isn't it more likely that some MITM between the exit relay and origin server is responsible?
- icebraining 12y agoI don't see why would it be more likely. The exit node explanation is simpler.
- phw 12y agoThat's entirely possible and wouldn't be the first time that an exit relay's upstream or data center is responsible for MitM attacks.
- matt_morgan 12y agoAs he states, the way he found that node wasn't comprehensive. We shouldn't take that statement to mean there are no other exit nodes patching binaries. He just stopped after he proved it wasn't only a theoretical exploit.
- spindritf 12y agoCompanies and developers need to make the conscious decision to host binaries via SSL/TLS Yes. And source code, too. If you can't provide ssl for downloads, you should be using a third party service like GitHub who can.
- eps 12y ago> If an adversary is currently patching binaries as you download them, these ‘Fixit’ executables will also be patched. Since the user, not the automatic update process, is initiating these downloads, these files are not automatically verified before execution as with Windows Update. Except that this FixIt binary will have no signature and Windows will light up like a Xmas tree. So it really comes down to whether you pay attention to these warnings or you don't. And if you don't, despite all of the Microsoft's effort of past 10 years, then you get what you deserved.
- darklajid 12y agoIf you're already able to MITM the user, what about - patching (more .. corrupting) binaries, hoping to break Windows Update - intercepting and replacing the top 5 'Make Windows Update work again' downloads with a (signed if you want) application of your own? Bonus points for injecting 'Already got this host' into requests from now on, so that Windows update magically starts working again..
- Animats 12y agoEven SSL may not help. Cloudfront is now offering what they call "Flexible SSL". This means Cloudfront gets an SSL cert which allows them to impersonate the site, they offer an SSL connection to the user's browser, Cloudfront acts as an man-in-the-middle and makes a connection to the destination site. An unencrypted connection in many cases. This is SSL as security theater.
- andrewksl 12y agoWhy wouldn't SSL help? Unless the offending exit node has the requested site's cert, there's almost no way they can carry out a MITM attack on an SSL request undetected. That's kind of the whole point of certs. Or is this an indictment of Cloudfront offering to be your SSL termination point?
- Animats 12y agoThis is an indictment of Cloudfront offering to be your SSL termination point, and using multiple-domain certs to do it. Here's the Black Hat paper on how to exploit that. https://bh.ht.vc/vhost_confusion.pdf https://bh.ht.vc/vhost_confusion.pdf
- icebraining 12y ago* Cloudflare It's obviously not nearly as secure as end-to-end SSL, but it's probably still useful. The connection between the client's machine and the Cloudflare's server is more likely to be under attack (unencrypted Wifi, hacked personal routers, rogue exit TOR nodes, etc) than the connection between datacenters.
- justcommenting 12y agonot always. as we've learned from the NSA disclosures, there are many layers of indirection.
- deleted 12y ago[deleted]
- billpg 12y agoIt's not enough to check the hash of a downloaded executable if the hash you're checking against came from the same source as the suspect file. I find it so infuriating when I see a download page with hashes and the download links next to each other, as if that's any help at all.
- icelancer 12y agoNo, but it's another step in the process for sure. It's not useless.
- kaoD 12y ago> It's not useless. How not?
- justcommenting 12y agotwo examples: if the hashes are served over an HTTPS connection that you believe trustworthy, and/or signed by a key you trust and can obtain securely
- colanderman 12y agoAnd the server's not compromised.
- justcommenting 12y agothis a valid concern but if that happens, significantly more people are screwed than those accessing the server via a bad tor exit
- marcosdumay 12y agoThe hash is comming from the same channel so, no it can not improve anything. If it is an https connection where you trust the CA, you don't need the hash. The binary coming from that connection is just as safe. If it is signed by a key you can obtain securely, well, sign the executable for once, forget about the hash.
- song 12y agoCompanies and developers need to make the conscious decision to host binaries via SSL/TLS Of course the problem with that is that countries with censorship like china seriously throttle or outright block any SSL connection that are made outside of the country. And sometimes they even use something like SSL strip to do a MITM attack with a self signed certificate. Average users there are also used to seeing self signed certificates locally and so never even think twice before discarding a message alerting them that a SSL certificate is not valid.
- notastartup 12y agoI wonder how do security professionals acquire their knowledge. Even more curiously, how do these malware writers do this? Programming can be easily learned by reading and practicing but IT security, one doesn't know where to begin, what the journey is like.
- yetihehe 12y agoYou start here: http://thelegendofrandom.com/blog/archives/223 http://thelegendofrandom.com/blog/archives/223 or here http://www.reteam.org/ID-RIP/database/essays/es29.htm http://www.reteam.org/ID-RIP/database/essays/es29.htm and spend hundreds of hours on reading and using debuggers.
- notastartup 12y agoomg that is so cool!!! so this is how 'serial crackers' work.
- newaccountfool 12y agoCreating malware is simple, creating good malware that stays undetected is hard, very hard.
- gear54rus 12y agoSame here. It always eluded me. Security seems like a field where there is still no definite way to get good at. Being a good security researched requires (among many other things) ability to understand how things work. How ANY things work down to the LOWEST level. Idk about others but I always considered 'security guys' to be the elite of elites in IT world.
- notastartup 12y agoyeah i knew it boils down to some really low level knowledge but seems like a lot of black magic to me regardless on how people end up being able to publish papers or discover vulnerabilities...is it just educated trial and error ? poking at things that you think, hmmm maybe there's a hole here somewhere and then viola, you come across a CVE?
- boklm 12y agoThis exit node is now flagged as BadExit: https://atlas.torproject.org/#details/8361A794DFA231D863E109FC9EEEF21F4CF09DDD https://atlas.torproject.org/#details/8361A794DFA231D863E109...
- angry_octet 12y agoTried to download Mozilla Thunderbird lately? Have any luck finding a SHA checksum for it? Its hidden at: http://download.cdn.mozilla.net/pub/mozilla.org/thunderbird/releases/31.2.0/ http://download.cdn.mozilla.net/pub/mozilla.org/thunderbird/... You can't get it over SSL. Not to worry, the binary will be signed by Mozilla right? Yeah, GPG only. Not x.509 signed. But hey, the online install page supplies it over SSL right? Well, sometimes. But it turns out they don't enforce SSL use. Cue SSLstrip. PS On MacOS X 10.9 Apple by default prevents running unsigned binaries. Not to worry, Mozilla tells you how to bypass the check, not even hinting it has a very valid purpose. https://support.mozilla.org/en-US/kb/firefox-cant-be-opened-after-you-install-it-on-mac https://support.mozilla.org/en-US/kb/firefox-cant-be-opened-...
- lpsz 12y agoUp until recently even OpenSSL's own download page was not HTTPS.
- rockdoe 12y agoJust like Mozilla's page, that makes perfect sense as long as the authenticity can be verified via other means, such as PGP signatures. What use is having HTTPS to protect the very thing that you need to implement it. It's a basic chicken and egg problem, replayed every time OpenSSL gets compromised, and successfully circumvented by securing it with something else. Think about it: there's an SSL break and you need to update OpenSSL. What good does it do you to have it available over SSL?
- 0xdeadbeefbabe 12y agoTell that to building haskell from source. It depends on itself.
- rockdoe 12y agoI remember back in the day you used to be able to build gcc with various other compilers to bootstrap yourself. I think gcc now requires gcc features, so you're in the same boat. But anyway, the comparison isn't very good because haskell/gcc don't develop sudden security vulnerabilities that instantly turn existing binaries unusable for getting new ones.
- seanp2k2 12y agoReally hate the Microsoft standard here of "unknown error" everywhere. Is it really that hard to give a name to those, MS? "File signature verification issue" would be a million times more helpful. This has always bothered me deeply with MS software; that it's almost impossible to tell what's happening from logs / error messages.
- psykovsky 12y agoHow would they get people to pay for support if the errors were explained in a clear language?
- peteri 12y agoOne quick google (but you do need the 0x) and you get to this documentation: BG_E_VALIDATION_FAILED (0x80200053) The application requested data from a website, but the response was not valid. For details, use Event Viewer to view the Application Logs\Microsoft\Windows\Bits-client\Operational log Which seems pretty clear to me (although plausibly not to an end user).