<?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>Inliniac &#187; Emerging Threats</title>
	<atom:link href="http://www.inliniac.net/blog/tag/emerging-threats/feed" rel="self" type="application/rss+xml" />
	<link>http://www.inliniac.net/blog</link>
	<description>Everything inline.</description>
	<lastBuildDate>Thu, 29 Jul 2010 19:38:06 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Setting up Suricata 0.9.0 for initial use on Ubuntu Lucid 10.04</title>
		<link>http://www.inliniac.net/blog/2010/05/10/setting-up-suricata-0-9-0-for-initial-use-on-ubuntu-lucid-10-04.html</link>
		<comments>http://www.inliniac.net/blog/2010/05/10/setting-up-suricata-0-9-0-for-initial-use-on-ubuntu-lucid-10-04.html#comments</comments>
		<pubDate>Mon, 10 May 2010 14:27:25 +0000</pubDate>
		<dc:creator>Victor Julien</dc:creator>
				<category><![CDATA[IPS]]></category>
		<category><![CDATA[Suricata]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[ids]]></category>
		<category><![CDATA[oisf]]></category>
		<category><![CDATA[Emerging Threats]]></category>

		<guid isPermaLink="false">http://www.inliniac.net/blog/?p=366</guid>
		<description><![CDATA[The last few days I blogged about compiling Suricata in IDS and IPS mode. Today I&#8217;ll write about how to set it up for first use. Starting with Suricata 0.9.0 the engine can run as an unprivileged user. For this create a new user called &#8220;suricata&#8221;. useradd &#45;&#45;no-create-home &#45;&#45;shell /bin/false &#45;&#45;user-group &#45;&#45;comment &#8220;Suricata IDP account&#8221; [...]]]></description>
			<content:encoded><![CDATA[<p>The last few days I blogged about compiling Suricata in <a href="http://www.inliniac.net/blog/2010/05/07/compiling-suricata-0-9-0-in-ubuntu-lucid-10-04-in-ids-mode.html">IDS</a> and <a href="http://www.inliniac.net/blog/2010/05/07/compiling-suricata-0-9-0-in-ubuntu-lucid-10-04-in-ips-inline-mode.html">IPS</a> mode. Today I&#8217;ll write about how to set it up for first use.</p>
<p>Starting with Suricata 0.9.0 the engine can run as an unprivileged user. For this create a new user called &#8220;suricata&#8221;.</p>
<blockquote><p>useradd &#45;&#45;no-create-home &#45;&#45;shell /bin/false &#45;&#45;user-group &#45;&#45;comment &#8220;Suricata IDP account&#8221; suricata</p></blockquote>
<p>This command will create a user and group called &#8220;suricata&#8221;. It will be unable to login as the shell is set to /bin/false.</p>
<p>The next thing to do is creating a configuration directory. Create /etc/suricata/ and copy the suricata.yaml example config into it. The example configuration can be found in the source archive you used to build Suricata:</p>
<blockquote><p>
mkdir /etc/suricata<br />
cp /path/to/suricata-0.9.0/suricata.yaml /etc/suricata/<br />
cp /path/to/suricata-0.9.0/classification.config /etc/suricata/
</p></blockquote>
<p>Next, create the log directory. </p>
<blockquote><p>
mkdir /var/log/suricata
</p></blockquote>
<p>The log directory needs to be writable for the user and group &#8220;suricata&#8221;, so change the ownership:</p>
<blockquote><p>
chown suricata:suricata /var/log/suricata
</p></blockquote>
<p>The last step I&#8217;ll be describing here is retrieving an initial ruleset. The 2 main rulesets you can use are <a href="http://www.emergingthreats.net/">Emerging Threats</a> (ET) and <a href="http://www.snort.org/snort-rules/">Sourcefire&#8217;s VRT</a> ruleset. Since putting VRT to use is a little bit more complicated I&#8217;ll be focussing on ET here.</p>
<p>First, download the emerging rules:</p>
<blockquote><p>
wget http://www.emergingthreats.net/rules/emerging.rules.tar.gz
</p></blockquote>
<p>Go to /etc/suricata/ and extract the rules archive:</p>
<blockquote><p>
cd /etc/suricata/<br />
tar xzvf /path/to/emerging.rules.tar.gz
</p></blockquote>
<p>There is a lot more to rules, such as tuning and staying updated, but thats beyond the scope of this post.</p>
<p>Suricata is now ready to be started:</p>
<blockquote><p>
suricata -c /etc/suricata/suricata.yaml -i eth0 &#45;&#45;user suricata &#45;&#45;group suricata
</p></blockquote>
<p>If all is setup properly, Suricata will tell you it is now running:</p>
<blockquote><p>
[2087] 9/5/2010 &#8212; 18:17:47 &#8211; (tm-threads.c:1362) <Info> (TmThreadWaitOnThreadInit) &#8212; all 8 packet processing threads, 3 management threads initialized, engine started.
</p></blockquote>
<p>There are 3 log files in /var/log/suricata that will be interesting to monitor:</p>
<p>- stats.log: displays statistics on packets, tcp sessions etc.<br />
- fast.log: a alerts log similar to Snort&#8217;s fast log.<br />
- http.log: displays HTTP requests in a Apache style format.</p>
<p>This should get you going. There is a lot more to deploying Suricata that I plan to blog on later.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.inliniac.net/blog/2010/05/10/setting-up-suricata-0-9-0-for-initial-use-on-ubuntu-lucid-10-04.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>SidReporter beta2 released</title>
		<link>http://www.inliniac.net/blog/2008/08/21/sidreporter-beta2-released.html</link>
		<comments>http://www.inliniac.net/blog/2008/08/21/sidreporter-beta2-released.html#comments</comments>
		<pubDate>Thu, 21 Aug 2008 15:08:42 +0000</pubDate>
		<dc:creator>Victor Julien</dc:creator>
				<category><![CDATA[Sguil]]></category>
		<category><![CDATA[SidReporter]]></category>
		<category><![CDATA[Emerging Threats]]></category>
		<category><![CDATA[Matt Jonkman]]></category>

		<guid isPermaLink="false">http://www.inliniac.net/blog/?p=147</guid>
		<description><![CDATA[A little over a week ago the second beta of the SidReporter from Emerging Threats was released (see http://www.emergingthreats.net/content/view/95/1/). I&#8217;ve been working with Matt Jonkman to setup this new project at Emerging Threats, mostly in writing the reporter scripts. I think it&#8217;s an exciting new project that could provide the community with great information. As [...]]]></description>
			<content:encoded><![CDATA[<p>A little over a week ago the second beta of the SidReporter from <a href="http://www.emergingthreats.net/">Emerging Threats</a> was released (see <a href="http://www.emergingthreats.net/content/view/95/1/">http://www.emergingthreats.net/content/view/95/1/</a>). I&#8217;ve been working with Matt Jonkman to setup this new project at Emerging Threats, mostly in writing the reporter scripts. I think it&#8217;s an exciting new project that could provide the community with great information. As Matt <a href="http://www.emergingthreats.net/content/view/93/1/">wrote</a> on the initial announcement:</p>
<blockquote><p>&#8220;As mentioned a few weeks ago, we&#8217;ve been working to bring out tool to anonymously report IDS/IPS hits. Similar to DShield&#8217;s firewall log reporting, we believe we can make some incredible data inferences with this information, as well as help improve the quality of our signatures while giving us all feedback to tune our rulesets.</p>
<p>But that&#8217;s just the start. As with DShield&#8217;s data, I think we&#8217;ll run into benefits to the community that we can&#8217;t even imagine until we start to look at the data.&#8221;</p></blockquote>
<p>The next step for the reporter is adding support for getting the events from Sguil. Expect to see that soon!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.inliniac.net/blog/2008/08/21/sidreporter-beta2-released.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>New Snortsam patch for Snort 2.8.0.1</title>
		<link>http://www.inliniac.net/blog/2008/01/08/new-snortsam-patch-for-snort-2801.html</link>
		<comments>http://www.inliniac.net/blog/2008/01/08/new-snortsam-patch-for-snort-2801.html#comments</comments>
		<pubDate>Tue, 08 Jan 2008 12:30:53 +0000</pubDate>
		<dc:creator>Victor Julien</dc:creator>
				<category><![CDATA[IPv6]]></category>
		<category><![CDATA[Snort]]></category>
		<category><![CDATA[Snortsam]]></category>
		<category><![CDATA[Emerging Threats]]></category>
		<category><![CDATA[Matt Jonkman]]></category>

		<guid isPermaLink="false">http://www.inliniac.net/blog/2008/01/08/new-snortsam-patch-for-snort-2801.html</guid>
		<description><![CDATA[Matt Jonkman of Emerging Threats asked me to have a look at the existing Snortsam 2.8.0.1 patch as people were continuing to report problems with it. I updated it to compile without compiler warnings, build cleanly with debugging enabled, build cleanly with Snort&#8217;s IPv6 support enabled and added a check so it won&#8217;t act on [...]]]></description>
			<content:encoded><![CDATA[<p>Matt Jonkman of <a href="http://www.emergingthreats.net/" target="_blank">Emerging Threats</a> asked me to have a look at the existing Snortsam 2.8.0.1 patch as people were continuing to report problems with it. I updated it to compile without compiler warnings, build cleanly with debugging enabled, build cleanly with Snort&#8217;s IPv6 support enabled and added a check so it won&#8217;t act on alerts in IPv6 packets since the Snortsam framework does not support IPv6. Finally I removed the patch script so it&#8217;s provided as a &#8216;normal&#8217; diff. Here is the patch: <a href="http://www.inliniac.net/files/snortsam-2.8.0.1.diff">http://www.inliniac.net/files/snortsam-2.8.0.1.diff</a></p>
<p>Here are the instructions for getting your Snort 2.8.0.1 source patched:</p>
<p>Make sure you have a clean Snort 2.8.0.1 tree, then patch it:</p>
<p>cd snort-2.8.0.1<br />
patch -p1 &lt; ../snortsam-2.8.0.1.diff</p>
<p>Next, run &#8216;autojunk.sh&#8217; to update the build system (you need to have libtoolize, aclocal, autoheader, autoconf and automake installed). After this, configure and build Snort normally:</p>
<p>./configure &lt;your configure options&gt;<br />
make<br />
make install</p>
<p>Thats it.</p>
<p>Thanks to Matt Jonkman of <a href="http://www.emergingthreats.net/" target="_blank">Emerging Threats</a> for paying me to do this and CunningPike for doing the first iterations of the patch!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.inliniac.net/blog/2008/01/08/new-snortsam-patch-for-snort-2801.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
