<?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"
	>

<channel>
	<title>An Alchemists view from the bar</title>
	<atom:link href="http://rm-rf.co.uk/?feed=rss2" rel="self" type="application/rss+xml" />
	<link>http://rm-rf.co.uk</link>
	<description>Network monitoring and Intrusion Prevention</description>
	<pubDate>Wed, 27 Aug 2008 11:08:47 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6</generator>
	<language>en</language>
			<item>
		<title>Snort and VoIP - Thoughts on IPS in a modern voice network</title>
		<link>http://rm-rf.co.uk/2008/08/snort-and-voip-thoughts-on-ips-in-a-modern-voice-network/</link>
		<comments>http://rm-rf.co.uk/2008/08/snort-and-voip-thoughts-on-ips-in-a-modern-voice-network/#comments</comments>
		<pubDate>Wed, 27 Aug 2008 11:07:47 +0000</pubDate>
		<dc:creator>leon</dc:creator>
		
		<category><![CDATA[Security]]></category>

		<category><![CDATA[IPS]]></category>

		<category><![CDATA[snort]]></category>

		<category><![CDATA[VoIP]]></category>

		<guid isPermaLink="false">http://rm-rf.co.uk/?p=87</guid>
		<description><![CDATA[I have been putting some thought into the subject of voice over IP (VoIP) and the fact it presents a particularly interesting security challenge. Communication line convergence was one of the big pushes in the early 2000&#8217;s due to the cost savings it advertised, this unification of network and voice communications also seeded the uptake [...]]]></description>
			<content:encoded><![CDATA[<p>I have been putting some thought into the subject of voice over IP (VoIP) and the fact it presents a particularly interesting security challenge. Communication line convergence was one of the big pushes in the early 2000&#8217;s due to the cost savings it advertised, this unification of network and voice communications also seeded the uptake of then emerging VoIP technologies into enterprise networks. Many years on VoIP is now widely accepted as a technology mature enough to be provided to a wider consumer market but still lacks some of the security features expected in a mature system.</p>
<p>The reason I find this security challenge interesting is that it brings together two distinct threat and concern types; one of voice communication services and one of IP networks. Those implementing or maintaining a VoIP network are commonly from one of these two backgrounds, and therefore may initially see only half of a security objective.</p>
<p><strong>Stock IP threats</strong></p>
<p>These are the concerns that are picked up by the regular IP networking person and probably the threats that they think about daily. For example;</p>
<ul>
<li>Remote Code Execution</li>
<li>Denial of Service</li>
<li>Traffic interception</li>
</ul>
<p>Because the Voice platform is now on an IP connected and <em>integrated</em> network, all of these now also exist in your voice infrastructure. In fact, all of these concerns existed before, however inward connections were far more limited than on your nice new VoIP system and attacks were less likely.</p>
<p><strong>Voice specific threats</strong></p>
<p>Those who maintain large non-IP voice networks have similar problems keeping them awake at night. Commonly these concerns fall into one of the following categories:</p>
<ul>
<li>Service theft (toll fraud)</li>
<li>Evesdroping (wiretapping)</li>
<li>Service Disruption / Outage (read Denial of Service)</li>
</ul>
<p>The most common VoIP signalling protocol I see in use  SiP, and it is pretty simple to understand from an observers point of view. This means that it IP based security threat monitoring tools could be converted to the voice world, IDS/IPS on VoIP networks could offer discovery and mitigation of both traditional IP network threats along with the voice specific. I recommend that those maintaining a VoIP infrastructure take a look at a modern IDS system to determine  if it can help them discover and protect against many of the threats that concern them.</p>
<p><a href="http://snort.org">Snort</a> obvoiusly has a bucket of rules specific to voice networks put together by the <a href="http://snort.org/pub-bin/vrtnews.cgi">Sourcefire VRT</a>, and there are also <a href="http://www.bleedingthreats.net/rules/bleeding-voip.rules">additional offerings</a> from the <a href="http://www.bleedingthreats.net/">Bleeding Threats</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://rm-rf.co.uk/2008/08/snort-and-voip-thoughts-on-ips-in-a-modern-voice-network/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Fire alarm fail</title>
		<link>http://rm-rf.co.uk/2008/08/fire-alarm-fail/</link>
		<comments>http://rm-rf.co.uk/2008/08/fire-alarm-fail/#comments</comments>
		<pubDate>Thu, 07 Aug 2008 09:28:38 +0000</pubDate>
		<dc:creator>leon</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<category><![CDATA[fail]]></category>

		<guid isPermaLink="false">http://rm-rf.co.uk/2008/08/fire-alarm-fail/</guid>
		<description><![CDATA[I found this poster attached to the office door. I guess it&#8217;s one approach to mitigating fire risk

]]></description>
			<content:encoded><![CDATA[<p>I found this poster attached to the office door. I guess it&#8217;s one approach to mitigating fire risk</p>
<p style="text-align: center;"><a href="http://rm-rf.co.uk/wp-content/uploads/2008/08/p-640-480-afd2f8fe-e0a5-4237-aa0f-df160e335db4.jpeg"><img class="size-full wp-image-364 aligncenter" src="http://rm-rf.co.uk/wp-content/uploads/2008/08/p-640-480-afd2f8fe-e0a5-4237-aa0f-df160e335db4.jpeg" alt="photo" width="225" height="300" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://rm-rf.co.uk/2008/08/fire-alarm-fail/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Snort 3 Beta on Ubuntu / Debian Installation</title>
		<link>http://rm-rf.co.uk/2008/07/snort-3-beta-on-ubuntu-debian-installation/</link>
		<comments>http://rm-rf.co.uk/2008/07/snort-3-beta-on-ubuntu-debian-installation/#comments</comments>
		<pubDate>Sun, 27 Jul 2008 16:45:54 +0000</pubDate>
		<dc:creator>leon</dc:creator>
		
		<category><![CDATA[Security]]></category>

		<category><![CDATA[snort]]></category>

		<category><![CDATA[snort3]]></category>

		<category><![CDATA[snortsp]]></category>

		<guid isPermaLink="false">http://rm-rf.co.uk/?p=63</guid>
		<description><![CDATA[A few days ago I had some spare(ish) time, and decided to take a look at the Snort 3.x beta. I took some time looking at the alpha release in 07, and am happy to see how far it has come since then.
Over the last few weeks, I have seen a couple of posts to [...]]]></description>
			<content:encoded><![CDATA[<p>A few days ago I had some spare(ish) time, and decided to take a look at the Snort 3.x beta. I took some time looking at the alpha release in 07, and am happy to see how far it has come since then.</p>
<p>Over the last few weeks, I have seen a couple of posts to the Snort forums asking for help to get Snort 3.x up and running. It is good to see that others are interested in testing the engine, and unfortunate that there is such a steep learning curve to get to grips with the new way that Snort, and the Snort Security Platform now work. I have a hunch that after a little effort in learning the new methods it will all soon seem like second nature to all of us.</p>
<p>I thought I would share the steps I went through to get Snort 3 running on a test VMware virtual machine in the hope they can help out others.</p>
<p>My base OS is Ubuntu jeos, a stripped down build of Ubuntu designed and optimised for running in a VMware instance, the below instructions should work for pretty much any Debian based OS and let me know if they don&#8217;t!</p>
<p>The Jeos installation leaves me with a minimal Ubuntu system, comparable to Debian &#8220;base&#8221; , so to build anything on top of this we need to install some extra packages.</p>
<p>Before we try to install and configure the Snort Security Platform along with the Snort 3 analitical engine, lets make sure that we are able to get snort 2.8.2.1 (the latest stable 2.x release at the time of writing) working on our device. This extra task will save us a LOT of time later.</p>
<p><span style="text-decoration: underline;">Building and installing Snort 2.8</span></p>
<p>Firstly I want to access this device via ssh, so a ssh daemon is required along with some other basic tools</p>
<pre>sudo apt-get install ssh wget</pre>
<p>We need all the key components to allow us to compile code, the build-essential meta-package will install all of these for me.</p>
<pre>sudo apt-get install build-essential</pre>
<p>To build Snort from source, we need to install some key libraries and development headers that it requires. libpcap is the promiscuous packet capture library, it is used by Snort, wireshark, tcpdump etc to capture network traffic.</p>
<pre>sudo apt-get install libpcap0.8 libpcap0.8-dev</pre>
<p>Snort supports PCRE for matching data within packets and data streams, therefore we need to install the required libraries and header files.</p>
<pre>sudo apt-get install libpcre3 libpcre3-dev</pre>
<p>Once Snort&#8217;s dependancies are installed, lets get the snort 2.x source and install it.</p>
<pre>wget http://snort.org/dl/current/snort-2.8.2.1.tar.gz
tar -zxf ./snort-2.8.2.1.tar.gz
cd snort-2.8.2.1
./configure
make
sudo make install
sudo mkdir /etc/snort
sudo cp etc/* /etc/snort</pre>
<p>We should now be in a position where Snort 2.8.x is ready to be configured for use, lets check its availability with a snort -V to check.</p>
<pre>snort -V

   ,,_     -*&gt; Snort! &lt;*-
  o"  )~   Version 2.8.2.1 (Build 16)
   ''''    By Martin Roesch &amp; The Snort Team: http://www.snort.org/team.html
           (C) Copyright 1998-2008 Sourcefire Inc., et al.
           Using PCRE version: 7.4 2007-09-21</pre>
<p>Before we can test Snort in any way, we need a few more things, some rules, and some test data. How you access the Snort rulebase is dependant on whether or not you are a Snort rule subscriber, and what level of subscription you have. for this simple test we dont need the latest and greatest rules from the Sourcefire VRT (Vulnerablity Researh Team) like if we were running a real sensor, but we need a modern set of rules that will work with a 2.8 engine.</p>
<p>Go and register an account on snort.org, and download the &#8220;registered user release&#8221;, or use whatever ruleset you have handy for a 2.8 engine. Put the rule files into /etc/snort/rules/</p>
<pre>&lt;get hold of rule tarball&gt;
tar -zxf snortrules-snapshot-CURRENT.tar.gz
sudo cp -r rules/ /etc/snort/</pre>
<p>We now need to set the &#8220;RULE_PATH&#8221; variable in /etc/snort/snort.conf to point to /etc/snort/rules. I use vi to acomplish this.</p>
<pre>sudo vi /etc/snort/snort.conf</pre>
<p>After editing, the line should look like this</p>
<pre>grep "var RULE_PATH" /etc/snort/snort.conf
var RULE_PATH /etc/snort/rules</pre>
<p>Lets not give snort a test</p>
<pre>snort -c /etc/snort/snort.conf -A fast -l /tmp -T</pre>
<p>This command tells snort to start up in IDS mode reading /etc/snort/snort.conf. The output mode is &#8220;Fast&#8221;, logging will be to the /tmp directory, and to simply test the config and exit.</p>
<p>You should see an output a little like this:</p>
<pre>        --== Initialization Complete ==--

   ,,_     -*&gt; Snort! &lt;*-
  o"  )~   Version 2.8.2.1 (Build 16)
   ''''    By Martin Roesch &amp; The Snort Team: http://www.snort.org/team.html
           (C) Copyright 1998-2008 Sourcefire Inc., et al.
           Using PCRE version: 7.4 2007-09-21

           Rules Engine: SF_SNORT_DETECTION_ENGINE  Version 1.8  &lt;Build 14&gt;
           Preprocessor Object: SF_DCERPC  Version 1.1  &lt;Build 4&gt;
           Preprocessor Object: SF_FTPTELNET  Version 1.1  &lt;Build 10&gt;
           Preprocessor Object: SF_SMTP  Version 1.1  &lt;Build 7&gt;
           Preprocessor Object: SF_Dynamic_Example_Preprocessor  Version 1.0  &lt;Build 1&gt;
           Preprocessor Object: SF_SSH  Version 1.1  &lt;Build 1&gt;
           Preprocessor Object: SF_DNS  Version 1.1  &lt;Build 2&gt;
           Preprocessor Object: SF_SSLPP  Version 1.0  &lt;Build 1&gt;

Snort successfully loaded all rules and checked all rule chains!
Snort exiting</pre>
<p>The below pcap is one I commonly use for testing an installation, it contains some obvious attacks from about 2001. I host it here to make it easy for me to find.</p>
<pre>cd /tmp
wget rm-rf.co.uk/downloads/Honeynet-RFP-iis.tgz
tar -zxvf ./Honeynet-RFP-iis.tgz</pre>
<p>Now we have Snort configured (using the term losely), and a pcap to test snort with, lets give it a run.</p>
<pre>snort -c /etc/snort/snort.conf -A fast -l /tmp -r ./Honeynet-RFP-iis.pcap</pre>
<p>If successful you should have a file in /tmp/Alert that contains lots of alarms, and /tmp/snort.log.&lt;timestamp&gt; that contains the pcaps of the detected events.</p>
<p>If you do, lets move on to building and installing snortsp.</p>
<p><span style="text-decoration: underline;">Building Snortsp 3.0Beta</span></p>
<p>The Snort security platform has other requirements for building on top of the above that were needed for Snort 2.x</p>
<p>Libnet and libdumbnet provide low level packet creation and modification libraries. Note that libdumbnet is the Debian name equivalent of libdnet in other distributions. The curses libraries handle screen and terminal manipulation, Libreadline provides history and tab completion for terminal commands to improve the user interaction expience with a shell. Lua is the new scripting language used in the Snort Security Platform, flex and bison are more modern replacements to lex and yacc. A UUID (universally unique identifier) generator is also now required for SnortSP.</p>
<pre style="padding-left: 30px;">sudo apt-get install libnet1 libnet1-dev \
    libdumbnet-dev libdumbnet1 \
    libncurses5 libncurses5-dev \
    libreadline5 libreadline5-dev \
    liblua5.1-0 liblua5.1-0-dev \
    flex bison \
    uuid uuid-dev</pre>
<p>Now download and compile SnortSP.</p>
<p><span style="text-decoration: underline;">Note: At the time of writing snort 3.0.0b2 is the most current release. Don&#8217;t use old betas, go grab the latest from snort.org.</span></p>
<pre>cd ~
wget http://www.snort.org/dl/prerelease/3.0.0-b2/snortsp-3.0.0b2.tar.gz
tar -zxf ./snortsp-3.0.0b2.tar.gz
cd snortsp-3.0.0b2
./configure
make
sudo make install
sudo ldconfig
sudo mkdir /etc/snortsp
sudo cp etc/* /etc/snortsp/</pre>
<p>Now SnortSP should be installed, not that this is just the security platform and not the snort engine itself. Snort, the analytical engine, needs to be built separately. Before we compile it first check that snortsp works</p>
<pre>snortsp -V
SnortSP Version 3.0.0b2

cd src/analysis/snort/

./configure --with-platform-includes=/usr/local/include/snortsp/ \
    --with-platform-libraries=/usr/local/lib/snortsp/
make
sudo make install</pre>
<p>The snort engine <em>should</em> now be ready for configuration and use under SnortSP. The challenge we have now it to get it doing what we want.</p>
<p>Start up snortsp to check the platform it is ready for use, (ssp.shutdown() is the command to shutdown the snortsp shell)</p>
<pre>sudo snortsp -L /etc/snortsp/snort.lua
[+] Loaded pcap DAQ
[+] Loaded file DAQ
[+] Loaded afpacket DAQ
[*] DAQ Modules Loaded...
[*] Loading decoder modules
[+] Loaded ethernet
[+] Loaded null
[+] Loaded arp
[+] Loaded ip
[+] Loaded tcp
[+] Loaded udp
[+] Loaded icmp
[+] Loaded icmp6
[+] Loaded gre
[+] Loaded mpls
[+] Loaded 8021q
[+] Loaded ipv6
[+] Loaded ppp
[+] Loaded pppoe
[+] Loaded gtp
[+] Loaded raw
[*] Decoder initialized...
[*] Flow manager initialized...
[*] Data source subsystem loaded
[*] Engine manager initialized
Control thread running - 3083479952 (22010)
[*] Loading command interface
[!] Loading SnortSP command metatable
[!] Loading data source command metatable
[!] Loading engine command metatable
[!] Loading output command metatable
[!] Loading analyzer command metatable
Executing /etc/snortsp/snort.lua
   ,,_     -*&gt; SnortSP! &lt;*-
  o"  )~   Version 3.0.0b2 (Build 9) [BETA]
   ''''    By Martin Roesch &amp; The Snort Team: http://www.snort.org/team.html
           (C) Copyright 2008 Sourcefire Inc.
snort&gt; ssp.shutdown()</pre>
<p>Because snortsp is a radically new method of handling data sources and detection engines (such as the Snort analytic), some tools have been provided within the snortsp tarball for porting your old method of starting up snort and having it run within the snortsp. This tool is called sspiffy.sh. This tool was a key element to me getting my first instance of snort inside the snortsp running the packets contained within my pcap through detection, however it wasn&#8217;t the simple walk in the park it was supposed to be.</p>
<p>I suggest you take a look at the documentation for this tool and see how you get on, however expect the lua file that it creates to not be perfect, but close. Also make sure that it has write access to your snort.conf. With this in mind, i decided to share my <em>sightly</em> modified lua file, based on the output of sspiffy.sh. It works for me along with this snort.conf. Feel free to hack about with it to make it do what you want.</p>
<p><a href="http://rm-rf.co.uk/downloads/snort3_beta_pcap.lua">My snort.lua file</a> (save it to /etc/snort)</p>
<p><a href="http://rm-rf.co.uk/downloads/snort3_beta.conf">My snort3 beta snort.conf file</a> (save it to /etc/snort)</p>
<pre>cd /tmp/
wget http://rm-rf.co.uk/downloads/snort3_beta_pcap.lua
sudo cp snort3_beta_pcap.lua /etc/snort/

sudo mv /etc/snort/snort.conf /etc/snort/snort.conf.2.8
wget http://rm-rf.co.uk/downloads/snort3_beta.conf
sudo cp /tmp/snort3_beta.conf /etc/snort/snort.conf</pre>
<p>Now lets fire up snortsp using the lua file above, and see how she goes. If successful you should see output like <a href="http://rm-rf.co.uk/downloads/snort3_beta_output.txt">this</a>.</p>
<p>Anyway, I need to spend some more time playing with the tool and less writing all of this. Let me know if I have got something wrong, or if these instructions don&#8217;t work for you.</p>
<p>Happy Snortin&#8217;</p>
<p>-Leon</p>
]]></content:encoded>
			<wfw:commentRss>http://rm-rf.co.uk/2008/07/snort-3-beta-on-ubuntu-debian-installation/feed/</wfw:commentRss>
		</item>
		<item>
		<title>&#8220;Not using PCAP_FRAMES&#8221;, A.k.a When good verbosity goes bad</title>
		<link>http://rm-rf.co.uk/2008/07/not-using-pcap_frames-aka-when-good-verbosity-goes-bad/</link>
		<comments>http://rm-rf.co.uk/2008/07/not-using-pcap_frames-aka-when-good-verbosity-goes-bad/#comments</comments>
		<pubDate>Fri, 18 Jul 2008 17:13:17 +0000</pubDate>
		<dc:creator>leon</dc:creator>
		
		<category><![CDATA[Security]]></category>

		<category><![CDATA[snort]]></category>

		<guid isPermaLink="false">https://rm-rf.co.uk/wordpress/?p=24</guid>
		<description><![CDATA[The same questions get posted again and again to the Snort forums, at the moment this is the most frequently misunderstood, and asked question that catches my eye.
Help !!!!!!!!
Snort doesn&#8217;t work !
It dies with a &#8220;Not Using PCAP_FRAMES&#8221; error message&#8221;.
Quick, quick help me now!
I&#8217;m ranting about this here so hopefully when people google the &#8220;Not [...]]]></description>
			<content:encoded><![CDATA[<p>The same questions get posted again and again to the Snort forums, at the moment this is the most frequently misunderstood, and asked question that catches my eye.</p>
<p style="padding-left: 30px;">Help !!!!!!!!<br />
Snort doesn&#8217;t work !<br />
It dies with a &#8220;Not Using PCAP_FRAMES&#8221; error message&#8221;.<br />
Quick, quick help me now!</p>
<p>I&#8217;m ranting about this here so hopefully when people google the &#8220;Not using PCAP_FRAMES&#8221; message before blindly posting to the forums or mail lists for help (I know, I can dream), maybe this post will appear in their search results solving their non-issue.</p>
<p><span style="text-decoration: underline;">What is an error message?</span></p>
<p>Lets look a real error messages first, unlike the above.</p>
<pre style="padding-left: 30px;">--== Initializing Snort ==--
Initializing Output Plugins!
Initializing Preprocessors!
Initializing Plug-ins!
Parsing Rules file /this/rules/file/does/not/exist
ERROR: Unable to open rules file: /this/rules/file/does/not/exist or /this/rules/file/does/not//this/rules/file/does/not/exist
Fatal Error, Quitting..</pre>
<p>The error condition above is clearly identified, other messages not prefixed with &#8220;ERROR&#8221; are supporting messages to help a user understand what the system is doing. This rule holds true with most software and not Snort alone.</p>
<p><span style="text-decoration: underline;">What is a PCAP_FRAME?</span></p>
<p>PCAP_FRAMES is an environment variable that is used to pass a configuration setting to a custom pcap library, specifically the code by Phil Woods (Nice job by the way Phil). If you have not built snort against Phil&#8217;s libpcap that supports pcap ring buffers in shared memory, PCAP_FRAMES means absolutely NOTHING to you, zip, nout, fsck all, nada.</p>
<p>If you are unsure if you have built Snort against Phil&#8217;s libpcap or a stock distribution, then trust me you&#8217;re using a stock libpcap.</p>
<p>For those who are interested, PCAP_FRAMES defines a size (in frames) of a pcap ring-buffer in shared memory.</p>
<p><span style="text-decoration: underline;">Are you sure? It looks like Snort stops with this as an error.</span></p>
<p>Yes I&#8217;m sure, and I find your lack of faith disturbing. Lets look at the code in snort.c to check.</p>
<p>1163     if( getenv(&#8221;PCAP_FRAMES&#8221;) )<br />
1164     {<br />
1165         LogMessage(&#8221;Using PCAP_FRAMES = %s\n&#8221;, getenv(&#8221;PCAP_FRAMES&#8221;) );<br />
1166     }<br />
1167     else<br />
1168     {<br />
1169         LogMessage(&#8221;Not Using PCAP_FRAMES\n&#8221; );<br />
1170     }</p>
<p>If the environment variable PCAP_FRAMES is set, it shows the value to user during Snort initialization. If the environment variable is not set, it tell the user that PCAP_FRAMES are not being used.</p>
<p>For example, ill start up snort as a sniffer on my Mac with a stock libpcap.</p>
<pre style="padding-left: 30px;">[09:12:32]lward@drax~$ sudo snort -vdei en0 &gt; /dev/null
Password:
Running in packet dump mode
-snip verbose startup output-</pre>
<pre style="padding-left: 30px;">,,_     -*&gt; Snort! &lt;*-
o"  )~   Version 2.8.0.2 (Build 75)
''''    By Martin Roesch &amp; The Snort Team:
http://www.snort.org/team.html
(C) Copyright 1998-2007 Sourcefire Inc., et al.
Using PCRE version: 7.6 2008-01-28
Not Using PCAP_FRAMES
^C*** Caught Int-Signal
==============================================================
Packet Wire Totals:

-SNIP-</pre>
<p>Here Snort has started up and was sniffing without error (until I hit CRTL+C), now lets set PCAP_FRAMES to some garbage because it will have no effect on Snorts behavior or my stock libpcap.</p>
<pre>bash-3.2# export PCAP_FRAMES="Foo Bar This setting has no impact on my libpcap instance"
bash-3.2# snort -dvei en0 &gt; /dev/null</pre>
<pre>Running in packet dump mode</pre>
<pre style="padding-left: 30px;">--== Initializing Snort ==--
Initializing Output Plugins!
Verifying Preprocessor Configurations!
Initializing Network Interface en0
OpenPcap() device en0 network lookup:
en0: no IPv4 address assigned
Decoding Ethernet on interface en0
--== Initialization Complete ==--
 ,,_     -*&gt; Snort! &lt;*-
o"  )~   Version 2.8.0.2 (Build 75)
 ''''    By Martin Roesch &amp; The Snort Team: http://www.snort.org/team.html
(C) Copyright 1998-2007 Sourcefire Inc., et al.
Using PCRE version: 7.6 2008-01-28
Using PCAP_FRAMES = Foo Bar This setting has no impact on my libpcap instance
 ^C*** Caught Int-Signal
 ===================================</pre>
<p>So in summary, this verbose message has no meaning to most users of Snort. If you are running Snort as an IDS but not in daemon mode, don&#8217;t expect to see anything on STDOUT until you stop the processes (hit CRTL+C to send a SIGINT).</p>
<p>As always, happy Snortin&#8217;<br />
-Leon</p>
]]></content:encoded>
			<wfw:commentRss>http://rm-rf.co.uk/2008/07/not-using-pcap_frames-aka-when-good-verbosity-goes-bad/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Defining achievable IDS/IPS deployment goals</title>
		<link>http://rm-rf.co.uk/2008/07/defining-achievable-idsips-deployment-goals/</link>
		<comments>http://rm-rf.co.uk/2008/07/defining-achievable-idsips-deployment-goals/#comments</comments>
		<pubDate>Tue, 08 Jul 2008 17:12:32 +0000</pubDate>
		<dc:creator>leon</dc:creator>
		
		<category><![CDATA[Security]]></category>

		<category><![CDATA[IDS]]></category>

		<category><![CDATA[IPS]]></category>

		<guid isPermaLink="false">https://rm-rf.co.uk/wordpress/?p=22</guid>
		<description><![CDATA[A network intrusion detection (and prevention) system is a flexible tool that can be used in many different ways. Let&#8217;s outline some of the most common deployment types I see in use today on *real* networks, and look them in no particular order. The reason for looking at these deployment type is to encourage more [...]]]></description>
			<content:encoded><![CDATA[<p>A network intrusion detection (and prevention) system is a flexible tool that can be used in many different ways. Let&#8217;s outline some of the most common deployment types I see in use today on *real* networks, and look them in no particular order. The reason for looking at these deployment type is to encourage more common compartmentalization (or segmentation) of monitoring tasks.</p>
<p>Firstly let&#8217;s don&#8217;t not forget that I[DP]S is all about access controls, which controls are implemented are your choice.</p>
<p style="padding-left: 30px;">a) Tactical threat suppression<br />
b) Business link risk mitigation<br />
c) Security event detection<br />
d) Network audit controls</p>
<p><span style="text-decoration: underline;">Tactical threat suppression (Provides a preventative access control)</span><br />
This is normally seen as the deployment of IPS at key access gateways of a protected network, the policy deployed is set to prevent specific malicious traffic flows from gaining entry. This design meets the &#8220;virtual patch&#8221; ideas to protect assets from key threats that concern the security team. Think &#8220;sploit de jour&#8221;.</p>
<p><span style="text-decoration: underline;">Security event detection (Provides a detective access control)</span><br />
Deployment of an IDS to detect network events that could impact the traditional security goals of the network (think network security 101 goals here (C, I &amp; A)).<br />
This is probably the most commonly planned IDS deployment from the out-set, it defines a system that is inspects network data flow, and when a security event occurs a team of analysts is there do their &#8220;job&#8221;. Following analysis, some form of incident response policy would be followed that should lead to the event being resolved. The main requirement for this type operation is a tuned IDS system to detect events that matter to the organization where something can be done in response to them.</p>
<p><span style="text-decoration: underline;">Business link risk mitigation (Provides a preventative access control)</span><br />
The use of an IPS can decrease the risk associated with a network link, therefore allowing the organization to potentially conduct business with higher risk 3rd party networks. The IPS policy acts as a traffic scrubber to prevent potentially harmful flows from entering the network from less-trusted parties.</p>
<p><span style="text-decoration: underline;">Network event recording (Provides an audit control)</span><br />
Deployment of an IDS that monitors the network for potential security events and supporting information. This is sometimes seen as a failed &#8220;Security Event Detection&#8221; deployment, where an IDS just logs event data but isn&#8217;t inspected by an analyst in anything close to real-time. A report may be run once in a while, but the data is stored for future reference should it be needed.<br />
I see this is as a very valid deployment goal, and those who want &#8220;all rules enabled&#8221; generally fit into this category.</p>
<p>Problems can appear when designs attempt mix requirements between these achievable goals, for example:</p>
<p><span style="text-decoration: underline;">Security event detection + Network event recording:</span></p>
<p>This combination leads to access and audit controls being enabled in the same policy. Those who are interested in audit requirements commonly want &#8220;all rules enabled&#8221; and therefore create an un-tunable policy that cannot hope to provide accurate security event detection (read bucket loads of F+).</p>
<p>The methods used to analyze, store, and work with event data may vary across the deployment goals. For example, if a user wants to place a device outside of a firewall to provide audit records, keeping event data in a live event analysis system may be overkill. Maybe a better solution would be an event feed to a SAN in a flat-file system. This would remove the burden to keep event data in an analysis database for real-time access.</p>
<p>Splitting an IDS/IPS deployment into logical chunks, each with specific requirements makes makes a far more manageable and valuable deployment as these goals can be segmented and managed on their own. When I get time I will put more effort into explaining my ideas around this, but in the short term I wanted to throw some ideas out there.</p>
]]></content:encoded>
			<wfw:commentRss>http://rm-rf.co.uk/2008/07/defining-achievable-idsips-deployment-goals/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Automated IDS alert thresholding</title>
		<link>http://rm-rf.co.uk/2008/06/automated-thresholding/</link>
		<comments>http://rm-rf.co.uk/2008/06/automated-thresholding/#comments</comments>
		<pubDate>Fri, 06 Jun 2008 17:07:22 +0000</pubDate>
		<dc:creator>leon</dc:creator>
		
		<category><![CDATA[Security]]></category>

		<category><![CDATA[snort]]></category>

		<category><![CDATA[tuning]]></category>

		<guid isPermaLink="false">https://rm-rf.co.uk/wordpress/?p=19</guid>
		<description><![CDATA[A question was posted to the Snort forums a short while back asking if Snort had the ability to accept how &#8220;dirty&#8221; a network is today, and then be alerted to only new threats that have never been seen before.
The idea behind this is quite simple, make an assumption that the network is &#8220;secure&#8221; as [...]]]></description>
			<content:encoded><![CDATA[<p>A question was posted to the Snort forums a short while back asking if Snort had the ability to accept how &#8220;dirty&#8221; a network is today, and then be alerted to only new threats that have never been seen before.</p>
<p>The idea behind this is quite simple, make an assumption that the network is &#8220;secure&#8221; as it is and operating fine today, then work out how much IPS noise it generates under this normal operation. In the future only alarm on events that have not been previously discovered during the &#8220;normal&#8221; period.  This type of difference analysis commonly requires a reporting tool that analyses the output from network sensors, but the way that the question was phrased got me thinking about this as a tuning process.</p>
<p>So lets summarize the steps involved to achieve this as a tuning goal.</p>
<ul>
<li> Sensor must be deployed into the target network</li>
<li> Sensor must be run for a period of time to generate an alert &#8220;base line&#8221;</li>
<li> The Alerts must be investigated to check that they are all &#8220;acceptable&#8221; and normal for a network of this type (make sure you don&#8217;t accept an already p0wned network)</li>
<li> All alerts that were raised then need to be suppressed based on the assumption that they have no interest to the analyst now or in the future.</li>
<li> Sensor must be restarted with a new &#8220;suppressed&#8221; configuration.</li>
</ul>
<p>It turns out that this is a simple thing to achieve, and after thinking about it for a while also raises two very interesting points:</p>
<ul>
<li> The bulk trade off between F+ and F- . Is there an acceptable ratio, and what is it?</li>
<li> IDS for forensic use vs IDS for enhancing current security</li>
</ul>
<p>I will approach both of the above points in another blog entry when I get some time.</p>
<p>Anyway, here is a dirty bit of perl that achieves what the above. It parses Snort&#8217;s fast alert output, and creates a suppression entry for each gid:sid that has generated an alarm. The suppression decision is made either on the event source IP, destination IP, or both IPs depending on what type of event is discovered.</p>
<p>For example, it is more common that policy-violations will need to be suppressed on the IP address that was the source of the event, and therefore the source of the &#8220;non policy violating policy-violation&#8221; that you don&#8217;t want to know about in the future (there is logic there, you just need to look for it).</p>
<p>Execution of the script is simple, and instructions are included in the source.</p>
<p><a href="http://rm-rf.co.uk/downloads/snort_alert_autosuppress.pl">Download snort_alert_autosuppress.pl here.</a></p>
]]></content:encoded>
			<wfw:commentRss>http://rm-rf.co.uk/2008/06/automated-thresholding/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Formatted Snort alerts in your e-mail</title>
		<link>http://rm-rf.co.uk/2008/05/getting-snort-alerts-in-your-email/</link>
		<comments>http://rm-rf.co.uk/2008/05/getting-snort-alerts-in-your-email/#comments</comments>
		<pubDate>Sat, 24 May 2008 17:02:45 +0000</pubDate>
		<dc:creator>leon</dc:creator>
		
		<category><![CDATA[Security]]></category>

		<category><![CDATA[alerts]]></category>

		<category><![CDATA[snort]]></category>

		<guid isPermaLink="false">https://rm-rf.co.uk/wordpress/?p=17</guid>
		<description><![CDATA[&#8230; As if you don&#8217;t have enough email to read as it is.
People commonly expect Snort to provide many systems that are well out of scope of it&#8217;s design, including :

Event analysis UI&#8217;s
Real-time e-mail alerts
Graphical configuration tools
The kitchen sink
Reporting functions

The list goes on &#8230;
There are many external tools that provide all of these functions, please [...]]]></description>
			<content:encoded><![CDATA[<p>&#8230; As if you don&#8217;t have enough email to read as it is.</p>
<p>People commonly expect Snort to provide many systems that are well out of scope of it&#8217;s design, including :</p>
<ul>
<li>Event analysis UI&#8217;s</li>
<li>Real-time e-mail alerts</li>
<li>Graphical configuration tools</li>
<li>The kitchen sink</li>
<li>Reporting functions</li>
</ul>
<p>The list goes on &#8230;</p>
<p>There are many external tools that provide all of these functions, please remember Snort is a high performance network intrusion detection/prevention engine and not a complete IPS solution alone. Many commercial offerings use Snort as the detection engine but bundle their own management and reporting framework around it, including &lt;blatent plug&gt; <a title="Sourcefire" href="http://sourcefire.com" target="_blank">Sourcefire</a> &lt;/blatant plug&gt;.</p>
<p>Swatch is the most commonly used light-weight method of performing an active response when Snort raises an event, this included sending email. When I teach Snort classes I find that students quickly get to grip with how to use swatch, but still need a hand getting a formatted email out of the system.</p>
<p>To make this a more simple task, i threw together this simple script to provide nice email alerts with impact and advice on how to react to the event.</p>
<p>Let me know if you find it useful.</p>
]]></content:encoded>
			<wfw:commentRss>http://rm-rf.co.uk/2008/05/getting-snort-alerts-in-your-email/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Leon&#8217;s tips for Ips event classification and analysis</title>
		<link>http://rm-rf.co.uk/2008/05/leons-tips-for-ips-event-classification-and-analysis/</link>
		<comments>http://rm-rf.co.uk/2008/05/leons-tips-for-ips-event-classification-and-analysis/#comments</comments>
		<pubDate>Fri, 02 May 2008 17:01:58 +0000</pubDate>
		<dc:creator>leon</dc:creator>
		
		<category><![CDATA[Security]]></category>

		<category><![CDATA[IPS]]></category>

		<category><![CDATA[tuning]]></category>

		<guid isPermaLink="false">https://rm-rf.co.uk/wordpress/?p=15</guid>
		<description><![CDATA[&#8230; and more tuning ideas
So here I am, stuck in another hotel bar, this time at the dark-end of Cornwall, sipping (carefully I may add) at the local tipple (Skinners Press gang cider). I have been taking some time to sift through snort forum postings and following the discovery of the normal “what the hell [...]]]></description>
			<content:encoded><![CDATA[<p>&#8230; and more tuning ideas</p>
<p>So here I am, stuck in another hotel bar, this time at the dark-end of Cornwall, sipping (carefully I may add) at the local tipple (Skinners Press gang cider). I have been taking some time to sift through snort forum postings and following the discovery of the normal “what the hell do I do about this alarm” calls for help, I thought I would take time-out to compile a list of top-tips to  better deal with intrusion alarms.</p>
<p>We all know the situation, you are being alerted to new “stuff” happening on the network, you don’t recognize the alarm as obviously bad, or even obviously dismissible and are desperately trying to work out how much, or even if you should be concerned.</p>
<p>There are certain things you can do to enhance the process of dealing with and understanding new alarms you haven’t any experience in, and due to the shifting threat spectrum (/me slaps self around the face for extreme buzzword abuse, and to mitigate the effect of the cider) new alarms arrive all the time.</p>
<p>Without wanting to write a book on incident analysis, ill split this over a couple of blog postings as some of this advice is conceptual and some introduces methods of approaching the problem, and other tips are tool specific.</p>
<p>First, the bleeding obvious (if you don’t do this already, pick up your security hat and coat and head for the door).</p>
<p>Understand the alarm.</p>
<p>This is such an important point that I must state it even though it sounds obvious. What does the event message really represent? Be sure to read all documentation associated with the alarm. If your IDS is Snort, and used the VRT rules, you have luck on your side as Nigel does a good job of writing and keeping rule documentation current. It is essential that you understand what the writer of the rule wanted to bring to your attention. Your reaction should vary depending on what has occurred, and one hopes that they would have attached a realistic event message. If you consider a regular server-side attack, all of the following may be raised in separate alarms associated with a single flow.</p>
<p>Access, or discovery of a potentially vulnerable system on the protected network<br />
Exploitation of a vulnerability<br />
Discovery of a specific exploit<br />
Malformed network packets<br />
Successful attack response</p>
<p>One of the things that you should have in your favor (and unfortunately, or rather shockingly, this isn’t always the case with many commercial tools) is the ability to look at the detection “source”. This provides an undeniable method of knowing what was being searched for, and may yield more clues to the writers intent (if not already obvious).</p>
<p>Understand the source and target devices in the context of the alarm.<br />
Is it an attack response coming from your network? or someone else’s? How this is evaluated is specific to the event.</p>
<p>Take a look at the packet(s) that raised the alarm for supporting evidence of suspicion.</p>
<p>Without access to the packet that triggered the event(s) you’re dead in the water here and you are flying blind. Was this alarm real or a “programming error” on behalf of the detection system. Take a look at the decoded packet, inspect it, check for the presence of supporting evidence that the alarm may be real. A NOOP sled or a shell call are trivial examples.</p>
<p>Understand the quality of the rule/signature that generated the event.<br />
Check out how the rule was written, if your IDS doesn’t provide you with the detection source, you are dead in the water. Being able to justify WHY an event triggered a rule is imperative.</p>
<p>The slightly less than obvious &#8230; the “C” word.</p>
<p>Understand the alert in the context of the systems involved.<br />
To qualify the potential impact of an “attack” against a target system we need to know what the target system is. In turns out that this can be a harder job than discovering the attack itself, evaluate the alarm against the Operating System, Services, and applications provided by the target.</p>
<p>Evaluate the event in the context of the organization.<br />
What was the “application” being attacked. By application I refer the the purpose of the target system in the operation of the organization. IIS alone means nothing, what is being served over HTTP from this device, and how does it’s compromise effect the operation of the company.</p>
<p>Following the completion of this process TUNE! Can you automate this effort the next time this event is raised on &#8230;<br />
This target<br />
A group of targets<br />
Your whole network</p>
]]></content:encoded>
			<wfw:commentRss>http://rm-rf.co.uk/2008/05/leons-tips-for-ips-event-classification-and-analysis/feed/</wfw:commentRss>
		</item>
		<item>
		<title>The natural habitat of a network security appliance</title>
		<link>http://rm-rf.co.uk/2008/03/the-natural-habitat-of-a-network-security-appliance/</link>
		<comments>http://rm-rf.co.uk/2008/03/the-natural-habitat-of-a-network-security-appliance/#comments</comments>
		<pubDate>Fri, 14 Mar 2008 17:00:11 +0000</pubDate>
		<dc:creator>leon</dc:creator>
		
		<category><![CDATA[Security]]></category>

		<category><![CDATA[IDS]]></category>

		<category><![CDATA[IPS]]></category>

		<category><![CDATA[tuning]]></category>

		<guid isPermaLink="false">https://rm-rf.co.uk/wordpress/?p=12</guid>
		<description><![CDATA[&#8230;Challenging the black art of tuning.
Living things have a natural habitat, an environment where they thrive because it provides all that’s needed for their survival. The evolution, and more importantly extinction of species has shown us that once the habitat of a creature changes substantially, it must either adapt to its new surroundings or it [...]]]></description>
			<content:encoded><![CDATA[<p>&#8230;Challenging the black art of tuning.</p>
<p>Living things have a natural habitat, an environment where they thrive because it provides all that’s needed for their survival. The evolution, and more importantly extinction of species has shown us that once the habitat of a creature changes substantially, it must either adapt to its new surroundings or it can quickly become extinct.</p>
<p>The natural habitat of a network security device, such as a firewall or an intrusion prevention system is the modern enterprise network. From the outside this habitat looks to be volatile and hazardous where only the strongest technologies survive.</p>
<p>When an organisation is seeks to adopt a new security technology, they commonly go through a process of product selection based on a key criteria, for example.</p>
<p>Does the product meet business goals assigned to the project<br />
Cost of ownership &amp; return on investment<br />
How well does the product integrate with the operating environment<br />
How will it perform its function on our network rather than someone else&#8217;s</p>
<p>Integration questions and tests are particularly important as no two enterprise networks resemble each other, however one point that commonly gets overlooked is that the modern network rarely resembles itself a few months further along the line. How well security technologies deal with this rapid rate of change can be linked to how successful their deployment will be a few months along the line.  Will the new device adapt as the environment changes? Alternatively, will it continue in a pointless attempt to enforce extinct policies that has no relevance to the state of the organisation as it is now.</p>
<p>When introduced to a new network, an Intrusion Prevention System needs to be configured for the environment, this is so the device can better understand the habitat it operates in and is therefore better equipped to detect or prevent intrusions. In the world of IPS this is known as the black art of tuning. A tuning process can be broken down into a couple of logical steps.<br />
Deploying vulnerability based network attack detection or prevention capabilities for assets that require protection.<br />
Mapping the organisations acceptable usage policy into the devices configuration.</p>
<p>Both of these steps provide their own challenges, for the initial configuration of a system and also it’s adaption as the network it protects evolves. Lets take a look at each one in turn and discuss methods that can employed to improve the accuracy of detection, speed of response, and adaption to the network as it and associated business goals change.</p>
<p>Vulnerability based attack detection and prevention.</p>
<p>IPS is commonly considered the current generation of network intrusion detection systems, the new kid on the block that has the ability to prevent the exploitation of network vulnerabilities or violations of acceptable use as well as alert to the presence of an attack. Deciding on what vulnerabilities the device needs to detect or protect from exploitation has traditionally been based on user input. It is assumed that the security or network team within an organization is aware of the assets and services offered by the network, and therefore in a position to decide what vulnerabilities the IPS should mitigate. Unfortunately I commonly find this assumption to be flawed.</p>
<p>Many organizations I speak to incorrectly believe that they have a unique problem. Not knowing what assets and services are operating on the network, and therefore not knowing what needs to be protected for which vulnerabilities. This is clearly not a unique issue as I run into it all the time, and the impact of this problem turns out to be high. Missed attacks or false alarms.</p>
<p>Here at Sourcefire we designed a technology back in 2003 that provides information to make this task much easier, we call it RNA - Real-time Network Awareness. RNA provides a map of what the protected network looks like right now, based on how assets and services behave or are accessed. This real-time network map provides good answers to key questions before and after security events occur.</p>
<p>Before an event.<br />
What devices are currently on the protected network?<br />
What services do these devices offer?<br />
What vulnerabilities may exist on these systems?<br />
What detection or prevention capabilities do I need to employ to best protect this network?</p>
<p>After an event.<br />
Was the attack relevant to the device or service?<br />
E.g. Would the target have been vulnerable to the attack. Was it an Apache attack against an IIS Webserver.<br />
Following the attack, did the network or asset change in any way?  2E.g. Did a new service start, or a new client application communicate to the internet for the first time.</p>
<p>Having this real-time map of assets on the network allows us to quickly adapt to changes in the environment. For example, take the current running IPS policy, maybe one that is designed to protect public facing assets from known attacks and overlay it onto a map of what the network is right now. Are there any gaps in the defenses? Has a new service been deployed on the network without the security team being made aware of it?<br />
Has the version of Apache been updated on our production systems? Therefore mitigating the risk of some attacks being successful.</p>
<p>This real-time, constantly adapting map of the network is the key component of enabling the IPS to evolve as its habitat changes. It prevents it from becoming a dinosaur and churning out useless extinct log data.</p>
<p>Monitoring and Enforcing an Acceptable Use</p>
<p>Detecting violations of the organizations acceptable usage policy at a network level is a commonly desired function of Intrusion Prevention. Although we instinctively think of Firewalls, IPS and other network access control devices preventing communications between specific computers and protocols, these communications most likely occur at the request of a user. A laptop for example is not intrinsically a malicious device as its functions are controlled by a user, so if an acceptable usage policy is violated through an instant messaging chat session, do we blame the device or the user?</p>
<p>Tracking down the sources of AUP violations can traditionally be tricky in dynamic environments, and as it happens these are the most common source of AUP violations. Large DHCP ranges are commonly associated with call centres or groups of office staff who will gladly whittle their work day away by abusing network resources. In these environments it can be hard to find something static to associate with an event to allow investigation. The IP address of the source has since changed, knowledge of the original MAC address has been lost due to the network topology, a user was “hot-desking”, the only static in this habitat is the person that violated policy.  This is why it is important to associate these types of events with the user of the system at the time of the violation.</p>
<p>This unique combination of user and network awareness providing an up-to-date map of who is accessing what on the network is invaluable when it comes to actually enhancing the security. Network information has its most value at the time of discovery, constant discovery means providing constant value.</p>
]]></content:encoded>
			<wfw:commentRss>http://rm-rf.co.uk/2008/03/the-natural-habitat-of-a-network-security-appliance/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Defying the all or nothing approach to network security</title>
		<link>http://rm-rf.co.uk/2008/03/defying-the-all-or-nothing-approach-to-network-security/</link>
		<comments>http://rm-rf.co.uk/2008/03/defying-the-all-or-nothing-approach-to-network-security/#comments</comments>
		<pubDate>Mon, 10 Mar 2008 16:58:12 +0000</pubDate>
		<dc:creator>leon</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">https://rm-rf.co.uk/wordpress/?p=9</guid>
		<description><![CDATA[I am writing this while sitting in a hotel bar feeling way over-dressed for an occasion. I have just arrived at the Black Hat Europe 2008 conference in Amsterdam, and after being in meetings earlier today, haven’t yet had time to put on some more “relaxed” clothing to fit in with everyone else around me.

Sipping [...]]]></description>
			<content:encoded><![CDATA[<p class="Body" style="padding-top: 0pt;">I am writing this while sitting in a hotel bar feeling way over-dressed for an occasion. I have just arrived at the Black Hat Europe 2008 conference in Amsterdam, and after being in meetings earlier today, haven’t yet had time to put on some more “relaxed” clothing to fit in with everyone else around me.</p>
<p class="Body">
<p class="Body">Sipping my Heineken, obviously served the continental way (thats with a quantity of head that instinctively makes you check for a measurement line), I was trying to catch up on email when I came to notice another overlooked parallel between IPS deployment design and the real world. Ditching the over-spilling inbox, I felt compelled to write about it.</p>
<p class="Body">
<p class="Body">A common challenge I encounter when working with organizations to help design intrusion monitoring and prevention strategies, is one of balancing unrealistic objectives with all too realistic budgets. I guess that there’s no shock there as its a far from a new problem, however I find that for me it becomes less frustrating once I manage to get a few important concepts across to the client.</p>
<p class="Body">
<p class="Body">Before I meet with those who are in possession of the organizational and technical information required to help deploy an IPS, it’s common for one of my “sales-guys” to say in an upbeat way “Don’t worry Leon, this design won’t take you long, they emailed me a network diagram! I have already half-specced the solution myself!”, The look in their eyes as they rub their hands together is one of elation as they count and re-count how much their design will cost.</p>
<p class="Body">
<p class="Body">I find that there is commonly an all-or-nothing approach unique to network security, this forces people to rarely see a middle ground of achievability. This is probably best manifested when I see the infamous network diagram, now modified to include an IPS appliance on every network link on the page. I don’t want to poke fun solely at my sales-guys for the occasional over optimistic deployment idea, I see similar designs from other network security venders all the time.</p>
<p class="Body">
<p class="Body">I have never been shown a network diagram that allows me to immediately design a decent IPS deployment. People think of a network IPS as its name suggests, a network device, however the function it provides operates at network, service, application and organizational levels. The normal network map that I initially get shown is one of routers, switches, firewall’s etc, it never presents me with worthwhile information about business objectives, how data is designed to move around the ether. Where do critical business services exist and barriers of trust drawn?</p>
<p class="Body">
<p class="Body">The all-or-nothing approach to device placement commonly results in a great number inline devices between every link that you can find, it costs a bucket load of cash and probably wont actually meet a goal of substantially improving security.</p>
<p class="Body">
<p class="Body">So, you may wondering what the parallel is that I felt compelled to write about, so lets jump a little closer to the point. When you plan an IPS deployment, don’t start off with the unobtainable “all-or-nothing” approach. Start with a plan that reflects network data flow as of now, and then try to meet achievable objectives that have been formally defined. This process also indirectly addresses the below common objections I hear against IDS and IPS as a technology.</p>
<p class="Body">
<p class="Body">“To do this right, I need to place down way to many devices. Too much cost in purchasing, and management effort”</p>
<p class="Body">“I cant put IPS everywhere so what’s the point of monitoring at all”.</p>
<p class="Body">
<p class="Body">The bar that I am sitting in has somewhere in the region of sixty people, they are all going about their business, chatting away and enjoying many creatively poured glasses of Heineken. It is impossible for me to monitor what everyone is discussing, especially without interruption, but is it impossible for me, a single monitoring point, to overhear something valuable?</p>
<p class="Body">
<p class="Body">I wasn’t purposely trying to eavesdrop,  but I couldn’t help but overhear an interesting conversation coming from the table next to me. The details of what was said is irrelevant for my point, but now that I have heard it I feel that I’m in a much better situation that I was before. I can use this newly found knowledge to be more intelligent about things. This is just the same as using the intelligence provided from a single network security monitoring device, we just need to make sure that we understand the scope of what it provides.</p>
<p class="Body">
<p class="Body">In the UK we are famously big users of Closed Circuit Television (CCTV), it provides an immensely valuable resource of audit data and crime detection. It is impossible to monitor the whole country with CCTV as the cost of cameras and the required of management effort grows beyond a line of what is worth-while. This line of what can be achieved and managed is also visible at an organizational level, It is unlikely that your whole office is monitored with CCTV, but there may well be a camera or two above important doors.</p>
<p class="Body">
<p class="Body">In just the same way that I can over hear a conversation or a well placed CCTV camera can record an interesting event, strategic placement and planning of a network monitoring device can provide data about specific assets that concern the user. A network IPS is essentially an access control device, and assuming you select a good one, extremely flexible. Operation of these devices fall into one of two camps, Detective controls, like a CCTV camera and preventative controls, like an automatic door. As you can imagine, the most valuable deployments provide a mix of these two controls at relevant locations.</p>
<p class="Body">
<p>Remember that if you decide to operate the network without audit and detective controls in place, you will never discover anything. With a good design that can actually deliver achievable, protection and monitoring in specific areas, this gives you one hell of a better chance to protect your organization than leaving your head stuck in the sand monitoring nothing.</p>
]]></content:encoded>
			<wfw:commentRss>http://rm-rf.co.uk/2008/03/defying-the-all-or-nothing-approach-to-network-security/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
