<?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; security</title>
	<atom:link href="http://chirashi.zenconsult.net/tag/security/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>RIM says &#8220;Would you like a password hint?&#8221;</title>
		<link>http://chirashi.zenconsult.net/2010/01/rim-says-would-you-like-a-password-hint/</link>
		<comments>http://chirashi.zenconsult.net/2010/01/rim-says-would-you-like-a-password-hint/#comments</comments>
		<pubDate>Fri, 08 Jan 2010 02:26:18 +0000</pubDate>
		<dc:creator></dc:creator>
				<category><![CDATA[BlackBerry]]></category>
		<category><![CDATA[password]]></category>
		<category><![CDATA[security]]></category>

		<guid isPermaLink="false">http://chirashi.zensay.com/?p=467</guid>
		<description><![CDATA[It would appear that RIM is planning to provide end-users with a mechanism to remember their passwords.  According to patent application 20090307498, RIM proposes to allow a user to store his password with unique version data to help him remember it later.  As per the patent application, the version data will be in the form [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://chirashi.zenconsult.net/wp-content/uploads/2009/10/topleft.gif"><img class="alignnone size-full wp-image-269" title="topleft" src="http://chirashi.zenconsult.net/wp-content/uploads/2009/10/topleft.gif" alt="" width="139" height="55" /></a>It would appear that RIM is planning to provide end-users with a mechanism to remember their passwords.  According to patent application <a href="http://appft.uspto.gov/netacgi/nph-Parser?Sect1=PTO1&amp;Sect2=HITOFF&amp;d=PG01&amp;p=1&amp;u=%2Fnetahtml%2FPTO%2Fsrchnum.html&amp;r=1&amp;f=G&amp;l=50&amp;s1=%2220090307498%22.PGNR.&amp;OS=DN/20090307498&amp;RS=DN/20090307498" target="_blank">20090307498</a>, RIM proposes to allow a user to store his password with unique version data to help him remember it later.  As per the patent application, the version data will be in the form of a date.  Thus, if the user forgets his password on the initial prompt and as long as he has not exceeded the maximum number of password attempts, he will receive a second prompt that says something like &#8220;The password that has been used is one from 3rd January 2009, please enter it to unlock the device.&#8221;  This can be helpful, but to someone like me who is awful with dates, it won&#8217;t help me much.  Here&#8217;s my initial take on the patent application.  Feel free to provide your views in either the comments or in the <a href="http://www.linkedin.com/groups?gid=2383165" target="_blank">LinkedIn group &#8211; BlackBerry Security</a>.</p>
<p>The thing that jumps out at me regarding this patent application is the fact that RIM is certainly becoming more consumer friendly.  In the country where I reside at the moment, one thing is apparent.  BlackBerries rule.  I have seen teenage girls in malls who have their faces buried in their BlackBerry.  I have also seen the regular business user owning not one but two.  It is easily the most popular phone sold here.  While corporates praise RIM for their security, consumers will not feel the same way.  In my brief, personal experience with alleged power-users, I came away feeling like no one really understood security at all.  This will most likely multiply with regular end-users.  So, in an effort not to appear too anal, RIM seems to have decided to provide a way for a user to remember his password.  Of course the patent refers to &#8220;unique version data&#8221; and remains fairly nebulous on what it can be.  In it&#8217;s patent application, RIM states that this unique data can be a date, integer or string.  It might be that the end-user will have the ability to configure an option like &#8220;prompt me with the 3rd and 8th character of my password&#8221;.  I know the maximum limit for incorrect passwords is no more than 10.  I still think it won&#8217;t be possible to guess a password in 10 attempts.  Thus this is quite a good move in helping make the device both secure and consumer-friendly.  I expect they will roll it out in one of their next OS updates.</p>
]]></content:encoded>
			<wfw:commentRss>http://chirashi.zenconsult.net/2010/01/rim-says-would-you-like-a-password-hint/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Mice, Permissions and a Solution?</title>
		<link>http://chirashi.zenconsult.net/2009/11/mice-permissions-and-a-solution/</link>
		<comments>http://chirashi.zenconsult.net/2009/11/mice-permissions-and-a-solution/#comments</comments>
		<pubDate>Fri, 27 Nov 2009 18:14:04 +0000</pubDate>
		<dc:creator></dc:creator>
				<category><![CDATA[BlackBerry]]></category>
		<category><![CDATA[Featured]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[permissions]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[Surveillance]]></category>

		<guid isPermaLink="false">http://chirashi.zensay.com/?p=394</guid>
		<description><![CDATA[The BlackBerry default application permissions should be one of the most important things to a BlackBerry Internet Service (BIS) user.  But how can these application permissions be monitored and checked for those times when they are changed (creating a potentially risky situation) and the user forgets to revert to its original setting?  This post will highlight a possible mechanism of checking for the most critical permissions.  There's also some sample program source code that users can download and play with.]]></description>
			<content:encoded><![CDATA[<p><img class="alignleft size-medium wp-image-399" style="padding: 0 7px 5px; 0" title="mice" src="http://chirashi.zenconsult.net/wp-content/uploads/2009/11/mice-300x218.jpg" alt="mice" width="300" height="218" />What do mice do when its cold?  They sit around a candle.  What do they do when its really cold?  They light the candle.  In a sense, the same applies to the Default Application Permissions on your BlackBerry.  They are important, but without being set correctly and understood well, they’re very much like the unlit candle the mice sit around: lots of potential, but completely ineffectual.  The perils of not setting your application permissions correctly?  Here are a two:</p>
<ol>
<li>You don’t know if your “Input Simulation” permission is set to “Allow”.  If it is allowed, any application can make key-presses on your handheld as if they were you.  Potential: <a href="http://chirashi.zensay.com/2009/10/remote-listening-for-the-blackberry/">an application can answer your phone calls</a>.</li>
<li>You’re not sure your “Security Timer Reset” permission is set to “Allow”.  If it is, then any application can <a href="http://chirashi.zensay.com/2009/11/the-security-timer-reset-permission/">render your screen lockout useless</a>.</li>
</ol>
<p>I can almost hear you asking me, “Why tell me about it? You think I don’t know about this?” and the truth is, its an even split.  There are users out there that are blissfully unaware of things like Default Application Permissions.  The BlackBerry is going the way of the consumer, and fast.  With the rise in popularity of the <a href="http://en.wikipedia.org/wiki/BlackBerry_Internet_Service" target="_blank">BlackBerry Internet Service</a>, a user no longer needs to be a part of an large organization to reap the many benefits of a BlackBerry.  The flip side?  There is no <a href="http://en.wikipedia.org/wiki/BlackBerry_Enterprise_Server" target="_blank">enterprise security administrator</a> or policy to protect these users.  Thus when they decide to go with BIS, they take on the task of remaining secure.  For a second, leave these users out of the picture.  Pick the other half of the users who are aware.  Suppose they set some permissions and then forgot about them?  Maybe they allowed access based on an application requesting them to do so and they never set the permissions back.  What then?</p>
<p>I thought about this and came up with a solution of sorts.  Why not have a list of the most important security permissions and check them at a timed interval to see if they have been changed?  If they have, then send the user an alert.  Here’s the code I came up with:</p>
<pre lang="JAVA">package com.zensay.sectest;

import java.util.Timer;
import java.util.TimerTask;
import net.rim.device.api.applicationcontrol.ApplicationPermissions;
import net.rim.device.api.applicationcontrol.ApplicationPermissionsManager;
import net.rim.device.api.system.Application;
import net.rim.device.api.system.Bitmap;
import net.rim.device.api.ui.Manager;
import net.rim.device.api.ui.Screen;
import net.rim.device.api.ui.Ui;
import net.rim.device.api.ui.UiEngine;
import net.rim.device.api.ui.component.Dialog;

public class Main extends Application
{
    public static void main(String args[])
    {
        Main app = new Main();
        app.enterEventDispatcher();
    }

    public Main()
    {
        TimerTask tm = new TimerTask()
        {
			public void run()
			{
				reqPerm();
			}
        };
    	Timer t = new Timer();
        t.schedule(tm,10000, 10000);
    }

    public void reqPerm()
	{
		ApplicationPermissionsManager apm = ApplicationPermissionsManager.getInstance();
		int input = apm.getPermission(ApplicationPermissions.PERMISSION_INPUT_SIMULATION);
		if(input == ApplicationPermissions.VALUE_ALLOW)
		{
			synchronized(Application.getEventLock())
			{
				UiEngine ui = Ui.getUiEngine();
				Screen screen = new Dialog(Dialog.D_OK, "Input Simulation is allowed!!",
						Dialog.OK, Bitmap.getPredefinedBitmap(Bitmap.EXCLAMATION), Manager.VERTICAL_SCROLL);
				ui.pushGlobalScreen(screen, 1, UiEngine.GLOBAL_QUEUE);
			}
		}
	}
}</pre>
<p><img class="alignnone size-medium wp-image-406" title="perm_check" src="http://chirashi.zenconsult.net/wp-content/uploads/2009/11/perm_check-188x300.jpg" alt="perm_check" width="188" height="300" /></p>
<p style="clear: both;">To explain it a little bit, the code (when compiled, signed and executed on your BlackBerry) will check your “Input Simulation” permission.  If it is set to “Allow” the application will pop open a message window and notify the user.  It does this every 10 seconds.  Its annoying as hell, but I think you get the general idea.  I tested this on my Bold and it works very well.  I’m thinking about making it an additional feature in Kisses; with a slightly longer timeout of course.  Its a feature I would find useful.</p>
]]></content:encoded>
			<wfw:commentRss>http://chirashi.zenconsult.net/2009/11/mice-permissions-and-a-solution/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>The &#8216;Security Timer Reset&#8217; permission</title>
		<link>http://chirashi.zenconsult.net/2009/11/the-security-timer-reset-permission/</link>
		<comments>http://chirashi.zenconsult.net/2009/11/the-security-timer-reset-permission/#comments</comments>
		<pubDate>Thu, 05 Nov 2009 18:14:53 +0000</pubDate>
		<dc:creator></dc:creator>
				<category><![CDATA[BlackBerry]]></category>
		<category><![CDATA[permissions]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[ubertwitter]]></category>

		<guid isPermaLink="false">http://chirashi.zensay.com/?p=334</guid>
		<description><![CDATA[Did you ever wonder what some of those Application Permissions were on your BlackBerry?  I&#8217;m putting together a paper that details the more important ones and why you should be careful in changing them.  For now, I thought I&#8217;d share some information about the &#8220;Security Timer Reset&#8221; permission and what you can do with it. [...]]]></description>
			<content:encoded><![CDATA[<p>Did you ever wonder what some of those Application Permissions were on your BlackBerry?  I&#8217;m putting together a paper that details the more important ones and why you should be careful in changing them.  For now, I thought I&#8217;d share some information about the &#8220;<em>Security Timer Reset</em>&#8221; permission and what you can do with it.</p>
<p>The Security Timer Reset permission is set to Deny by default.  This is good.  Be wary of applications asking you for Allow permissions on this.  One of the things you can do with this permission enabled is to delay your lock screen.  Indefinitely.</p>
<p>The lock screen usually appears when your <em>Security Timeout</em> is exceeded.</p>
<div id="attachment_336" class="wp-caption alignnone" style="width: 250px"><img class="size-full wp-image-336" title="9000_lock_screen" src="http://chirashi.zenconsult.net/wp-content/uploads/2009/11/9000_lock_screen.png" alt="Device Lock Screen" width="240" height="160" /><p class="wp-caption-text">Device Lock Screen</p></div>
<p>For example, if you have a <em>Security Timeout</em> set to 2 minutes, your screen will lock automatically and you will have to enter your password to access the device again.  This is handy to have, if you leave your BlackBerry on your desk at work and are afraid someone will pick it up and install nasty stuff on your BlackBerry.</p>
<div id="attachment_335" class="wp-caption alignnone" style="width: 250px"><img class="size-full wp-image-335" title="9000_lock_screen-01" src="http://chirashi.zenconsult.net/wp-content/uploads/2009/11/9000_lock_screen-01.png" alt="Lock Screen Timeout" width="240" height="160" /><p class="wp-caption-text">Security Timeout</p></div>
<p>Let&#8217;s take the case where you download a malicious application (you don&#8217;t know its malicious of course).  It is such a compelling one (read: porn slideshow) that you just HAD to download it.  Now the application innocently asks you for the &#8220;<em>Event Injection</em>&#8221; &amp; &#8220;<em>Security Timer Reset</em>&#8221; permission to &#8216;advance&#8217; the slides back and forth.  &#8220;Sure&#8221;, you think, &#8220;no problems there now is it?&#8221; and you grant Allow access to the application.  What this application <strong><em>could</em></strong> do is to then inject a key event every 15 seconds.  This can be done so that you don&#8217;t notice.  When this key event is injected every 15 seconds, its as if you are moving the trackball or clicking a key.  This delays the device lockout because the timer is reset every 15 seconds.  <strong>The device will now never lock itself out.</strong></p>
<p>So be wary of granting Allow Permissions on almost everything.  I know UberTwitter is an application that asks for a lot of Allow permissions (although it doesn&#8217;t ask you for the Security Timer Reset permission).  I think it might be worthwhile starting a Permissions Hall of Shame on my site, just to list such offenders.</p>
<div id="attachment_337" class="wp-caption alignnone" style="width: 346px"><img class="size-full wp-image-337 " title="ubertwitter_2" src="http://chirashi.zenconsult.net/wp-content/uploads/2009/11/ubertwitter_2.png" alt="Permission Change Request" width="336" height="224" /><p class="wp-caption-text">Permission Change Request</p></div>
<div id="attachment_338" class="wp-caption alignnone" style="width: 346px"><img class="size-full wp-image-338 " title="ubertwitter_3" src="http://chirashi.zenconsult.net/wp-content/uploads/2009/11/ubertwitter_3.png" alt="Allow All" width="336" height="224" /><p class="wp-caption-text">Allow All</p></div>
<div id="attachment_339" class="wp-caption alignnone" style="width: 346px"><img class="size-full wp-image-339 " title="ubertwitter_4" src="http://chirashi.zenconsult.net/wp-content/uploads/2009/11/ubertwitter_4.png" alt="...like really!" width="336" height="224" /><p class="wp-caption-text">...like really!</p></div>
]]></content:encoded>
			<wfw:commentRss>http://chirashi.zenconsult.net/2009/11/the-security-timer-reset-permission/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>The theory behind BlackBerry phone taps</title>
		<link>http://chirashi.zenconsult.net/2009/10/the-theory-behind-blackberry-phone-taps/</link>
		<comments>http://chirashi.zenconsult.net/2009/10/the-theory-behind-blackberry-phone-taps/#comments</comments>
		<pubDate>Sat, 31 Oct 2009 06:14:39 +0000</pubDate>
		<dc:creator></dc:creator>
				<category><![CDATA[BlackBerry]]></category>
		<category><![CDATA[linkedin]]></category>
		<category><![CDATA[phone tap]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[spyphone]]></category>
		<category><![CDATA[Spyware]]></category>
		<category><![CDATA[Surveillance]]></category>

		<guid isPermaLink="false">http://chirashi.zensay.com/?p=297</guid>
		<description><![CDATA[The new version of FlexiSpy (which I dissected and posted about) promises to allow a user to spy on a target when he is on a call.  They call it Call Interception.  The site says: &#8220;Call Interception is the ability to listen in to an active phone call on the target device. You specify the [...]]]></description>
			<content:encoded><![CDATA[<p>The new version of FlexiSpy (which <a href="http://chirashi.zensay.com/2009/10/the-anatomy-of-a-spyware-application-part-1/" target="_blank">I dissected and posted about</a>) promises to allow a user to spy on a target when he is on a call.  They call it Call Interception.  The site says: <em>&#8220;Call Interception is the ability to listen in to an active phone call on the target device. You specify the numbers you are interested in and when any calls to or from these numbers occur on the target, FlexiSPY PRO-X will send a secret SMS to your mobile. If you now call the target mobile, you will be added to the call.&#8221;</em></p>
<p>Knowing the APIs of the BlackBerry, I can confirm that this will work only if and when a target has conference calling enabled.  The theory is simple again.  The application hooks the &#8220;<a href="http://www.blackberry.com/developers/docs/4.6.0api/net/rim/blackberry/api/phone/PhoneListener.html#callConnected(int)" target="_blank"><em>callConnected</em></a>&#8221; method on the <a href="http://www.blackberry.com/developers/docs/4.6.0api/net/rim/blackberry/api/phone/PhoneListener.html" target="_blank"><em>PhoneListener</em></a> class.  Then when it detects a specific number that has been specified, it sends an SMS to a pre-defined number.  Once that same pre-defined number calls in during an active call, the phone automatically answers and adds the user into a three-way conference.  So its dependent on the target and his phone plan.  Thus this feature is not a guaranteed one.  One thing I plan to try out is to see if the target will actually hear the call-waiting tone before the third call is connected.  Here&#8217;s a graphic that explains how it works:</p>
<div id="attachment_302" class="wp-caption alignnone" style="width: 360px"><img class="size-full wp-image-302" title="scene1" src="http://chirashi.zenconsult.net/wp-content/uploads/2009/10/scene1.png" alt="Bob calls Alice on her bugged phone" width="350" height="170" /><p class="wp-caption-text">Bob calls Alice on her bugged phone</p></div>
<div id="attachment_303" class="wp-caption alignnone" style="width: 360px"><img class="size-full wp-image-303" title="scene2" src="http://chirashi.zenconsult.net/wp-content/uploads/2009/10/scene2.png" alt="Alice's phone sends an SMS to Charlie" width="350" height="170" /><p class="wp-caption-text">Alice&#39;s phone sends an SMS to Charlie</p></div>
<div id="attachment_304" class="wp-caption alignnone" style="width: 360px"><img class="size-full wp-image-304" title="scene3" src="http://chirashi.zenconsult.net/wp-content/uploads/2009/10/scene3.png" alt="Charlie calls Alice's phone &amp; is added to the conversation" width="350" height="350" /><p class="wp-caption-text">Charlie calls Alice&#39;s phone &amp; is added to the conversation</p></div>
<p>In the scene above, Bob is a friend who calls Alice.  Alice has had her phone bugged by Charlie.  Charlie wants to listen into conversations between Bob and Alice.  For this to work, Alice needs to have the ability to make conference calls.  This is typically a value-added service from the mobile network operator.  Thus this attack is dependent on Alice having subscribed to such services.</p>
<p>Like all the other things, I&#8217;ve written about, I need to conduct some more research on it.  I&#8217;ve been busy these days with the day job and my research is taking a back seat.  Sad really.  Maybe its time to look for a job that pays me to do this stuff??  If you want the tool that lets you test out <a href="http://chirashi.zensay.com/2009/10/phonesnoop-turn-a-blackberry-into-a-portable-bug/" target="_blank">how you can remotely listen in</a> on ambient noise and conversations, <a href="http://chirashi.zensay.com/2009/10/remote-listening-for-the-blackberry/">look here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://chirashi.zenconsult.net/2009/10/the-theory-behind-blackberry-phone-taps/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>Kiss your BlackBerry spyware goodbye</title>
		<link>http://chirashi.zenconsult.net/2009/10/kiss-your-blackberry-spyware-goodbye/</link>
		<comments>http://chirashi.zenconsult.net/2009/10/kiss-your-blackberry-spyware-goodbye/#comments</comments>
		<pubDate>Tue, 27 Oct 2009 09:38:50 +0000</pubDate>
		<dc:creator></dc:creator>
				<category><![CDATA[BlackBerry]]></category>
		<category><![CDATA[Featured]]></category>
		<category><![CDATA[Bugs and Kisses]]></category>
		<category><![CDATA[Hack In The Box]]></category>
		<category><![CDATA[linkedin]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[Spyware]]></category>

		<guid isPermaLink="false">http://chirashi.zensay.com/?p=276</guid>
		<description><![CDATA[I have released the latest version of Kisses.  I promised everyone in my Hack In The Box presentation that I would release newer versions of the toolkit Bugs &#38; Kisses.  Today, I hopefully deliver on that promise.  As far as I&#8217;m aware, this tool is the first of its kind to be offered to BlackBerry [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignleft size-full wp-image-278" title="kisses" src="http://chirashi.zenconsult.net/wp-content/uploads/2009/10/kisses.png" alt="kisses" width="80" height="80" />I have released the latest version of <a href="http://kisses.zensay.com/" target="_blank">Kisses</a>.  I promised everyone in my <a href="http://chirashi.zensay.com/2009/08/im-speaking-at-hack-in-the-box-2009/" target="_blank">Hack In The Box</a> <a href="http://chirashi.zensay.com/resources" target="_blank">presentation</a> that I would release newer versions of the toolkit Bugs &amp; Kisses.  Today, I hopefully deliver on that promise.  As far as I&#8217;m aware, this tool is the first of its kind to be offered to BlackBerry users that is free.  In short, the tool detects hidden programs installed on your handheld.  If any are found, it allows you to reveal them so that you can remove them more easily.  If you recall the <a href="http://chirashi.zensay.com/2009/07/leaked-spyware-threat-to-security/" target="_blank">Etisalat fiasco</a>, their spyware tool would hide itself and make it very difficult for an average user to remove from his BlackBerry [<a href="http://chirashi.zensay.com/whitepapers" target="_blank">whitepaper here</a>].  With Kisses, you will be able to reveal such programs very easily.  Additionally, Kisses also shows you any hidden processes on your handheld.  It also allows you to drill down further into each program and reveal information about its vendor, download date/time, size and process id.</p>
<p>Before I released the tool, I had a lot of people asking me if it will detect the <a href="http://www.flexispy.com" target="_blank">FlexiSpy</a> program.  While I didn&#8217;t want to spend close to $200 just to find out if it does, I am very certain that Kisses can detect it.  How do I know? Because Kisses will probe 2 areas of your handheld:  1) All running processes belonging to all applications on your handheld 2) All installed applications regardless of whether they are hidden or not.  This gives you an idea of exactly what is running on your handheld at any one time.  By letting you drill down further, you can discover more details of each application module.  With these capabilities, you&#8217;re bound to find not only FlexiSpy, but other bits of spyware  or suspicious applications as well (provided an undiscovered variant exists).</p>
<p>This is a project I&#8217;m very keen in and will be actively pursuing its upkeep.  I have a whole list of enhancements and features to add to it.  You can check the <a href="http://kisses.zensay.com/" target="_blank">website</a> for updates.  Alternatively <a href="http://chirashi.zensay.com/feed" target="_blank">subscribing to this blog</a>, <a href="http://twitter.com/chopstick_">following me on twitter</a> or <a href="http://www.linkedin.com/in/sheran" target="_blank">LinkedIn</a> will also keep you updated.</p>
]]></content:encoded>
			<wfw:commentRss>http://chirashi.zenconsult.net/2009/10/kiss-your-blackberry-spyware-goodbye/feed/</wfw:commentRss>
		<slash:comments>15</slash:comments>
		</item>
		<item>
		<title>BlackBerry OS 5.0.0 knows what you install</title>
		<link>http://chirashi.zenconsult.net/2009/10/blackberry-os-5-0-0-knows-what-you-install/</link>
		<comments>http://chirashi.zenconsult.net/2009/10/blackberry-os-5-0-0-knows-what-you-install/#comments</comments>
		<pubDate>Sun, 25 Oct 2009 07:49:38 +0000</pubDate>
		<dc:creator></dc:creator>
				<category><![CDATA[BlackBerry]]></category>
		<category><![CDATA[linkedin]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[Spyware]]></category>

		<guid isPermaLink="false">http://chirashi.zensay.com/?p=268</guid>
		<description><![CDATA[I took a look at the new BlackBerry version 5.0.0 Operating System API.  RIM is offering the simulator and development kit as a Beta release and I think the OS has already been leaked online.  One excellent feature that RIM have added is the CodeModuleListener.  This interface allows a developer to design an application that [...]]]></description>
			<content:encoded><![CDATA[<p><img class="size-full wp-image-269 alignleft" title="topleft" src="http://chirashi.zenconsult.net/wp-content/uploads/2009/10/topleft.gif" alt="topleft" width="199" height="79" /></p>
<p>I took a look at the new BlackBerry version 5.0.0 Operating System API.  RIM is offering the simulator and development kit as a Beta release and I think <a href="http://crackberry.com/blackberry-os-leaks-galore-5-0-0-190-bold-and-8900-w-threaded-sms-5-0-0-154-storm-os-5-0-0-140-tour" target="_blank">the OS has already been leaked</a> online.  One excellent feature that RIM have added is the <a href="http://www.blackberry.com/developers/docs/5.0.0api/net/rim/device/api/system/CodeModuleListener.html" target="_blank"><em>CodeModuleListener</em></a>.  This interface allows a developer to design an application that knows when applications or modules are installed, deleted or scheduled for deletion on the handheld.  Its got three methods:</p>
<ol>
<li>moduleDeletionsPending()</li>
<li>modulesAdded()</li>
<li>modulesDeleted()</li>
</ol>
<p>Once implemented correctly, you can look at it like a security guard that sits in front of a room, guarding the door.  Nothing is allowed into or out of the room without the guard knowing.  Once the guard knows somethings coming in, he can call up central that tells him what to do next: block the entry, for example.</p>
<p>I plan on implementing this interface in my <a href="http://chirashi.zensay.com/resources">Kisses</a> application; most likely in a later release as most of my code is ready to go and I&#8217;m only testing things out right now.  Once completed, Kisses will not only be able to detect hidden processes and programs, but it will also be able to warn you when something is either being installed or removed from your handheld (that is, only if you have 5.0.0).  You can jury rig a similar set of functionality, but you&#8217;d have to write a lot of code for it and even then, it won&#8217;t be as real-time as using <em>CodeModuleListener</em> so I&#8217;m not going in that direction.</p>
<p>The trick is, that it can be a double-edged sword, though.  If an application can use this feature for good, then an application might be able to use this feature for evil purposes as well.  It requires a bit more research and I&#8217;ll share the results here.</p>
]]></content:encoded>
			<wfw:commentRss>http://chirashi.zenconsult.net/2009/10/blackberry-os-5-0-0-knows-what-you-install/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Remote Listening for the BlackBerry</title>
		<link>http://chirashi.zenconsult.net/2009/10/remote-listening-for-the-blackberry/</link>
		<comments>http://chirashi.zenconsult.net/2009/10/remote-listening-for-the-blackberry/#comments</comments>
		<pubDate>Thu, 22 Oct 2009 17:40:42 +0000</pubDate>
		<dc:creator></dc:creator>
				<category><![CDATA[BlackBerry]]></category>
		<category><![CDATA[Featured]]></category>
		<category><![CDATA[Bug]]></category>
		<category><![CDATA[Bugs and Kisses]]></category>
		<category><![CDATA[linkedin]]></category>
		<category><![CDATA[Listening Device]]></category>
		<category><![CDATA[Remote Listening]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[Spyware]]></category>

		<guid isPermaLink="false">http://chirashi.zensay.com/?p=260</guid>
		<description><![CDATA[I first blogged about PhoneSnoop, a component of Bugs, a few days ago.  PhoneSnoop demonstrates how a BlackBerry can be used to spy on its owner.  It cannot listen into phone conversations or conduct phone taps on BlackBerry handhelds at the moment.  It is, however, possible to add a feature that makes phone taps work.  [...]]]></description>
			<content:encoded><![CDATA[<p><img class="size-full wp-image-263 alignleft" title="bugs" src="http://chirashi.zenconsult.net/wp-content/uploads/2009/10/bugs.png" alt="bugs" width="80" height="80" /></p>
<p>I first blogged about <a href="http://chirashi.zensay.com/2009/10/phonesnoop-turn-a-blackberry-into-a-portable-bug/" target="_blank">PhoneSnoop</a>, a component of <a href="http://chirashi.zensay.com/resource">Bugs</a>, a few days ago.  PhoneSnoop demonstrates how a BlackBerry can be used to <a href="http://chirashi.zensay.com/2009/07/a-look-at-etisalats-blackberry-interceptor/">spy on its owner</a>.  It cannot listen into phone conversations or conduct phone taps on BlackBerry handhelds at the moment.  It is, however, possible to add a feature that makes phone taps work.  I have written <a href="http://chirashi.zensay.com/2009/10/the-theory-behind-blackberry-phone-taps/">more on how to tap phone calls here</a>.  FlexiSpy is offering this service in its new version.  Incidentally, <a href="http://chirashi.zensay.com/2009/10/the-anatomy-of-a-spyware-application-part-1/">I took apart FlexiSpy </a>and wrote a brief post on it.  While the BlackBerry remains one of the more secure devices out there, <a href="http://chirashi.zensay.com/2009/07/nevermind-the-software-get-educated/">user awareness and education</a> is paramount to remaining completely <a href="http://chirashi.zensay.com/2009/07/leaked-spyware-threat-to-security/">safe</a> from spyware.  I tweaked the application since my first post now allowing anyone to download, install and try it.  PhoneSnoop now has the ability for a user to customize the &#8216;trigger number&#8217;; rather than me having to give out customized versions.</p>
<p><strong><a href="http://www.zensay.com/PhoneSnoop.jad">Download PhoneSnoop</a> and take a look at the <a href="http://www.zenconsult.net/PhoneSnoop_Guide.pdf">User Guide</a></strong></p>
]]></content:encoded>
			<wfw:commentRss>http://chirashi.zenconsult.net/2009/10/remote-listening-for-the-blackberry/feed/</wfw:commentRss>
		<slash:comments>57</slash:comments>
		</item>
		<item>
		<title>How I tell my clients that XSS is bad</title>
		<link>http://chirashi.zenconsult.net/2009/09/how-i-tell-my-clients-that-xss-is-bad/</link>
		<comments>http://chirashi.zenconsult.net/2009/09/how-i-tell-my-clients-that-xss-is-bad/#comments</comments>
		<pubDate>Mon, 14 Sep 2009 06:28:22 +0000</pubDate>
		<dc:creator></dc:creator>
				<category><![CDATA[WebAppSec]]></category>
		<category><![CDATA[Cross site scripting]]></category>
		<category><![CDATA[linkedin]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[XSS]]></category>

		<guid isPermaLink="false">http://chirashi.zensay.com/?p=197</guid>
		<description><![CDATA[The mixed bag of reactions to XSS or Cross Site Scripting vulnerabilities is interesting to watch.  As a security professional, I’ve audited banking applications based on web technologies and have in all cases come away with at least one XSS vulnerability.  When presented to the client and to the vendor, I get some interesting reactions. [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignleft size-full wp-image-200" style="margin-right: 10px;" title="Bing" src="http://chirashi.zenconsult.net/wp-content/uploads/2009/09/Screen-shot-2009-09-14-at-12.26.17-PM.png" alt="Bing" width="308" height="142" />The mixed bag of reactions to XSS or Cross Site Scripting vulnerabilities is interesting to watch.  As a security professional, I’ve audited banking applications based on web technologies and have in all cases come away with at least one XSS vulnerability.  When presented to the client and to the vendor, I get some interesting reactions.</p>
<h3>“You can’t compromise an application using XSS”</h3>
<p>Before I open up this can of worms, I can tell you that both vendor and client have told me this.  I then try to explain to them how things are generally interwoven and connected to each other and how you CAN own an application through XSS if done in a correct manner.</p>
<p>With XSS, you usually end up owning the USER of the application and thus can build up on your attack.</p>
<h3>“You cannot alter any data using XSS”</h3>
<p>With a reflected XSS attack, yes, you cannot change any stored data on an application.  You can, however, change the User Interface significantly.  You can swap out an entire page using a reflected XSS attack to make a user think he is on another screen of the application.  Like the login page for example or injecting an iframe.  The only catch is that you have crafted this login page using HTML and JavaScript and have presented it to him as if it were part of the legitimate site.  The login form sends his password to a server you control, but nothing is altered on the application database to begin with.</p>
<p>In the above examples and all cases of XSS, one thing is common.  The scope of this vulnerability is confined to that of the application user.  You do not use XSS to attack the application directly.  You use it to attack the user and indirectly attack the application.  So an XSS is more comparable to a pseudo social-engineering attack where you are tricking the user into revealing his credentials (enter his password on a crafted password screen or stealing his cookie).</p>
<p>The easiest way I find to present an XSS vulnerability, even before I put it in a report, is to call all the project stakeholders into a room and demo it to them.  I tell them that I have some findings to share with them and would like a few minutes to show them a live demo.  I then load up the application page that they are all familiar with.  Open up my email client to a received message<strong>[1]</strong>, click on the XSS laden link<strong>[2]</strong> and show them a perfectly legitimate login screen of their application.  I log in using credentials I was given and then continue to access one of the application’s functions as normal.</p>
<p>After a few seconds, I stop and tell them that I was just a victim of an XSS attack.  Then I move into the technical details.  I find this approach to be quite effective<strong>[3]</strong>.  It raises awareness in a way that the client can relate to.  What they perceive to be a legitimate session turns out to be an attacker controlled phishing attack of sorts.</p>
<p><em>[1] I create this message and send it to myself to simulate a company employee receiving an email from another person.</em></p>
<p><em>[2] I sometimes obfuscate the link, but usually I use HTML mail to show them an underlined “Click Here” phrase when the actual link is a stager.  I send an include (hex encoded &lt;script src&gt; tag) to a remote JavaScript file that contains the code to render the fake login page.</em></p>
<p><em>[3] My setup includes a remote site under my control where I host the malicious, custom written JavaScript files.  I have a backend script to pick up the posted information and send me a neat little email containing the cookie (if any), username and password and some other relevant data.  If one of the executives has a connected laptop, I will invite him to try it himself.  In the early days, I would send the link out to all the application users first by spoofing an internal email.  Then, I’d compile a list of the users affected and share the information with the executives in the meeting.<br />
</em><br />
I’ve had more positive responses using this approach than trying to put it in the report only to have several opinions thrown back from the client and the vendor that show a lack of knowledge on the subject.</p>
<p>XSS attacks are very common and can be used to great effect.  I am not alone when I say that XSS is very badly misunderstood and the threat that it poses is often ignored.  I think a hands-on approach of this nature, even though it takes more time and effort, is worthwhile in spreading the word.  Sometimes, you just have to spend the effort to demo your vulnerabilities to put things into context.  Your clients will appreciate it and remember it more than just reading a report.</p>
]]></content:encoded>
			<wfw:commentRss>http://chirashi.zenconsult.net/2009/09/how-i-tell-my-clients-that-xss-is-bad/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Three reasons why you should segment your SCADA networks</title>
		<link>http://chirashi.zenconsult.net/2009/09/three-reasons-why-you-should-segment-your-scada-networks/</link>
		<comments>http://chirashi.zenconsult.net/2009/09/three-reasons-why-you-should-segment-your-scada-networks/#comments</comments>
		<pubDate>Thu, 10 Sep 2009 04:55:35 +0000</pubDate>
		<dc:creator></dc:creator>
				<category><![CDATA[SCADA]]></category>
		<category><![CDATA[linkedin]]></category>
		<category><![CDATA[security]]></category>

		<guid isPermaLink="false">http://chirashi.zensay.com/?p=194</guid>
		<description><![CDATA[The recent report on eWeek regarding how attackers managed to get a foot hold into an energy company through a phishing attack is not something new.  It is not magical because stuff like this happens elsewhere on a more frequent basis.  What makes this so noteworthy is the fact that the company was in control [...]]]></description>
			<content:encoded><![CDATA[<p>The recent <a href="http://www.eweek.com/c/a/Security/How-a-Phishing-Attack-Exposed-an-Energy-Company-to-Hackers-183328/" target="_blank">report on eWeek</a> regarding how attackers managed to get a foot hold into an energy company through a phishing attack is not something new.  It is not magical because stuff like this happens elsewhere on a more frequent basis.  What makes this so noteworthy is the fact that the company was in control of a nation’s critical infrastructure: its energy.  Also noteworthy is the fact that it was even reported.  This sort of thing is usually kept hushed.  That is until something <a href="http://www.computerworld.com/s/article/84510/Blaster_worm_linked_to_severity_of_blackout?taxonomyId=083" target="_blank">really</a> <a href="http://www.theregister.co.uk/2001/10/31/hacker_jailed_for_revenge_sewage/" target="_blank">bad</a> happens.</p>
<p>Now, onto the unsurprising stuff.  I’ve been onsite in Oil &amp; Gas exploration and production plants in the Middle East.  They’re quite impressive plants run with the strictest of controls and paramount importance given to health and safety.  As a security consultant, I was, however, appalled at the lack of security awareness the plant personnel have.  Understandably, this is to be expected.  The plant production teams have only one thing on the mind: ensure the plant functions and production is not hindered.  Availability is paramount.  Security is secondary.</p>
<p>In a SCADA* environment, there are two major domains.  The Production Domain is where you’ve got all your components like the Control System, Remote Terminal Units and/or Programmable Logic Controllers, communications network, Human Machine Interface and the Data gathering system.  The Enterprise Domain is where you have all your daily supporting infrastructure.  So your Microsoft Windows Domain, file servers, print servers, etc will reside here.  Your Internet connections will also reside here; so people can browse and check their email.</p>
<p><em>* I’m referring to SCADA here to encompass everything.  Including the DCS, RTUs/PLCs, HMIs, network, etc.</em></p>
<p>I don’t care what anyone says, these two domains need to be kept separate; at least until there is a much better understanding of the technology and security within the SCADA environment.  There should be no reason why the two have to ever touch.  Sadly, this is still something that has not begun to filter down to the various companies owning and operating such large scale critical infrastructures.  During my project in the middle of the desert, I had first hand experience where these two domains were hopelessly enmeshed.  As a matter of fact, I was there to separate the two domains by using a firewall. I collected a considerable amount of data.  A high percentage showed well known virus and worm activity on the network.  So here are the reasons why you should segment your SCADA networks.</p>
<p><span style="text-decoration: underline;">Reason 1: SCADA Computer systems run older patch levels of operating systems</span></p>
<p>SCADA system vendors design and develop their software based on a specific revision of an operating system.  If you are running different versions of the operating system, older or newer, they will refuse to support you.  Well, they will insist that you bring your OS revision down to the correct version before going any further.  This is not something uncommon, I’ve seen the same setup in the Banking industry where Internet Banking system or Core Banking system will depend on specific versions of Oracle or Tomcat.  If you run a different version the vendor says, “Well, we don’t really support that version.”</p>
<p>In most cases, vendors of such software will never be able to keep up with the incessant flood of updates and security patches to operating systems.  Bottom line, you will always be running an older version of an operating system which will be prone to publicly disclosed vulnerabilities.</p>
<p>By segmenting and keeping this set of unpatched systems away from the high-threat environment of the Internet is plain good sense.  Sure, its not the ideal situation (like having a patch management system in place), but its a start.</p>
<p><span style="text-decoration: underline;">Reason 2: SCADA system operators will not know not to click on that link in the email</span></p>
<p>Take the case in eWeek with the energy company.  One of the operators fell victim to an email asking him to click on the attachment.  As I stated before, the production or process team guys are only interested in production.  SCADA is a vast, specialized and complex subject.  You can spend quite a while studying its myriad of topics and subtopics.  The process team guys are not going to spend any extra time getting to know topics on information security.</p>
<p>I believe that there should be a security awareness project that is more or less entwined into the everyday lives of the operators &#8211; much like you have a health and safety program.  However, that’s a topic for another post.</p>
<p>Splitting the two areas will act as a barrier between a compromised operator’s PC and the sensitive production servers.</p>
<p><span style="text-decoration: underline;">Reason 3: The inconvenience provides a grounding on the topic of security</span></p>
<p>Having to shuttle between two PC’s to do ones job is a pain in the ass.  I’ve done it before.    Back when I was working at one of the Telecommunications providers we had a PC for the corporate network (no Internet access) and a PC that was capable of Internet access.  I still think that in my case it was stupid (although the corporate network never suffered any external attacks), but in a SCADA environment, it will give the operators an idea of how important it is to have distinct networks like this.  It sets the foundation for rolling out a SCADA security program.  (It really looks like I need to write that topic in the future.)</p>
<p>Lets face it, the vendors will care about security, but most likely not to an extent where it is attended to in minute detail.  Further, vendors doing security is usually a recipe for failure and a conflict of interest.  I’ve seen at least 7 banking systems fall victim to this.  You need to have your systems audited by a third party if you are to have a true picture of how capable you are of withstanding attacks.  Having said this, jumping in and hacking a live SCADA network is an even bigger recipe for disaster.  The approach to SCADA security should be a carefully built one.  I will cover more topics on this in a future post.</p>
]]></content:encoded>
			<wfw:commentRss>http://chirashi.zenconsult.net/2009/09/three-reasons-why-you-should-segment-your-scada-networks/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

