<?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>Chirashi Security &#187; General</title>
	<atom:link href="http://chirashi.zenconsult.net/category/general/feed/" rel="self" type="application/rss+xml" />
	<link>http://chirashi.zenconsult.net</link>
	<description>A blog with scattered thoughts on security</description>
	<lastBuildDate>Sun, 16 Oct 2011 17:26:37 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Platform specific download statistics for the BlackBerry</title>
		<link>http://chirashi.zenconsult.net/2009/12/platform-specific-download-statistics-for-blackberries/</link>
		<comments>http://chirashi.zenconsult.net/2009/12/platform-specific-download-statistics-for-blackberries/#comments</comments>
		<pubDate>Tue, 08 Dec 2009 06:54:29 +0000</pubDate>
		<dc:creator></dc:creator>
				<category><![CDATA[BlackBerry]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[downloads]]></category>
		<category><![CDATA[statistics]]></category>

		<guid isPermaLink="false">http://chirashi.zensay.com/?p=419</guid>
		<description><![CDATA[I looked at the statistics for the number of downloads of Kisses, that I had today.  It was interesting to see the different types of Operating System versions or Platforms that were indeed downloading the tool.  Over all, I had 3051 downloads for a period of about 6 weeks.  I started writing applications that I [...]]]></description>
			<content:encoded><![CDATA[<p>I looked at the statistics for the number of downloads of Kisses, that I had today.  It was interesting to see the different types of Operating System versions or Platforms that were indeed downloading the tool.  Over all, I had 3051 downloads for a period of about 6 weeks.  I started writing applications that I plan to sell and was faced with the tough decision of choosing features based on the specific OS revision.  If I set a base OS version, then I stood to loose a percentage of the BlackBerry users out there.  So I turned to my existing downloads and came up with this chart.  In the hopes that others find it useful, I&#8217;ve included it in this post.  Surprisingly, I thought there would be more users for 4.2 and 4.3 versions.  Thus, based on this, I will set my base version to 4.5.  This cuts out weeks of development time (mainly making workarounds).  Obviously these figures don&#8217;t paint the full picture, but they give me a fair idea of how to plan.</p>
<p><a href="http://chirashi.zenconsult.net/wp-content/uploads/2009/12/BlackBerry_OS_Version_Statistics.png"><img class="alignnone size-medium  wp-image-420" title="BlackBerry_OS_Version_Statistics" src="http://chirashi.zenconsult.net/wp-content/uploads/2009/12/BlackBerry_OS_Version_Statistics-238x300.png" alt="BlackBerry_OS_Version_Statistics" width="238" height="300" /></a></p>
<p style="clear: both;">&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://chirashi.zenconsult.net/2009/12/platform-specific-download-statistics-for-blackberries/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>BlackBerry QRCodes &#8211; A look inside</title>
		<link>http://chirashi.zenconsult.net/2009/10/blackberry-qrcodes-a-look-inside/</link>
		<comments>http://chirashi.zenconsult.net/2009/10/blackberry-qrcodes-a-look-inside/#comments</comments>
		<pubDate>Sat, 17 Oct 2009 16:44:23 +0000</pubDate>
		<dc:creator></dc:creator>
				<category><![CDATA[BlackBerry]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[linkedin]]></category>

		<guid isPermaLink="false">http://chirashi.zensay.com/?p=223</guid>
		<description><![CDATA[So I was curious about what the new BlackBerry Messenger 5.0 QRCodes actually contained.  More than that, I was curious to find out if someone can inject weird characters and make the handhled do weird things.  So the first thing I did was get a hold of my own QRCode.  Then I grabbed a copy [...]]]></description>
			<content:encoded><![CDATA[<p>So I was curious about what the new BlackBerry Messenger 5.0 QRCodes actually contained.  More than that, I was curious to find out if someone can inject weird characters and make the handhled do weird things.  So the first thing I did was get a hold of my own QRCode.  Then I grabbed a copy of the <a href="http://qrcode.sourceforge.jp/" target="_blank">QRCode Library</a> from SourceForge.  I then ran it on my own QRCode to see what was inside.  Here&#8217;s what I found:</p>
<p><img class="alignnone size-full wp-image-227" style="border: 2px solid black;" title="qrcode_output" src="http://chirashi.zenconsult.net/wp-content/uploads/2009/10/qrcode_output.png" alt="qrcode_output" width="420" height="130" /></p>
<p>So the output of my QRCode is</p>
<pre>bbm:20fe2f6059cc5086Sheran Gunasekera</pre>
<p>Okay, breaking it down, the first 4 characters, &#8220;bbm:&#8221; indicate the protocol (BlackBerry Messenger).  The next 8 characters is my PIN.  Still trying to figure out what the remaining 8 characters are, and then lastly, my name.</p>
<p>Then I thought I&#8217;d create my own QRCode and try to see what I can make the handheld.  I visited <a href="http://qrcode.kaywa.com/" target="_blank">Kaywa</a> and generated my own QRCodes and had the BlackBerry Messenger read it in.  Here are my results:</p>
<p><img class="alignnone size-full wp-image-230" style="border: 2px solid black;" title="kawaya" src="http://chirashi.zenconsult.net/wp-content/uploads/2009/10/kawaya.png" alt="kawaya" width="489" height="341" /></p>
<h4>Changing the PIN:</h4>
<p>I changed the PIN to various numbers, letters and characters.  The BBM only read a QRCode where the PIN was a Hex number.  It would then immediately send a Invite to the specific PIN number that I had entered.</p>
<h4>Changing the remaining 8 Hex characters:</h4>
<p>When I changed the 8 characters adjacent to the PIN, the invitation would go out normally.  I tried with non Hex characters and it still went through.  When I changed the characters to ones like &#8220;¡™£¢∞§¶•&#8221; made using the Alt key and numbers on my Mac, nothing happened; meaning the QRCode was not read by the BBM.</p>
<h4>Changing the name:</h4>
<p>I changed my name and nothing really happened.  When I did the special characters like the ones from above, the QRCode was not read.  I&#8217;m still wondering if this is as a result of the Kawaya QRCode generator or because the BBM is explicitly told to ignore these characters.</p>
<p>I tried to generate a long name by filling the name field with all A&#8217;s.  The BBM read the code without much of an issue.  I think as per QRCode standards, the amount of data you can store in one is limited anyway.  The <a href="http://www.denso-wave.com/qrcode/qrfeature-e.html" target="_blank">official QRCode</a> site lists the Maximum amount of data you can store on a QRCode (Binary/Byte) is 2953 characters.  I set out to find a generator that can build me a QRCode of that size.  I downloaded the trial version of the <a href="http://www.barcodelib.com/java_barcode/barcode_symbologies/qrcode.html" target="_blank">Java Barcode generator</a> from BarCodeLib.com.  Using their tool to generate a QRCode, the maximum size I was successfully able to read was 106 characters.  Granted I only tried a small percentage of the features available to me, but for this post, I&#8217;ll go with this amount.  I will continue to test and post results whenever I feel like it.  For now that&#8217;s as good as it gets.</p>
<p>So in summary: The BBM QRCode reader has a specific format for invites.  It is not possible to alter these values to a certain extent.  It is not possible to inject data long enough to cause any overflows.  It is also not possible to inject unexpected characters.  On a sort of related note, the new BBM 5.0 sucks.  Its file transfer for photos is the worst thing RIM have ever done.  Since I upgraded, I have not been able to successfully send my contacts a photo from my BB.</p>
]]></content:encoded>
			<wfw:commentRss>http://chirashi.zenconsult.net/2009/10/blackberry-qrcodes-a-look-inside/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>I&#8217;m speaking at Hack In The Box 2009!</title>
		<link>http://chirashi.zenconsult.net/2009/08/im-speaking-at-hack-in-the-box-2009/</link>
		<comments>http://chirashi.zenconsult.net/2009/08/im-speaking-at-hack-in-the-box-2009/#comments</comments>
		<pubDate>Tue, 04 Aug 2009 10:00:52 +0000</pubDate>
		<dc:creator></dc:creator>
				<category><![CDATA[BlackBerry]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[linkedin]]></category>

		<guid isPermaLink="false">http://chirashi.zensay.com/?p=182</guid>
		<description><![CDATA[I just got confirmation that my talk on BlackBerry related spyware and lawful interception is accepted for this years Hack In The Box conference in Malaysia! W00t!  I&#8217;m quite excited because for one, its the first time I&#8217;ll speak at Hack In The Box, and second, HITB has featured some of the best and brightest [...]]]></description>
			<content:encoded><![CDATA[<p>I just got confirmation that my talk on BlackBerry related spyware and lawful inte<img class="alignright size-full wp-image-183" style="padding: 5px; vertical-align: top;" title="malaysia09-banner" src="http://chirashi.zenconsult.net/wp-content/uploads/2009/08/malaysia09-banner.jpg" alt="malaysia09-banner" width="247" height="56" />rception is accepted for <a href="http://conference.hackinthebox.org/hitbsecconf2009kl/" target="_blank">this years Hack In The Box conference</a> in Malaysia! W00t!  I&#8217;m quite excited because for one, its the first time I&#8217;ll speak at <a href="http://www.hackinthebox.org/" target="_blank">Hack In The Box</a>, and second, HITB has featured some of the best and brightest security professionals from around the world.</p>
<p>I will be speaking on the security of the BlackBerry handhelds and how it&#8217;s strong security leaves only one weak link to target: the user.  I will also demo the legal interception PoC (maybe release a toolkit? still debating) and give a live demo on how your handheld can get pwned and what sneaky social engineering tricks can be employed to do so.  I&#8217;ll also talk about what risks you face if you get pwned by similar spyware and how you can detect and prevent such attacks in the future.</p>
<p>If you haven&#8217;t already done so, you should check out <a href="http://www.hackinthebox.org/" target="_blank">HITB</a>.  If you haven&#8217;t already been to one of <a href="http://conference.hackinthebox.org/" target="_blank">the cons</a>, you should go.  Its a fantastic place to learn about the latest research, vulnerabilities, developments and other assorted hackery in the security industry.  Unafraid of pulling any punches, <a href="http://twitter.com/l33tdawg/" target="_blank">L33tdawg</a> does not shy away from hosting in-depth technical talks at his con.  <a href="http://conference.hackinthebox.org/hitbsecconf2009kl/?page_id=16" target="_blank">A 2 day Technical Training track</a> precedes the con and is another great way of picking up some m4d l33t sk1llz.  <a href="http://chirashi.zensay.com/2009/05/re-login-plugin-for-burp-suite/" target="_blank">I wrote a post</a> on Burp Suite that talked a little bit about the Web Application Hackers Handbook and one of its authors; well the other author, <a href="http://www.linkedin.com/in/marcuspinto1" target="_blank">Marcus Pinto</a>, will be one of the trainers this year talking about Web Application (in)Security.</p>
<p>And after all is said and done, there&#8217;s usually one kick-ass party to wrap things up.  So get your asses on down to HITB this year and come say hi, it&#8217;ll be a blast!</p>
]]></content:encoded>
			<wfw:commentRss>http://chirashi.zenconsult.net/2009/08/im-speaking-at-hack-in-the-box-2009/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>A hacker&#8217;s creed?</title>
		<link>http://chirashi.zenconsult.net/2009/07/a-hackers-creed/</link>
		<comments>http://chirashi.zenconsult.net/2009/07/a-hackers-creed/#comments</comments>
		<pubDate>Tue, 28 Jul 2009 06:38:10 +0000</pubDate>
		<dc:creator></dc:creator>
				<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://chirashi.zensay.com/?p=175</guid>
		<description><![CDATA[So I thought I&#8217;d take a stab at it.  Was inspired by a tweet Tom Brennan made about Weld Pond&#8217;s laptop.  You don&#8217;t need to tell me that I geeked out, I already know that.  Here goes: This is my Mac. There are many like it, but this one is mine. My Mac is my [...]]]></description>
			<content:encoded><![CDATA[<p>So I thought I&#8217;d take a stab at it.  Was inspired by a <a href="http://twitter.com/brennantom/status/2881842209" target="_blank">tweet</a> <a href="http://twitter.com/brennantom" target="_blank">Tom Brennan</a> made about <a href="http://twitter.com/WeldPond" target="_blank">Weld Pond&#8217;s</a> <a href="http://twitter.com/WeldPond/status/2879574881" target="_blank">laptop</a>.  You don&#8217;t need to tell me that I geeked out, I already know that.  Here goes:</p>
<p><em>This is my Mac. There are many like it, but this one is mine. My Mac is my best friend. It is my life. I must master it as I master my life. My Mac, without me, is useless. Without my Mac, I am useless. I must pwn responsibly with my Mac. I must pwn more ethically than any blackhat who is trying to pwn for profit. I must educate the masses before he takes advantage of unpatched boxes. I will&#8230;.</em></p>
<p><em><br />
My Mac and myself know that what counts in this war are not the hot chicks we meet, the noise of our bragging, nor the press releases we make. We know that it is the good pwn that counts. We will pwn&#8230;</em></p>
<p><em><br />
My Mac is human, even as I, because it is my life. Thus, I will learn it as a brother. I will learn its weakness, its strength, its OS, its accessories, its isight and its all-glass trackpad. I will keep my Mac clean and ready, even as I am clean and ready. We will become part of each other. We will&#8230;</em></p>
<p><em><br />
Before God I swear this creed. My Mac and myself are the defenders of users. We are the masters of our enemy. We are the saviors of root. So be it, until victory is ours and there is no enemy, but Security.</em></p>
]]></content:encoded>
			<wfw:commentRss>http://chirashi.zenconsult.net/2009/07/a-hackers-creed/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Malicious PDF files and embedding</title>
		<link>http://chirashi.zenconsult.net/2009/07/malicious-pdf-files-and-embedding/</link>
		<comments>http://chirashi.zenconsult.net/2009/07/malicious-pdf-files-and-embedding/#comments</comments>
		<pubDate>Wed, 15 Jul 2009 05:33:05 +0000</pubDate>
		<dc:creator></dc:creator>
				<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://chirashi.zensay.com/?p=47</guid>
		<description><![CDATA[A look at whether malicious PDFs will execute JavaScript or visit URLs as easily on Mac OS X as they do on Windows.]]></description>
			<content:encoded><![CDATA[<p>I was reading <a href="http://blog.didierstevens.com/" target="_blank">Didier Stevens&#8217;</a> posts on the creation of malicious PDF files and <a href="http://blog.didierstevens.com/2009/07/01/embedding-and-hiding-files-in-pdf-documents/" target="_blank">embedding other files within PDF files</a>.  He mentions that he ran all his tests using Adobe Acrobat Reader 8.1.2 and Foxit Reader 2.2.  I wanted to see how affected Mac OS X would be. [Update: For the sake of thoroughness, I ended up testing with Acrobat 9.1.0, 9.1.2 and Foxit 3.0]</p>
<p>Mac OS X has PDF support built-in.  I love that I can save a Word or Pages document directly to PDF.  I need no additional software to accomplish this.  Mac OS X uses the <a href="http://en.wikipedia.org/wiki/Preview_%28software%29" target="_blank">Preview Application</a> to read PDF files.  Given that the majority of the OS X users will rely on Preview, I constrained myself to only use Preview for testing.</p>
<p>I started at the top.  Examining the structure of a PDF file.  Although, in my case, I looked at how OS X creates a basic PDF file and attempted to draw parallels with the structure Didier presents in his post.  So I opened up the OS X standard text editor TextEdit, created my &#8220;Hello World!&#8221; document and saved it as a PDF.  There was no &#8220;Save As&#8221; to PDF, so I just used the &#8220;Print&#8221; option and saved it as a PDF.  When opened back in TextEdit, the PDF file looked like this:</p>
<p><a href="http://chirashi.zenconsult.net/wp-content/uploads/2009/07/Picture-22.png"><img class="alignnone size-full wp-image-52" title="PDF Structure" src="http://chirashi.zenconsult.net/wp-content/uploads/2009/07/Picture-22.png" alt="PDF Structure" width="499" height="675" /></a></p>
<p>The first thing I noticed was that the PDF versions were different.  Didier had version 1.1 and mine was 1.3.  My file also had quite a few extra objects.  While Didier&#8217;s had 7 objects in the xref, I had 17.  I probably need to keep in mind, however that he did his article in mid-2008, over a year ago.  The overall structure of the PDF, however, seems to have not changed:</p>
<ul>
<li>Header</li>
<li>Objects</li>
<li>Xref</li>
<li>Trailer</li>
</ul>
<p>I wanted to try my hand at adding another object to a PDF file.  So I tried to add a URI with OpenAction similar to Didier in this <a href="http://blog.didierstevens.com/2008/04/29/pdf-let-me-count-the-ways/" target="_blank">post</a>.  I opened the new file in Preview; absolutely nothing.  Knowing that I had to be more thorough, I fired up my XP VM and Adobe Acrobat Reader 9.1.0.  Sure enough, I receive the request asking if I want to connect to <a href="http://chirashi.zensay.com" target="_blank">http://chirashi.zensay.com</a></p>
<p><a href="http://chirashi.zenconsult.net/wp-content/uploads/2009/07/Picture-19.png"><img class="alignnone size-full wp-image-53" title="OpenAction Chirashi" src="http://chirashi.zenconsult.net/wp-content/uploads/2009/07/Picture-19.png" alt="OpenAction Chirashi" width="435" height="261" /></a></p>
<p>So the OpenAction does not work on OS X&#8217;s Preview Application.  Kind of a good thing I guess.  Especially when you see some of the threats <a href="http://www.google.com/search?q=pdf+openaction" target="_blank">out there</a>.  Next I wanted to find out if Preview handles JavaScript in the same way.  You did know that you can trigger JavaScript as PDF actions as well, right?  Of course you did!</p>
<p>Sure enough, Preview does not honor the JavaScript execution, but Adobe Acrobat 9.1.0 and 9.1.2 does so with a nice little Warning window.  Not sure how useful the Warning window is considering the JavaScript was executed already.  I recall reading some WebSense blog posts regarding similar PDF based attacks <a href="http://securitylabs.websense.com/content/Blogs/3202.aspx" target="_blank">here</a> and a newer one <a href="http://securitylabs.websense.com/content/Blogs/3311.aspx" target="_blank">here</a>.</p>
<p><a href="http://chirashi.zenconsult.net/wp-content/uploads/2009/07/Picture-20.png"><img class="alignnone size-full wp-image-56" title="OpenAction JavaScript" src="http://chirashi.zenconsult.net/wp-content/uploads/2009/07/Picture-20.png" alt="OpenAction JavaScript" width="435" height="261" /></a></p>
<p>A question I want to pose here is do we really need all this functionality anyway?  I have used Preview for over 3 years now (Mac convert for that long) and I have not had to deal with any breakage in functionality or a different user-experience when dealing with PDF files.  Does anyone USE Adobe JavaScript?  You might as well turn off your JavaScript by going into Edit-&gt;Preferences-&gt;JavaScript and uncheck the Enable Acrobat JavaScript.</p>
<p><a href="http://chirashi.zenconsult.net/wp-content/uploads/2009/07/Picture-21.png"><img class="alignnone size-full wp-image-57" title="Disable JavaScript" src="http://chirashi.zenconsult.net/wp-content/uploads/2009/07/Picture-21.png" alt="Disable JavaScript" width="435" height="335" /></a></p>
<p>Once again for the sake of being thorough, I downloaded and installed Foxit 3.0 for XP just to give it a shot.  Wow, so, while I&#8217;m here ranting about Adobe, guess what Foxit does?  It directly opens the URL in your default browser.  I am not kidding <img src='http://chirashi.zenconsult.net/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' />   Try the JavaScript file and it doesn&#8217;t do anything.  Maybe it can&#8217;t do an alert box.  I need to research further and post results.  I think I&#8217;m going to stop for now and write another post about the actual file embedding research that I did.</p>
<p>What can we take away from here?  I think the idea of keeping things simple is the way to go, Preview clearly does this.  I&#8217;m sure that there are people who use all the bells and whistles of Acrobat, but really, I mean how many people could there be?  No, that&#8217;s a legitimate question.  How many of you do?</p>
<p>Files that I used to run these tests can be found <a href="http://chirashi.zenconsult.net/wp-content/uploads/2009/07/HelloWorldTests1.zip">here</a></p>
]]></content:encoded>
			<wfw:commentRss>http://chirashi.zenconsult.net/2009/07/malicious-pdf-files-and-embedding/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Teh First Post</title>
		<link>http://chirashi.zenconsult.net/2007/04/teh-first-post/</link>
		<comments>http://chirashi.zenconsult.net/2007/04/teh-first-post/#comments</comments>
		<pubDate>Mon, 09 Apr 2007 17:17:00 +0000</pubDate>
		<dc:creator></dc:creator>
				<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://chirashi.zensay.com/?p=3</guid>
		<description><![CDATA[Welcome to the Chirsashi Security blog! As is evident, this is teh first post. Setting up WordPress and all that sort of thing, nothing much to write in this one.]]></description>
			<content:encoded><![CDATA[<p>Welcome to the Chirsashi Security blog! As is evident, this is teh first post. Setting up WordPress and all that sort of thing, nothing much to write in this one.</p>
]]></content:encoded>
			<wfw:commentRss>http://chirashi.zenconsult.net/2007/04/teh-first-post/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

