<?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>SECTORIX</title>
	<atom:link href="http://www.sectorix.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.sectorix.com</link>
	<description>Confessions of a Dangerous Mind</description>
	<lastBuildDate>Sun, 03 Mar 2013 06:04:54 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
		<item>
		<title>The thing with 0-day Java Vulnerabilities is&#8230;</title>
		<link>http://www.sectorix.com/2013/03/03/the-thing-with-0-day-java-vulnerabilities-is/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=the-thing-with-0-day-java-vulnerabilities-is</link>
		<comments>http://www.sectorix.com/2013/03/03/the-thing-with-0-day-java-vulnerabilities-is/#comments</comments>
		<pubDate>Sun, 03 Mar 2013 05:55:55 +0000</pubDate>
		<dc:creator>Barry Shteiman</dc:creator>
				<category><![CDATA[Security]]></category>
		<category><![CDATA[hacking]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[research]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[vulnerability]]></category>

		<guid isPermaLink="false">http://www.sectorix.com/?p=253</guid>
		<description><![CDATA[A few days ago, KrebsOnSecurity published a very well written article discussing a new 0-day Java vulnerability, and its effect on the Bit9 Hack. now lets be honest &#8211; Java Vulnerabilities are the hottest thing in security news right now.. if a week goes by without a new 0-day, someone is slipping or sleeping. I [...]]]></description>
				<content:encoded><![CDATA[<p>A few days ago, <a href="http://krebsonsecurity.com/2013/03/new-java-0-day-attack-echoes-bit9-breach/">KrebsOnSecurity</a> published a very well written article discussing a new 0-day Java vulnerability, and its effect on the <a href="http://www.theregister.co.uk/2013/02/11/bit9_hack/">Bit9 Hack</a>. now lets be honest &#8211; Java Vulnerabilities are the hottest thing in security news right now.. if a week goes by without a new 0-day, someone is slipping or sleeping.</p>
<p>I would like to look at this from a different angle for a second, the threat landscape angle and the trending.</p>
<p>It is very interesting to see the changes in Hackers approach from reversing protocols and platforms for vulnerabilities that are usually platform dependent, and relying more and more on overarching architectures such as Java and Flash etc, which are platform agnostic.</p>
<p>This creates an interesting threat landscape that has the multiplatform effect. It is very common to mistake reports that say that Microsoft platforms or others are now less vulnerable than in the past. I believe that its just a matter of Hackers changing focus.</p>
<p>Taking a deep look into industrialized hacking, it fits the model well, by hunting for the latest and greatest vulnerabilities and perhaps buying them from a vulnerability broker that deals with 0-days, Hacker groups are able to leverage indirect campaigns and hit large numbers of infections or data theft. just look at the latest <a href="http://arstechnica.com/security/2013/02/microsoft-joins-apple-facebook-and-twitter-comes-out-as-hack-victim/">Attack</a> that hit Facebook, Twitter, Apple, Microsoft and others. it was defiantly not a directed attack but an attempt to hit numbers. interesting enough it used a Java 0-day as vector of infection. this hit many organizations with different platforms and methods of securing themselves.</p>
<p>Java is the thing that everyone now blame, but yesterday it was the Microsoft platforms, and tomorrow it will be something else. its not about what&#8217;s more secure, its about what Hackers focus on.. at the end of the day, we should always look at the shortest funnels to cash, just like Hackers do. until then&#8230; keep your cup of coffee clean.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sectorix.com/2013/03/03/the-thing-with-0-day-java-vulnerabilities-is/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Tomcat Enumerator (for MSF)</title>
		<link>http://www.sectorix.com/2012/09/29/tomcat-enumerator-for-msf/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=tomcat-enumerator-for-msf</link>
		<comments>http://www.sectorix.com/2012/09/29/tomcat-enumerator-for-msf/#comments</comments>
		<pubDate>Sat, 29 Sep 2012 21:42:17 +0000</pubDate>
		<dc:creator>Barry Shteiman</dc:creator>
				<category><![CDATA[Security]]></category>
		<category><![CDATA[metasploit]]></category>
		<category><![CDATA[open source]]></category>

		<guid isPermaLink="false">http://www.sectorix.com/?p=235</guid>
		<description><![CDATA[The Tomcat Enumerator for Metasploit Framework Gave myself a speed-coding challenge. have to introduce fun into coding or I will never do it. so i wanted to create something for the community that will allow fast enumeration of a Tomcat application server via the Metasploit Framework. I set myself for 2 hours this time , [...]]]></description>
				<content:encoded><![CDATA[<h3>The Tomcat Enumerator for Metasploit Framework</h3>
<p>Gave myself a speed-coding challenge. have to introduce fun into coding or I will never do it. so i wanted to create something for the community that will allow fast enumeration of a Tomcat application server via the Metasploit Framework. I set myself for 2 hours this time , since it required building an environment, testing several installations and wiping bugs myself ( I should teach my wife some Ruby ! ), challenge complete.</p>
<h3>enum_tomcat, What does it do ?</h3>
<p>enum_tomcat is a post exploitation module (in the MSF repository as post/windows/gather/enum_tomcat) that operates as an enumerator over a <a title="meterpreter" href="http://www.offensive-security.com/metasploit-unleashed/Metasploit_Meterpreter_Basics">meterpreter</a> session on Windows, and evaluates the server for existing Tomcat server installations, and then enumerates the ports, users and main application (ROOT). services will be reported to the service repository, and everything else to the loot repository.</p>
<p><a href="http://www.sectorix.com/wp-content/uploads/2012/09/enum_tomcat_screenshot1.png"><img class="alignnone size-medium wp-image-239" title="enum_tomcat_screenshot" src="http://www.sectorix.com/wp-content/uploads/2012/09/enum_tomcat_screenshot1-300x160.png" alt="" width="300" height="160" /></a></p>
<h3>How can you get a copy ?</h3>
<p>As a Metasploit pen tester, you should have access to update the repository every now and then, and therefor a simple <em>msfupdate</em> should do the trick. In order to use the module, you need to first obtain a meterpreter session (I am not going to dive into that, that is part of the pen testing scope of work and knowledge), you then need to issue the following command : <em>run post/windows/gather/enum_tomcat.</em></p>
<p>As always, This is an Open Source contribution to the project, and therefor is available to everyone who wishes to use it.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sectorix.com/2012/09/29/tomcat-enumerator-for-msf/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Database Enumeration Module (for MSF)</title>
		<link>http://www.sectorix.com/2012/09/25/database-enumeration-module-for-msf/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=database-enumeration-module-for-msf</link>
		<comments>http://www.sectorix.com/2012/09/25/database-enumeration-module-for-msf/#comments</comments>
		<pubDate>Tue, 25 Sep 2012 11:26:31 +0000</pubDate>
		<dc:creator>Barry Shteiman</dc:creator>
				<category><![CDATA[Security]]></category>
		<category><![CDATA[metasploit]]></category>
		<category><![CDATA[open source]]></category>

		<guid isPermaLink="false">http://www.sectorix.com/?p=213</guid>
		<description><![CDATA[Introducing enum_db for Metasploit Framework Alright, so over the weekend I had time to convert some of my old scripts into ruby, because you have to keep your mind sharp in some way or another &#8230; when it occurred to me that I haven&#8217;t contributed to any open source project in a long long looooooooong time. so with the [...]]]></description>
				<content:encoded><![CDATA[<h3>Introducing enum_db for Metasploit Framework</h3>
<p>Alright, so over the weekend I had time to convert some of my old scripts into ruby, because you have to keep your mind sharp in some way or another &#8230; when it occurred to me that I haven&#8217;t contributed to any open source project in a long long looooooooong time. so with the help of some VMs and a few spare hours, I converted a script that I wrote back in the days which I used to use quite a lot for pen testing purposes in different projects. I have committed it into the <a title="Metasploit Framework" href="http://www.metasploit.com/">Metasploit Framework</a> repository and it is now publicly available for the community usage.</p>
<h3>enum_db, What does it do ?</h3>
<p>enum_db is a post exploitation module (in the MSF repository as post/windows/gather/enum_db) that operates as an enumerator over a <a title="meterpreter" href="http://www.offensive-security.com/metasploit-unleashed/Metasploit_Meterpreter_Basics">meterpreter</a> session on Windows, and evaluates which Database flavors are installed on the host, and which Instances and Ports are available on them.</p>
<p>It supports Mssql, Mysql , Oracle, Sybase, DB2. and uses the vendor specific methods of identifying database installations, instances and connection ports.</p>
<p>There are 3 outputs are available once databases are enumerated as expected &#8211; on screen results, loot of the enumeration process and a service report that adds the discovered services to the MSF service table.</p>
<p><a href="http://www.sectorix.com/wp-content/uploads/2012/09/enum_db_screenshot.png"><img class="alignnone size-medium wp-image-227" title="enum_db Screenshot" src="http://www.sectorix.com/wp-content/uploads/2012/09/enum_db_screenshot-300x141.png" alt="" width="300" height="141" /></a></p>
<h3>How do I get it and run it ?</h3>
<p>As a Metasploit pen tester, you should have access to update the repository every now and then, and therefor a simple <em>msfupdate</em> should do the trick.</p>
<p>In order to use the module, you need to first obtain a meterpreter session (I am not going to dive into that, that is part of the pen testing scope of work and knowledge), you then need to issue the following command : <em>run post/windows/gather/enum_db.</em></p>
<h3>Final Words</h3>
<p>This is of course an Open Source contribution to the project, and therefor is available to everyone who wishes to use it. use for good not for evil.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sectorix.com/2012/09/25/database-enumeration-module-for-msf/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>AppDoS Defined</title>
		<link>http://www.sectorix.com/2012/08/06/appdos-article-published/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=appdos-article-published</link>
		<comments>http://www.sectorix.com/2012/08/06/appdos-article-published/#comments</comments>
		<pubDate>Mon, 06 Aug 2012 10:01:11 +0000</pubDate>
		<dc:creator>Barry Shteiman</dc:creator>
				<category><![CDATA[Security]]></category>
		<category><![CDATA[appdos]]></category>
		<category><![CDATA[dados]]></category>

		<guid isPermaLink="false">http://www.sectorix.com/?p=205</guid>
		<description><![CDATA[This morning, an outline article defining AppDoS that I wrote, was published on Imperva&#8217;s Blog, have a read would you ? Link here. The article explores the differences between classic Denial of Service, and Application Oriented Denial of Service in a simplified manner.]]></description>
				<content:encoded><![CDATA[<p>This morning, an outline article defining AppDoS that I wrote, was published on Imperva&#8217;s Blog,</p>
<p>have a read would you ? <a title="Link Here" href="http://blog.imperva.com/2012/08/appliction-ddos-a-primer-.html">Link here</a>.</p>
<p>The article explores the differences between classic Denial of Service, and Application Oriented Denial of Service in a simplified manner.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sectorix.com/2012/08/06/appdos-article-published/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>LinkedIn&#8217;s No-CSO and my Personal Data.</title>
		<link>http://www.sectorix.com/2012/06/20/linkedins-no-cso-and-my-personal-data/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=linkedins-no-cso-and-my-personal-data</link>
		<comments>http://www.sectorix.com/2012/06/20/linkedins-no-cso-and-my-personal-data/#comments</comments>
		<pubDate>Wed, 20 Jun 2012 19:42:54 +0000</pubDate>
		<dc:creator>Barry Shteiman</dc:creator>
				<category><![CDATA[Security]]></category>
		<category><![CDATA[strategy]]></category>

		<guid isPermaLink="false">http://www.sectorix.com/?p=186</guid>
		<description><![CDATA[The one thing that kept me thinking on a flight the other day was the latest new about LinkedIn&#8217;s 6.5 million password breach, and the followup lawsuit against it for violating its own privacy user agreement ensuring the security of one&#8217;s identity. and not specifically the story itself, but some of the aftermath that came [...]]]></description>
				<content:encoded><![CDATA[<p>The one thing that kept me thinking on a flight the other day was the latest new about LinkedIn&#8217;s <a title="6.5 million passwords breach" href="http://www.pcmag.com/article2/0,2817,2405413,00.asp">6.5 million password breach</a>, and the <a title="followup lawsuit" href="http://www.pcmag.com/article2/0,2817,2406069,00.asp">followup lawsuit</a> against it for violating its own privacy user agreement ensuring the security of one&#8217;s identity. and not specifically the story itself, but some of the aftermath that came out of LinkedIn afterwards.</p>
<p>LinkedIn have admitted to have no individual holding a CSO/CISO title and managing security for what is currently the biggest online social network for work relationships and job hunting. This was quite a shock to me, since I really thought that any organization of such size ( in terms of consumers and customers ) will have someone officially taking care of the security role.</p>
<p>This creates an interesting gap, since LinkedIn is not regulated ( no current regulation for social networking, and perhaps something should be there to protect personal information ) but it means that when a hack like this happens, who do you blame ? who takes the fall ? or in other words &#8230; if data i hold as an employer is breached, who is responsible ?</p>
<p>Now, i&#8217;m pretty sure that due to the publication of that fact, LinkedIn will resolve this soon enough, or at least they should. but it does make you think &#8211; where else did I put personal data online , and how is it protected if at all. are techies in charge of making my data safe ? or is there someone that actually holds that responsibility.</p>
<p>I encourage each and every one of you, who wish to put their data online, to make sure or at least check if those sites/companies are properly secured&#8230; hell&#8230; check in LinkedIn if they have a CSO <img src='http://www.sectorix.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.sectorix.com/2012/06/20/linkedins-no-cso-and-my-personal-data/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Virtual Gold and Bot Threats</title>
		<link>http://www.sectorix.com/2012/06/12/virtual-gold-and-bot-threats/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=virtual-gold-and-bot-threats</link>
		<comments>http://www.sectorix.com/2012/06/12/virtual-gold-and-bot-threats/#comments</comments>
		<pubDate>Tue, 12 Jun 2012 08:00:47 +0000</pubDate>
		<dc:creator>Barry Shteiman</dc:creator>
				<category><![CDATA[Security]]></category>
		<category><![CDATA[bot]]></category>
		<category><![CDATA[botnet]]></category>
		<category><![CDATA[gaming]]></category>
		<category><![CDATA[hacking]]></category>
		<category><![CDATA[threat]]></category>

		<guid isPermaLink="false">http://www.sectorix.com/?p=181</guid>
		<description><![CDATA[For the past couple of weeks, i have been away visiting Family in a country far far away, with an excellent internet connection and boring midnight hours, when I decided to play some games to help myself go to sleep. now, since this was quite an interest for me, I started looking in different sources [...]]]></description>
				<content:encoded><![CDATA[<p>For the past couple of weeks, i have been away visiting Family in a country far far away, with an excellent internet connection and boring midnight hours, when I decided to play some games to help myself go to sleep. now, since this was quite an interest for me, I started looking in different sources for game stability, hacking and most important Bot crafting for this game and others, and so it began &#8230;</p>
<p>The game I chose to play is Diablo 3 ( I carry a flash drive with my favorites installed, everywhere ) and went into it. now &#8230; for those of you who dont know, games that involve getting items and collecting and improving characters online, usually also involve getting <span style="text-decoration: underline;">virtual gold</span>. so you can then buy, repair, improve etc&#8230; but thats just game mechanics.</p>
<h3>Virtual Gold becomes Real Money</h3>
<p>Many of today&#8217;s games today, either if its betting games, or online multiplayer games (and maybe your favorite facebook games), enable users to purchase virtual gold for real money. and there is usually an agreed exchange rate.</p>
<p>This means that Virtual Gold gets an actual Dollar value and users can trade and sell/buy.</p>
<h3>In come the Bots</h3>
<p>By now, we all heard of people in the far east that play constantly just to harvest virtual gold, and then selling it for real money to the western i-wanna-improve-immidiatly gamers. and this took quite a lot of time, for what I would call medium level gain.</p>
<p>Now, from old times, even when I was a kid, we used to be able to write Bots that would play the game for us, or bend it in a way that we make more of that virtual gold faster and faster and making the game easy for us. When I looked into whats going on with people bending my latest favorite game, I came to realize how far have this industry gone&#8230;</p>
<p>Advanced and slightly more skilled Bot makers today, use easy to script tools such as AutoIt, in order to create bots that will actually walk the game, play it out, collect items and sell them later on, maximizing on virtual gold harvesting. this means that you can set a machine to harvest for virtual gold for 24/7 and then sell it !</p>
<h3>Security Problems</h3>
<p>Well, there are several security problems here. lets outline them</p>
<ol>
<li>External Scripting is not manipulating the Game</li>
<li>Bot Nets</li>
</ol>
<h3>External Scripting is not manipulating the Game, Evades detection</h3>
<p>Lets start with #1. in the old days, when Bots where written, they used to manipulate the in-game memory in order to change or reveal values. this meant that it was fairly easy for the game makers to create software to detect manipulation ( i believe that <a title="Blizzard" href="http://www.blizzard.com" target="_blank">Blizzard</a>, the maker of Diablo 3 &#8211; currently has the best manipulation detection software &#8211; warden, developed in-house ).</p>
<p>The way that AutoIt works, is just sending commands that can be based on nothing but pixel detection etc, and sending commands back to the game as if it is a set of keyboard and mouse. for example : Move mouse to (x,y) , Click mouse , Press &#8220;1&#8243;, wait for (500) ms.</p>
<h3>Mitigating Bots</h3>
<p>The problem this introduces is the potential inability for standard gaming software to detect such scripts by automation tools from running. and making those bots more common, and by that not just breaking the game for everyone ( unfair advantage ), but actually scamming the game for profit, which I believe is, or should be considered a crime.</p>
<p>This can be mitigated fairly easy. but then creates a problem to the gaming vendors, and the reason for it is that they then cross the line between a gaming product and a moderated security product that enforces rules, like a host IPS or AV, that can then say &#8220;if you run this tool in the background, the game wont start&#8221;.</p>
<p>I actually would encourage that approach for any game that involves Real Money interaction. it becomes quite popular to introduce Fraud Prevention to online systems such as Bank Accounting systems, and Online Brokering. I see no reason why Gaming should be any different, either if its Browser/Thin-Client based, or if its a desktop installed advanced game.</p>
<h3>Bot Nets</h3>
<p>There is a joke that mildly translates from Hebrew which says &#8220;the open-window, calls the thief&#8221; which i believe has a solid case here. Since if a platform introduces money exchange, hackers and organized hackers will find their way to exploit the system to gain profit. and are most likely to hurt both the game vendor and the players that pay to play and pay to improve their gear ( some games have millions of users that are considered addicts that will spend quite a lot of money to advance in a game ).</p>
<p>While Bots such as I mentioned are fairly simple, imagine the following scenario : <span style="text-decoration: underline;">Bot Net</span>.</p>
<p>Imagine a shoe making factory, with many low paid workers making shoes for the man, which sells for profit&#8230; now imagine the Security world where an organized hacking organization can build a farm of computers, all running the game with a bot on it, farming for virtual gold on the games, and sending to a main computer that then sells it.</p>
<p>Imagine even worst&#8230; a Virus Bot that infests your own computer, and is then controlled by a C&amp;C Bot Net that does just the same, leveraging your own computer , and your own account for profit.</p>
<h3>Traditional Bot Net vs the Gaming Bot Net Potential</h3>
<p>Many think that Bot Nets are meant for espionage, stealing credentials, looking into emails and maybe stealing credit card information. But what is the difference ? there is none!</p>
<p>Think of the goal : I want to make money off a bot-net. Which to me means, that the fact that you are farming via a game that allows it, or stealing credit card/transacting money is the same.</p>
<p>At the end, Awareness will be key here. Gaming vendors, HIPS/AV and Fraud Prevention vendors should look into it, making sure that they create content in time when these rise.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sectorix.com/2012/06/12/virtual-gold-and-bot-threats/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Some Hulk Afterthoughts</title>
		<link>http://www.sectorix.com/2012/05/20/some-hulk-afterthoughts/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=some-hulk-afterthoughts</link>
		<comments>http://www.sectorix.com/2012/05/20/some-hulk-afterthoughts/#comments</comments>
		<pubDate>Sun, 20 May 2012 13:30:54 +0000</pubDate>
		<dc:creator>Barry Shteiman</dc:creator>
				<category><![CDATA[Security]]></category>
		<category><![CDATA[hulk]]></category>
		<category><![CDATA[thoughts]]></category>

		<guid isPermaLink="false">http://www.sectorix.com/?p=177</guid>
		<description><![CDATA[It was great to see how much attention the Hulk tool got over a short period of time, and even considered a malware by some folks who didnt read the fine print of &#8220;educational experiment&#8221; labeling. got tons of questions and improvement suggestions while some missed the main idea behind this.. its not meant to avoid a [...]]]></description>
				<content:encoded><![CDATA[<p>It was great to see how much attention the <a title="HULK, Web Server DoS Tool" href="http://www.sectorix.com/2012/05/17/hulk-web-server-dos-tool/">Hulk</a> tool got over a short period of time, and even considered a malware by some folks who didnt read the fine print of &#8220;educational experiment&#8221; labeling. got tons of questions and improvement suggestions while some missed the main idea behind this.. its not meant to avoid a security control, but to bypass the caching engines to hit directly on the server.</p>
<p>The thing that got me most interested was the growing interest from the Hacktivist community in such tools ( TONS and TONS of emails&#8230; ) , but also the fact that some researchers went to analyze for mitigation in case of someone abusing the tool for malicious usage. needless to say, I used a very easy to fingerprint ( for application aware security products ) library called <em>urllib2</em> as this was designed for a lab experiment and not to break the laws of physics.</p>
<p>One individual has sent me a nice test that he&#8217;s done with the tool, using a virtualized grid, running the tool from 300 hosts in a rate-limited LAN ( to demonstrate bandwidth constraints of a wan link ) at a server cluster running apache, with an apache caching server in front and got the same results as I did.</p>
<p>I believe that the goal was achieved, an individual or a company that wishes to see how their application copes with application denial of service, can have a tool to run the check, while is also able to prevent anyone else from using it. I do believe that the only way to prepare and mitigate a threat, is knowing it exists, hope this helped.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sectorix.com/2012/05/20/some-hulk-afterthoughts/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>HULK, Web Server DoS Tool</title>
		<link>http://www.sectorix.com/2012/05/17/hulk-web-server-dos-tool/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=hulk-web-server-dos-tool</link>
		<comments>http://www.sectorix.com/2012/05/17/hulk-web-server-dos-tool/#comments</comments>
		<pubDate>Thu, 17 May 2012 12:00:42 +0000</pubDate>
		<dc:creator>Barry Shteiman</dc:creator>
				<category><![CDATA[Security]]></category>
		<category><![CDATA[dos]]></category>
		<category><![CDATA[education]]></category>
		<category><![CDATA[hacking]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[tool]]></category>
		<category><![CDATA[web]]></category>

		<guid isPermaLink="false">http://www.sectorix.com/?p=46</guid>
		<description><![CDATA[Introducing HULK (Http Unbearable Load King). In my line of work, I get to see tons of different nifty hacking tools, and traffic generation tools that are meant to either break and steal information off a system, or exhaust its resource pool, rendering the service dead and putting the system under a denial of service. [...]]]></description>
				<content:encoded><![CDATA[<h3>Introducing <strong>HULK</strong> (Http Unbearable Load King).<a href="http://www.sectorix.com/wp-content/uploads/2012/05/1-twitter-dos-data.jpg"><img style="background-image: none; margin-top: 20px; margin-right: 0px; margin-bottom: 0px; margin-left: 20px; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px; border-style: initial; border-color: initial; border-image: initial; border-width: 0px;" title="1-twitter-dos-data" src="http://www.sectorix.com/wp-content/uploads/2012/05/1-twitter-dos-data_thumb.jpg" alt="1-twitter-dos-data" width="192" height="169" align="right" border="0" /></a></h3>
<p>In my line of work, I get to see tons of different nifty hacking tools, and traffic generation tools that are meant to either break and steal information off a system, or exhaust its resource pool, rendering the service dead and putting the system under a denial of service.</p>
<p>For a while now, I have been playing with some of the more exotic tools, finding that their main problem is always the same… they create repeatable patterns. too easy to predict the next request that is coming, and therefor mitigate. Some, although elegant, lack the horsepower to really put a system on its knees.</p>
<p>For research purposes, I decided to take some of the lessons I’ve learned over time and practice what I preach.</p>
<p>Enforcing Python’s engines, I wrote a script that generates some nicely crafted unique Http requests, one after the other, generating a fair load on a webserver, eventually exhausting it of resources. this can be optimized much much further, but as a proof of concept and generic guidance it does its job.</p>
<p>As a guideline, the main concept of HULK, is to generate Unique requests for each and every request generated, thus avoiding/bypassing caching engines and effecting directly on the server&#8217;s load itself.</p>
<p>I have published it to <a href="http://packetstormsecurity.org/">Packet Storm</a>, as we do.</p>
<h3>Some Techniques</h3>
<ul>
<li>Obfuscation of Source Client – this is done by using a list of known User Agents, and for every request that is constructed, the User Agent is a random value out of the known list</li>
<li>Reference Forgery – the <em>referer</em> that points at the request is obfuscated and points into either the host itself or some major prelisted websites.</li>
<li>Stickiness – using some standard Http command to try and ask the server to maintain open connections by using Keep-Alive with variable time window</li>
<li>no-cache – this is a given, but by asking the HTTP server for <em>no-cache</em> , a server that is not behind a dedicated caching service will present a unique page.</li>
<li>Unique Transformation of URL – to eliminate caching and other optimization tools, I crafted custom parameter names and values and they are randomized and attached to each request, rendering it to be Unique, causing the server to process the response on each event.</li>
</ul>
<h3>Results</h3>
<p>Basically my test web server with 4gb of Ram running Microsoft IIS7 was brought to its knees under less than a minute, running all requests from a single host.</p>
<p>In the pictures below you can see the tool in action, where it first ( #1 ) executed against a URL, and then the tool starts generating a load of unique requests and sending over the target server ( host of the URL ), and second ( #2 ) we can see that the server at some point starts failing to respond since it has exhausted its resource pool.</p>
<p><a href="http://www.sectorix.com/wp-content/uploads/2012/05/hulk1.png"><img class="alignnone size-medium wp-image-164" title="Hulk Execution" src="http://www.sectorix.com/wp-content/uploads/2012/05/hulk1-300x151.png" alt="" width="300" height="151" /></a> <a href="http://www.sectorix.com/wp-content/uploads/2012/05/hulk2.png"><img class="alignnone size-medium wp-image-163" title="Hulk Results" src="http://www.sectorix.com/wp-content/uploads/2012/05/hulk2-300x151.png" alt="" width="300" height="151" /></a></p>
<p>Note the &#8220;safe&#8221; word is meant to kill the process after all threads got a 500 error, since its easier to control in a lab, it is optional.</p>
<h3>Download</h3>
<p>File : <a title="hulk.py" href="http://packetstormsecurity.org/files/112856/HULK-Http-Unbearable-Load-King.html">hulk.py</a> ( via Packetstorm )</p>
<p>The tool is meant for educational purposes only, and should not be used for malicious activity of any kind.</p>
<p>&nbsp;</p>
<p>[ Edit 25nov2012 : changed download link to packetstorm ]</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sectorix.com/2012/05/17/hulk-web-server-dos-tool/feed/</wfw:commentRss>
		<slash:comments>27</slash:comments>
		</item>
		<item>
		<title>Finding the best Web DoS Attack Url</title>
		<link>http://www.sectorix.com/2012/05/11/finding-the-best-web-dos-attack-url/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=finding-the-best-web-dos-attack-url</link>
		<comments>http://www.sectorix.com/2012/05/11/finding-the-best-web-dos-attack-url/#comments</comments>
		<pubDate>Fri, 11 May 2012 21:26:54 +0000</pubDate>
		<dc:creator>Barry Shteiman</dc:creator>
				<category><![CDATA[Security]]></category>
		<category><![CDATA[research]]></category>
		<category><![CDATA[tool]]></category>

		<guid isPermaLink="false">http://www.sectorix.com/?p=134</guid>
		<description><![CDATA[Background To establish common ground, I would like to start by explaining some theory behind DoS attacks on the HTTP attack vector. An HTTP DoS attack is usually not based on a vulnerability or known flaw in a web server or a service, instead &#8211; its the attempt to bring a server down by using [...]]]></description>
				<content:encoded><![CDATA[<h3>Background</h3>
<p>To establish common ground, I would like to start by explaining some theory behind DoS attacks on the HTTP attack vector.</p>
<p>An HTTP DoS attack is usually not based on a vulnerability or known flaw in a web server or a service, instead &#8211; its the attempt to bring a server down by using all of its available resources and its service pool. That being said, the common HTTP DoS tools usually operate by generating massive amounts of requests to a specific set of URLs on a website in order to choke the resource pool and denying the service.</p>
<p>One very important element in the process, is locating the &#8220;Perfect URL&#8221;, which is the URL that causes the most load on the server when requested, requiring the server to process as much data as possible before presenting the output to the client. and because of that, the best vector is always to go for the website&#8217;s search engine, since that will always require some computation power.</p>
<h3>Thesis</h3>
<p>What i came to realize is that a simple engine can be written, to run a dictionary against a search engine, and by observing the amount of results presented back from the website for each keyword, one can determine using an automated tool &#8211; which is the best search term to create the most load on the server, and build the DoS URL based on that.</p>
<h3>Ready, Get Set,  Go!</h3>
<p>Lets break the idea into what we want to achieve. we want to run multiple requests to a web server on the search URL. Then, we want to run dictionary as the search term, and by parsing the response page for the place where the number of results is returned &#8211; to find the phrase that returns most results (max) and crown it as the &#8220;Perfect URL&#8221; for a DoS attack.</p>
<p>Using Python, I wrote such a tool that gets as input : search url, regex for finding the number of results and a dictionary file, and does what i wrote above, multithreaded of course ).</p>
<p>Usage looks something like :<br />
<pre class="brush: bash; gutter: false">python dos_recon.py http://www.site.com/search/?q= &amp;#039;results\s\:\s(\d+)&amp;#039; wordlist.txt</pre></p>
<p class="brush: bash; gutter: false">The tool then opens several threads, each asking for a word out of the dictionary, and adds it to the search string. It then looks for the Regular Expression in the result page and grabs the number of results. Finally, it shows as output, the best URL that produced the highest number of results so far.</p>
<p class="brush: bash; gutter: false">Looks something like this :</p>
<p><pre><pre class="brush: bash; gutter: false">python dos_recon.py http://www.site.com/search/?q= &amp;#039;results\s\:\s(\d+)&amp;#039; dictionary.txt
-- Loading Dictionary --
-- Loading Complete --
WORD:hug COUNT:471 URL:http://www.site.com/search/?q=hug
WORD:tree COUNT:13454 URL:http://www.site.com/search/?q=tree
WORD:woman COUNT:110565 URL:http://www.site.com/search/?q=woman
WORD:man COUNT:203721 URL:http://www.site.com/search/?q=man</pre></pre></p>
<p class="brush: bash; gutter: false">As you can see. the result indicated that the word &#8220;<em>man</em>&#8221; has produced the most search results ( <em>203721</em> ) , and therefore the best URL to run an HTTP DoS attack against this site will be <em>http://www.site.com/search/?q=man </em></p>
<p class="brush: bash; gutter: false">In a DoS attack scheme, this kind of tool will/should be used as part of the Reconnaissance phase, detecting a good attack URL ( or URLs ) and then running a DoS tool against it.</p>
<h3 class="brush: bash; gutter: false">Download</h3>
<p>I am sharing this as an educational tool, designed to only be used in lab environment and not in the wild, its is meant for research purposes only and any malicious usage of this tool is prohibited.</p>
<p>File : <a title="dos_recon.py" href="http://www.mediafire.com/file/fypqhb9e255na7g/dos_recon.zip" target="_blank">dos_recon.py</a> ( zip file )</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sectorix.com/2012/05/11/finding-the-best-web-dos-attack-url/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Looking into Refref.pl</title>
		<link>http://www.sectorix.com/2012/05/10/looking-into-refref-pl/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=looking-into-refref-pl</link>
		<comments>http://www.sectorix.com/2012/05/10/looking-into-refref-pl/#comments</comments>
		<pubDate>Thu, 10 May 2012 11:40:25 +0000</pubDate>
		<dc:creator>Barry Shteiman</dc:creator>
				<category><![CDATA[Security]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[hacking]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[refref]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[vulnerability]]></category>

		<guid isPermaLink="false">http://www.sectorix.com/?p=91</guid>
		<description><![CDATA[I had some time finally to play around with Refref ( originally written for Anonymous ), and i really liked it. for those of you who are unfamiliar with Refref, it is an application denial of service tool, which uses an interesting vector of attack making it very effective. to my knowledge it exists as [...]]]></description>
				<content:encoded><![CDATA[<p class="brush: perl; gutter: true">I had some time finally to play around with Refref ( originally written for Anonymous ), and i really liked it. for those of you who are unfamiliar with Refref, it is an application denial of service tool, which uses an interesting vector of attack making it very effective. to my knowledge it exists as either a perl script or a javascript flavor in the wild.</p>
<p class="brush: perl; gutter: true">the interesting thing about the javascript flavor is the ability to then run it off simple devices such as mobile smartphones or tablets, rendering it more effective for the ease of getting one hacktivist on board with using it without running perl or downloading software.</p>
<h3 class="brush: perl; gutter: true">Analysis</h3>
<p class="brush: perl; gutter: true">The way that Refref works, is by exploiting an <acronym title="SQL Injection">SQLi</acronym> in the front end web server, it injects an SQL command that effects an unprotected database server and exhausts if from its resources. as far as i know, it effects only mysql servers, however, they seem to be the majority of the backend db servers for many of todays websites, and least as the most upfront database tier.</p>
<p class="brush: perl; gutter: true">the SQL command in use is the benchmark() function in mysql, that basically evaluates input for a number of times. normally that command should not be allowed to be executed by the database user that the application server is using, but in many many cases it remains unhandled and is in fact a vulnerability.</p>
<p class="brush: perl; gutter: true">The payload code snippet out of refref.pl (source can be found <a title="here" href="https://github.com/mcandre/refref/blob/master/refref.pl" target="_blank">here</a>) :</p>
<p><pre><pre class="brush: perl; gutter: true">sub now {
&nbsp;&nbsp;print &amp;quot;\n[+] Target : &amp;quot; . $_[0] . &amp;quot;\n&amp;quot;;
&nbsp;&nbsp;print &amp;quot;\n[+] Starting the attack\n[+] Info: Control+C to stop attack\n\n&amp;quot;;

&nbsp;&nbsp;while(true) {
&nbsp;&nbsp;&nbsp;&nbsp;$SIG{INT} = \&amp;amp;adios;

&nbsp;&nbsp;&nbsp;&nbsp;$code = toma($_[0].&amp;quot; and (select+benchmark(99999999999,0x70726f62616e646f70726f62616e646f70726f62616e646f))&amp;quot;);

&nbsp;&nbsp;&nbsp;&nbsp;unless($code-&amp;gt;is_success) {
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;print &amp;quot;[+] Web Off\n&amp;quot;;
&nbsp;&nbsp;&nbsp;&nbsp;}
&nbsp;&nbsp;}
}</pre></pre></p>
<p class="brush: perl; gutter: true">Looking at the payload we could easyly identify the function that is being injected as payload is</p>
<p><pre class="brush: perl; gutter: true">benchmark(99999999999,0x70726f62616e646f70726f62616e646f70726f62616e646f)</pre><br />
So basically, evaluating the Hex term presented, 99999999999 times. converting Hex to Ascii will render the term 0x70726f62616e646f70726f62616e646f70726f62616e646f into &#8220;probandoprobandoprobando&#8221;, which translates to &#8220;testingtestingtesting&#8221; in english.</p>
<p>The evaluation CPU time that is required to run the function is what generates the denial of service on the mysql server. When I tested this on a Mysql ( latest community version available today ) has brought my server to its knees in 2-3 seconds, rendering 99-100% CPU utilization and effectively denying it from serving any information to the client. so very very effective.</p>
<h3>My Take</h3>
<p>although refref in its current form is quite effective, the payload implementation works in a way that old <acronym title="Denial of Service">DOS</acronym> tools usually work which is to knock on the door until it breaks, but im uncertain if that is neccesary in an Application <acronym title="Denial of Service">DOS</acronym> attack, since refref is based on deploying a command to the server and making it busy.</p>
<p>I therefore have altered the payload function to the following form and ran the test again :<br />
<pre><pre class="brush: perl; gutter: true">sub now {
&nbsp;&nbsp;print &amp;quot;\n[+] Target : &amp;quot;.$_[0].&amp;quot;\n&amp;quot;;
&nbsp;&nbsp;print &amp;quot;\n[+] Starting the attack\n[+] Info : control+c for stop attack\n\n&amp;quot;;
&nbsp;&nbsp;$SIG{INT} = \&amp;amp;adios;
&nbsp;&nbsp;$code = toma($_[0].&amp;quot; and (select+benchmark(99999999999,0x70726f62616e646f70726f62616e646f70726f62616e646f))&amp;quot;);
&nbsp;&nbsp;print &amp;quot;[+] Web Off\n&amp;quot;;
&nbsp;&nbsp;copyright();
}</pre></pre></p>
<p class="brush: perl; gutter: true">All I did here is really just taking the loop out and making it into a single request attack.</p>
<p class="brush: perl; gutter: true">The result was the same, the server got to 99-100% utilization on evaluating the request. I guess that the reason to include the original loop is to generate a normal traffic jam, to be added to the payload, but if used in the way that I have, you get to have a nice run-by attack, killing the service with just a single request. My guess is that when author wrote the original tool, he/she/they had either different experience or a larger environment where it mattered.</p>
<h3 class="brush: perl; gutter: true">Mitigation</h3>
<ul>
<li>(Frontend) So, my take is that a Web Application Firewall should be able to handle this tool using standard SQL Injection mitigation techniques, since the vector of attack is in fact SQLi to inject the function payload.</li>
<li>(Backend) I would suggest hardening the Database by not allowing non-dba users to run the benchmark function, and also harden the user configured on the web front end to not be able to run any database function that is not necessarily for its operation.</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.sectorix.com/2012/05/10/looking-into-refref-pl/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
