<?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>MacSecure.com &#187; How-To&#8217;s</title>
	<atom:link href="http://macsecure.com/category/howtos/feed/" rel="self" type="application/rss+xml" />
	<link>http://macsecure.com</link>
	<description>A Mac Security Blog</description>
	<lastBuildDate>Tue, 18 Nov 2008 00:46:01 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Top Mac Security Tools, Part 2</title>
		<link>http://macsecure.com/2007/11/19/top-mac-security-tools-part-2/</link>
		<comments>http://macsecure.com/2007/11/19/top-mac-security-tools-part-2/#comments</comments>
		<pubDate>Tue, 20 Nov 2007 01:31:51 +0000</pubDate>
		<dc:creator>john</dc:creator>
				<category><![CDATA[How-To's]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[]]></category>
		<category><![CDATA[nessus]]></category>
		<category><![CDATA[ssh]]></category>
		<category><![CDATA[syslog]]></category>
		<category><![CDATA[vnc]]></category>

		<guid isPermaLink="false">http://macsecure.com/2007/11/19/top-mac-security-tools-part-2/</guid>
		<description><![CDATA[Part two (part one is here) of an expanding series where I&#8217;m providing an overview of some of the InfoSec tools that I use on a daily basis on my Mac.    Down the line I&#8217;ll expand this series and write up each tool in more detail.
Nessus
Despite the controversy about Nessus going proprietary [...]]]></description>
			<content:encoded><![CDATA[<p>Part two (part one is <a href="http://macsecure.com/2007/11/12/top-mac-security-tools-part-1/">here</a>) of an expanding series where I&#8217;m providing an overview of some of the InfoSec tools that I use on a daily basis on my Mac.    Down the line I&#8217;ll expand this series and write up each tool in more detail.</p>
<p><strong>Nessus</strong></p>
<p><br class="webkit-block-placeholder" />Despite the controversy about <a href="http://www.nessus.org/" target="_blank">Nessus</a> <a href="http://www.linux.com/articles/48745" target="_blank">going proprietary</a> in 2005, it remains one of the gold standards for network vulnerability scanning.  Installed as a server (nessusd) and a client (typically just called nessus), the client has options to control what hosts are scanned and what specific services and vulnerabilities it scans for.   Some of the things Nessus can detect are services that have vulnerabilities, common misconfigurations,  and default passwords &#8212; among about a thousand other things.   As a note, Nessus has been known to break a services / tip over a server now and then.   It&#8217;s not something you want to point at your production server during business hours!   Tenable Network Security now owns Nessus and sells a commercial version and support.<br class="webkit-block-placeholder" /></p>
<p><strong>SSH / SFTP</strong></p>
<p><br class="webkit-block-placeholder" />There&#8217;s not much to say &#8212; where there once was Telnet, now there&#8217;s SSH.  I have SSH (previously via <a href="http://iterm.sourceforge.net/" target="_blank">iTerm</a> &#8212; no using the Leopard Terminal) sessions up just about 24&#215;7 on my Mac, as well as my work Dell.  From remote shell access, to tunneling through firewalls, to SFTP, and on and on.  Wherever possible, it&#8217;s almost always advisable to run SSH instead of Telnet.   I know some things have been written about it, but the <a href="http://www.apple.com/macosx/technology/unix.html" target="_blank">Leopard Terminal</a> seems good so far.<br class="webkit-block-placeholder" /></p>
<p><strong>VNC<br class="webkit-block-placeholder" /></strong></p>
<p>Originally developed at AT&amp;T labs, the name &#8220;vnc&#8221; is really a number of things, including a server, a client, and even a protocol.    VNC (Virtual Network Computing) was designed to allow a remote graphical desktop session without much overhead.  VNC (the protocol) isn&#8217;t natively encrypted, but is commonly tunnelled over SSH.   On the Mac you can run a VNC server for remotely controlling your Mac (from another Mac, a Windows PC, or even a Linux box).   Some of the more common Mac VNC clients are:  <a href="http://www.jinx.de/JollysFastVNC.html" target="_blank">JollysFastVNC</a> and <a href="http://sourceforge.net/projects/cotvnc/" target="_blank">Chicken of the VNC</a>.  I&#8217;d previously used CotVNC, but I&#8217;m now using JollysFastVNC most of the time.<br class="webkit-block-placeholder" /></p>
<p><strong>Syslog Server and KiwiLog Viewer</strong></p>
<p><br class="webkit-block-placeholder" />One of the things that has a more limited use until you need is is a syslog server.   All Unix servers, all Cisco network devices, your home Wi-Fi router, and even your Mac can send system logs to a syslog server &#8212; but wait, there&#8217;s more!  Mac OS X Leopard has a syslog server included, that can receive logs from all of those other devices.  My Wi-Fi router (as well as other devices) all send Syslog to one of my Macs.    The <a href="http://www.kiwisyslog.com/kiwi-log-viewer-downloads/" target="_blank">Kiwi Log Viewer for Mac</a> is a free utility that makes looking through syslog files much, much more convenient by color coding them, as well as allowing for easy searching.<br class="webkit-block-placeholder" /></p>
<p><strong>Mac OS Disk Utility</strong></p>
<p><br class="webkit-block-placeholder" />While the Windows and Linux platforms have <a href="http://www.truecrypt.org/" target="_blank">TrueCrypt</a> for creating encrypted disks and volumes, the Mac port of TrueCrypt still seems to be a way off.  For most uses however, it&#8217;s possible to use the Mac OS  Disk Utility to create an encrypted, mountable volume without too much trouble.  In Leopard, the Disk Utility has been upgraded to allow for 256-bit AES encryption, which is a little slower, but much more secure.   For securing personal data, this method works well.   What TrueCrypt does that doesn&#8217;t exist on the Mac yet is that when data is encrypted, it doesn&#8217;t create an &#8216;encrypted file&#8217; that can be identified, therefore a casual user looking for your &#8217;sensitive&#8217; files wouldn&#8217;t ever know that your &#8217;secret&#8217; data existed.</p>
]]></content:encoded>
			<wfw:commentRss>http://macsecure.com/2007/11/19/top-mac-security-tools-part-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Managing the Leopard Firewall with WaterRoof</title>
		<link>http://macsecure.com/2007/11/09/managing-the-leopard-firewall-with-waterroof/</link>
		<comments>http://macsecure.com/2007/11/09/managing-the-leopard-firewall-with-waterroof/#comments</comments>
		<pubDate>Fri, 09 Nov 2007 05:11:38 +0000</pubDate>
		<dc:creator>john</dc:creator>
				<category><![CDATA[How-To's]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[firewall]]></category>
		<category><![CDATA[leopard]]></category>
		<category><![CDATA[osx]]></category>
		<category><![CDATA[waterroof]]></category>

		<guid isPermaLink="false">http://macsecure.com/2007/11/09/managing-the-leopard-firewall-with-waterroof/</guid>
		<description><![CDATA[This is the last Leopard firewall post for a while&#8230;
Over the last week or two of Leopard firewall discussions across the web, quite a bit of info has come out about how the Leopard firewall works, and what&#8217;s going on &#8216;under the hood&#8217; when you change the options under System Preferences.
The firewall used by OS [...]]]></description>
			<content:encoded><![CDATA[<p>This is the last Leopard firewall post for a while&#8230;</p>
<p>Over the last week or two of Leopard firewall discussions across the web, quite a bit of info has come out about how the Leopard firewall works, and what&#8217;s going on &#8216;under the hood&#8217; when you change the options under System Preferences.</p>
<p>The firewall used by OS X is <a href="http://en.wikipedia.org/wiki/Ipfw" target="_blank">ipfw</a>, the FreeBSD sponsored open source firewall package.   Contrary to the limited configuration options presented in the System Preferences Security section, ipfw is extremely configurable and sophisticated.   Whole books could be written about configuring ipfw, but the <a href="http://www.freebsd.org/cgi/man.cgi?query=ipfw&amp;sektion=8" target="_blank">man page for it</a> is a good place to start.<br />
<span id="more-13"></span><br />
Let&#8217;s look at a few simple things to start.  From a Terminal:</p>
<p>- sudo su<br />
- ipfw show</p>
<p>This will show what rules are currently set on your system.   As an example, this is what my Macbook Pro shows:</p>
<p>33300      0         0 deny icmp from any to me in icmptypes 8<br />
65535 309194 202763184 allow ip from any to any</p>
<p>We&#8217;ll start at the end.   The second line is what&#8217;s called the default rule (it always has a rule number of 65535) and it always has to match all packets.  The scope of how to make the various rules, rule sets, and specific configurations are covered better in other places &#8211; but for now this will suffice.  This particular system only has two Static Rules at this point.</p>
<p>Which brings us to <a href="http://www.hanynet.com/applications/" target="_blank">WaterRoof</a>.   WaterRoof is a graphical front-end to ipfw for OS X.  To be clear &#8212; if you don&#8217;t understand the basics of how ipfw works (or firewalls in general), WaterRoof isn&#8217;t going to get you very far.    Once installed, if you go to &#8220;Static Rules&#8221;, you should see the same rules that you saw from the command-line.   It has configuration options for Static and Dynamic rules, Logging, NAT, and even a Wizard that can lead you through the steps of configuring ipfw from scratch.</p>
<p>One of the best things about WaterRoof is that it allows you to easily import and export your rule sets, so if you decide that you want to experiment, you can backup you rules and keep them around to restore them without needing to know all of the command-line options.</p>
<p>There has been talk on some of the other blogs and forums about coming up with an &#8216;ideal&#8217; set of ipfw rules for use on Leopard systems &#8212; if you familiarize yourself with WaterRoof now, putting those rules into practice shouldn&#8217;t be hard.   For now the rules I&#8217;m doing testing with are for when I&#8217;m on &#8216;hostile&#8217; networks.   I&#8217;ll probably keep a copy of these around for when I need to know that I&#8217;m blocking everything possible.    A sample output of &#8216;ipfw show&#8217; would look something like this:</p>
<p>00001    388     17858 deny ip from any to me<br />
00002      0         0 deny tcp from any to me<br />
00003      0         0 deny udp from any to me<br />
33400      0         0 deny icmp from any to me<br />
65535 325675 210533693 allow ip from any to any</p>
<p>WaterRoof gets you a much more detailed set of controls than anything built into OS X.  Not everyone needs it, but it&#8217;s good to know the basics at least.   Just as a note &#8211; you can absolutely set settings in ipfw that will prevent your system from being able to access the internet.   If you&#8217;re the experimental type, make sure you save a copy of your rules before tinkering.</p>
]]></content:encoded>
			<wfw:commentRss>http://macsecure.com/2007/11/09/managing-the-leopard-firewall-with-waterroof/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Proving the Leopard Firewall Issue in Four Easy Steps</title>
		<link>http://macsecure.com/2007/11/07/proving-the-leopard-firewall-issue-in-four-easy-steps/</link>
		<comments>http://macsecure.com/2007/11/07/proving-the-leopard-firewall-issue-in-four-easy-steps/#comments</comments>
		<pubDate>Wed, 07 Nov 2007 05:55:48 +0000</pubDate>
		<dc:creator>john</dc:creator>
				<category><![CDATA[How-To's]]></category>
		<category><![CDATA[News]]></category>
		<category><![CDATA[firewall]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[leopard]]></category>

		<guid isPermaLink="false">http://macsecure.com/?p=10</guid>
		<description><![CDATA[Mac side, from a Terminal:

sudo su
nc -l &#60;port number&#62;  (I used 1000)
Ensure that your Leopard firewall settings are set to &#8220;Block all incoming connections&#8221; and &#8220;Enable Stealth Mode&#8221; (in the advanced settings)

From a remote machine:

 nc &#60;leopard ip&#62; &#60;port from above&#62;

Connected!   If you don&#8217;t have netcat on a remote machine, you can simply telnet to the [...]]]></description>
			<content:encoded><![CDATA[<p>Mac side, from a Terminal:
<ul>
<li>sudo su</li>
<li>nc -l &lt;port number&gt;  (I used 1000)</li>
<li>Ensure that your Leopard firewall settings are set to &#8220;Block all incoming connections&#8221; and &#8220;Enable Stealth Mode&#8221; (in the advanced settings)</li>
</ul>
<p>From a remote machine:
<ul>
<li> nc &lt;leopard ip&gt; &lt;port from above&gt;</li>
</ul>
<p>Connected!   If you don&#8217;t have netcat on a remote machine, you can simply telnet to the port as well.    I suspect that we&#8217;re probably taking the wording &#8220;Block all incoming connections&#8221; too literally.     More thoughts tomorrow.<br class="webkit-block-placeholder" />The idea for this came from <a href="http://securosis.com/2007/11/01/investigating-the-leopard-firewall/" target="_blank">Jurgen&#8217;s comment</a> on Securosis.</p>
]]></content:encoded>
			<wfw:commentRss>http://macsecure.com/2007/11/07/proving-the-leopard-firewall-issue-in-four-easy-steps/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>OS X Security Configuration Guidelines</title>
		<link>http://macsecure.com/2007/11/05/os-x-security-configuration-guidelines/</link>
		<comments>http://macsecure.com/2007/11/05/os-x-security-configuration-guidelines/#comments</comments>
		<pubDate>Tue, 06 Nov 2007 03:00:54 +0000</pubDate>
		<dc:creator>john</dc:creator>
				<category><![CDATA[How-To's]]></category>
		<category><![CDATA[configuration]]></category>
		<category><![CDATA[guides]]></category>
		<category><![CDATA[Security]]></category>

		<guid isPermaLink="false">http://macsecure.com/?p=7</guid>
		<description><![CDATA[Since it&#8217;s a common question, I figured I&#8217;d link some of the more common Configuration Guides for OS X hardening.   These are some of the more &#8216;official&#8217; ones &#8212; I&#8217;ll post a collection of personal and Blog-related ones some other time.   Just a note:  None of these are updated for [...]]]></description>
			<content:encoded><![CDATA[<p>Since it&#8217;s a common question, I figured I&#8217;d link some of the more common Configuration Guides for OS X hardening.   These are some of the more &#8216;official&#8217; ones &#8212; I&#8217;ll post a collection of personal and Blog-related ones some other time.   Just a note:  None of these are updated for Leopard, and some aren&#8217;t even current for Tiger, but a lot of the same ideas and procedures apply.</p>
<ul>
<li><a href="http://www.nsa.gov/snac/os/applemac/osx_client_final_v_1_1.pdf" target="_blank">NSA Security Configuration Guide &#8211; For 10.3</a></li>
<li><a href="http://research.corsaire.com/whitepapers/060517-securing-mac-os-x-tiger.pdf" target="_blank">Corsaire:  Securing OSX &#8211; For 10.4</a><br class="webkit-block-placeholder" /></li>
<li><a href="http://www.apple.com/support/security/commoncriteria/" target="_blank">Apple &#8211; Common Criteria Security Tools</a><br class="webkit-block-placeholder" /></li>
<li><a href="http://www.cisecurity.org/bench_osx.html" target="_blank">CIS Mac OS X Benchmark</a><br class="webkit-block-placeholder" /></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://macsecure.com/2007/11/05/os-x-security-configuration-guidelines/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
