<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/css" href="/stylesheets/rss.css"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/">
  <channel>
    <title>ClearNet Security</title>
    <link>http://blog.clearnetsec.com</link>
    <language>en-us</language>
    <ttl>40</ttl>
    <description></description>
    <item>
      <title>True penetration testing?</title>
      <description>&lt;p&gt;
This from the new 
&lt;a href="https://www.pcisecuritystandards.org/pdfs/infosupp_11_3_penetration_testing.pdf"&gt;PCI information supplement&lt;/a&gt;: (regarding the required annual penetration testing for compliance)
&lt;/p&gt;
&lt;img src="http://blog.clearnetsec.com/files/paperBag.jpg" align="right"&gt;
&lt;blockquote&gt;
The penetration tests should attempt to exploit vulnerabilities [&#8230;] attempting to penetrate both at the network level and key applications
&lt;/blockquote&gt;
&lt;p&gt;
Really?  I laughed when I read this, seriously.  It made me think for a second about how many consultants &lt;b&gt;&lt;i&gt;really&lt;/i&gt;&lt;/b&gt; have the skills to chef-boy-ar-dee exploits under pressure.  It&#8217;s clear too; this is not about a vulnerability sweep, they want you to bust in.
&lt;/p&gt;
&lt;blockquote&gt;
Penetration testing [..] should occur from both outside the network trying to come in (external testing) and from inside the network.
&lt;/blockquote&gt;
&lt;p&gt;
Wow.  &lt;b&gt;&lt;i&gt;True penetration testing&lt;/i&gt;&lt;/b&gt; from inside the network?  How many internal networks have you seen that would survive a blitzkrieg attack from a good penetration test team?      
&lt;/p&gt;
PCI states:
&lt;blockquote&gt;
&#8220;resources must be experienced penetration testers&#8221;
&lt;/blockquote&gt;
&lt;p&gt;
What does that mean?  
&lt;/p&gt;
&lt;p&gt;
I&#8217;m sure the PCI council is of compos mentis, and I&#8217;m not trying to rain on the PCI council or ASVs or QSAs, though it&#8217;s funny the council points out that &lt;i&gt;&#8220;The PCI DSS does not require that a QSA or ASV perform the penetration test&#8221;&lt;/i&gt;.  That statement wouldn&#8217;t be because most of them couldn&#8217;t penetration test there way out of a paper bag even if they were handed a loaded metasploit gun, right?    
&lt;/p&gt;
&lt;p&gt;
With the huge number of companies bemoaning PCI compliance, I just don&#8217;t see most getting a &lt;b&gt;&lt;i&gt;true&lt;/i&gt;&lt;/b&gt; penetration test.  I guess I could be reading too much into this.  Maybe the skills bar level I consider for experienced penetration testers is way higher than what the PCI council considers experienced or what others consider experienced or good?
&lt;/p&gt;
&lt;p&gt;
Do you have penetration testing skills?  What does that mean to you?  Do you think most of the companies that buy a penetration test actually get one?
&lt;/p&gt;

</description>
      <pubDate>Sun, 04 May 2008 22:45:00 -0600</pubDate>
      <guid isPermaLink="false">urn:uuid:470c8a22-8394-42f3-865f-16f2cea23a84</guid>
      <author>tate@ClearNetSec.com (Tate Hansen)</author>
      <link>http://blog.clearnetsec.com/articles/2008/05/04/true-penetration-testing</link>
      <category>security</category>
      <category>ClearNet</category>
      <category>ClearNet Security</category>
      <category>Tate Hansen</category>
      <category>vulnerability</category>
      <category>Penetration Testing</category>
      <category>PCI</category>
      <category>ASV</category>
      <category>exploits</category>
      <category>QSA</category>
    </item>
    <item>
      <title>Predictive markets &amp;amp; betting on when apps or companies get owned</title>
      <description>&lt;p&gt;A recent WSJ article titled &#8220;&lt;a href="http://online.wsj.com/article/SB120934176381348507.html"&gt;Trading on the Wisdom of Crowds&lt;/a&gt;&#8221; sparked my interest as it may relate to security.  Are there ways to build a business around helping organizations understand the risk to their data assets by using predictive market models?  Or maybe building it around betting on commercial applications?    
&lt;/p&gt;
&lt;p&gt;
&lt;blockquote&gt;&#8220;Betting odds are generally taken as the best indicator of probable results in presidential campaigns," this newspaper explained in 1924.
&lt;/blockquote&gt;&lt;/p&gt;
&lt;p&gt;
I&#8217;m placing a bet that retail store XYZ gets owned and reveals grandma&#8217;s credit card details in &#8216;08.  I&#8217;m placing another bet that application ABC will have a remote admin level vulnerability by October &#8217;08.
&lt;/p&gt;
&lt;p&gt;
Alas, we must have more transparency and trust in the publicly disclosed information to play.  Participation is key as well:
  &lt;/p&gt;
&lt;p&gt;
&lt;blockquote&gt;Predicting markets seem to work so long as there are enough traders whose aggregate information is fully reflected in bets.
&lt;/blockquote&gt;
&lt;/p&gt;
&lt;p&gt;
Would enough people find it worthwhile to become active traders?  Maybe.  There was an active predictive market created around the following question:
&lt;/p&gt;
&lt;p&gt;
&lt;blockquote&gt;&lt;a href="http://governmentfutures.inklingmarkets.com/markets/7657"&gt;What will the government's 2007 computer security grade be?&lt;/a&gt;
&lt;/blockquote&gt;
&lt;/p&gt;
&lt;p&gt;
It&#8217;s probably a big stretch to build a successful predictive market business around the types of security bets which would benefit organizations.  By that I mean if I was responsible for a commercial application in which 75% of the traders were betting on my application being owned within the year, I&#8217;d probably work hard to change the odds (i.e. allocate resources to improving the security of my app).  
&lt;/p&gt;






</description>
      <pubDate>Wed, 30 Apr 2008 23:30:00 -0600</pubDate>
      <guid isPermaLink="false">urn:uuid:3447f78b-c5fa-4e43-a1b0-93c19c28bbdc</guid>
      <author>tate@ClearNetSec.com (Tate Hansen)</author>
      <link>http://blog.clearnetsec.com/articles/2008/04/30/predictive-markets-betting-on-when-apps-or-companies-get-owned</link>
      <category>security</category>
      <category>ClearNet</category>
      <category>ClearNet Security</category>
      <category>Tate Hansen</category>
      <category>predictive markets</category>
    </item>
    <item>
      <title>When virtual servers play havoc </title>
      <description>&lt;p&gt;
I recorded a tidbit which came from a comment spoken at one of this year's RSA panel tracks.  I hadn't thought of this issue on a big scale.  It was a comment on how disruptive an environment which frequently &lt;i&gt;"resets"&lt;/i&gt; virtual servers as part of normal business is to security.
&lt;/p&gt;
&lt;p&gt;
It's obvious such an environment can have a significant impact on security tools, especially those which strive to learn patterns or look at history or both.  
&lt;/p&gt;
&lt;p&gt;
I was just imagining if I was a security admin responsible for a large block of EC2 virtual servers.  As part of that, maybe the use of these blocks of servers is similar to a class lab whereby students get to install and do anything they want on the servers.  When they're done, the instructor runs around and resets all the servers.  Extrapolate this and it can lead to a hard problem, security speaking, for general cases.  
&lt;/p&gt;
&lt;p&gt;
I haven't meditated on this issue, but I'm guessing it'll become more visible in short time.  
&lt;/p&gt;

</description>
      <pubDate>Mon, 14 Apr 2008 15:19:00 -0600</pubDate>
      <guid isPermaLink="false">urn:uuid:df455eaa-c476-4bdc-a7da-17e8764b7ce9</guid>
      <author>tate@ClearNetSec.com (Tate Hansen)</author>
      <link>http://blog.clearnetsec.com/articles/2008/04/14/when-virtual-servers-play-havoc</link>
      <category>security</category>
      <category>ClearNet</category>
      <category>ClearNet Security</category>
      <category>Tate Hansen</category>
      <category>virtual servers</category>
      <category>virtualization</category>
    </item>
    <item>
      <title>Test commercial web  app scanners for free and without restrictions?</title>
      <description>&lt;p&gt;If your software licensing ethics tend to contort a tad here  and there, then you may find the below tricks helpful when 

you want to evaluate  commercial web app scanners.  Partaking  in these tricks is slippery, and you may fall into ethical 

perdition, so  prepare yourself!&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Super simple trick #1:  Request search and replace proxy&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;            Fire up a  proxy that supports request search and replace.&lt;/p&gt;
&lt;p&gt;&lt;img src="http://blog.clearnetsec.com/files/suru_search_and_replace.jpg" alt="suru"/&gt;&lt;/p&gt;
&lt;p&gt;Let&#8217;s say an app restricts you to scan only their target site (e.g. demo.testsite.net), but you want to point the scanner to a  different target.  &lt;/p&gt;
&lt;p&gt;&lt;em&gt;No problema&lt;/em&gt;.  &lt;/p&gt;
&lt;p&gt;As shown above, I typed in &lt;strong&gt;demo.testsite.net &lt;/strong&gt;for &lt;u&gt;Search&lt;/u&gt;, and &lt;strong&gt;blog.clearnetsec.com&lt;/strong&gt; for &lt;u&gt;Replace&lt;/u&gt;.   Every HTTP request passing through this proxy with a Request-URI matching the string &lt;i&gt;demo.testsite.net&lt;/i&gt; will get replaced with &lt;i&gt;blog.clearnetsec.com&lt;/i&gt;.  The result? The app scans my blog.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Note:&lt;/strong&gt;  Super simple trick #1 only works for apps  which restrict via the hostname.  If the app is smarter 

and adds IP validation,  then move along to Sort of simple trick #2.  &lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Sort of simple trick  #2:  IPTables magic&lt;/strong&gt;&lt;br /&gt;
  &lt;br /&gt;
  This trick can add license evading umpf to your smokin&#8217; renegade style. :)&lt;/p&gt;
&lt;p&gt;Let&#8217;s say the app tries to validate you are only scanning  the sites you're licensed for by checking the target IP addresses 

(regardless of  how the hostnames are resolved).  For  example, maybe the demo version of the app allows you to only scan IP 

address  55.55.55.55.&lt;/p&gt;
&lt;p&gt;&lt;em&gt;No problema.&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;One line explanation:&lt;/strong&gt;  Setup a linux box to do routing, configure a  VIP, and add two IPTable NAT rules.  

&lt;/p&gt;
&lt;p&gt;&lt;b&gt;The long answer.&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;Setup a linux box.  A  linux VMware image works too.  Configure  the network as normal &#8211; give it a standard IP, gateway, 

list of name servers,  etc., as you would when configuring any other box on your local subnet.&lt;/p&gt;
&lt;p&gt;Once you got that, then check out the script below. &lt;/p&gt;
&lt;p&gt;&lt;img src="http://blog.clearnetsec.com/files/setup_nat_rules.jpg" alt="cli"/&gt;&lt;/p&gt;
&lt;p&gt;Follow?  If not, I&#8217;ll  explain in more detail.&lt;/p&gt;
&lt;ul&gt;
  &lt;li&gt;Again, the first thing you need is a normal  networked working linux box.  &lt;/li&gt;
  &lt;li&gt;There are 4 steps to facilitate a destination IP  switch-a-roo:&lt;/li&gt;
  &lt;ul&gt;
    &lt;li&gt;Configure  a Virtual IP.  Pick an IP located on a  different subnet, don&#8217;t pick an IP on the same subnet as the 

primary IP.&lt;/li&gt;
    &lt;li&gt;Enable  IP forwarding.&lt;/li&gt;
    &lt;li&gt;Setup  a DNAT (Destination NAT) rule to replace the destination IP on the fly.  The first IP (e.g. 55.55.55.55) is the 

 licensed locked IP.  The second IP is  (e.g. 216.241.191.205) is the IP you want to scan.&lt;/li&gt;
    &lt;li&gt;Setup  a SNAT (Source NAT) rule to replace the source IP on the fly.  The first IP (e.g. 192.168.1.101) is your  

workstation IP.  The second IP is the  primary IP address of the linux box.    &lt;/li&gt;
  &lt;/ul&gt;
&lt;/ul&gt;
&lt;p&gt;The last step there, #4, is overloaded.  Once you go through the steps above on the  linux box, then you need to change the 

IP address of your workstation with the  app scanner installed.  You want to pick a new IP for your workstation which is on 

the same subnet as the VIP you  configured on the linux box.  You also want to change your workstation to use the linux box as 

your gateway to the Internet, so change the default route address to match the IP of the VIP on the linux box.&lt;/p&gt;
&lt;p&gt;That should do it. Replace the IPs in the IPTable rules above with the IPs that work for you and scan away. &lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Note:  &lt;/strong&gt;You can&#8217;t always do the IPTables trick by  itself; one reason is due to virtual hosting.  If  only 

one website is being hosted on the IP, then you probably can do this.  If the target IP is hosting lots of domains,  then you 

need to chain the request and replace proxy with the IPTables magic to  ensure each Request-URI is for the correct host and 

domain.&lt;/p&gt;
&lt;p&gt;For example, &lt;i&gt;&lt;u&gt;GET http://216.241.191.205/... HTTP/1.1&lt;/u&gt;&lt;/i&gt; may not be the same as &lt;i&gt;&lt;u&gt;GET 

http://blog.clearnetsec.com/... HTTP/1.1&lt;/u&gt;&lt;/i&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Super Simple trick  #3:  VMware snapshots&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Most everyone is likely familiar with this trick. If you have a web app installed in a VMware  image and you have a working 

license (e.g. trial license), but it expires at a  certain time and date, the trick is to create a snapshot of the VMware 

image with  the app in a working state.  &lt;/p&gt;
&lt;p&gt;Anytime you want to scan, change your host OS clock back to a  time that is within the licensing window (or ensure your 

VMware guest image  doesn&#8217;t sync the clock with the host OS when you restore the snapshot), and restore the snapshot.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Note:  &lt;/strong&gt;Some apps may  call home when first launched, so it helps to create the VM snapshot when you  have 

the app open and ready to scan.  &lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Trick addendum:&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;For those web app scanners which restrict you from scanning  SSL enabled sites, have no hesistation, you can work around 

that too.  &lt;/p&gt;
&lt;p&gt;One way is via stunnel. From &lt;a href="http://ww.stunnel.org"&gt;www.stunnel.org.&lt;/a&gt;&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;Encrypted version with STUNNEL&lt;/p&gt;
&lt;pre&gt;
+---------+      | |     +--------+    +---------+
| non-SSL | -ST- | | --- | Apache | -- | non-SSL |
| enabled |      | |     | WITH   |    | enabled |
| client  |      | |     | SSL    |    | server  |
+---------+      | |     +--------+    +---------+
   CLIENT        NET     WEB SERVER      SERVICE
&lt;/pre&gt;
&lt;/blockquote&gt;
Note the position of STUNNEL : the "-ST-" in the diagram above.  Below is an example stunnel configuration:
&lt;blockquote&gt;
  &lt;p&gt;client=yes &lt;br /&gt;
    verify=0 &lt;br /&gt;
    [psuedo-https] &lt;br /&gt;
    accept = 8080 &lt;br /&gt;
    connect = blog.clearnetsec.com:443 &lt;br /&gt;
    TIMEOUTclose=0&lt;/p&gt;
&lt;/blockquote&gt;
Configure your app or browser to use the stunnel proxy listening on port 8080 and you'll be able to hit the site using HTTPS (via the proxy), 

but your local app or browser will be only speaking HTTP.
&lt;br /&gt;&lt;br /&gt; 
&lt;p&gt;&lt;strong&gt;Quick alternate to #1  for Apache fan boys and girls:&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Via Apache 2.2.x, with mod proxy and mod rewrite enabled, setup  a proxy like so:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;ProxyRequests On&lt;br /&gt;
  &amp;lt;Proxy *&amp;gt; &lt;br /&gt;
  RewriteEngine on&lt;br /&gt;
  RewriteRule  ^(.+)  http://blog.clearnetsec.com/$1 [P] &lt;i&gt;(or something close to this)&lt;/i&gt;&lt;br /&gt;
  Order deny,allow&lt;br /&gt;
  Deny from all&lt;br /&gt;
  Allow from all&lt;br /&gt;
  &amp;lt;/Proxy&amp;gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Configure your browser or app scanner to use this Apache  proxy server and all Request-URIs passed through will be re-

written to target &lt;a href="http://blog.clearnetsec.com/"&gt;http://blog.clearnetsec.com/&lt;/a&gt;.  &lt;/p&gt;
&lt;p&gt;YMMV.  Have fun. &lt;/p&gt;

</description>
      <pubDate>Mon, 24 Mar 2008 11:54:00 -0600</pubDate>
      <guid isPermaLink="false">urn:uuid:c03216b7-69d4-4b10-9d75-3288a7cfef37</guid>
      <author>tate@ClearNetSec.com (Tate Hansen)</author>
      <link>http://blog.clearnetsec.com/articles/2008/03/24/test-commercial-web-app-scanners-for-free-and-without-restrictions</link>
      <category>security</category>
      <category>proxy</category>
      <category>software</category>
      <category>ClearNet</category>
      <category>ClearNet Security</category>
      <category>Tate Hansen</category>
      <category>Suru</category>
      <category>web application</category>
      <category>license</category>
      <category>bypass</category>
      <category>licensing</category>
      <category>scanners</category>
      <category>stunnel</category>
      <category>apache</category>
      <category>vmware</category>
    </item>
    <item>
      <title>Us and them development</title>
      <description>
This actually relates to security.  It's round about but it'll tie together.   
&lt;p&gt;
I was speaking with a college buddy the other day,  a guy I respect the hell out of who happens to be an extremely senior engineer and now a fairly wealthy man due to applying that skill in some successful companies.   I can't remember the exact thing I said but I was chatting about work, sort of complaining or venting and he called me out for speaking negatively about my current company's QA.   I was basically saying that they don't seem to try very hard and he pretty much asked me why they ever would if you treated them like inferiors?  
&lt;p&gt;
I was a little taken back,  I don't think I treat them that way,  it's not a conscious thing but clearly there is a caste.   I haven't had that many jobs but the 2 places where test was treated as equals and with the same respect as development they also had the same level of responsibility and we ultimately had much much better testing.  It works better when everyone takes ownership of the whole product and it generally doesn't work that well when people try to just slice off little pieces and ignore the rest.  Everywhere else, most other places, QA were second class citizens, it seems like a normal sort of way of operating.    People can rise to the level of expectation, if that level is too low then that's what you'll get.
&lt;p&gt;
So how does this affect security?   Network ops and marketing usually have very different missions.   In the last 10 years, businesses have added security groups  and security officers to &#8220;add security&#8221; to the business,  and to basically fill in a hole that nobody else owned.   It doesn't work very well.   A CSO should be more like an ombudsman.   If it's not everybody's responsibility and everybody's job then it simply won't work,   there are no tools you can simply buy that will make your business &#8220;secure.&#8221;  



</description>
      <pubDate>Fri, 14 Mar 2008 10:57:00 -0600</pubDate>
      <guid isPermaLink="false">urn:uuid:3b6737ff-b1fc-4ef9-8c20-7a2a49021222</guid>
      <author>ian@ClearNetSec.com (Ian S. Nelson)</author>
      <link>http://blog.clearnetsec.com/articles/2008/03/14/us-and-them-development</link>
      <category>testing</category>
      <category>development</category>
      <category>qa</category>
      <category>rifts</category>
      <category>teams</category>
    </item>
    <item>
      <title>Rogue modems are still plentiful?</title>
      <description>&lt;p&gt;
I was doing a scope call for a large grocery chain recently when they mentioned they discover around &lt;b&gt;20 rogue modems per quarter per division&lt;/b&gt; (and they have more than 12 divisions).  That number is way higher than I would've guessed, though maybe lots of the modems are legitimate but not on their official roster.  
&lt;/p&gt;
&lt;p&gt;
Whatever the case may be, wardialing is not a moribund activity, or as close to it as I thought. 
&lt;/p&gt;

</description>
      <pubDate>Fri, 15 Feb 2008 22:18:00 -0700</pubDate>
      <guid isPermaLink="false">urn:uuid:6580f55a-61aa-4171-b6e9-0170041d2a03</guid>
      <author>tate@ClearNetSec.com (Tate Hansen)</author>
      <link>http://blog.clearnetsec.com/articles/2008/02/15/rogue-modems-are-still-plentiful</link>
      <category>security</category>
      <category>ClearNet</category>
      <category>ClearNet Security</category>
      <category>Tate Hansen</category>
      <category>Penetration Testing</category>
      <category>wardialing</category>
      <category>modems</category>
      <category>rogue</category>
    </item>
    <item>
      <title>The booming exploit market and bye bye to swaths of products</title>
      <description>&lt;p&gt;
There are lots of articles mentioning the &lt;a href="http://www.digitalarmaments.com/challenge200801566321.html"&gt;Digital Armaments bounty for exploits&lt;/a&gt;.  I wrote a &lt;a href="http://blog.clearnetsec.com/articles/2007/12/28/%E2%80%9Cbig-money-big-prizes-i-love-it-%E2%80%9D"&gt;snippet&lt;/a&gt; on the commercial exploit market about a month ago, whereby I was simply listing the prices for subscribing to the different exploit houses.
&lt;/p&gt;
&lt;p&gt;
I guess I forgot to consider another complexity of all this and that is from the influence the organizations who compete to purchase exploits are having (e.g.  iDefense, 3COM/TippingPoint, Governments, people and groups w/lots of money).  
&lt;/p&gt;
&lt;p&gt;
I wonder how extensive this really goes &#8211; I mean, it seems this market is in a boom of sorts which implies there are lots of private exploits trading hands.  Exactly how many would be interesting to know.  Hell, any numbers would be nice.    
&lt;/p&gt;
&lt;p&gt;
One thing is apparent though, if this market continues to grow then how can any security products based on &#8220;knowing attacks&#8221; succeed?  They won't.  An IDS vendor is not going to be able to afford to purchase all; no company will have a monopoly.  


</description>
      <pubDate>Thu, 31 Jan 2008 23:50:00 -0700</pubDate>
      <guid isPermaLink="false">urn:uuid:656fdeec-7440-4a99-94be-62030c0fa12e</guid>
      <author>tate@ClearNetSec.com (Tate Hansen)</author>
      <link>http://blog.clearnetsec.com/articles/2008/01/31/the-booming-exploit-market-and-bye-bye-to-swaths-of-products</link>
      <category>security</category>
      <category>ClearNet</category>
      <category>ClearNet Security</category>
      <category>Tate Hansen</category>
      <category>ids</category>
      <category>ips</category>
      <category>exploits</category>
      <category>vulnerabilities</category>
    </item>
    <item>
      <title>How not to build a server</title>
      <description>&lt;p&gt;
A few years ago I was in a job I wasn't particularly fond of.   One of the things that I disliked was that it felt like we have a bad heuristic for deciding when to roll our own verison of something and when to use something off the shelf.  This is critical for 21st century business,  it's laughable the things companies did as experiments last century,  the IBM PC was arguably an experiment that IBM was never fully committed, it was never their core competency...&lt;/p&gt;
&lt;p&gt;
This company did things completely backwards.  They'd homebrew things like Linux platforms (or if you were marketing the effort you could call it "hardening" which it really wasn't) and then for the core technology of the products we'd take off the shelf products and try to brand it our own and put our own little spin on it.&lt;/p&gt;
&lt;img src="http://blog.clearnetsec.com/files/handrolled.jpg"&gt;
&lt;p&gt;
One particular episode really stands out to me, we were migrating our offices and we had to start running our own mail server.  The old office set us up with an active directory, you'd think we'd just drop in exchange, flip on pop, imap and webmail and call it done.  Instead a multi-week process that involved "hardening" a Redhat linux box was undertaken by our Security Architect.  Part of this process was default replacing bash with c-shell, for that old skool BSD-like flavor, it puzzled me because in the 2.5 years there I never once saw a c-shell script, most of that stuff was done in perl which sort of makes the shell irrelevant.  The thing with c-shell is that nobody but sickos will &lt;i&gt;want&lt;/i&gt; to use the system should it ever be compromised so there might be &lt;i&gt;some&lt;/i&gt; security value but...   Some of the other hardening procedures included system scripts that deleted history and log files on logouts, some odd changes to the default Redhat "lokkit" firewall and then a fairly bizarre process of mirroring authentication from the active directory.   I'll be honest,  I don't know how it really worked but every account was duplicated and you could actually log in with your AD password.  When the project was announced as "finished" we had a real email server that you could get email at and it used your windows password.&lt;/p&gt;
&lt;/p&gt;
It also had a number of interesting side effects, like the fact that I could simply ssh in to it.  There was a host based IDS that did record my ssh attempts but every user could ssh in to it,  it was inside a fairly friendly environment so that's not terrible but most mail servers you'd get off the shelf wouldn't allow just anyone to log in.  Another side effect was that our Windows authentication hashes were all NTLM which made them a bit easier to crack with l0pht crack, this is probably still lost on them, it wasn't clear to me when I left that they'd ever recognize the significance of this or recognize it at all.  Then maybe the best side-effect of all was very nature of the mail server and how the custom chopper had been built, it was pure spool files and sendmail (or maybe it was postfix, I don't remember.)  One day we stumbled on to this gem:
ls -lh /var/spool/mail&lt;/p&gt;
&lt;p&gt;
&lt;p&gt;
&lt;pre&gt;
...
-rw------- 1 cory users     5.8M 2005-01-24 15:33 cory
-rw------- 1 ian  users     3.4M 2005-01-24 15:33 ian
-rw------- 1 root root      2.8M 2005-01-24 03:31 root
-rw-r--r-- 1 someguy users 10.2M 2005-01-24 15:33 someguy
-rw------- 1 tate users     3.5M 2005-01-24 15:33 tate
...
&lt;/pre&gt;
&lt;p&gt;

That's just a recreation,  names have been changed.  At a glance you might not notice anything.   Turns out that "someguy" must have manually edited his spool file with the wrong umask, also turns out that "someguy" was the Security Architect and the initiator of this experiment.  His spool file was world readable for months and months.  When I first saw it, I immediately read the file with "cat."  I deleted my history file and logged out and back in to check if I had left any obvious tracks.  Turns out that the system automatically did the same thing for reasons I to this day don't understand, someguy added that logic to the various .exit system files.  I waited a couple days for some fallout to see if anything happened, thinking I might have tripped an alarm or left a gory log message but nothing happened and nothing changed so I started downloading "someguy's" email on a daily basis.  To my chagrin I learned of another defect.&lt;/p&gt;
&lt;p&gt;
I could run this command:&lt;/p&gt;
&lt;p&gt;
&lt;pre&gt;
ssh ian@mailserver "cat /var/spool/mail/someguy" &gt; someguys.email.dump
&lt;/pre&gt;

&lt;/p&gt;
and it wasn't even recording a "login" on the HIDS that was running,  further I know this because I was reading the emails from the HIDS in "someguy's" email.  I shouldn't confess this, it was unethical, but this went on for months.  I got to read about who he wanted fired, salaries, messages from his wife about his dog getting sick from eating too many treats, and private messages to his friends about how he hated his job there, messages about how he thought he should be the next CTO and some other guy got the job; there was some good stuff and I could pile on but I won't.  I had the whole thing streamlined, I'd dump the file, zip it up and send it to myself at home where I could read it in safety and comfort while drinking a cocktail.
&lt;p&gt;
&lt;img src="http://blog.clearnetsec.com/files/fatBloke2.jpg"&gt;
&lt;p&gt;
&lt;p&gt;
Lessons?  &lt;p&gt;
&lt;ul&gt;
&lt;li&gt;What's funniest to me about this was the amount of effort that went in to being "non-Microsoft,"  a fresh exchange server would have cost much less man time (and therefore money,) been maintainable, easily outsource-ready and more secure than this "secure" hand rolled linux system.  To a degree, the same could be said about simply slamming Suse or Redhat on a box and installing Cyrus or dbmail.&lt;/li&gt;
&lt;li&gt;What's also funny is that just about any out of the box Linux without this "hardening" would have been more secure too, I'd have left tracks and marks and various events would have been logged.&lt;/li&gt;
&lt;li&gt;None of this had anything to do with what the company was in place to actually do.  We could have used hotmail accounts if we had to and that would have been more secure.&lt;/li&gt;
&lt;li&gt;There was no thought about when you should be on "main street" and when you should "roll your own" or build a "custom chopper."  If there was some clear reason to hand build it then it should be done but there was no competitive advantage or any really compelling reason to do it.&lt;/li&gt;
&lt;li&gt;We all tend to go to our strengths when we are given a challenge we may not know the solution for.  There is something to be said for actually knowing your strengths.  "Someguy" liked to act a BSD guy and liked to be a "security expert" and this project was one of the more clear demonstrations of how little of each he is/was.  You have to know what your strengths are and you have to know if they are actually strengths.  I can't help but think that most "BSD guys" would have realized how janky the whole thing was long before it was deployed.&lt;/li&gt;
&lt;li&gt;Lastly,  watch what you say in email, especially at work where you use computers and networks that don't belong to you.  Even security &lt;a href=https://www.isc2.org/cgi-bin/content.cgi?category=97&gt;experts&lt;/a&gt; botch it from time to time.&lt;/li&gt;
&lt;/ul&gt;




</description>
      <pubDate>Mon, 28 Jan 2008 10:18:00 -0700</pubDate>
      <guid isPermaLink="false">urn:uuid:e9c50889-512d-4587-9d46-338e4029670a</guid>
      <author>ian@ClearNetSec.com (Ian S. Nelson)</author>
      <link>http://blog.clearnetsec.com/articles/2008/01/28/how-not-to-build-a-server</link>
      <category>security</category>
      <category>software</category>
      <category>servers</category>
      <category>building</category>
      <category>your</category>
      <category>own</category>
      <category>do</category>
      <category>it</category>
      <category>yourself</category>
    </item>
    <item>
      <title>&#8220;Big money!  Big prizes!  I love it!&#8221;</title>
      <description>&lt;img src="http://blog.clearnetsec.com/files/smashtv1.jpg" align="right"&gt;
&lt;p&gt;&lt;a href="http://en.wikipedia.org/wiki/Smash_TV"&gt;Smash TV &lt;/a&gt;quotes.  Love &#8216;em.  
&lt;/p&gt;
&lt;p&gt;
Speaking of big money, the commercial exploit market&#8217;s growth isn&#8217;t making it any easier to bid on penetration test gigs.  If you want to provide the highest assurance you&#8217;re capable of to clients, then of course you would like to have your hands on all the exploits out there, both public and private.      
&lt;/p&gt;

&lt;table border="1"&gt;
  &lt;tr&gt;
    &lt;th&gt;product&lt;/th&gt;
    &lt;th&gt;to start&lt;/th&gt;
    &lt;th&gt;quarterly&lt;/th&gt;
    &lt;th&gt;total&lt;/th&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
    &lt;td&gt;&lt;a href="http://d2sec.com/products.htm"&gt;d2&lt;/a&gt;&lt;/td&gt;
    &lt;td&gt;$1,950&lt;/td&gt;
    &lt;td&gt;$850&lt;/td&gt;
    &lt;td&gt;$5,350&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
    &lt;td&gt;&lt;a href="http://gleg.net/vulndisco_prices.shtml"&gt;gleg&lt;/a&gt;&lt;/td&gt;
    &lt;td&gt;$1,400&lt;/td&gt;
    &lt;td&gt;$700&lt;/td&gt;
    &lt;td&gt;$4,200&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
    &lt;td&gt;&lt;a href="http://gleg.net/argeniss_pack.shtml"&gt;argeniss &lt;/a&gt;&lt;/td&gt;
    &lt;td&gt;$1,000&lt;/td&gt;
    &lt;td&gt;$500&lt;/td&gt;
    &lt;td&gt;$3,000&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
    &lt;td&gt;&lt;a href="http://www.immunitysec.com/products-canvas.shtml"&gt;canvas&lt;/a&gt;&lt;/td&gt;
    &lt;td&gt;$1,450&lt;/td&gt;
    &lt;td&gt;$730&lt;/td&gt;
    &lt;td&gt;$4,370&lt;/td&gt;
  &lt;/tr&gt;
&lt;/table&gt;
&lt;br /&gt;
&lt;p&gt;
And the cr&#232;me of the crop:&lt;br /&gt;
&lt;b&gt;Immunity Sec&#8217;s Vulnerability Sharing Club	$50,000 - $100,000 per year&lt;/b&gt;
&lt;/p&gt;
&lt;p&gt;
Attacking with anything less in hand tends toward negligence, especially if you do so without disclosing what you&#8217;re missing.  Pay to have all and you&#8217;ve likely priced yourself out of competitive bids.  
&lt;/p&gt;
&lt;p&gt;
The winners here, again, are the attackers.      
&lt;/p&gt;
&lt;p&gt;
&#8220;Good Luck&#8230; you&#8217;ll need it!&#8221;
&lt;/p&gt;
&lt;img src="http://blog.clearnetsec.com/files/smashtv.jpg" align="left"&gt;
&lt;br /&gt;

</description>
      <pubDate>Fri, 28 Dec 2007 08:57:00 -0700</pubDate>
      <guid isPermaLink="false">urn:uuid:5b29bc79-91d9-4ca9-bf12-d9426ee719ee</guid>
      <author>tate@ClearNetSec.com (Tate Hansen)</author>
      <link>http://blog.clearnetsec.com/articles/2007/12/28/%E2%80%9Cbig-money-big-prizes-i-love-it-%E2%80%9D</link>
      <category>security</category>
      <category>ClearNet</category>
      <category>ClearNet Security</category>
      <category>Tate Hansen</category>
      <category>Penetration Testing</category>
      <category>gleg</category>
      <category>immunity</category>
      <category>argeniss</category>
      <category>d2</category>
      <category>exploits</category>
    </item>
    <item>
      <title>Follow-up on using unicornscan for a big scan (400,000+ public IPs)</title>
      <description>&lt;p&gt;I&#8217;m happy to report our growing experience using unicornscan for large discovery sweeps is a positive one.  Our confidence in using this tool has increased and it is now our preferred weapon of choice for scanning large IP swaths.
&lt;/p&gt;
&lt;p&gt;
&lt;b&gt;To recap:&lt;/b&gt;  We performed a sweep of 400,000+ public IPs across multiple continents by configuring the scans to do a full TCP port scan of each IP, sustained ~55 Mbits/s using between 3 and 5 systems, and completed it in a matter of days.  
&lt;/p&gt;
&lt;p&gt;
This is pretty good considering by sending two SYN probes per port it meant sending ~52.5 billion packets and producing some 3 Terabytes of data. 
&lt;/p&gt;
&lt;p&gt;
Nmap is often our preferred tool, and we used it to spot check our results with unicornscan, but from now on it will come down to the details of the gig to make the choice.
&lt;/p&gt;
&lt;p&gt;
&lt;i&gt;&lt;b&gt;Tech note:&lt;/b&gt;  We avoided problems with table overflows and other like issues by placing the systems directly on the internet and with iptables turned off.&lt;/i&gt;


</description>
      <pubDate>Thu, 27 Dec 2007 12:36:00 -0700</pubDate>
      <guid isPermaLink="false">urn:uuid:bb1d8624-361f-4fca-9777-466bfd9d4124</guid>
      <author>tate@ClearNetSec.com (Tate Hansen)</author>
      <link>http://blog.clearnetsec.com/articles/2007/12/27/follow-up-on-using-unicornscan-for-a-big-scan-400-000-public-ips</link>
      <category>nmap</category>
      <category>scanning</category>
      <category>security</category>
      <category>port  scanning</category>
      <category>ClearNet</category>
      <category>ClearNet Security</category>
      <category>Tate Hansen</category>
      <category>unicornscan</category>
    </item>
  </channel>
</rss>
