<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:iweb="http://www.apple.com/iweb" version="2.0">
  <channel>
    <title>Jason M Oliver&#13;&#13;Hello&#13;</title>
    <link>http://www.blackhat.org/JSN/Blog/Blog.html</link>
    <description>My name is Jason. This is where I share my ideas and hyperlinks. I'm a security evangelist, technology innovator, Chickasaw Indian, former DJ, and health enthusiast. &lt;br/&gt;Thanks for visiting.</description>
    <generator>iWeb 3.0.4</generator>
    <item>
      <title>GUI Risk Stats</title>
      <link>http://www.blackhat.org/JSN/Blog/Entries/2012/4/11_GUI_Risk_Stats.html</link>
      <guid isPermaLink="false">e1b2c8f6-eb99-4eb3-ad50-40c3f4092008</guid>
      <pubDate>Wed, 11 Apr 2012 22:33:59 -0400</pubDate>
      <description>&lt;a href=&quot;http://www.blackhat.org/JSN/Blog/Entries/2012/4/11_GUI_Risk_Stats_files/droppedImage.jpg&quot;&gt;&lt;img src=&quot;http://www.blackhat.org/JSN/Blog/Media/object000_2.jpg&quot; style=&quot;float:left; padding-right:10px; padding-bottom:10px; width:251px; height:188px;&quot;/&gt;&lt;/a&gt;I have been playing with gnuplot for about a day and I have to say its a lot of fun and can be complex. So far I have been able to generate some decent pictures of data for reports and such but I hope in the future this idea will get far more complex.&lt;br/&gt;&lt;br/&gt;As of now I have attached a beta stats file for outputting .nessus files into tab delimited summery data for parsing with gnuplot.&lt;br/&gt;&lt;br/&gt;I started out with the following two graphs I thought I would share they are both vuln data for the top 20 hosts based on over all CVSS score.&lt;br/&gt;&lt;br/&gt;To get the data from the tool output to a parsable format that is sorted I use the following commands&lt;br/&gt;&lt;br/&gt;java XMLVulnStatsTab TestTab.out *.nessus&lt;br/&gt;&lt;br/&gt;head -n 1 TestTab.out | awk -F '\t' '{print $1&amp;quot;\t&amp;quot;$3&amp;quot;\t&amp;quot;$4&amp;quot;\t&amp;quot;$5&amp;quot;\t&amp;quot;$6}' &gt; TestDataWithTabs20Vuln.dat; awk -F '\t' '{print $2&amp;quot;\t&amp;quot;$1&amp;quot;\t&amp;quot;$3&amp;quot;\t&amp;quot;$4&amp;quot;\t&amp;quot;$5&amp;quot;\t&amp;quot;$6}' TestTab.out | sort -g -r | head -n 20 | awk -F '\t' '{print $2&amp;quot;\t&amp;quot;$3&amp;quot;\t&amp;quot;$4&amp;quot;\t&amp;quot;$5&amp;quot;\t&amp;quot;$6}' &gt;&gt; TestDataWithTabs20Vuln.dat&lt;br/&gt;&lt;br/&gt;At this point you should have the Top 20 data to play with;&lt;br/&gt;&lt;br/&gt;A side not at this point you can get gnuplot for Mac in Macports &lt;br/&gt;&lt;br/&gt;port install gnuplot &lt;br/&gt;&lt;br/&gt;After you have gnuplot all setup and running use the following command set for the reports&lt;br/&gt;&lt;br/&gt;#Top 20 Cluster Chart&lt;br/&gt;&lt;br/&gt;set style data histogram&lt;br/&gt;set style histogram cluster gap 1&lt;br/&gt;set xtics rotate&lt;br/&gt;set style fill solid border rgb &amp;quot;black&amp;quot;&lt;br/&gt;set auto x &lt;br/&gt;set yrange [0:*]&lt;br/&gt;plot &amp;quot;TestDataWithTabs20Vuln.dat&amp;quot; using 3:xticlabels(1) title col lc rgb &amp;quot;purple&amp;quot;, &amp;quot;TestDataWithTabs20Vuln.dat&amp;quot; using 4:xticlabels(1) title col lc rgb &amp;quot;red&amp;quot;, &amp;quot;TestDataWithTabs20Vuln.dat&amp;quot; using 5:xticlabels(1) title col lc rgb &amp;quot;yellow&amp;quot;, &amp;quot;TestDataWithTabs20Vuln.dat&amp;quot; using 6:xticlabels(1) title col lc rgb &amp;quot;green&amp;quot;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;or&lt;br/&gt;&lt;br/&gt;#Top 20 Row Chart with CVSS Total Score&lt;br/&gt;set style data histogram&lt;br/&gt;set style histogram rows gap 1&lt;br/&gt;set xtics rotate&lt;br/&gt;set style fill solid border rgb &amp;quot;black&amp;quot;&lt;br/&gt;set auto x &lt;br/&gt;set yrange [0:*]&lt;br/&gt;&lt;br/&gt;plot &amp;quot;TestDataWithTabs20Vuln.dat&amp;quot; using 2:xticlabels(1) title col with linespoints pointtype 5, &amp;quot;TestDataWithTabs20Vuln.dat&amp;quot; using 6:xticlabels(1) title col lc rgb &amp;quot;green&amp;quot;, &amp;quot;TestDataWithTabs20Vuln.dat&amp;quot; using 5:xticlabels(1) title col lc rgb &amp;quot;yellow&amp;quot;, &amp;quot;TestDataWithTabs20Vuln.dat&amp;quot; using 4:xticlabels(1) title col lc rgb &amp;quot;red&amp;quot;, &amp;quot;TestDataWithTabs20Vuln.dat&amp;quot; using 3:xticlabels(1) title col lc rgb &amp;quot;purple&amp;quot;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;Any way, I expect this to get more complex as I start to get use to the tool but for one day of playing (and its been a lot of fun) this seems like it will be a handy way to put a nice spin on my report data and add some color.&lt;br/&gt;&lt;br/&gt;If you have any reports you find interesting with this data - plz add them to the thread&lt;br/&gt;&lt;br/&gt;cheers&lt;br/&gt;&lt;br/&gt;JSN&lt;br/&gt;</description>
      <enclosure url="http://www.blackhat.org/JSN/Blog/Entries/2012/4/11_GUI_Risk_Stats_files/droppedImage.jpg" length="21107" type="image/jpeg"/>
    </item>
    <item>
      <title>Geektools - Mac</title>
      <link>http://www.blackhat.org/JSN/Blog/Entries/2012/4/6_Geektools_-_Mac.html</link>
      <guid isPermaLink="false">bcb154a4-dd04-42e8-9f77-abc5c66e7712</guid>
      <pubDate>Fri, 6 Apr 2012 16:02:05 -0400</pubDate>
      <description>&lt;a href=&quot;http://www.blackhat.org/JSN/Blog/Entries/2012/4/6_Geektools_-_Mac_files/droppedImage.jpg&quot;&gt;&lt;img src=&quot;http://www.blackhat.org/JSN/Blog/Media/object001_1.jpg&quot; style=&quot;float:left; padding-right:10px; padding-bottom:10px; width:254px; height:188px;&quot;/&gt;&lt;/a&gt;This is something I have been playing with on my Mac hosts to just keep an eye on the event logs that no one reads. You will need to install Geektool  from the App Store (its free) &lt;br/&gt;&lt;br/&gt;http://itunes.apple.com/us/app/geektool/id456877552?mt=12&lt;br/&gt;&lt;br/&gt;----&lt;br/&gt;&lt;br/&gt;Security Log Parse (aka Attack Tripwire)&lt;br/&gt;&lt;br/&gt;Just add the following command in as an shell Geeklet&lt;br/&gt;&lt;br/&gt;echo &amp;quot;Who is online:&amp;quot; ; who ; echo ''; echo 'Active Screen Sessions:'; screen -wls | awk -F 'in' '{print $1}'; echo ''; echo 'Failed Authentication:' ; grep 'Failed to authenticate user' /var/log/secure.log| awk -F ':' '{print $1&amp;quot;:&amp;quot;$2&amp;quot;&amp;quot;$4}' | awk -F '(' '{print $1}' | sort | uniq -c; grep 'authentication error' /var/log/secure.log| awk -F ':' '{print $1&amp;quot;:&amp;quot;$2$6}' | sed 's/authentication error for //g' | sort | uniq -c&lt;br/&gt;&lt;br/&gt;or if your getting a lot you can trim it to only alerts from the current month&lt;br/&gt;&lt;br/&gt;echo &amp;quot;Who is online:&amp;quot; ; who ; echo ''; echo 'Active Screen Sessions:'; screen -wls | awk -F 'in' '{print $1}'; echo ''; echo 'Failed Authentication:'; i=$(date +&amp;quot;%b&amp;quot;); grep 'Failed to authenticate user' /var/log/secure.log| awk -F ':' '{print $1&amp;quot;:&amp;quot;$2&amp;quot;&amp;quot;$4}' | awk -F '(' '{print $1}' | sort | uniq -c | grep $i; grep 'authentication error' /var/log/secure.log| awk -F ':' '{print $1&amp;quot;:&amp;quot;$2$6}' | sed 's/authentication error for //g' | sort | uniq -c | grep $i&lt;br/&gt;&lt;br/&gt;This little script is good for in cafes or offices etc to see if someone it trying to log into your computer and what address they source from. Also it lists the active sessions on your machine.&lt;br/&gt;&lt;br/&gt;*Note: The formatting of the awk may need adjusted if your not using Lion&lt;br/&gt;&lt;br/&gt;Anyway just a fun little idea I had when I was sitting around today - enjoy and cheers&lt;br/&gt;&lt;br/&gt;JSN&lt;br/&gt;</description>
      <enclosure url="http://www.blackhat.org/JSN/Blog/Entries/2012/4/6_Geektools_-_Mac_files/droppedImage.jpg" length="52946" type="image/jpeg"/>
    </item>
    <item>
      <title>Risk Stats V3</title>
      <link>http://www.blackhat.org/JSN/Blog/Entries/2012/3/29_Risk_Stats_V3.html</link>
      <guid isPermaLink="false">93b2b56f-783c-4e05-be65-380866859eda</guid>
      <pubDate>Thu, 29 Mar 2012 02:20:04 -0400</pubDate>
      <description>&lt;a href=&quot;http://www.blackhat.org/JSN/Blog/Entries/2012/3/29_Risk_Stats_V3_files/droppedImage.jpg&quot;&gt;&lt;img src=&quot;http://www.blackhat.org/JSN/Blog/Media/object000_3.jpg&quot; style=&quot;float:left; padding-right:10px; padding-bottom:10px; width:251px; height:188px;&quot;/&gt;&lt;/a&gt;Ok - I had an interesting idea to put in some summery data into this report so it ended in a rev 3&lt;br/&gt;&lt;br/&gt;Now when you run XMLVulnStatsV3 you will get two extra tables at the bottom with the risk chart. One has summery data on how many unique hosts were scanned and how many failed authentication. Also the items that failed auth are now highlighted pink in the report.&lt;br/&gt;&lt;br/&gt;Additionally you get a list of the hosts with OS that failed authentication. Note that this process supports rescans in the set so if you scan a machine 4 times and one authenticated it will not show up in the final list of hosts with failed auth.&lt;br/&gt;&lt;br/&gt;Additional data on the core source is below.&lt;br/&gt;&lt;br/&gt;---&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;The first version of the script XMLVulnStats.java will work from a .nessus file or multiple .nessus files and give you the following summery data - this script requires Excel to do some of the front end math. Due to the use of Excel the impact levels can be modified after the fact to gain more accurate results.&lt;br/&gt;&lt;br/&gt;The command-line works as follows: &lt;br/&gt;java XMLVulnStatsV3 Output.xls *.nessus&lt;br/&gt;&lt;br/&gt;The output will be a table with the following columns&lt;br/&gt;&lt;br/&gt;	•	 IP Address&lt;br/&gt;	•	 Total CVSS Count - This totals the CVSS score for all Vulns on the Host&lt;br/&gt;	•	 Critical Count&lt;br/&gt;	•	 High Count&lt;br/&gt;	•	 Medium Count&lt;br/&gt;	•	 Low Count&lt;br/&gt;	•	 None Count&lt;br/&gt;	•	 Host Criticality - Adjustable figure between 100-1000 ranking hosts&lt;br/&gt;	•	 Risk Score - Total CVSS * Host Criticality&lt;br/&gt;	•	 Total Vuln - Total of Critical, High, Med, Low Vulns&lt;br/&gt;	•	 Average CVSS&lt;br/&gt;	•	Scan Depth&lt;br/&gt;&lt;br/&gt;Additionally you will get an Average System Risk Level calculation based on the averages for all hosts.&lt;br/&gt;&lt;br/&gt;Note that you will need to set the Host Criticality for your system after the script is run based on system knowledge. In the Federal / NIST space I have been using a spread based on the FIPS 199 level (i.e. if its a moderate system hosts are ranked between 400-600 based on impact, workstations 400, domain controllers 600, etc)&lt;br/&gt;&lt;br/&gt;Hope you all are having fun with the data - any ideas send them my way.&lt;br/&gt;&lt;br/&gt;cheers&lt;br/&gt;&lt;br/&gt;JSN&lt;br/&gt;&lt;br/&gt;</description>
      <enclosure url="http://www.blackhat.org/JSN/Blog/Entries/2012/3/29_Risk_Stats_V3_files/droppedImage.jpg" length="21107" type="image/jpeg"/>
    </item>
    <item>
      <title>Download All Nessus Reports at Command-line</title>
      <link>http://www.blackhat.org/JSN/Blog/Entries/2012/2/22_Download_All_Nessus_Reports_at_Command-line.html</link>
      <guid isPermaLink="false">ceabc1c1-758e-41eb-8ca5-085a2a21d34d</guid>
      <pubDate>Wed, 22 Feb 2012 23:33:28 -0500</pubDate>
      <description>&lt;a href=&quot;http://www.blackhat.org/JSN/Blog/Entries/2012/2/22_Download_All_Nessus_Reports_at_Command-line_files/droppedImage.png&quot;&gt;&lt;img src=&quot;http://www.blackhat.org/JSN/Blog/Media/object007_1.png&quot; style=&quot;float:left; padding-right:10px; padding-bottom:10px; width:250px; height:202px;&quot;/&gt;&lt;/a&gt;So I have a lot of Nessus scan files and have been looking for a quick way to download all of the reports in Nessus V2 format for processing; I found this to be the simple way - if you put all 3 lines into a shell script even simpler.&lt;br/&gt;&lt;br/&gt;token=&amp;quot;$(/opt/local/bin/wget --no-check-certificate --post-data 'login=userIDn&amp;amp;password=password' &lt;a href=&quot;https://127.0.0.1:8834/login&quot;&gt;https://127.0.0.1:8834/login&lt;/a&gt; -O - | grep '&amp;lt;token&gt;' | sed 's/&amp;lt;contents&gt;&amp;lt;token&gt;//g' | sed 's/&amp;lt;\/token&gt;&amp;lt;user&gt;//g')&amp;quot;&lt;br/&gt;&lt;br/&gt;/opt/local/bin/wget --post-data &amp;quot;token=$token&amp;quot; --no-check-certificate &lt;a href=&quot;https://127.0.0.1:8834/report/list&quot;&gt;https://127.0.0.1:8834/report/list&lt;/a&gt; -O - | grep 'name' | sed 's/&amp;lt;name&gt;//g' | sed 's/&amp;lt;\/name&gt;//g' &gt; reports&lt;br/&gt;&lt;br/&gt;for i in $(cat reports); do /opt/local/bin/wget --post-data &amp;quot;token=$token&amp;amp;report=$i&amp;quot; --no-check-certificate &lt;a href=&quot;https://127.0.0.1:8834/file/report/download&quot;&gt;https://127.0.0.1:8834/file/report/download&lt;/a&gt; -O - &gt; $i.nessus; done;&lt;br/&gt;&lt;br/&gt;You will need to swap out the userID and password for your local Nessus User ID and Password - but there you go a few lines and you have all of your reports.&lt;br/&gt;&lt;br/&gt;You also my need to adjust the path for wget - I was using it from MacPorts on my machine.&lt;br/&gt;&lt;br/&gt;cheers&lt;br/&gt;&lt;br/&gt;JSN&lt;br/&gt;</description>
      <enclosure url="http://www.blackhat.org/JSN/Blog/Entries/2012/2/22_Download_All_Nessus_Reports_at_Command-line_files/droppedImage.png" length="31594" type="image/png"/>
    </item>
    <item>
      <title>Rescan Validation Update</title>
      <link>http://www.blackhat.org/JSN/Blog/Entries/2012/2/22_Rescan_Validation_Update.html</link>
      <guid isPermaLink="false">abdd2853-b512-40cf-8f3a-f7885741ad9f</guid>
      <pubDate>Wed, 22 Feb 2012 16:15:33 -0500</pubDate>
      <description>&lt;a href=&quot;http://www.blackhat.org/JSN/Blog/Entries/2012/2/22_Rescan_Validation_Update_files/droppedImage.jpg&quot;&gt;&lt;img src=&quot;http://www.blackhat.org/JSN/Blog/Media/object002_3.jpg&quot; style=&quot;float:left; padding-right:10px; padding-bottom:10px; width:300px; height:57px;&quot;/&gt;&lt;/a&gt;This is a quick update for the associated code to make it work with the changes in the .nessus V2 format in Nessus 5.0 +&lt;br/&gt;&lt;br/&gt;If you update your scanner you will need to use this code on the output.&lt;br/&gt;&lt;br/&gt;** On the up side this is the only code set that broke with the changes and all of the other scripts still work in Nessus 5.0 **&lt;br/&gt;&lt;br/&gt;cheers&lt;br/&gt;&lt;br/&gt;JSN&lt;br/&gt;&lt;br/&gt;----&lt;br/&gt;&lt;br/&gt;I received a task a while back to validate that a .nessus artifact (some scan output) could support validation that a item found in the past was fixed.&lt;br/&gt;&lt;br/&gt;I broke this task down into a few items: &lt;br/&gt;First - Was the pluginID scanned for in the file?&lt;br/&gt;Second - Was it found on any hosts in the scan output?&lt;br/&gt;Third - What was scanned?&lt;br/&gt;&lt;br/&gt;I created this little java command to validate these items from the command-line.&lt;br/&gt;&lt;br/&gt;Its used thus: java XMLValidate &amp;lt;fileName&gt; &amp;lt;pluginID&gt;&lt;br/&gt;&lt;br/&gt;You can check for more than one pluginID at a time just simply keep adding them as args to the command.&lt;br/&gt;&lt;br/&gt;The output looks like this: &lt;br/&gt;--------&lt;br/&gt;java XMLValidate ScanInput.nessus 30218&lt;br/&gt;&lt;br/&gt;PluginID: 30218 was located as item 11903 scanned for in the plugin_set.&lt;br/&gt;----&gt; PluginID 30218 was identified on host 10.10.10.1&lt;br/&gt;----&gt; PluginID 30218 was identified on host 10.10.10.2&lt;br/&gt;&lt;br/&gt;Scanned Hosts:&lt;br/&gt;10.10.10.1&lt;br/&gt;10.10.10.2&lt;br/&gt;10.10.10.3&lt;br/&gt;10.10.10.4&lt;br/&gt;10.10.10.5&lt;br/&gt;&lt;br/&gt;--------&lt;br/&gt;Or in the case the file is clean:&lt;br/&gt;&lt;br/&gt;--------&lt;br/&gt;java XMLValidate ScanInput.nessus 30218&lt;br/&gt;&lt;br/&gt;PluginID: 30218 was located as item 11903 scanned for in the plugin_set.&lt;br/&gt;----&gt; PluginID 30218 was NOT identified on any scanned host.&lt;br/&gt;&lt;br/&gt;Scanned Hosts:&lt;br/&gt;10.10.10.1&lt;br/&gt;10.10.10.2&lt;br/&gt;10.10.10.3&lt;br/&gt;10.10.10.4&lt;br/&gt;10.10.10.5&lt;br/&gt;&lt;br/&gt;---------&lt;br/&gt;&lt;br/&gt;As always drop me a note with improvements as this just represents my hack and slash attempt to save time validating a files while on a airline flight.&lt;br/&gt;&lt;br/&gt;cheers&lt;br/&gt;&lt;br/&gt;JSN&lt;br/&gt;</description>
      <enclosure url="http://www.blackhat.org/JSN/Blog/Entries/2012/2/22_Rescan_Validation_Update_files/droppedImage.jpg" length="8550" type="image/jpeg"/>
    </item>
  </channel>
</rss>

