9 ms·
Bad times in corporate wireless networks
- EdJiang 7y agoThis threat vector is interesting, but is it really a huge deal? I don’t think many company devices restrict the networks you can connect to (certainly not ones you bring on Caltrain) so why even target a corporate pre-shared-key network and instead host xfinitywifi or another popular public SSID?
- db48x 7y agoBecause the people working for the target of your attack might never connect to an xfinity wifi network, but they are pretty likely to connect to the wifi at their office.
- jsjohnst 7y agoExactly, this would likely work fairly well for a targeted attack. Yes, shared Wi-Fi names might work for some employees, but using the employee’s work’s Wi-Fi SSID/psk is virtually guaranteed to work (if they use WPA PSK anyway).
- martin8412 7y agoAny modern enterprise WiFi setup will support containing rogue APs. So this vector won't work if configured correctly.
- jsjohnst 7y ago> Any modern enterprise WiFi setup will support containing rogue APs. So this vector won't work if configured correctly You misunderstood the issue. Modern enterprise wifi won’t detect a “rouge AP” that’s setup near a worker’s home (or coffee shop), only ones in radio range of the corporate APs.
- joahua 7y agoNot quite on the enterprise wifi side, but I have been pleasantly surprised that iOS has alerted me when I connect to a wifi network with the same name, at a new location. So endpoints can play a part in this. I’m not sure if there is some kind of MDM policy that would restrict locations that are valid for wifi use, but expect it is coming soon.
- jsjohnst 7y ago> Not quite on the enterprise wifi side, but I have been pleasantly surprised that iOS has alerted me when I connect to a wifi network with the same name Actually, that’s the exact opposite of what I was quoting. That’s client side detection, not “rogue ap containment” which is an entirely different thing. Rogue AP containment is where a Wi-Fi controller detects unauthorized APs within its AP’s radio range and sends client disconnects to the devices connected to it, effectively isolating (“containing”) users from it.
- zrm 7y agoNot only that, the newer WiFi standards are doing away with the dissociation attacks (which is what they are) that some vendors had been selling as "containment" because they're also quite obviously a denial of service attack vector. You can imagine what happens when two corporations are in adjacent spaces in the same building and both have their WiFi configured to "contain" the neighboring tenant's access points.
- jsjohnst 7y ago> You can imagine what happens when two corporations I don’t need to imagine, I’ve done it to my apartment complex before by mistake. I have an Aruba 3200XL controller and a bunch of APs (couple 335s, couple 225s, and some older 105s, with the 105s being used as Air and Spectrum monitors). Decided to see the impact and quickly learned all my neighbors lost WiFi access.
- godzillabrennus 7y agoCorporate WiFi networks are capable of Creating multiple SSID’s tied to different VLAN’s. Creating a VLAN with client isolation while using WPA2 personal should be trivial. Giving that network a VLAN to exist on with just an internet gateway should be trivial. Coupling the VLAN with client isolation should be adequate for most companies. Any reasonably administered corporate network should be able to then provide company issued devices with more reasonable security. Posture assessment and other aspects of network management are important for compliance. None of that should scare anyone. You can still stream music in the bathroom while offering more security for corporate devices.
- rocqua 7y agoIs that going to prevent phones and laptops in random places from automatically connecting to a spoofed network? To my knowledge, it will not. So you'd need that SSID and VLAN to be something like a guest wifi. Preferably with a key that rotates often enough that people will not try and remember the network. Cause otherwise, it just became a whole lot easier to get a layer 1 MitM on anyone who has that network on auto connect.
- mrkramer 7y agoInteresting way of cloning networks but still MAC addresses would differ. Original network has a MAC address of a router and clone network has a different MAC address of an access point.
- jsjohnst 7y ago> but still MAC addresses would differ You mean BSSID. It looks like a MAC address and in some cases it actually is one, but it’s not required to be. Each AP broadcasting for a given network will have a different one and I’m not aware of client side native behavior to alert or enforce a whitelisted set. Even if there was, you could easily spoof the BSSID too, just would need to war drive to get it.
- mrkramer 7y agoI just mentioned basic security check but I don't know anything about corporate networks or how to manage them. One thing I know is that Microsoft has robust network directory service called Active Directory which "authenticates and authorizes all users and computers in a Windows domain type network—assigning and enforcing security policies for all computers and installing or updating software." So for example you could register all corporate access points to a Windows domain and no way you get connected to a wrong access point.
- close04 7y agoThe article does make the same point. Basically companies could configure their WiFi in a more secure fashion but many won't. I'm certain many small companies use very basic setups similar to a home WiFi and at best will just change the WiFi password periodically. This is why major OS providers are taking it on themselves to tackle some of these issues independently of the WiFi setup - like taking the location in consideration and warning you if you connect to the same network in a different location.
- namibj 7y agowpa_supplicant can be told that a network is non-BSSID-filtered, locked to a specific BSSID, and/or be provided optional black-, and whitelists of BSSID for that network.
- deleted 7y ago[deleted]
- jpablo 7y agoWait you already have the wpa preshared key? Why would you go the trouble of creating a clone network when you can already join the actual network and arpspoof at will?
- jedberg 7y agoIt's a way to capture them away from the office.
- jpablo 7y agoSo the attack is: 1. Have access to their computer to retrieve the wpa key. 2. Create a clone of the wifi network, spoof a bunch of sites and hope to catch one that doesn't use http. Why can't I replace step 2 with: Install a root kit since I already have access to their machine.
- jedberg 7y agoNo, it's "have access to any of their co-worker's computers". Or be a former coworker who still has the access key. Or even be a current coworker.
- jpablo 7y agoSeems a bit complicated: 1. Find some one to steal a key from but which I don't care about. 2. Locate a third person that I want to target and move close to them in non office hours. 3. Create a clone of their wifi and try to spoof some website. Hopefully I can be close enough to their device that it would join my clone instead of their other preferred networks. At step 2 seems like a better idea to move close to the office and start probing around?
- jedberg 7y agoTo get that close to the office would be very obvious. You'd have to loiter all day or set up a remote host with some power. To get near a target in the wild isn't that hard, especially if you know where they like to go on a regular basis. It's lot easier than a lot of other methods, especially for a high level target like a C-level exec who might have access to bank accounts with millions of dollars and like to work at a local coffee shop on weekends.
- jedberg 7y agoThis is a good way to target individuals too. If know someone uses wireguard and has it set to automatically connect except when on their home wifi, you can pretend to be their home wifi to lure them into a false sense of security. I would contend that this is a problem with wireguard. It shouldn't be trusting the name of the wifi network.
- PureParadigm 7y agoI just keep Wireguard on even when on my home network. With NAT Loopback on the router this works fine. Is there a reason to have it off?
- jedberg 7y agoWireguard kills the battery on my phone so I like it off when I’m home. Also my wireguard box isn’t fast enough to handle gigabit speeds so on my home network it slows things down too much.
- paxswill 7y agoCommenting from the perspective of iOS and its configuration profiles, you can configure them to match based on an HTTP connection (among other things). I haven't tested it (yet, I think I know what I'm playing with tomorrow), but if the URL is one that would require a TLS connection I would hope that iOS is checking that certificate. If it is and the domain of the URL is one you control that could be a way to implement the check (assuming that URL is also only available on networks you trust).
- booleandilemma 7y agoThe finance company I worked for simply didn't use wifi at all. Everything was done over ethernet.
- nerdbaggy 7y agoThis is even easier, broadcast these SSIDs and you will be amazed how many devices auto connect. - attwifi - Google Starbucks - xfinitywifi - hhonors The list goes on and on. Depending on what AP you are using you can easily do 16+ SSIDs
- deleted 7y ago[deleted]
- WrtCdEvrydy 7y agoBroadcast, sslstrip (probably not valid) or provide a self-signed certificate and just log the traffic? I was pissed when my Android phone connected to the McDonald's wifi without me telling it to do it.
- efreak 7y agoMy phone used to do that. Now I have to force it to connect manually whenever I need it, because it doesn't recognize the captive portal, and it only recognizes it as a network that doesn't have internet access.
- kyuudou 7y agoHP Officejet $(<array of existing officejet model #s) naughty!
- clairity 7y agoyes, at least turn off "auto-join" for popular APs like that if you don't want to delete them from your network list. the main advantage of saving a network is not to retype the (should-be-)hard-to-remember password, but the popular ones are usually open, in which case that advantage goes away. but when you've curated the order of the list just so, you may not want to delete them outright, but rather turn off auto-join.
- Thorrez 7y agoAh yes, the evil twin attack. https://en.wikipedia.org/wiki/Evil_twin_(wireless_networks) https://en.wikipedia.org/wiki/Evil_twin_(wireless_networks)
- chris_wot 7y agoI am genuinely curious: what is the best resource for understanding wifi and wifi security in depth?
- WilliamEdward 7y agoSeconding this. I personally do not understand any of the jargon used here at all, let alone what the implications of it is.
- lennartkoopmann 7y agoI wrote a blog post a while ago: https://www.wtf.horse/2017/09/19/common-wifi-attacks-explained/ https://www.wtf.horse/2017/09/19/common-wifi-attacks-explain...
- WilliamEdward 7y agonice thanks
- redprince 7y agoUnfortunately the proposed solution WPA Enterprise has its own set of pitfalls. Unless one opts for EAP-TLS, which is quite secure, some fun can be had with certain other EAP methods if implemented insecurely. It is especially inadvisable to use AD credentials and skip certificate validation or make it optional. For further research: https://github.com/opensecurityresearch/hostapd-wpe https://github.com/opensecurityresearch/hostapd-wpe
- stefan_ 7y agoThis comment is not nearly as dramatic as the situation is in practice. Here is how to connect to Cornell WiFi as a student: https://it.cornell.edu/wifi/connect-eduroam-android https://it.cornell.edu/wifi/connect-eduroam-android Notice this does not setup certificate validation (and therefore does not authenticate the AP is actually from Cornell). It also tells you to use the completely broken MSCHAPV2 and login with credentials that allow access to a number of other university services. So in this setup, not only can you still trivially impersonate a Cornell AP, all clients also give you their specific login credentials in a way that allows you to recover their passphrase.
- deleted 7y ago[deleted]
- Spivak 7y agoYou don’t have to set up a certificate because the university is using a public cert. My old uni configures their network the same exact way. And the situation isn’t really all that dire because once you connect to the real university wireless once it will pop up a warning if another network with the same SSID appears but doesn’t present the cert.
- tialaramex 7y agoIt's true that it doesn't (and can't) authenticate that the AP is "actually from Cornell" and indeed that's the point of EduROAM. But it will be talking to Cornell to authenticate you and so no you can't "recover their passphrase". EduROAM is a global federation. So what's happening goes like this: Let's say I'm a Cornell student 1. I follow these instructions, probably while on campus to make my, let's say, iPhone work with WiFi. My "NetID" is tialaramex for this example. 2a. Probably my phone automatically concludes that network-access.it.cornell.edu is really network-access.it.cornell.edu because it has a Web PKI cert that says so, just like on an HTTPS website. 2b. But if not I have a step where I tell the phone this certificate looks OK. This is effectively TOFU (Trust On First Use) because I'm a naive user which isn't great but it'll protect against many attacks later. 3. I go to the University of Sydney, in Australia, as an example. 4. My device sees an AP named "eduroam" because I'm at a university in a developed country and the Network Effect means it makes sense for all universities to join eduroam. 5. My device says "Hi I'm tialaramex@cornell.edu † let me in" 6. Sydney's AP talks to an Australian server which talks to Cornell, which agrees to talk to my device about this, over TLS 7. My device confirms that this TLS connection matches the certificate we saw earlier, or has a trusted certificate for network-access.it.cornell.edu 8. Using the risible MSCHAPv2 protocol (but happily inside TLS) my device proves I am really tialaramex@cornell.edu 9. Cornell tells Sydney that yup, I am an authorised Cornell network user, let me in. 10. I get the same privileges as a local Sydney student/ professor in terms of network access. If there's any problem (maybe I use 40GB in one day from PornHub) Sydney know which Cornell user I am and they can take it up with Cornell. In extremis they can "blacklist" me. † It is possible to arrange that the local institution does not find out your "real" username at your home institution, since they don't need to know that in order to connect to the right authentication service. But mostly nobody cares.
- Avamander 7y agoIs it possible to use Web PKI to prove that an AP is under the control of a domain? Basically protect against evil twin APs without deploying certs.
- tialaramex 7y agoIt would have been trivially possible to use the Web PKI here if APs advertised an FQDN instead of a short text string as their visible name. If you were signing into "Starbucks.com" then logically we can arrange that the AP needs to prove it has a certificate for starbucks.com or some-wifi-made-up-prefix.starbucks.com or something and it could use the Web PKI to make that work safely for everybody. But APs do not have FQDNs. The WiFi industry has talked about trying to get to roughly the same place by a circuitous route, but the problem they run into is: Who is allowed to call their AP "Starbucks" and why? If you decide it's fine we'll hide a signifier elsewhere, then the user doesn't know why this Starbucks and that Starbucks don't interoperate. Their experience is disappointing and even if you claim it's for security reasons they're left puzzled. However, there is no need to involve "deploying certs" anyway. You can use your existing (very likely) Active Directory or similar and single-sign-on infrastructure to allow employees WiFi devices to prove who they are to the WiFi AP, without giving away any secrets. There are an impressively confusing array of different ways to do this, but the good news is that even the really terrible ones are safer than a PSK. You can even federate this system, a good proportion of all degree institution students and staff in the industrialised world have EduROAM, their laptops (iPhones, whatever) connect to any AP that claims it is EduROAM (maybe in Venice, or New York, or Sydney) and they tell it their email address with their home institution (e.g. where they're employed or registered to take classes) and then they give that institution credentials to connect. The local institution can see that e.g. OK this NYU student is on our network, and if there's a problem (looking at PornHub in class? Not here) they can tell NYU about it and if necessary blacklist a problem user. But they don't get credentials for the user, and the user doesn't get local credentials. No more need for toxic "guest" networks for visitors.
- Avamander 7y ago> If you were signing into "Starbucks.com" then logically we can arrange that the AP needs to prove it has a certificate for starbucks.com or some-wifi-made-up-prefix.starbucks.com or something and it could use the Web PKI to make that work safely for everybody. So there's really no way to do so currently, correct? > There are an impressively confusing array of different ways to do this, but the good news is that even the really terrible ones are safer than a PSK. Which would be actually the safest one that would primarily avoid evil twin attacks? > But they don't get credentials for the user Assuming there's no easy misconfigurations made by the user? E.g. they can't click "accept this invalid cert" somewhere?
- tialaramex 7y agoEdited to prefix: Actually, on second thought, this doesn't really help Rachel's scenario. If the imposter knows our PSK then WPA3 does not defeat that. Huh. [Also there ought to be a way to zap that +Karma on a comment that I now realise isn't helpful ] Original post follows: Note that WPA3 is intended to fix this, but... * Your corp network probably doesn't talk WPA3 yet * Even if it does it probably also allows WPA2 back compatibility for older devices * Lots of devices can be fooled into accepting that just because the 'foocorp' AP it usually talks to is WPA3 maybe this 'foocorp' AP is WPA2-only and that's fine * Cheap devices (maybe not your laptop or iPhone, but perhaps a cheaper phone and definitely other devices) are too constrained to safely run the secure algorithm. WPA3 uses a PAKE here (it calls this "Simultaneous Authentication of Equals but it's just the Dragonfly PAKE) so the advantage is that devices don't tell anybody what the PSK is. But we're probably a decade from being able to tell people (especially conservative corp sites) to turn off WPA2 altogether. If you already use a sane 802.1x setup instead of a PSK WPA3 doesn't meaningfully improve anything and you needn't rush to update, but of course random cheap consumer WiFi gizmos that expect a PSK won't work.
- stefan_ 7y agoYou might be thinking of Wi-Fi Easy-Connect or DPP where devices enrolled through it no longer learn the PSK: http://w1.fi/cgit/hostap/plain/wpa_supplicant/README-DPP http://w1.fi/cgit/hostap/plain/wpa_supplicant/README-DPP
- amaccuish 7y agoFreeRADIUS is great, and I wouldn't use anything else. But to increase the adoption of EAP, what would be better is a super simple daemon, you point it at LDAP or a file, and it sets itself up for PEAP or EAP-TTLS and you just have to point your APs at it. FreeRADIUS is far to complex for most use cases. I note that many APs now come with nice web interfaces and can integrate with LDAP and Active Directory directly, which is a great step forward. Ideally AD would support something like SRP directly so you wouldn't even need server certificates.
- Chris2048 7y agoI want simple, non-enterprise wifi, but I want the "enterprise" feature of per-user credentials. Sadly, setting up a RADIUS server is the only way I can see this is possible.. way to complicated, I'd sooner just put a static file on the router, but I'm not sure if this is possible.
- martinald 7y agoHonestly it's not that complex to set up a freeradius or similar server. You can have freeradius read a static file for user management, you don't need to use LDAP necessarily.
- rootusrootus 7y agoSome of the small business gear has this feature. I use Ubiquiti access points, and through the Unifi interface I enabled the built-in RADIUS server and added some users to it. Now I have enterprise-style WiFi authentication.
- Hello71 7y agobased on the openwrt freeradius wiki article, it looks like it is fairly simple to configure: https://openwrt.org/docs/guide-user/network/wifi/freeradius https://openwrt.org/docs/guide-user/network/wifi/freeradius the config file syntax looks funny, but it doesn't look particularly challenging.
- repiret 7y agoHaving recently set up FreeRADIUS + WPA2 for the first time, I have to say, it wasn't really that hard at all. It wasn't any harder than setting up a mail server, or web server, or commercial grade router, or any other similar task that anybody's IT department (or contracted IT service) shouldn't be able to handle without a sweat.
- thelittleone 7y agoCorporate WiFi networks should be untrusted. Once a device is connected to the WiFi users should then be required to connect via VPN before internal network access is granted.
- greglindahl 7y agoThat sounds like a usability problem.
- daviddoran 7y agoWe use the described setup at our company and the VPN software (Viscosity) auto connects so seamlessly that you never really need to do anything manually. Works really well.
- dtrailin 7y agoBasically every big corp uses always on VPNs and it works fine. You can even do stuff over group policy on Windows to get the VPN configured and auto join enabled.
- hnaccy 7y agoReally? I've worked at a couple large bay area companies this wasn't true.
- novok 7y agoYou think it works well, but it often creates it's own network performance problems.
- sk5t 7y agoSecurity or ultimate convenience, choose up to one.
- greglindahl 7y agoI suspect "not very secure but pretty inconvenient" is the most popular choice!
- kragen 7y agoYou could imagine a system where you configure your laptop with a public-key hash of the wireless network, maybe using ssh-style TOFU (trust on first use), to defeat this kind of attack. You could even use the OPIE or BIP39 or bubblebabble wordlists, or randomart images, to confirm that first use. There's really no reason the Wi-Fi standards, developed decades after ssh was, need to be less secure.
- bathtub365 7y agoSome great stuff happened when I was moonlighting as IT at a company. One time someone randomly plugged in a cat5 cable and created a loop in the network, causing an ARP packet storm. The company also had 2 different networks, one for data and one for VOIP. They had wall plates in the conference rooms that had a data RJ45 and a VOIP RJ45. Someone decided to plug a cable from the VOIP port into the conference phone (which had a pass through), and plug a cable from the pass through on the phone into the data port, causing all kinds of weird chaos. That was a fun one to track down.
- lathiat 7y agoSpanning Tree is under-rated :) Although I read a twitter thread earlier where someone did this and they had spanning tree which in theory prevents this but the switch had some kind of bug causing it to crash and reboot right after disabling the port with spanning tree.
- bathtub365 7y agoIt was a long time ago and most of the equipment was either hubs or dumb switches with no budget to overhaul. That’s a really great bug to have in your equipment out in the wild
- dingo_bat 7y ago> Spanning Tree is under-rated Spanning tree is a crutch for badly configured networks.
- bawolff 7y agoInteresting idea, but im pretty unconvinced its a threat in practise. People will connect to any free wifi they can find, you don't need to trick them into it. Use HSTS if you need security. (The author of course says its easy to forget on some obscure part...well yes. Security is hard for a reason)
- orev 7y agoYou are thinking about a coffee shop scenario, when the article is about an office environment. They are talking about spoofing the office SSID that devices already connect to automatically, not people manually connecting to open networks.
- bawolff 7y agoThey were talking about people autoconnecting to an office ssid on the bus. If you use your office phone on the bus, you probably use it at the coffee shop too.
- novok 7y agoThis is why you treat the office wifi connection as any other connection, don't create a 'turtle shell' (hard outside, soft inside) infra and control the DNS configuration of your employee's laptops.
- rcarmo 7y agoThis is why 802.1x and RADIUS are key. I used to maintain the RADIUS servers at an ISP and dealt with the craziness that were the initial implementations of 802.1x, and to this day I keep finding corporate networks that do crazy things like rotating standard WPA Wi-Fi passwords via policies instead of just setting up 802.1x properly. Of course, vendors don’t help here. Spending six digits on Cisco gear to get “out-of-the-box” end-to-end authentication (that then is weirdly inflexible in hooking up to your corporate AD) is certainly not on most small companies’ radar, especially when they get cheap APs that “work”. For home use, I’ve bee looking for decent APs (_not_ proprietary fancy mesh setups) that support 802.1x and don’t cost an arm and a leg, and I’ve been seriously considering ripping out my Airports (which are amazing Wi-Fi gear, and sadly discontinued) and going with a combination of OpenWRT gear and an embedded RADIUS server. But I’ve been wondering if there are decent SOHO solutions out there for 6-12 APs and up to 50 users — it would be great for small companies/startups.
- ComodoHacker 7y agoLook at MikroTik. 802.1x is supported in all products including SOHO ones. Also their wireless management solution (CAPsMAN) is decent.
- oger 7y ago+1 for MikroTik. Super good value IMO - especially in a home or small office environment.
- DyslexicAtheist 7y agoabout MikroTik I'd be extremely worried about security - not exactly a good track record: MITRE/CVE's: https://cve.mitre.org/cgi-bin/cvekey.cgi?keyword=Mikrotik https://cve.mitre.org/cgi-bin/cvekey.cgi?keyword=Mikrotik "Most MikroTik routers fail to get patched a month after severe security issues disclosed" https://portswigger.net/daily-swig/most-mikrotik-routers-fail-to-get-patched-a-month-after-severe-security-issues-disclosed https://portswigger.net/daily-swig/most-mikrotik-routers-fai... "Finding and exploiting CVE-2018–7445 (unauthenticated RCE in MikroTik’s RouterOS SMB)" https://movaxbx.ru/2020/01/29/finding-and-exploiting-cve-2018-7445-unauthenticated-rce-in-mikrotiks-routeros-smb/ https://movaxbx.ru/2020/01/29/finding-and-exploiting-cve-201... "Coinhive malware infects tens of thousands of MikroTik routers" https://searchsecurity.techtarget.com/news/252446369/Coinhive-malware-infects-tens-of-thousands-of-MikroTik-routers https://searchsecurity.techtarget.com/news/252446369/Coinhiv...
- some1else 7y agoOnce I had to reconfigure some Airtame devices out in the field. They couldn't connect to the cloud, but I made a hotspot with the same SSID and credential settings as one of our guest networks at work. The devices were able to connect to it, and I successfully reconfigured them. Some time later at work my phone was feeling warm. I was surprized to see I was subsidizing random office internet traffic with my cellular data plan. Access protection is usually done more diligently for important networks, but the simplicity of a MITM attack makes it apparent that all corporate networks need RADIUS or similar protection.
- red_admiral 7y agoI still don't get who Rachel means with the "beekeepers" analogy linked to in the post. Can someone enlighten me?
- KarlKemp 7y agoUber and Lift?
- deleted 7y ago[deleted]
- kristianc 7y agoThis is worrying - not least because every WeWork in the world has the same WiFi password.
- mbn12 7y agoIt's interesting to see a website that just copy and paste content from other sources without any sort of credit or referencing having this attraction (usually in the HN top ranks). In fact the way it's presented it even seems that was 'authored by rachel, the anonymous valley dev'. Harmless attitude when it's just someone trying to land a hotsite and earn some extra bucks/attention. But later don't complain when the same attitude is in place by big companies/VCs draining your career. Tech scene really reached a new low these days: "put the minimum effort; try to extract and profit the most" -- while trying to be 'smart/efficient' people lost the self perception of predatory behavior. Maybe could be renamed to Grasshopper By the Bay. :P