<?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>knutee</title>
	<atom:link href="http://knutee.net/?feed=rss2" rel="self" type="application/rss+xml" />
	<link>http://knutee.net</link>
	<description>Just my random thoughts...</description>
	<lastBuildDate>Sun, 22 Nov 2009 18:57:06 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Update again&#8230;</title>
		<link>http://knutee.net/?p=23</link>
		<comments>http://knutee.net/?p=23#comments</comments>
		<pubDate>Sun, 22 Nov 2009 18:40:31 +0000</pubDate>
		<dc:creator>knutee</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://knutee.net/?p=23</guid>
		<description><![CDATA[And 1 year later I update again. Guess I&#8217;ve learned how much spare time I have when I focus on work and a relationship.
I&#8217;ve decided to try to write on this blog again, so fingers crossed!
Now, my personal laptop died on me recently and it&#8217;s a bit limited what I can run and test on [...]]]></description>
			<content:encoded><![CDATA[<p>And 1 year later I update again. Guess I&#8217;ve learned how much spare time I have when I focus on work and a relationship.</p>
<p>I&#8217;ve decided to try to write on this blog again, so fingers crossed!</p>
<p>Now, my personal laptop died on me recently and it&#8217;s a bit limited what I can run and test on my work laptop, so first off I&#8217;ll just make the readers aware of two pentesting platforms they can try out:<br />
<a href="http://www.deftlinux.net/" target="_blank"> http://www.deftlinux.net/</a><br />
<a href="http://www.remote-exploit.org/backtrack.html" target="_blank"> http://www.remote-exploit.org/backtrack.html</a></p>
]]></content:encoded>
			<wfw:commentRss>http://knutee.net/?feed=rss2&amp;p=23</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Late update</title>
		<link>http://knutee.net/?p=21</link>
		<comments>http://knutee.net/?p=21#comments</comments>
		<pubDate>Tue, 11 Nov 2008 19:38:23 +0000</pubDate>
		<dc:creator>knutee</dc:creator>
				<category><![CDATA[Messages]]></category>
		<category><![CDATA[News]]></category>

		<guid isPermaLink="false">http://knutee.net/?p=21</guid>
		<description><![CDATA[Ok, very late update!
Got hired by IBM in Dublin and moved down to Ireland in August. New job, apartment hunting and socializing filled up my entire day and I kept skipping updates on this page.
Now things have calmed down and hopefully I will get more time to write on this page again!
]]></description>
			<content:encoded><![CDATA[<p>Ok, very late update!<br />
Got hired by IBM in Dublin and moved down to Ireland in August. New job, apartment hunting and socializing filled up my entire day and I kept skipping updates on this page.<br />
Now things have calmed down and hopefully I will get more time to write on this page again!</p>
]]></content:encoded>
			<wfw:commentRss>http://knutee.net/?feed=rss2&amp;p=21</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Update</title>
		<link>http://knutee.net/?p=20</link>
		<comments>http://knutee.net/?p=20#comments</comments>
		<pubDate>Tue, 22 Jul 2008 13:54:54 +0000</pubDate>
		<dc:creator>knutee</dc:creator>
				<category><![CDATA[Messages]]></category>

		<guid isPermaLink="false">http://knutee.net/?p=20</guid>
		<description><![CDATA[Due to me moving to a new apartment, the updates on this site will be a bit slow in the coming days.
]]></description>
			<content:encoded><![CDATA[<p>Due to me moving to a new apartment, the updates on this site will be a bit slow in the coming days.</p>
]]></content:encoded>
			<wfw:commentRss>http://knutee.net/?feed=rss2&amp;p=20</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Code highlighter installed</title>
		<link>http://knutee.net/?p=18</link>
		<comments>http://knutee.net/?p=18#comments</comments>
		<pubDate>Wed, 16 Jul 2008 18:53:11 +0000</pubDate>
		<dc:creator>knutee</dc:creator>
				<category><![CDATA[Messages]]></category>

		<guid isPermaLink="false">http://knutee.net/?p=18</guid>
		<description><![CDATA[Just installed Dean’s Code Highlighter v1.2 on the site, so I can post code in a more readable way. It&#8217;s currently not coloring the code as it&#8217;s supposed to, something I&#8217;ll try to sort out as soon as possible. Let me know if you have any problems getting the code boxes to show correctly.
Example



&#60;?php


function example&#40;&#41; [...]]]></description>
			<content:encoded><![CDATA[<p>Just installed <a href="http://www.deanlee.cn/wordpress/code_highlighter_plugin_for_wordpress" target="_blank">Dean’s Code Highlighter v1.2</a> on the site, so I can post code in a more readable way. It&#8217;s currently not coloring the code as it&#8217;s supposed to, something I&#8217;ll try to sort out as soon as possible. Let me know if you have any problems getting the code boxes to show correctly.</p>
<p><strong>Example</strong></p>
<div class="dean_ch" style="white-space: wrap;">
<ol>
<li class="li1">
<div class="de1"><span class="kw2">&lt;?php</span></div>
</li>
<li class="li1">
<div class="de1"><span class="kw2">function</span> example<span class="br0">&#40;</span><span class="br0">&#41;</span> <span class="br0">&#123;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; <a href="http://www.php.net/echo"><span class="kw3">echo</span></a> <span class="st0">&quot;This is an example!&quot;</span>;</div>
</li>
<li class="li1">
<div class="de1"><span class="kw2">?&gt;</span></div>
</li>
</ol>
</div>
]]></content:encoded>
			<wfw:commentRss>http://knutee.net/?feed=rss2&amp;p=18</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Generating passwords with PHP</title>
		<link>http://knutee.net/?p=15</link>
		<comments>http://knutee.net/?p=15#comments</comments>
		<pubDate>Tue, 15 Jul 2008 15:28:10 +0000</pubDate>
		<dc:creator>knutee</dc:creator>
				<category><![CDATA[Development]]></category>

		<guid isPermaLink="false">http://knutee.net/?p=15</guid>
		<description><![CDATA[Last night I got the urge to make a strong password generator for this site. Don&#8217;t really know why, just inspiration I guess. However, it was getting quite late and I fell asleep after 3 lines of code. Luckily, the inspiration stayed with me, and today I got the grunt work done on the code.
I [...]]]></description>
			<content:encoded><![CDATA[<p>Last night I got the urge to make a strong password generator for this site. Don&#8217;t really know why, just inspiration I guess. However, it was getting quite late and I fell asleep after 3 lines of code. Luckily, the inspiration stayed with me, and today I got the grunt work done on the code.</p>
<p><span id="more-15"></span>I wanted the application to follow a set of generating rules, but at the same time give the user the option to choose both length and strength. This meant that the program would require:</p>
<ul>
<li>All alphanumeric characters</li>
<li>A set of special characters</li>
<li>A scale of strength, defining which characters to use</li>
<li>Repeated generation until length of password is met</li>
<li>Random choice of characters to use</li>
</ul>
<p>This part is easy and straight forward, but it does contain the possibility that only a single character will be used, or that it returns a password purely based on special characters. To make the password stronger i had to make sure that the program used all of it&#8217;s options; not too much, not too little. I chose to solve this by using a selection array and define how many % of the password would be lowercase, uppercase, numbers and special characters.</p>
<p>The code is far from finished at this stage. It does allow me to pass a length and strength argument to the function,  and based on that it does generate a password according to the rules I&#8217;ve set.</p>
<p>However, everything is currently hard coded and not very user friendly. I&#8217;ll keep working at it and have the tool up on this site soon. The source code will of course also be available, and a walk through will be posted in the projects section.<br />
<strong>Update</strong><br />
Code and project page is finished. You can read  about it <a href="http://knutee.net/?page_id=19" target="_blank">here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://knutee.net/?feed=rss2&amp;p=15</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>World wide DNS flaw</title>
		<link>http://knutee.net/?p=14</link>
		<comments>http://knutee.net/?p=14#comments</comments>
		<pubDate>Mon, 14 Jul 2008 12:32:01 +0000</pubDate>
		<dc:creator>knutee</dc:creator>
				<category><![CDATA[News]]></category>
		<category><![CDATA[Security]]></category>

		<guid isPermaLink="false">http://knutee.net/?p=14</guid>
		<description><![CDATA[Tuesday a major patch was released to fix a flaw in DNS that potentially could give hackers total control of the internet. The vulnerability was found 6 months ago by Dan Kaminsky of IOActive.

For those that don&#8217;t know; DNS is was converts your typed in URL to a IP address on the internet. It&#8217;s structured [...]]]></description>
			<content:encoded><![CDATA[<p>Tuesday a major patch was released to fix a flaw in DNS that potentially could give hackers total control of the internet. The vulnerability was found 6 months ago by Dan Kaminsky of IOActive.</p>
<p><span id="more-14"></span></p>
<p>For those that don&#8217;t know; DNS is was converts your typed in URL to a IP address on the internet. It&#8217;s structured in a hierarchy, starting with the root domain. When you type in <a href="http://knutee.net" target="_blank">knutee.net</a> in your address bar, a query is sent to your DNS server, which in turn asks it&#8217;s parent DNS server and so on, untill it reaches a server that knows about my site and it&#8217;s IP. This IP is then returned back to your computer and you connect to it. The problem with this technique, as I wrote about in my DNSSEC paper, is that this data can be corrupted. One way is to intercept the query and send a fake answer back to the host, directing your browser to a different server. The other way (there are more, but keeping it simple here) is to &#8220;infect&#8221; the real DNS server with the wrong data, which will spread this fake address to other hosts.</p>
<p>The vulnerability in question was a DNS cache poisoning attack. You can read more about these type of attacks <a href="http://en.wikipedia.org/wiki/DNS_cache_poisoning" target="_blank">here</a>.</p>
<p><a href="http://au.news.yahoo.com/a/-/mp/4775618/internet-flaw-let-hackers-web" target="_blank">Read the full story</a></p>
<p>Due to Dan not presenting the details of the attack, large parts of the security community attacked him, claiming that his findings where most likely old and that he just used it to hype his own status. After some pressure, he finally gave up the information to Thomas Ptacek and Dino Dai Zovi. Turns out he had the goods, and the appologies started to appear. For the rest of us, we&#8217;ll have to wait a bit longer untill the details are released.</p>
<p><strong>Note</strong></p>
<p>Yes, I&#8217;m aware I&#8217;m quite late with this &#8220;news&#8221;, but I&#8217;m in the process of moving so updates are slow.</p>
]]></content:encoded>
			<wfw:commentRss>http://knutee.net/?feed=rss2&amp;p=14</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Updates and history of CCC</title>
		<link>http://knutee.net/?p=13</link>
		<comments>http://knutee.net/?p=13#comments</comments>
		<pubDate>Wed, 09 Jul 2008 06:10:37 +0000</pubDate>
		<dc:creator>knutee</dc:creator>
				<category><![CDATA[Messages]]></category>
		<category><![CDATA[News]]></category>

		<guid isPermaLink="false">http://knutee.net/?p=13</guid>
		<description><![CDATA[Finally finished some of the guides and project pages I&#8217;ve been writing on! Be sure to check them out.
Also, I would like to mention something Bre Pettis is working on these days; The history of the Chaos Computer Club. Check out part 1 and part 2 on his blog. I wont repeat the general presentation [...]]]></description>
			<content:encoded><![CDATA[<p>Finally finished some of the guides and project pages I&#8217;ve been writing on! Be sure to check them out.</p>
<p>Also, I would like to mention something Bre Pettis is working on these days; The history of the Chaos Computer Club. Check out <a href="http://www.nycresistor.com/2008/06/28/the-chaos-computer-club-1981-1984/" target="_blank">part 1</a> and <a href="http://www.nycresistor.com/2008/07/04/cats-dataloos-and-a-btx-bank-robbery/" target="_blank">part 2</a> on his blog. I wont repeat the general presentation of the CCC here, but could not resist quoting this gem:</p>
<blockquote><p>It became a crime to connect anything besides a telephone to the telephone network. If caught, you could go to prison for 5 years for hooking up a modem without an official seal. It was felt that having a computer answer a phone was illegal. The CCC confronted this by asking, “Would it be ok to have a cat answer the phone?” When they got a confused, but positive answer, they built a contraption made of Lego and a Fischer-Technique model sets that would lift the phone and place it on an acoustic coupler. They called it “The Cat.”</p></blockquote>
<p><strong>Update</strong></p>
<p><a href="http://www.nycresistor.com/2008/07/12/paradise-lost-and-a-time-of-flux-ccc-in-the-late-80s/" target="_blank">Part 3</a></p>
]]></content:encoded>
			<wfw:commentRss>http://knutee.net/?feed=rss2&amp;p=13</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Single Packet Authorization</title>
		<link>http://knutee.net/?p=11</link>
		<comments>http://knutee.net/?p=11#comments</comments>
		<pubDate>Sun, 06 Jul 2008 08:50:45 +0000</pubDate>
		<dc:creator>knutee</dc:creator>
				<category><![CDATA[Security]]></category>

		<guid isPermaLink="false">http://knutee.net/?p=11</guid>
		<description><![CDATA[A quite common finding in firewall/gateway logs is brute-force SSH attacks. As a result, many choose to implement security systems that blacklists the source of the attack for a certain amount of time. This method however, has two considerable weakneses.
 If a legitimate user fails logging in due to forgotten password or typing errors, the [...]]]></description>
			<content:encoded><![CDATA[<p>A quite common finding in firewall/gateway logs is brute-force SSH attacks. As a result, many choose to implement security systems that blacklists the source of the attack for a certain amount of time. This method however, has two considerable weakneses.<br />
<span id="more-11"></span> If a legitimate user fails logging in due to forgotten password or typing errors, the user gets blocked out of the system, usually for 5-10 minutes. This does not go down well with most users. The other problem is that it does not prevent attackers from abusing vunerabilities that appear in network services.</p>
<p>This is where single packet authorization and port knocking comes in to play. By having the service port closed by default, and only open up to a user after a specific &#8220;knock on the door&#8221; is performed, the attacker will not be able to reach the service or even see that it&#8217;s there. So, whats the difference?</p>
<p>To explain the difference between SPA and port knocking, I will use knocking on a door as a metaphor. Port knocking involves knocking on the door in a specific pattern. Lets say you walk up to a door and knock it rapidly 3 times, wait one second, then 2 more knocks. By doing this, you have told the person on the other side of the door that you know the secret knock needed to gain access. This method however, presents us with two apparent weaknesses. If the time between each knock is too fast, the person on the other side might not be able to distiguish between individual knocks. This means that the speed of knocking has to be lowered, and authorization gets slowed down. The other obvious problem is that a third person might be hiding in the bushes, listening to the knocking pattern you perform. That person could then come back later and repeat the knocking pattern you performed, thus gaining access. This is called a replay attack.</p>
<p>Now lets use the same metaphor to explain SPA. Lets say you walk up to the door and only knock it once. However, this knock is unique due to the shape and speed of your hand, as well as the particular part of you hand hitting the door. To make it even more unique, you add a random element that is only allowed occur once. This knock would be very hard for a third person to replicate, and due to the random element we added. the knock will be dismissed if it&#8217;s exactly the same as the previous knock. This is the idea behind SPA.</p>
<p>SPA uses a single packet (hence the name) that can be delivered as fast as your network route allows. To make the packet complex enough, the application payload portion is used. Random data and it&#8217;s hash value is added to prevent replay, and the packet is encrypted with a key. There are of course more complex details, but for a general explanation I think this simplified version is enough.</p>
<p>So now, when the attacker scans your ports, the service port your protecting will appear as closed. The authorization data is encrypted to prevent someone from sniffing your packets to gain access. Authorization given is related to your address, but due to NAT and the potential danger of an attacker sitting on the same sub-net as the legitimate user and replicating the knock, the random element and hash is added. If the same random data appears in a subsequent knock, the connection is denied. Thus, your network service is now only accesible by those that know the secret knock on the door!</p>
<p>I hope this short presentation has given you a better understanding of SPA and port knocking. A guide to installing SPA on your system is now up in the guides section. Questions, comments and corrections are very welcome.</p>
]]></content:encoded>
			<wfw:commentRss>http://knutee.net/?feed=rss2&amp;p=11</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PI license to repair PC&#8217;s in Texas</title>
		<link>http://knutee.net/?p=10</link>
		<comments>http://knutee.net/?p=10#comments</comments>
		<pubDate>Sat, 05 Jul 2008 23:57:09 +0000</pubDate>
		<dc:creator>knutee</dc:creator>
				<category><![CDATA[News]]></category>

		<guid isPermaLink="false">http://knutee.net/?p=10</guid>
		<description><![CDATA[I came across this beauty while surfing the internet;
The Texas legislature has decided that computer repair folks need a government-issued PI (Private Investigator) license when performing what the state calls &#8220;an investigation.&#8221; If a computer repair person is analyzing data on a customer&#8217;s computer, this would fall under &#8220;an investigation&#8221;, and without a PI license [...]]]></description>
			<content:encoded><![CDATA[<p>I came across this beauty while surfing the internet;</p>
<blockquote><p>The Texas legislature has decided that computer repair folks need a government-issued PI (Private Investigator) license when performing what the state calls &#8220;an investigation.&#8221; If a computer repair person is analyzing data on a customer&#8217;s computer, this would fall under &#8220;an investigation&#8221;, and without a PI license he or she could face up to one year in jail and a $4,000 fine. Additionally, any customer knowingly enlisting an unlicensed repair person&#8217;s help is subject to the same fines. To get the license, one needs either a criminal justice degree or complete a three-year apprenticeship under a licensed PI.</p></blockquote>
<p>So, when Joe Average gets a spyware infection and acquires help from his local repair shop, the person performing the repair will need a criminal justice degree? I must admit I see what they are getting at, but there must be a better way to solve this privacy issue.</p>
<p><a href="http://www.ij.org/first_amendment/tx_computer_repair/6_26_08pr.html" target="_blank">Link here</a></p>
]]></content:encoded>
			<wfw:commentRss>http://knutee.net/?feed=rss2&amp;p=10</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>OSSEC on a single host</title>
		<link>http://knutee.net/?p=9</link>
		<comments>http://knutee.net/?p=9#comments</comments>
		<pubDate>Sat, 05 Jul 2008 10:04:03 +0000</pubDate>
		<dc:creator>knutee</dc:creator>
				<category><![CDATA[Security]]></category>
		<category><![CDATA[Solutions]]></category>

		<guid isPermaLink="false">http://knutee.net/?p=9</guid>
		<description><![CDATA[Today I wanted to set up a IDS solution for my Windows partition, just for fun really. I decided to go with OSSEC, which is a host-based IDS, but this still requires you to have a server running.
So to get this running on a single machine, the first thing I did was to set up [...]]]></description>
			<content:encoded><![CDATA[<p>Today I wanted to set up a IDS solution for my Windows partition, just for fun really. I decided to go with OSSEC, which is a host-based IDS, but this still requires you to have a server running.</p>
<p><span id="more-9"></span>So to get this running on a single machine, the first thing I did was to set up a tiny Xubuntu virtual machine. Now, you could of course use a even smaller Linux distro, but for testing purposes the Xubuntu was good enough for me. Getting both the server and client application is easy enough. Just head over to <a href="http://www.ossec.net" target="_blank">OSSEC</a> and download both. Unpack the server files on the virtual machine and run the <em>install.sh</em> script as root. You&#8217;ll be asked a series of questions that are well described and should not cause any difficulties. After you have installed the server you should edit <em>/var/ossec/etc/ossec.conf</em> and change the default <em>mail_from</em> value, as my SMTP server rejected the default one. You will need to <em>chmod +w</em> the file to edit it. Finally, run <em>/var/ossec/bin/ossec-control start</em> to get the server running.</p>
<p>Now, you need to add clients to the server list. This is done by invoking <em>/var/ossec/bin/manage_agents</em>. Select (A) to add a new client, and give it a name, ID and an ip address. When this is done, select (E) to extract the authentication key for the client you just added. This key will be needed during the installation of the Windows agent.</p>
<p>Installing the Windows client is even easier. Run the installer and click through the install options. When the install reaches the end you will be asked for a server IP and a authentication key. Type in the IP address for you virtual server and the key you generated earlier. Save and restart.</p>
<p>And thats it! Now you have an IDS running on your machine. Local log files can be found in the installation directory of the OSSEC agent and server logs in <em>/var/ossec/logs</em>. All security events will be mailed to the e-mail address you chose during installation, but consider changing the alert level to avoid spam.</p>
<p>This is of course also possible on a Linux host!</p>
<p><strong>Future work</strong></p>
<p>I&#8217;m trying to find a lightweight OS and virtualization solution that starts up with Windows as a service and restores the previous virtual session upon login. I&#8217;ll get back to this later!</p>
]]></content:encoded>
			<wfw:commentRss>http://knutee.net/?feed=rss2&amp;p=9</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
