{"id":11286,"date":"2011-06-13T09:10:54","date_gmt":"2011-06-13T09:10:54","guid":{"rendered":"https:\/\/aidanfinn.com\/?p=11286"},"modified":"2011-06-13T09:10:54","modified_gmt":"2011-06-13T09:10:54","slug":"how-hm-treasury-was-allegedly-attacked-how-to-defend-against-it","status":"publish","type":"post","link":"https:\/\/aidanfinn.com\/?p=11286","title":{"rendered":"How HM Treasury Was Allegedly Attacked &#038; How to Defend Against It"},"content":{"rendered":"<p>I was listening to The Guardian\u2019s Tech Weekly podcast on the way into work this morning and they were discussing some of the recent announcements from the British government about the cyberwar research that the MoD\/GCHQ is doing.&#160; In the discussion they mentioned that there was a recent attempted attack on HM Treasury (department of finance), and that the attacks allegedly came in two forms:<\/p>\n<ul>\n<li>Drive-by browsing: this is where a user innocently goes onto a legitimate website, but an outsourced advert uses a browser vulnerability to inject some software onto the user\u2019s computer.<\/li>\n<li>Malware attachments: Some piece of dodgy software is sent as a normal looking attachment in an email.&#160; This file has some sort of built in attack, like a trojan downloader, and the PC becomes a bot (something the attacker can remotely control by commands that the downloader will pull down from a service or website running on the Internet).<\/li>\n<\/ul>\n<p>I am not a security expert.&#160; In fact, most of the self-proclaimed security experts that you meet are not security experts.&#160; I have met real security experts.&#160; They speak a whole other language that we IT Pros don\u2019t understand.&#160; I\u2019ve also met \u201csecurity experts\u201d with their recently downloaded checklists who do more damage than good.&#160; The good news is that there is lots that you can do to protect yourself from attacks such as the above.&#160; The bad news is that there is no 100% perfect defence.&#160; For example, antivirus scanners detect already known threats.&#160; Someone has to get hit somewhere before a threat becomes known.&#160; Let\u2019s stay positive and see what could be done to protect against the above two attacks.<\/p>\n<p><strong><u>Defending Against Drive-By Browsing<\/u><\/strong><\/p>\n<p>Drive-by browsing has been around for some time.&#160; I\u2019ve attended presentations by Microsoft\u2019s Roger Grimes (serious security dude), where he talked about the website of a certain conservative news broadcaster.&#160; They sold advertising space on their website.&#160; Other than the space, they had no control over content.&#160; That was done by the online advertiser.&#160; And they probably did more outsourcing or bidding.&#160; Allegedly, browsing this website could cause you to become a victim of an attack that was built into one of these outsourced adverts.&#160; You\u2019d just browse the site and *BANG* your PC downloaded a trojan downloader.&#160; In other words, it was 0wned.<\/p>\n<p>The most basic defence against drive-by attacks is to keep your browser up to date with security fixes.&#160; Don\u2019t be a fanboy sheep: all browsers are vulnerable.&#160; I remember listening to another podcast (TWiT Windows Weekly) a few months ago where they discussed how Safari took seconds to smash, and Chrome\/IE lasted a bit longer but eventually gave in at some hack-athon.&#160; Google and Microsoft are constantly releasing updates.&#160; Google do it via new versions of Chrome.&#160; Microsoft do it through security hotfixes.<\/p>\n<p>If you run anything but the smallest business then you need to manage these updates.&#160; This is one of IE\u2019s strengths because it can be updated immediately (or after internal testing) via Windows Updates, WSUS, and System Center (Configuration Manager 2007 or System Center Essentials 2010).&#160; There really is no excuse for a business not to be doing this, monitoring patch update levels, and remediating any deployment issues.<\/p>\n<p>This adverts are effectively downloading a trojan installer.&#160; A proxy malware scanner can help defend against this.&#160; Forefront Threat Management Gateway (TMG) includes a <a href=\"http:\/\/technet.microsoft.com\/en-us\/library\/dd182018.aspx\" target=\"_blank\">Malware Inspection Filter<\/a>, as do many other firewall and proxy products.&#160; I\u2019ve always like the ISA (now TMG) family because they are AD integrated, and I can reuse security groups and user accounts for rules and exceptions.<\/p>\n<p><strong><u>Malware Attachment<\/u><\/strong><\/p>\n<p>The problem with email is that is pretty open, and trusting.&#160; If I know the name or IP address of your SMTP gateway then there\u2019s nothing to stop me from creating a malformed email that appears to come from someone you know and trust, and attaching a piece of malware to do bad things to your PC (and then your network).<\/p>\n<p>Last night I read about some executive of a large corporation who sent out a memo to all employees to instruct that they should confirm the source of all emails before opening them. That certainly is one way to prevent the opening of an attachment. I just wonder if this executive answered the 20,000+ phone calls from his employees when they called to confirm that he really sent that email. Let\u2019s get real \u2013 people have jobs to do and they cannot spend 3\/4 of the day calling people to see if so\u2019n\u2019so really sent an email. Why would we have email at all in that case?<\/p>\n<p>Sure we can do a bit of user education.&#160; I don\u2019t need to open an attachment with a .EXE file extension.&#160; I don\u2019t need to read an email from the wife of some deposed king.&#160; And I really don\u2019t need pills for you-know-what <img decoding=\"async\" style=\"border-bottom-style: none; border-left-style: none; border-top-style: none; border-right-style: none\" class=\"wlEmoticon wlEmoticon-smile\" alt=\"Smile\" src=\"https:\/\/aidanfinn.com\/wp-content\/uploads\/2011\/06\/wlEmoticon-smile2.png\" \/>&#160; Common sense education helps.&#160; But as Steve Riley has said in presentations in the past: the vulnerability lies in the meat that sits between the chair and the keyboard.&#160; If we cannot fix that. then maybe we need to wrap our email system in defences to counter those weaknesses.<\/p>\n<p>Lets start with the mail server.&#160; Stick some malware scanning on there, like Forefront for Exchange (or another solution).&#160; That will protect the server against external threats.&#160; I know you\u2019ll interject here with another suggestion (and I\u2019ll get there).&#160; Think about how IT is changing.&#160; Consumerisation of IT has caused users to bring all sorts of devices onto our networks.&#160; Lord knows what they connect to when they are not on our network.&#160; And those same devices will be used to connect to the company\u2019s mail services.&#160; You need to protect the company\u2019s email (and reputation) against those internal threats.<\/p>\n<p>Next up is the online malware scanning service, such as Forefront Online Protection for Exchange (FOPE) or others.&#160; The company\u2019s MX record points to this, all incoming email is scanned for spam and malware, and then sent on to the company\u2019s SMTP gateway.&#160; You\u2019re in complete control \u2013 you can even integrate the management of Forefront for Exchange with FOPE via a free (I believe) management console (it also can manage Forefront for SharePoint).&#160; Now you can filter out the incoming rubbish before it gets to the company\u2019s expensive Internet connection, and you have a layered defence.<\/p>\n<p><strong><u>Third Party Update Catalog<\/u><\/strong><\/p>\n<p>We aren\u2019t finished yet.&#160; Antivirus scanners are not perfect, especially when it comes to custom written or brand new threats.&#160; The more serious attacks out there are not done by script kiddies in a basement; they\u2019re done by organised crime, your competitors, and state agencies.&#160; They have the time and money to create new programs to leverage discovered vulnerabilities.&#160; For example, it\u2019s one thing to scan for Conficker, it\u2019s another thing to fix the vulnerability that it attacks so you can prevent anyone else from attacking it.<\/p>\n<p>So you can use Windows Update, WSUS, ConfigMgr, or SCE to patch Windows.&#160; Great!&#160; The attachment that was used in the allegedly attack on HM Treasury was allegedly based on an Adobe product.&#160; How often do you see Adobe products looking to update themselves to fix some security issue?&#160; It feels to me like it happens a few times a week.&#160; I bet most of you, and your users, disable these annoying updates \u2013 and that\u2019s what the attacker is betting on!&#160; They can write a custom attack, build it into a PDF (or whatever), send it to a user in your organisation using a crafted email that appears innocent enough, it\u2019ll sail through the scanners (because it is an unknown attack), the attachment is opened in a vulnerable reader, and *badda bing* the attacker now has control of a PC on your network.<\/p>\n<p>*PANIC* This is where you uninstall Adobe Reader, Flash, etc, and use third party alternatives \u2013 not so fast, my friend! (Why do I keep quoting Lee Corso?).&#160; Adobe products, like every other, has vulnerabilities.&#160; If you think those other readers don\u2019t then you\u2019re fooling yourself.&#160; If you\u2019re a big enough target, then an attacker will figure out what third party reader you use via social engineering, and craft an attack for that.&#160; With Adobe, you at least have a way to force updates for your users.<\/p>\n<p>No, we cannot trust users to run Adobe updates by themselves, just like we cannot trust them to run Microsoft updates for themselves.&#160; Adobe has <a href=\"https:\/\/aidanfinn.com\/?p=11266\" target=\"_blank\">created software update catalogues<\/a> that we can use in System Center Configuration Manager (MSFT\u2019s main way to adopt\/control consumerisation of IT) and System Center Essentials.&#160; This will allow you to centrally download, test, approve, and deploy updates to relevant machines in an automated, and scheduled manner, with deployment deadlines.&#160; Now you can force those vulnerable PCs to update, and secure your network against those vulnerabilities.<\/p>\n<p><strong><u>Summary<\/u><\/strong><\/p>\n<p>With all this you get layered defences.&#160; Is it 100% secure?&#160; No.&#160; Like I said, I\u2019m honest enough to say that I\u2019m not a security expert but I know that with the above systems, you could protect yourself against the same attack that allegedly targeted HM Treasury (based on the information that I heard this morning).&#160; Combine this with protection for PCs, servers, SharePoint, Lync, and so on, and you\u2019ll have a nice fortress.&#160; You can\u2019t rely on people to protect the castle, and that\u2019s why you need an automated <a href=\"http:\/\/en.wikipedia.org\/wiki\/Portcullis\" target=\"_blank\">portcullis<\/a> approach like this.&#160; The responsibility then falls on you as the gatekeeper to ensure that the gate is built correctly.<\/p>\n<p><em>Note: I don\u2019t know why some people always assume that virtual machines (on any hypervisor) assume that security should be any different for them.&#160; The virtualised workloads still need the same levels of protection that they physical alternative would.<\/em><\/p>\n<div style=\"padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline; float: none; padding-top: 0px\" id=\"scid:0767317B-992E-4b12-91E0-4F059A8CECA8:6aee9439-dec2-4303-b40f-30ed7fa0cf0a\" class=\"wlWriterEditableSmartContent\">Technorati Tags: <a href=\"http:\/\/technorati.com\/tags\/Security\" rel=\"tag\">Security<\/a>,<a href=\"http:\/\/technorati.com\/tags\/Forefront\" rel=\"tag\">Forefront<\/a>,<a href=\"http:\/\/technorati.com\/tags\/Exchange\" rel=\"tag\">Exchange<\/a>,<a href=\"http:\/\/technorati.com\/tags\/SharePoint\" rel=\"tag\">SharePoint<\/a>,<a href=\"http:\/\/technorati.com\/tags\/System+Center\" rel=\"tag\">System Center<\/a>,<a href=\"http:\/\/technorati.com\/tags\/System+Center+Essentials\" rel=\"tag\">System Center Essentials<\/a>,<a href=\"http:\/\/technorati.com\/tags\/ConfigMgr\" rel=\"tag\">ConfigMgr<\/a><\/div>\n","protected":false},"excerpt":{"rendered":"<p>I was listening to The Guardian\u2019s Tech Weekly podcast on the way into work this morning and they were discussing some of the recent announcements from the British government about the cyberwar research that the MoD\/GCHQ is doing.&#160; In the discussion they mentioned that there was a recent attempted attack on HM Treasury (department of &hellip; <a href=\"https:\/\/aidanfinn.com\/?p=11286\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;How HM Treasury Was Allegedly Attacked &#038; How to Defend Against It&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"_uf_show_specific_survey":0,"_uf_disable_surveys":false,"footnotes":""},"categories":[37],"tags":[173,178,179,190,191,193,194],"class_list":["post-11286","post","type-post","status-publish","format-standard","hentry","category-security","tag-configmgr","tag-exchange","tag-forefront","tag-security","tag-sharepoint","tag-system-center","tag-system-center-essentials"],"aioseo_notices":[],"jetpack_featured_media_url":"","amp_enabled":true,"_links":{"self":[{"href":"https:\/\/aidanfinn.com\/index.php?rest_route=\/wp\/v2\/posts\/11286","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/aidanfinn.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/aidanfinn.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/aidanfinn.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/aidanfinn.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=11286"}],"version-history":[{"count":0,"href":"https:\/\/aidanfinn.com\/index.php?rest_route=\/wp\/v2\/posts\/11286\/revisions"}],"wp:attachment":[{"href":"https:\/\/aidanfinn.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=11286"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/aidanfinn.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=11286"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/aidanfinn.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=11286"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}