<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
    <title>Rory.Blog</title>
    <link rel="alternate" type="text/html" href="http://www.mccune.org.uk/blog/" />
    <link rel="self" type="application/atom+xml" href="http://www.mccune.org.uk/blog/atom.xml" />
    <id>tag:www.mccune.org.uk,2009-02-22:/blog//1</id>
    <updated>2010-07-17T16:50:39Z</updated>
    <subtitle>A weblog about things that Interest me, mostly Security with a little Networking a dash of IT and the odd Cat.</subtitle>
    <generator uri="http://www.sixapart.com/movabletype/">Movable Type 4.34-en</generator>

<entry>
    <title>Wireless Scanning and a new tool</title>
    <link rel="alternate" type="text/html" href="http://www.mccune.org.uk/blog/2010/07/wireless-scanni.html" />
    <id>tag:www.mccune.org.uk,2010:/blog//1.542</id>

    <published>2010-07-17T16:36:12Z</published>
    <updated>2010-07-17T16:50:39Z</updated>

    <summary>I had some cause to do some wireless work recently, which got me interested in doing some more war-walking (and hey, the weathers actually been nice enough to make it pleasant recently). It was interesting to see the density of...</summary>
    <author>
        <name>Rory2</name>
        <uri>http://www.mccune.org.uk</uri>
    </author>
    
    
    <content type="html" xml:lang="en" xml:base="http://www.mccune.org.uk/blog/">
        <![CDATA[<p>I had some cause to do some wireless work recently, which got me interested in doing some more war-walking (and hey, the weathers actually been nice enough to make it pleasant recently).</p>

<p>It was interesting to see the density of wireless networks in the suburban area near where I live, a quick 30 minute walk can easily pick up several hundred APs.  Also some of the stats on encryption were interesting with about 25% of networks either using WEP or having no encryption at all, so still rich pickings there for anyone who wants free access or to attack some home networks directly.</p>

<p>I also did a bit of scanning with my N900 in Glasgow, near the apple store and noticed they've got an awful lot of clients connected to their unencrypted wireless networks there (~ 260 client spread over 3 APs), hope everyone is using VPNs or SSL only sites ;op</p>

<p>Also couldn't find something to do the analysis the way I was looking for it, so I knocked up a quick script in ruby to analyse the .netxml output files from kismet.</p>

<p>It's available <a href="http://www.mccune.org.uk/code/kis_analysis.rb"> here </a> .  It needs ruby, rubygems and nokogiri to work.  worth noting that on linux installs you'll need some xml parsing libraries installed before installing nokogiri (libxslt libxml2 libxml2-dev)</p>

<p><br />
Basic syntax is very straightforward.</p>

<p>./kis_analysis.rb -f [netxml file] -r [report name]</p>

<p>you can add -g if you've got GPS data to add links from each network to a google maps point and -m to draw a map of all the networks seen.</p>

<p>Any feedback/comments welcome either on the blog or to rorym@nmrconsult.net</p>]]>
        
    </content>
</entry>

<entry>
    <title>Interesting Example of Cloud Computing Risks</title>
    <link rel="alternate" type="text/html" href="http://www.mccune.org.uk/blog/2010/05/interesting-exa.html" />
    <id>tag:www.mccune.org.uk,2010:/blog//1.540</id>

    <published>2010-05-19T20:01:56Z</published>
    <updated>2010-05-19T20:18:17Z</updated>

    <summary>One of the aspects of the move to cloud computing I find most interesting is the new and emergent risks that come with the move of services from a traditional networked IT environment, to being hosted &quot;out in the open&quot;...</summary>
    <author>
        <name>Rory2</name>
        <uri>http://www.mccune.org.uk</uri>
    </author>
    
    <category term="cloudcomputing" label="Cloud computing" scheme="http://www.sixapart.com/ns/types#tag" />
    
    <content type="html" xml:lang="en" xml:base="http://www.mccune.org.uk/blog/">
        <![CDATA[<p>One of the aspects of the move to cloud computing I find most interesting is the new and emergent risks that come with the move of services from a traditional networked IT environment, to being hosted "out in the open" of the cloud.  </p>

<p>Whilst attention gets paid to some of the technical risks, I don't think there's been a lot of focus on some of the more procedural/human aspects of it.</p>

<p>One example is the visibility/effect of configuration mistakes.  In a traditional IT environment, mistakes can be partially contained by the network perimeter (albeit that containment is usually weaker than it used to be).</p>

<p>If someone makes an access control change which allows anonymous access to data, that mistake is likely only to be exploitable and visible to a limited group of people.</p>

<p>With the move to Cloud computing though, that same mistake could be instantly visible to the whole world and all it's attacker communities.  </p>

<p>A really good example of this comes up in a vulnerability found by Jonathan Siegel (background story <a href="http://www.readwriteweb.com/cloud/2010/03/user-ignorance-causes-cloud-security-leak-accounts-passwords-revealed.php">here</a> and <a href="http://www.itworldcanada.com/news/cloud-consultant-wants-amazon-web-services-revamp/140391">here</a>).</p>

<p>In essence the problem seems to be that users of Amazon Web Services have made access control errors which set disk snapshots to be publicly available to everyone in a given region, and in the examples Jonathan gives this has included a database of user accounts for a web service and a full copy of a news services' web site.</p>

<p>So what would have likely been a relatively minor access control issue in an Internal network setup, becomes a situation where all the data in question should be considered compromised.<br />
</p>]]>
        
    </content>
</entry>

<entry>
    <title>Scottish Ruby Conference follow-up - 2 - Securing your app.</title>
    <link rel="alternate" type="text/html" href="http://www.mccune.org.uk/blog/2010/04/scottish-ruby-c-2.html" />
    <id>tag:www.mccune.org.uk,2010:/blog//1.539</id>

    <published>2010-04-01T19:05:02Z</published>
    <updated>2010-04-01T19:19:12Z</updated>

    <summary>Most of the questions I got after my talk were around how people can look to secure their application. I mentioned a couple of sites and it&apos;s probably worth expanding on the points made. Web Application Security For people looking...</summary>
    <author>
        <name>Rory2</name>
        <uri>http://www.mccune.org.uk</uri>
    </author>
    
        <category term="Ruby On Rails" scheme="http://www.sixapart.com/ns/types#category" />
    
        <category term="Software Security" scheme="http://www.sixapart.com/ns/types#category" />
    
    
    <content type="html" xml:lang="en" xml:base="http://www.mccune.org.uk/blog/">
        <![CDATA[<p>Most of the questions I got after my talk were around how people can look to secure their application.  I mentioned a couple of sites and it's probably worth expanding on the points made.</p>

<p><b> Web Application Security</b></p>

<p>For people looking to understand how to secure their web applications, in my opinion the best source of free information is the <a href="http://www.owasp.org">OWASP project</a> .  It's an umbrella for a number of web application security efforts.  </p>

<p>They've got a wide variety of projects which target management, security testers and developers, but some of the best places to start for developers are the <a href="http://www.owasp.org/index.php/Guide_Table_of_Contents">Owasp developers Guide</a> which covers a wide range of topics about secure development in a fairly generic way, and there's also the Ruby on Rails Security Guide <a href="http://www.owasp.org/index.php/Category:OWASP_Ruby_on_Rails_Security_Guide_V2"> here </a> or <a href="http://guides.rubyonrails.org/security.html">here</a> which covers rails specific topics.</p>

<p>Both of those documents are relatively large but well worth delving into.  For a quick few of the "most serious" web application security issues, OWASP also has the <a href="http://www.owasp.org/index.php/Category:OWASP_Top_Ten_Project">Top Ten project</a>.  The latest version, current in <a href="http://www.owasp.org/index.php/File:OWASP_T10_-_2010_rc1.pdf">RC1</a> has some good summaries of the top risks, and is a good place to start getting an idea of the areas to be addressed...</p>

<p><br />
  There's also a newish book dedicated to the topic of <a href="http://www.pragprog.com/titles/fr_secure/security-on-rails">security on rails</a>.  I picked up a copy at the conference (I'm a sucker for the O'Reilly stand!), so I've not had time to get all the way through it, but first impressions are that it'll be very good, with concrete examples of broken rails applications and how to fix them.</p>]]>
        
    </content>
</entry>

<entry>
    <title>Scottish Ruby Conference &amp; Breaking things with Ruby</title>
    <link rel="alternate" type="text/html" href="http://www.mccune.org.uk/blog/2010/03/scottish-ruby-c-1.html" />
    <id>tag:www.mccune.org.uk,2010:/blog//1.538</id>

    <published>2010-03-26T20:39:59Z</published>
    <updated>2010-03-26T21:10:00Z</updated>

    <summary>Just had the first day of the Scottish Ruby Conference. The venue was awesome, there&apos;ll doubtless be lots of good pictures up on places like flickr in due course, but here&apos;s a couple I snapped with my Nokia n900. The...</summary>
    <author>
        <name>Rory2</name>
        <uri>http://www.mccune.org.uk</uri>
    </author>
    
        <category term="Metasploit" scheme="http://www.sixapart.com/ns/types#category" />
    
    
    <content type="html" xml:lang="en" xml:base="http://www.mccune.org.uk/blog/">
        <![CDATA[<p>Just had the first day of the <a href="http://www.scottishrubyconference.com">Scottish Ruby Conference</a>.  The venue was awesome, there'll doubtless be lots of good pictures up on places like flickr in due course, but here's a couple I snapped with my Nokia n900. The three track rooms were the <a href="http://www.mccune.org.uk/presentations/src_conference_hall.png">Conference Hall</a>, the <a href="http://www.mccune.org.uk/presentations/src_great_hall.png">Great Hall</a> and my personal favourite <a href="http://www.mccune.org.uk/presentations/src_new_library"> the "new" library</a>.</p>

<p>The talks were interesting as always, personal highlight for me had to be Jim Weirich managing to go from particle physics to functional programming seamlessly in a single talk!</p>

<p>my talk was on breaking things with ruby and was a pretty quick look at the world of penetration testing and some of the cool projects (primarily Metasploit) which use ruby in this area. My slides can be found <a href="http://www.mccune.org.uk/presentations/breaking-things-with-ruby.pdf">here</a> and if people are interested in more information on the topics I covered here's some good linkage to start with.</p>

<p><strong><big>Metasploit</big></strong></p>

<p><a href="http://www.metasploit.com">The Main Metasploit Website</a> . This is the best place to start.  There's also a wiki and source code repository on their redmine site <a href="http://www.metasploit.com/redmine/projects/framework/">here</a></p>

<p><a href="http://www.offensive-security.com/metasploit-unleashed/">Metasploit Unleashed</a>. This is a free training course from Offensive Security which offers a good place to start with Metasploit, and covers a lot more ground than I could today.</p>

<p>Blog-wise there's a couple of places I consistently find good information on Metasploit.  <a href="http://carnal0wnage.attackresearch.com/">Carnal0wnage's blog</a> and the <a href="http://www.darkoperator.com/">Dark Operator</a> blogs have lots of posts on what can be done with Metasploit, as well as the <a href="http://blog.metasploit.com/">Official Metasploit Blog</a> of course.  </p>

<p>Also on twitter following <a href="http://twitter.com/hdmoore">@hdmoore</a>, <a href="http://twitter.com/carnal0wnage">@carnal0wnage</a> and <a href="http://twitter.com/egyp7">@egyp7</a> is a good place to start.</p>

<p>Lastly if anyone's looking for videos demonstrating Metasploit, there's quite a few on <a href="http://www.securitytube.net">Security Tube</a> amongst other places.</p>

<p><br />
</p>]]>
        
    </content>
</entry>

<entry>
    <title>Scottish Ruby Conference</title>
    <link rel="alternate" type="text/html" href="http://www.mccune.org.uk/blog/2010/02/scottish-ruby-c.html" />
    <id>tag:www.mccune.org.uk,2010:/blog//1.537</id>

    <published>2010-02-15T18:20:23Z</published>
    <updated>2010-02-15T18:24:59Z</updated>

    <summary>If you&apos;ve not already heard about it, the Scottish Ruby Conference is coming up in March in Edinburgh. There&apos;s a really interesting set of presentations lined up for this years conference, and the hardest thing, I reckon, will be picking...</summary>
    <author>
        <name>Rory2</name>
        <uri>http://www.mccune.org.uk</uri>
    </author>
    
    
    <content type="html" xml:lang="en" xml:base="http://www.mccune.org.uk/blog/">
        <![CDATA[<p>If you've not already heard about it, the <a href="http://scottishrubyconference.com/posts"> Scottish Ruby Conference </a> is coming up in March in Edinburgh.  There's a really interesting set of presentations lined up for this years conference, and the hardest thing, I reckon, will be picking between the three tracks!  </p>

<p>I've been very lucky to get my talk accepted for this years conference, so I'll be talking about "Breaking things with ruby".  It sits very nicely for me at the corner of two of my main computing interests.  Using ruby and ... well breaking stuff!</p>]]>
        
    </content>
</entry>

<entry>
    <title>Ruby SSL Checker</title>
    <link rel="alternate" type="text/html" href="http://www.mccune.org.uk/blog/2010/01/ruby-ssl-checke.html" />
    <id>tag:www.mccune.org.uk,2010:/blog//1.536</id>

    <published>2010-01-04T20:43:45Z</published>
    <updated>2010-01-05T18:08:54Z</updated>

    <summary>After reading a post by Gursev Kalra here, I decided to have a shot at putting together a slightly expanded version of his ssl Cipher suite checking code in ruby. I&apos;ve got it working reasonably well in my tests and...</summary>
    <author>
        <name>Rory2</name>
        <uri>http://www.mccune.org.uk</uri>
    </author>
    
    
    <content type="html" xml:lang="en" xml:base="http://www.mccune.org.uk/blog/">
        <![CDATA[<p>After reading a post by Gursev Kalra <a href="http://gursevkalra.blogspot.com/2009/09/ruby-and-openssl-based-ssl-cipher.html">here</a>, I decided to have a shot at putting together a slightly expanded version of his ssl Cipher suite checking code in ruby.</p>

<p>I've got it working reasonably well in my tests and it can chuck out reports in text and XML .  The code for the main script and a Metasploit module which does the same is <a href="http://wiki.mccune.org.uk/index.php/RubySSLChecker"> here</a>.  Any feedback/suggestions welcome :)</p>]]>
        
    </content>
</entry>

<entry>
    <title>Tools I use - Burp</title>
    <link rel="alternate" type="text/html" href="http://www.mccune.org.uk/blog/2010/01/tools-i-use---b.html" />
    <id>tag:www.mccune.org.uk,2010:/blog//1.535</id>

    <published>2010-01-04T19:14:25Z</published>
    <updated>2010-01-04T19:30:05Z</updated>

    <summary>I&apos;ve been meaning to do a post on burp for a while, and courtesy of my new years resolution to stop procrastinating, here it is :) I was thinking of a way to sum up burp, so far the best...</summary>
    <author>
        <name>Rory2</name>
        <uri>http://www.mccune.org.uk</uri>
    </author>
    
        <category term="Penetration Testing" scheme="http://www.sixapart.com/ns/types#category" />
    
        <category term="Web Security" scheme="http://www.sixapart.com/ns/types#category" />
    
    
    <content type="html" xml:lang="en" xml:base="http://www.mccune.org.uk/blog/">
        <![CDATA[<p>I've been meaning to do a post on <a href="http://portswigger.net/">burp</a> for a while, and courtesy of my new years resolution to stop procrastinating, here it is :)</p>

<p>I was thinking of a way to sum up burp, so far the best I've got is "If you're doing web application testing and not using Burp, you're missing out !", it is that useful...</p>

<p>Burp has been around for a while now as one of a group of handy web application proxy tools along with the likes of <a href="http://www.owasp.org/index.php/Category:OWASP_WebScarab_Project">Web Scarab</a> and <a href="http://www.parosproxy.org/download.shtml">Paros</a>.  Over time it's developed a huge range of handy features, which make web app. testing a lot more productive.</p>

<p>There's the basics, in terms of intercepting and modifying requests, which all the tools in this category tend to do quite well, but on top of that there's just loads of other things that Burp does. </p>

<p>The Web app scanner is a good targetable way to test for several types of common web app vulnerabilities.  As an add-on in the latest beta, there's a wizard which lets you reduce the number of requests that Burps going to make, by removing duplicates and similar requests.  If you've used many commercial web app. scanners you'll know that volume of requests generated can be a real problem, so anything that can help bring down the load is useful.</p>

<p>Another stand-out feature of Burp for me, is intruder which lets you pick a specific parameter or set of parameters from a request and easily modify them.  As an example pretty much every time I see a URL that looks like <b>request.asp?id=123</b> , it's going to be worth running burp Intruder over that parameter to see what pops up when you change that value.</p>

<p>One of the things I have found about burp is that it's easy to miss functions that are available and not get the best out of it.  Luckily there's a <a href="blog.portswigger.net">blog</a> which covers a lot of the new features as they come out.  Also I need to mention the Burp Tip of the Day series of posts on <a href="http://cktricky.blogspot.com/search?q=BTOD">Cktricky's blog</a> which has loads of good tips on getting more out of Burp.</p>]]>
        
    </content>
</entry>

<entry>
    <title>... And we&apos;re back</title>
    <link rel="alternate" type="text/html" href="http://www.mccune.org.uk/blog/2009/12/-and-were-back.html" />
    <id>tag:www.mccune.org.uk,2009:/blog//1.534</id>

    <published>2009-12-31T14:26:13Z</published>
    <updated>2009-12-31T14:59:55Z</updated>

    <summary>So, we&apos;re back from a bit of an unscheduled break for my web server. The hosting company had a bit of a problem with disks, so my VM has been out of action for a week or so. Luckily, my...</summary>
    <author>
        <name>Rory2</name>
        <uri>http://www.mccune.org.uk</uri>
    </author>
    
    
    <content type="html" xml:lang="en" xml:base="http://www.mccune.org.uk/blog/">
        <![CDATA[<p>So, we're back from a bit of an unscheduled break for my web server.  The hosting company had a bit of a problem with disks, so my VM has been out of action for a week or so.</p>

<p>Luckily, my backups worked pretty well so minimal content lost.  I'm using the rather unorthodox backup over SMTP, which seems to work pretty well for smaller files.  I knocked up a ruby class called <a href="http://wiki.mccune.org.uk/index.php/Ruby_Backup_Class">Rbackup</a> and just have a script running in cron nightly...</p>

<p>Actually had a trio of hardware failures over the festive period (2 hard disks and a graphics card), which just goes to show that checking backups (and restores!) is very important and not to be put off...</p>]]>
        
    </content>
</entry>

<entry>
    <title>Nokia N900 - Ultimate Hackers Phone?</title>
    <link rel="alternate" type="text/html" href="http://www.mccune.org.uk/blog/2009/12/nokia-n900---ul.html" />
    <id>tag:www.mccune.org.uk,2009:/blog//1.533</id>

    <published>2009-12-20T12:30:33Z</published>
    <updated>2009-12-20T12:44:39Z</updated>

    <summary>I got a Nokia N900 the other week and I&apos;ve started playing around with the software. At heart it runs Maemo Linux which is based on debian, so in theory any software that runs on debian should run on the...</summary>
    <author>
        <name>Rory2</name>
        <uri>http://www.mccune.org.uk</uri>
    </author>
    
    
    <content type="html" xml:lang="en" xml:base="http://www.mccune.org.uk/blog/">
        <![CDATA[<p>I got a <a href="http://europe.nokia.com/find-products/devices/nokia-n900#/main/landing"> Nokia N900</a> the other week and I've started playing around with the software.</p>

<p>At heart it runs <a href="http://www.maemo.org">Maemo Linux</a> which is based on debian, so in theory any software that runs on debian should run on the phone !</p>

<p>Also unlike other smart phones which can be coaxed into running linux, the N900 has a shell out of the box and getting root access just requires a package install and issuing the "sudo gainroot" command.</p>

<p>So far I've found the ssh client pretty handy, and openvpn is available in the maemo-testing repository for all your vpn needs.</p>

<p>In terms of the hardware it's got a variety of interfaces which could be pretty cool for hacking testing.  There's wifi and GPS for war-driving/walking and obviously having 3G data is pretty useful when out and about :)</p>

<p>Getting software to run on it, isn't always quite as straightforward as just apt-get, as the repositories don't have the breadth of the debian ones yet.  So if it's not already available in maemo-extras/testing/devel then cross-compiling is the way to go.</p>

<p>The Cross-compile environment is reasonably straightforward to get <a href="http://www.forum.nokia.com/info/sw.nokia.com/id/c05693a1-265c-4c7f-a389-fc227db4c465/Maemo_5_SDK.html">set-up</a> and there's instructions on the maemo wiki for <a href="http://wiki.maemo.org/Documentation/Maemo_5_Developer_Guide/Packaging,_Deploying_and_Distributing#Making_Application_Packages">packaging apps</a></p>

<p>So far I've ported nmap 5.00 across to it, and that runs just fine, kismet seems to run ok but the default console colours make it a bit unreadable, so more work there.</p>

<p>Ruby 1.8.7 is available in the repositories and I've had Metasploit running (albeit a bit slowly).</p>

<p>All in all it's definitely smarter than your average smart phone!</p>]]>
        
    </content>
</entry>

<entry>
    <title>OWASP Scotland - November Meeting</title>
    <link rel="alternate" type="text/html" href="http://www.mccune.org.uk/blog/2009/11/owasp-scotland-1.html" />
    <id>tag:www.mccune.org.uk,2009:/blog//1.532</id>

    <published>2009-11-19T20:14:19Z</published>
    <updated>2009-11-19T20:16:37Z</updated>

    <summary>OWASP Scotland November meeting is next Thursday, the 26th. We&apos;ve got something a bit different lined up with the main presentation being one on physical security and lock picking (hey if you can break into the server room and take...</summary>
    <author>
        <name>Rory2</name>
        <uri>http://www.mccune.org.uk</uri>
    </author>
    
    <category term="owaspscotland" label="OWASP Scotland" scheme="http://www.sixapart.com/ns/types#tag" />
    
    <content type="html" xml:lang="en" xml:base="http://www.mccune.org.uk/blog/">
        <![CDATA[<p>OWASP Scotland November meeting is next Thursday, the 26th.  We've got something a bit different lined up with the main presentation being one on physical security and lock picking (hey if you can break into the server room and take the box, who needs SQL injection ;oP )</p>

<p>More information <a href="http://www.owasp.org/index.php/Scotland#Local_News">here</a></p>]]>
        
    </content>
</entry>

<entry>
    <title>Tools I use - Dradis</title>
    <link rel="alternate" type="text/html" href="http://www.mccune.org.uk/blog/2009/10/tools-i-use---d.html" />
    <id>tag:www.mccune.org.uk,2009:/blog//1.530</id>

    <published>2009-10-28T20:43:57Z</published>
    <updated>2009-10-28T20:55:07Z</updated>

    <summary>I&apos;ve been using Dradis for a couple of months now. It&apos;s an interesting piece of software that&apos;s designed to help teams of people share information on penetration tests. That said I find it useful on the tests I do even...</summary>
    <author>
        <name>Rory2</name>
        <uri>http://www.mccune.org.uk</uri>
    </author>
    
        <category term="Penetration Testing" scheme="http://www.sixapart.com/ns/types#category" />
    
    
    <content type="html" xml:lang="en" xml:base="http://www.mccune.org.uk/blog/">
        <![CDATA[<p>I've been using <a href="http://dradisframework.org">Dradis</a> for a couple of months now.  It's an interesting piece of software that's designed to help teams of people share information on penetration tests.</p>

<p>That said I find it useful on the tests I do even when I work alone.</p>

<p>Essentially Dradis provides the base environment for users to work in, either from the command line or the <a href="http://rubyonrails.org/">rails</a> based web interface, and then pretty much lets them get on with it, so it can be a bit difficult to work out how you want to use it at first, but once you get used to it it's very handy!</p>

<p>What I've done is started to create templates for information that I need to collect during a test and areas to review, that way it reduces the number of times I get into writing the report and realised I've missed something ;o). Once you create the tree structure in Dradis, containing any information you want,  you can export it as a single file and then re-use it as a template on future tests (for example one for web application tests, one for infrastructure etc)</p>

<p>you can also import information from other tools (nmap, nikto, nessus and burp at the moment) into Dradis, meaning you've got a single place to view all the information relating to the test.</p>

<p>It's well worth a look, as it's under active development there are new features coming pretty frequently.  Also there are guides on the site for prospective developers and as it's all done in ruby it's nice and easy to start coding for!</p>]]>
        
    </content>
</entry>

<entry>
    <title>OWASP Scotland - September Meeting</title>
    <link rel="alternate" type="text/html" href="http://www.mccune.org.uk/blog/2009/09/owasp-scotland.html" />
    <id>tag:www.mccune.org.uk,2009:/blog//1.528</id>

    <published>2009-09-11T09:26:07Z</published>
    <updated>2009-09-11T09:31:48Z</updated>

    <summary>The OWASP Scotland september meeting is all set for Tuesday the 15th of September. We&apos;ve got three good speakers lined up so, it&apos;s shaping up to be a good meeting. More details here . Meeting is open to all, but...</summary>
    <author>
        <name>Rory2</name>
        <uri>http://www.mccune.org.uk</uri>
    </author>
    
    
    <content type="html" xml:lang="en" xml:base="http://www.mccune.org.uk/blog/">
        <![CDATA[<p>The OWASP Scotland september meeting is all set for Tuesday the 15th of September.  </p>

<p>We've got three good speakers lined up so, it's shaping up to be a good meeting.</p>

<p>More details <a href="http://www.owasp.org/index.php/Scotland#September_Chapter_Meeting"> here </a> .  Meeting is open to all, but if you're planning to come along, please RSVP to me at <a href="mailto:rorym@nmrconsult.net">this address</a>, so we can get an idea of numbers.</p>]]>
        
    </content>
</entry>

<entry>
    <title>Testing SNMPv3</title>
    <link rel="alternate" type="text/html" href="http://www.mccune.org.uk/blog/2009/08/testing-snmpv3.html" />
    <id>tag:www.mccune.org.uk,2009:/blog//1.527</id>

    <published>2009-08-26T10:50:43Z</published>
    <updated>2009-08-26T15:43:45Z</updated>

    <summary>After encountering some SNMPv3 servers recently and looking into the differences from a pen. test perspective, I thought it may be worth a quick write-up. SNMPv1 and v2 do not respond when traffic is sent their way unless there is...</summary>
    <author>
        <name>Rory2</name>
        <uri>http://www.mccune.org.uk</uri>
    </author>
    
        <category term="Penetration Testing" scheme="http://www.sixapart.com/ns/types#category" />
    
    
    <content type="html" xml:lang="en" xml:base="http://www.mccune.org.uk/blog/">
        <![CDATA[<p>After encountering some SNMPv3 servers recently and looking into the differences from a pen. test perspective, I thought it may be worth a quick write-up.</p>

<p>SNMPv1 and v2 do not respond when traffic is sent their way unless there is a valid community string in the message, a fact used by scanners like <a href="http://labs.portcullis.co.uk/application/onesixtyone/"> onesixtyone </a>.  So traditionally the theory is unless there's a known community string, the service running has a vulnerability or you can get in-line to sniff traffic, there's not a lot to get from SNMP services.</p>

<p>Turns out that SNMPv3 behaves differently from v1 and v2.  Firstly the notion of using community strings for authentication is gone, replaced by username/passwords.  Second the traffic can be encrypted to limit sniffing opportunites.</p>

<p>However it's not all bad from a testers perspective! unlike earlier versions SNMPv3 will respond to correctly formatted requests and provide some information about itself as part of the reply.  This allows confirmation of the servers existence.</p>

<p>To get these responses there's a couple of different tools we can use.  <a href="http://nmap.org/">Nmap</a> with version detection will confirm that a SNMPv3 service is running and looking at the traffic in wireshark <span class="mt-enclosure mt-enclosure-image" style="display: inline;"><img alt="wireshark-nmap-snmpv3.png" src="http://www.mccune.org.uk/blog/wireshark-nmap-snmpv3.png" width="866" height="802" class="mt-image-center" style="text-align: center; display: block; margin: 0 auto 20px;" /></span></p>

<p>From this there's a couple of interesting pieces of information.  The Engine Enterprise ID field seems to identify the server type that's running, net-snmp in this case and the msgAuthoritativeEngineTime parameter shows the time in seconds since the service was started (according to <a href="http://www.cisco.com/web/about/ac123/ac147/archived_issues/ipj_1-3/snmpv3.html"> this page</a> ).</p>

<p>In addition to using nmap, it's possible to use the inbuilt snmp tools to get some information out of the service including possible username enumeration and brute-force password attacks.</p>

<p>Issuing the snmpwalk command with an invalid username like so:</p>

<p><b>snmpwalk -v 3 -n '' -l noAuthNoPriv -u "invaliduser" 192.168.207.142 IF-MIB::ifName</b></p>

<p>provides the response <b><i>snmpwalk: Unknown user name</i></b></p>

<p>but if we use a valid username and no password like so: </p>

<p><b>snmpwalk -v 3 -n '' -l noAuthNoPriv -u "snmpUser" 192.168.207.142 IF-MIB::ifName</b></p>

<p>we get <b><i>Error in packet. Reason: authorizationError (access denied to that object)</i></b></p>

<p>So it's possible by parsing responses to figure out valid usernames for the service. </p>

<p><b>Update : </b>  Here's a ruby script (should work on linux with snmp tools and ruby installed) which iterates over a list of usernames and a list of IPs and attempts to guess whether the username is valid or not <a href="http://www.mccune.org.uk/code/snmpv3enum.rb">snmpv3enum.rb</a></p>

<p>A similar technique works with specification of passwords which would allow for brute-forcing those as well, (although that said the snmp tools try to stop people choosing passwords less than 8 characters, so unless a dictionary word is used it isn't too likely to be successful.</p>

<p>Additionally for people who're fond of metasploit, I've knocked up a very basic SNMPv3 scanner.  At the moment all it does it take a range of IP addresses and say whether a valid SNMPv3 packet provokes a response from the server, but could be handy.  it's <a href="http://www.mccune.org.uk/code/snmpv3.rb">here</a>.</p>

<p>There's some good references on setting up and using SNMPv3 <a href="http://www.sysadmin.md/snmpv3-users-cheatsheet.html">here</a>, <a href="http://tomclegg.net/snmpv3-cacti">here</a> and <a href="http://wmunguiam.blogspot.com/2009/07/howto-use-snmpv3-ubuntu.html">here</a>.</p>]]>
        
    </content>
</entry>

<entry>
    <title>Defcon 17</title>
    <link rel="alternate" type="text/html" href="http://www.mccune.org.uk/blog/2009/08/defcon-17.html" />
    <id>tag:www.mccune.org.uk,2009:/blog//1.526</id>

    <published>2009-08-09T15:07:38Z</published>
    <updated>2009-08-09T15:59:36Z</updated>

    <summary>So I got across to Defcon this year (and of course security Bsides) There were several interesting presentations , here&apos;s some notes on some of the ones that I got along to. The CD is up at defcon.org, and you...</summary>
    <author>
        <name>Rory2</name>
        <uri>http://www.mccune.org.uk</uri>
    </author>
    
        <category term="Penetration Testing" scheme="http://www.sixapart.com/ns/types#category" />
    
    
    <content type="html" xml:lang="en" xml:base="http://www.mccune.org.uk/blog/">
        <![CDATA[<p>So I got across to Defcon this year (and of course security Bsides)</p>

<p>There were several interesting presentations , here's some notes on some of the ones that I got along to.  The CD is up at <a href="https://media.defcon.org/dc-17/DEFCON-17-CD.rar">defcon.org</a>, and you can get the slides for most of the presentations there.</p>

<p>SSL Talks - There were several presentations on ways to bypass or subvert SSL. From my point of view the drive was around 2 themes.  The difficulty in correctly parsing SSL certs due to the complexity of the relevant RFCs and also the weaknesses in the issuing processes of some CAs (which is exacerbated by the fact that any CA can issue a "valid" cert. for any domain).  Dan Kaminsky's white paper on the subject is <a href="http://www.ioactive.com/pdfs/PKILayerCake.pdf"> here</a>, Moxie's blackhat presentation is <a href="http://tinyurl.com/nyh462"> here </a> and Michael Zusmans' blackhat presentation is <a href="http://tinyurl.com/ll5nlq">here</a> (the defcon presentations are on the CD linked above).</p>

<p>Metasploit - The Metasploit team had a whole track to themselves on Saturday and there's a load of interesting stuff in there, basically looks like Metasploit will have some coverage for most types of assessment eventually, which is very handy!</p>

<p>Egypts presentation on client-side attacks with Metasploit had some great content on browser fingerprinting (not just relying on User-Agent) and client side attacks with Metasploit.</p>

<p>The Oracle presentation from mc and Chris Gates  had some good content on going through the steps of an Oracle attack purely using Metasploit (more information on this on CG's <a href="http://carnal0wnage.attackresearch.com">blog</a></p>

<p>Druid had a good talk on the war-dialer that he's added to the framework (unfortunately the slides for that one aren't on the CD, but I'd guess that they'll be around soon). Another interesting thing in the Metasploit track was the demos of the Mac OSX and POSIX versions of meterpreter which are both in active development.</p>

<p>Other Ruby Tools - There was a bit of a theme of ruby tools across some of the presentations.  In addition to all the Metasploit stuff, there was a mobile device fuzzer (although the website for it, www.fuzzit.com isn't up yet).  Also there was a good presentation on <a href="http://dradisframework.org"> Dradis </a>from etd , which is a Pen test management and reporting tool written in Ruby and Rails.</p>

<p>Password Cracking - There was a good presentation, from Matt Weir,  on approaches to password cracking, speeding up brute-force attacks and picking good dictionary files .  There's more informaton on this one on his <a href="http://reusablesec.blogspot.com/"> blog </a> as well as on the presentation slides.</p>

<p>Router Hacking - FX had some more information on how to create reliable exploits on Cisco devices and the difficulties in doing so (amazing to think that Cisco Maintain thousands of discreete monolithic router builds!).  Slides from the Blackhat presentation are <a href="http://www.blackhat.com/presentations/bh-usa-09/LINDNER/BHUSA09-Lindner-RouterExploit-SLIDES.pdf"> here</a> and White paper <a href="http://www.blackhat.com/presentations/bh-usa-09/LINDNER/BHUSA09-Lindner-RouterExploit-PAPER.pdf"> here </a> </p>

<p>USB Hacking - Interesting presentation from a guy from <a href="http://labs.mwrinfosecurity.com/">MWR </a> on how they approached an assignment to assess the security of a USB device and the approaches to fuzzing that they took.  Slides are up on their site <a href="http://labs.mwrinfosecurity.com/files/Publications/mwri_usb-attacks-defcon17_2009-08-02.pdf"> here </a></p>]]>
        
    </content>
</entry>

<entry>
    <title>Preparing for Defcon</title>
    <link rel="alternate" type="text/html" href="http://www.mccune.org.uk/blog/2009/07/preparing-for-d.html" />
    <id>tag:www.mccune.org.uk,2009:/blog//1.525</id>

    <published>2009-07-26T17:45:50Z</published>
    <updated>2009-07-26T17:59:22Z</updated>

    <summary>So I&apos;m off to Defcon and security BSides next week, and I thought a couple of precautions were in order before I go... 1. Tunnel all traffic through SSH to a trusted host, instructions here 2. Set iptables up to...</summary>
    <author>
        <name>Rory2</name>
        <uri>http://www.mccune.org.uk</uri>
    </author>
    
    
    <content type="html" xml:lang="en" xml:base="http://www.mccune.org.uk/blog/">
        <![CDATA[<p>So I'm off to <a href="http://www.defcon.org/html/defcon-17/dc-17-index.html"> Defcon </a>and <a href="http://www.securitybsides.com/BSidesLasVegas">security BSides</a> next week, and I thought a couple of precautions were in order before I go...</p>

<p>1. Tunnel all traffic through SSH to a trusted host, instructions <a href="http://wiki.freaks-unidos.net/weblogs/azul/firefox-ssh-tunnel">here</a><br />
2. Set iptables up to explicitly deny any traffic not travelling through the tunnel<br />
3. Turn off any vaguely network related features on my iPhone!</p>]]>
        
    </content>
</entry>

</feed>
