Laptops at Security Conferences
Last Updated: 2012-05-14 15:31:16 UTC
by Chris Mohan (Version: 1)
I’m often curious what other security folks do to keep their machine safe when they go to IT conferences. I often see what looks like standard office machines being used and wonder if any precautions have been taken. So here’s what I do and I’d love to find out what other measure you take.
I’m about to spend a few days a large security conference, so I’m just putting the finishing touches to laptop I’m taking with me. As I don’t have any real needs beyond email, typing notes and web browsing, it’s a simple job of installing a clean OS and a couple of must have applications*. In keeping with Joel’s previous Diary, it took the duration of some reality TV show to install all the various patches for these apps to be up to date.
Now this is where I then go through my normal additional hardening steps. This OS happens to be Windows 7, so I disable a bunch of services, kill IPV6 services, gleefully disable hibernation and add in a gaggle firewall rules (or should that be an annoyance of firewall rules?).
The last thing I do make a record of clean state of the computer. This is the part I’m assuming most companies have if they have managed operating environments (MOE) or standard operating environments (SOE) as this is such an easy thing to do and provides a trusted baseline for the security teams to compare against.
In Windows there’s a bunch of ways to ask the computer what’s running, what services and software is installed, but I like PowerShell so here’s a quick and dirty way to get the info and save it to a file.
From a PowerShell prompt:
#Installed Software
gp HKLM:\Software\Microsoft\Windows\CurrentVersion\Uninstall\* |Select DisplayName, DisplayVersion, Publisher, InstallDate, HelpLink, UninstallString | out-file c:build\base.txt
#Running processes
Get-Process | sort company | format-Table ProcessName -groupby company | out-file –append c:build\base.txt
#Services installed
Get-service * | out-file –append c:build\base.txt
This gives me three pieces providing a baseline** of the system.
I’m now ready to skip from vendor booth to vendor booth, keen to look at their product case studies conveniently on handy novelty USB devices, while surfing the web on freely provided Wifi doing on-line banking, checking today’s nuclear launch codes and wondering why I keep seeing "Loading Please Wait" when clicking on links in emails from people I’ve never heard of. - Although this is an attempt at humour (note attempt) having a baseline of the clean machine allows me to identify the more obvious signs of something bad happening to my system.
If I do feel a disturbance in the force or the laptop does something odd, I can re-run my simple PowerShell commands (with a different output name) and look for changes.
#Comparing in PowerShell
Compare-Object -referenceobject $(Get-Content c:build\ base.txt) -differenceobject $(Get-Content c:build\new.txt)
That gives me a quick indication if some has changed on my systems (barring root kits) and if I need to worry about.
Let me know what you do or don't do when taking your system to a conference.
* I can’t say I’m a big fan of live CD/DVD/USB, I see their uses, but they get out of date, especially the browsers, far too quickly.
**If you want to get more fancy with the base snapshot, it’s pretty easy to script that out to include registry keys, firewall rules and even files in directories with cryptographic hash.
Chris Mohan--- Internet Storm Center Handler on Duty
I’m mentoring SANS Hacker Guard 464 class in Sydney on the 7th of August - SysAdmins, this is for you! https://www.sans.org/mentor/class/sec464-sydney-aug-2012-mohan
Comments
Between the crappy hotel wireless networks, skiddies packeting everything and everyone on the con wireless networks, and the general lack of anything I really need to check online while I'm at the conference, it's rare that I take my laptop out of my backpack while I'm at a con, let alone boot it up.
If I absolutely need to use a laptop at a security conference, I use a crappy netbook purchased from Craig's List. The on-board flash storage is wrecked so I boot a live distro from a micro-sized USB key. Any files I need are manually copied to a nodev/noexec/nosuid mounted partition on the USB key. When I get home I plug the key into another workstation with the nodev/noexec/nosuid options, copy the files off, and check them out on the machine (if it was a 'legit' conference that $work paid lots of money for) or a disposable virtual machine (if it was a con that actually had useful info). I'm at cons that require such measures once a year, at most.
By the way, pipefish, running DVL on the wireless net at cons is lots of fun. The more experienced folks think its funny to send messages to one another by defacing the distro's website and the skiddies go nuts throwing everything and the kitchen sink at it.
Heading to a conference tomorrow. I'll take the standard issue company laptop because I need to do some work in the evening. The only thing I can do for a modicum of protection is to do everything through the company VPN.
* Encrypt your laptop hard drive, if you haven't already.
* Use a VPN for all connectivity.
* Configure your host firewall to permit VPN traffic to your VPN endpoint, permit dhcp client, and to permit all traffic on your VPN tunnel interface. Deny all other traffic.
* Keep your laptop with you at all times.
* Disable bluetooth.
* Avoid using any captive portals if possible.
I absolutely *never* trust the hotel wireless network at any security conference!! I even clean up all SSID's on my phone and set it to require confirmation of any wireless connection, and also disable the wifi radio as well.
Layer 2 attack risks on non-IPv6 enabled LAN: malicious IPv6 router announcement / NDP hijacking, coupled with malicious DHCPv6 server pointing to a rogue recursive DNS host.
Cannot be suppressed by IPv4 L2 security features such as DHCP snooping.
IPV6 RA guard has also been found to have serious holes.
@Mysid: First of all, please do not call malicious IPv6 router announcement / NDP hijacking Layer 2 attack risks since IPv6 is very much Layer 3. Secondly, ever heard of ARP spoofing? The same can hapen to an IPv4 network and I am pretty sure you are not disabling IPv4. These problems are inherent for both protocols and should be countered by e.g. encryption to avoid snooping in case of spoofing.
The DHCPv6 server and RDNS issue: there exist mailicious DHCPv4 servers as well, although chances are bigger that the network administrator is already hunting these down. Here I like add again that education should be the real protection, not disabling IPv6. RDNS might be a problem, and if really concerned, you could only disable that part, but also there it is better to keep it in check with other measures instead of just blindly disabling things.
IPv4 has mostly the same security issues, some are in IPv4 that have been solved in IPv6 and vice versa and yet many people see IPv4 as safe and IPv6 as dangerous, is it just because it is the new guy around the block? I pretty much think so! Start learning people, IPv6 is here to stay and shutting your eyes "while you still don't need it" is not going to help you in the (near) future.
The most serious vulnerabilities introduced by enabling IPv6 are L2 and L3 based attacks that can lead to MITM or misdirection of user traffic.
They are especially dangerous, when security monitoring practices and software have not yet been tooled for IPv6. The security monitoring might miss rogue V6 traffic, since it was not designed to deal with it; before deploying V6 it is important that security practices are updated to deal with it.
"Secondly, ever heard of ARP spoofing? The same can hapen to an IPv4 network"
I am fully aware of ARP-based hijacking. No, it cannot really happen on a properly secured IPv4 network. Switches provide multiple layers of security functions with IPv4 that mitigate the risks you describe, and a robust IPv6 equivalent these security features does not exist in any form:
* Port Security / "Station Movement" protection -- MAC address filters prevent MAC spoofing, by refusing to allow a known MAC address from moving between ports, and refusing to allow a single port the simultaneous usage of multiple MAC addresses.
* 802.1x wired and wireless Port Security (/ WPA2): Stations connecting to a secure LAN are authenticated using a machine security certificate or username/password (a more secure alternative to security based on physical port only).
* DHCPv4 Snooping (No DHCPv6 equivalent available) -- Certain ports are marked "trusted" on the switch, the DHCP server ports. Other ports are marked untrusted, when a DHCP response is sent to a trusted port, the switch BINDs the allowed IP address to the MAC address, and the MAC address to the port.
* Dynamic ARP Inspection (No NDP/IPv6 equivalent available) -- Works together with DHCP snooping and port security features. All ARP traffic is suppressed/discarded from untrusted ports, until the trusted DHCP server port assigns an IP address. After an IP address is assigned, any ARP messages sent with a MAC address or IP address not assigned to that port are suppressed.
* MAC Address Filtering on the DHCP Server: DHCPv4 servers can be configured to refuse to assign IP addresses to MAC addresses associated with network infrastructure components such as default gateways; together with Dynamic ARP inspection, this means it is not possible to spoof an IPv4 default gateway.
=> Please do not confuse the OSI layers, NDP is Layer 3 with cross-layer elements, please do not confuse those things. IPv6 has _nothing_ to do with Layer 4, I cannot imagine which part of IPv6 could mislead you so.
I am fully aware of ARP-based hijacking. No, it cannot really happen on a properly secured IPv4 network. Switches provide multiple layers of security functions with IPv4 that mitigate the risks you describe, and a robust IPv6 equivalent these security features does not exist in any form:
* Port Security / "Station Movement" protection -- MAC address filters prevent MAC spoofing, by refusing to allow a known MAC address from moving between ports, and refusing to allow a single port the simultaneous usage of multiple MAC addresses.
=> MAC addresses, so also possible in IPv6 environment
* 802.1x wired and wireless Port Security (/ WPA2): Stations connecting to a secure LAN are authenticated using a machine security certificate or username/password (a more secure alternative to security based on physical port only).
=> Possible for IPv6 too
* DHCPv4 Snooping (No DHCPv6 equivalent available) -- Certain ports are marked "trusted" on the switch, the DHCP server ports. Other ports are marked untrusted, when a DHCP response is sent to a trusted port, the switch BINDs the allowed IP address to the MAC address, and the MAC address to the port.
=> DHCPv6 snooping exists: e.g. http://www.juniper.net/techpubs/en_US/junos/topics/concept/dhcp-extended-snooped-packets.html although probably very recent.
* Dynamic ARP Inspection (No NDP/IPv6 equivalent available) -- Works together with DHCP snooping and port security features. All ARP traffic is suppressed/discarded from untrusted ports, until the trusted DHCP server port assigns an IP address. After an IP address is assigned, any ARP messages sent with a MAC address or IP address not assigned to that port are suppressed.
=> agreed
* MAC Address Filtering on the DHCP Server: DHCPv4 servers can be configured to refuse to assign IP addresses to MAC addresses associated with network infrastructure components such as default gateways; together with Dynamic ARP inspection, this means it is not possible to spoof an IPv4 default gateway.
=> agreed, is more or less same as above
I see however that you miss a few very important issues here:
- You assume you have control over the network and are able to enable all these security measures. When roaming on other networks with your laptop, this is often not the case.
- You claim that most serious isues in IPv6 lie with the MITM attacks. I have to disagree though: if you really care, you use secure protocols. Anyone sending traffic over not-encrypted links at a security conference or at any big public place does not know what he is doing or is clearly out of his mind. There is no difference here between IPv4 and IPv6: if you care about your privacy, you use SSL, VPN, etc.
An unreported vulnerability in the SSL or VPN implementation might lead to remote code execution, certificate related or downgrade attack that becomes exploitable when traffic is hijacked via Layer 1 (Data link) and Layer 2 (IP Layer) based attacks.
Encrypted traffic might be brute forced in order to decrypt later, at the attacker's convenience.
IPv6 does operate at Layer 4. Specifically: DHCPv6 is a Layer 4 Application layer protocol.
Rogue Route advertisements can be broadcast to a LAN; This is a Layer 2 attack, because RAs are NDP messages, and NDP messages are based on ICMPv6 which is a Layer 2 (IP Layer) protocol; this is similar to IPv4 Layer 1 attacks which involve the generation of false ARP messages.
However, the IPv6 version is a simpler attack, because the Rogue RA can be broadcast. RA guard can be avoided through exploits that are well-known.
MAC address spoofing of the default gateway in IPv4 is not a very robust attack, for intercepting all traffic on a LAN.
Broadcasting a false gratuitous ARP to an entire LAN in IPV4 generates all kinds of warnings on devices, because it's a "change of MAC address".
Such gratuitous arps are not always accepted, and their duration is limited, because of the fact the default gateway will send ARPs too.
But on a network with no legitimate RAs; one fake Route Advertisement is a very convenient attack, that can be produced very easily -- special purpose attack tools are not required, but can also be used to circumvent "RA Guard"
through the use of option headers.
New Comments closed for all Diaries older than two(2) weeks
Please send your comments to our Contact Form

Diary Archives
You know what'd be funny, if you ran something like DVL or Metasploitable on your laptop at a hacker con. You'd have the most active honeypot in the world for about 30 minutes haha!