<?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>Steve Wamsley &#187; Security</title>
	<atom:link href="http://ne0phyte.com/blog/category/home-page/computer-technology/security/feed/" rel="self" type="application/rss+xml" />
	<link>http://ne0phyte.com</link>
	<description>Musician, developer, and software architect... aka ne0phyte</description>
	<lastBuildDate>Tue, 06 Apr 2010 23:50:47 +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>PHPKeyStore Update</title>
		<link>http://ne0phyte.com/blog/2008/07/01/phpkeystore-update/</link>
		<comments>http://ne0phyte.com/blog/2008/07/01/phpkeystore-update/#comments</comments>
		<pubDate>Tue, 01 Jul 2008 21:18:22 +0000</pubDate>
		<dc:creator>ne0phyte</dc:creator>
				<category><![CDATA[Computer Technology]]></category>
		<category><![CDATA[KeyStore]]></category>
		<category><![CDATA[Security]]></category>

		<guid isPermaLink="false">http://ne0phyte.com/?p=35</guid>
		<description><![CDATA[The KeyStore API is code complete. Check it out at phpkeystore.org. The current development release can always be installed with PEAR using:
pear install http://phpkeystore.org/download/KeyStore-current.tgz
All that really remains right now is internal tweaking for best practices and performance.
To summarize the functionality, the key management functionality consists of:

Loading and storing the key store
Creating secret keys, certificate signing [...]]]></description>
			<content:encoded><![CDATA[<p>The KeyStore API is code complete. Check it out at <a href="http://phpkeystore.org">phpkeystore.org</a>. The current development release can always be installed with PEAR using:</p>
<p><code>pear install http://phpkeystore.org/download/KeyStore-current.tgz</code></p>
<p>All that really remains right now is internal tweaking for best practices and performance.</p>
<p>To summarize the functionality, the key management functionality consists of:</p>
<ul>
<li>Loading and storing the key store</li>
<li>Creating secret keys, certificate signing requests, importing signed certificates, and deleting key store entries</li>
<li>Querying the key store for the existence of an entry and what type of entry it is</li>
</ul>
<p>And the key usage functionality consists of:</p>
<ul>
<li>Loading the key store</li>
<li>Using a public/private key pair to encrypt, decrypt, sign, and verify</li>
<li>Using a secret symmetric key to encrypt and decrypt</li>
</ul>
<p>The current to-do list:</p>
<ul>
<li>Add configuration file for system default values</li>
<li>Support file-based passwords</li>
<li>Support user-supplied options on the interface methods in order to support cryptographic functionality other than the default, baked-in settings</li>
<li>Add failure-case unit tests</li>
<li>Code review</li>
</ul>



Share and Enjoy:


	<a rel="nofollow"  href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fne0phyte.com%2Fblog%2F2008%2F07%2F01%2Fphpkeystore-update%2F&amp;title=PHPKeyStore%20Update&amp;bodytext=The%20KeyStore%20API%20is%20code%20complete.%20Check%20it%20out%20at%20phpkeystore.org.%20The%20current%20development%20release%20can%20always%20be%20installed%20with%20PEAR%20using%3A%0D%0A%0D%0Apear%20install%20http%3A%2F%2Fphpkeystore.org%2Fdownload%2FKeyStore-current.tgz%0D%0A%0D%0AAll%20that%20really%20remains%20right%20now%20is%20" title="Digg"><img src="http://ne0phyte.com/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://delicious.com/post?url=http%3A%2F%2Fne0phyte.com%2Fblog%2F2008%2F07%2F01%2Fphpkeystore-update%2F&amp;title=PHPKeyStore%20Update&amp;notes=The%20KeyStore%20API%20is%20code%20complete.%20Check%20it%20out%20at%20phpkeystore.org.%20The%20current%20development%20release%20can%20always%20be%20installed%20with%20PEAR%20using%3A%0D%0A%0D%0Apear%20install%20http%3A%2F%2Fphpkeystore.org%2Fdownload%2FKeyStore-current.tgz%0D%0A%0D%0AAll%20that%20really%20remains%20right%20now%20is%20" title="del.icio.us"><img src="http://ne0phyte.com/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.facebook.com/share.php?u=http%3A%2F%2Fne0phyte.com%2Fblog%2F2008%2F07%2F01%2Fphpkeystore-update%2F&amp;t=PHPKeyStore%20Update" title="Facebook"><img src="http://ne0phyte.com/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://twitter.com/home?status=PHPKeyStore%20Update%20-%20http%3A%2F%2Fne0phyte.com%2Fblog%2F2008%2F07%2F01%2Fphpkeystore-update%2F" title="Twitter"><img src="http://ne0phyte.com/wp-content/plugins/sociable/images/twitter.png" title="Twitter" alt="Twitter" class="sociable-hovers" /></a>


<br/><br/>]]></content:encoded>
			<wfw:commentRss>http://ne0phyte.com/blog/2008/07/01/phpkeystore-update/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Internet/Network Gotchas</title>
		<link>http://ne0phyte.com/blog/2008/05/16/internet-network-gotchas/</link>
		<comments>http://ne0phyte.com/blog/2008/05/16/internet-network-gotchas/#comments</comments>
		<pubDate>Fri, 16 May 2008 16:46:29 +0000</pubDate>
		<dc:creator>ne0phyte</dc:creator>
				<category><![CDATA[Security]]></category>

		<guid isPermaLink="false">http://ne0phyte.com/?p=24</guid>
		<description><![CDATA[The following forty five (45) Internet/network security gotchas are taken from Firewalls and Internet Security &#8211; Repelling the Wily Hacker, Second Edition (ISBN: 0-201-63344-X) by William R. Cheswick, et. al.

IP source addresses aren&#8217;t trustable.
Fragmented packets have been abused to avoid security checks.
ARP-spoofing can lead to session-hijacking.
Sequence number attacks can be used to subvert address-based authentication.
It [...]]]></description>
			<content:encoded><![CDATA[<p>The following forty five (45) Internet/network security gotchas are taken from <a title="Preview Book" href="http://books.google.com/books?id=_ZqIh0IbcrgC&amp;printsec=frontcover&amp;source=gbs_summary_r&amp;cad=0" target="_blank">Firewalls and Internet Security &#8211; Repelling the Wily Hacker, Second Edition</a> (ISBN: 0-201-63344-X) by William R. Cheswick, et. al.</p>
<ol>
<li><abbr title="Internet Protocol">IP</abbr> source addresses aren&#8217;t trustable.</li>
<li>Fragmented packets have been abused to avoid security checks.</li>
<li><abbr title="Address Resolution Protocol">ARP</abbr>-spoofing can lead to session-hijacking.</li>
<li>Sequence number attacks can be used to subvert address-based authentication.</li>
<li>It is easy to spoof <abbr title="User Datagram Packet">UDP</abbr> packets.</li>
<li><abbr title="Internet Control Message Protocol">ICMP</abbr> <code>Redirect</code> messages can subvert routing tables.</li>
<li><abbr title="Internet Protocol">IP</abbr> source routing can address-based authentication.</li>
<li>It is easy to generate bogus <abbr title="Routing Information Protocol">RIP</abbr> messages.</li>
<li>The inverse <abbr title="Domain Name Server">DNS</abbr> tree can be used for name-spoofing.</li>
<li>The <abbr title="Domain Name Server">DNS</abbr> cache can be contaminated to foil cross-checks.</li>
<li><abbr title="Internet Protocol version 6">IPv6</abbr> network numbers may change frequently.</li>
<li><abbr title="Internet Protocol version 6">IPv6</abbr> host addresses change frequently, too.</li>
<li><abbr title="Wired Equivalent Privacy">WEP</abbr> is useless.</li>
<li>Attackers have the luxury of using nonstandard equipment.</li>
<li>Return addresses in mail aren&#8217;t reliable, and this fact is easily forgotten.</li>
<li>Don&#8217;t blindly execute <abbr title="Multipurpose Internet Mail Extension">MIME</abbr> messages.</li>
<li>Don&#8217;t trust <abbr title="Remote Procedure Call">RPC</abbr>&#8217;s machine name field.</li>
<li><em>Rpcbind</em> can call <abbr title="Remote Procedure Call">RPC</abbr> services for its caller.</li>
<li><abbr title="Network Information Service">NIS</abbr> can often be persuaded to give out password files.</li>
<li>It is sometimes possible to direct machines to phony <abbr title="Network Information Service">NIS</abbr> servers.</li>
<li>If misconfigured, <abbr title="Trivial File Transfer Protocol">TFTP</abbr> will had over sensitive files.</li>
<li>Don&#8217;t make <em>ftp</em>&#8217;s home directory writable by <em>ftp</em>.</li>
<li>Don&#8217;t put a real password file in the anonymous <em>ftp</em> area.</li>
<li>It is easy to wiretap <em>telnet</em> sessions.</li>
<li>The <em>r</em> commands rely on address-based authentication.</li>
<li>Be careful about interpreting <abbr title="World Wide Web">WWW</abbr> format information.</li>
<li><abbr title="World Wide Web">WWW</abbr> servers should be careful about <abbr title="Uniform Resource Locator">URL</abbr>s.</li>
<li>Poorly written query scripts pose a danger to <abbr title="World Wide Web">WWW</abbr> servers.</li>
<li>The <abbr title="Multicast Backbone">MBone</abbr> can be used to route through some firewalls.</li>
<li>Scalable security administration of peer-to-peer nodes is difficult.</li>
<li>An attacker anywhere on the Internet can probe for X11 servers.</li>
<li><abbr title="User Datagram Packet">UDP</abbr>-based services can be abused to create broadcast storms.</li>
<li>Web servers shouldn&#8217;t believe uploaded state variables.</li>
<li>Signed code is not necessarily safe code.</li>
<li>[Client-side script] is dangerous.</li>
<li>Users are ill-equipped to make correct security choices.</li>
<li>Humans choose lousy passwords.</li>
<li>There are lots of ways to grab <code>/etc/passwd</code>.</li>
<li>There is no absolute remedy for a denial-of-service attack.</li>
<li>Hackers plant sniffers.</li>
<li>Network monitoring tools can be very dangerous on an exposed machine.</li>
<li>Don&#8217;t believe port numbers supplied by outside machines.</li>
<li>It is all but impossible to permit most <abbr title="User Datagram Packet">UDP</abbr> traffic through a packet filter safely.</li>
<li>A tunnel can be built on top of almost any transport mechanism.</li>
<li>If the connection is vital, don&#8217;t use a public network.</li>
</ol>



Share and Enjoy:


	<a rel="nofollow"  href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fne0phyte.com%2Fblog%2F2008%2F05%2F16%2Finternet-network-gotchas%2F&amp;title=Internet%2FNetwork%20Gotchas&amp;bodytext=The%20following%20forty%20five%20%2845%29%20Internet%2Fnetwork%20security%20gotchas%20are%20taken%20from%20Firewalls%20and%20Internet%20Security%20-%20Repelling%20the%20Wily%20Hacker%2C%20Second%20Edition%20%28ISBN%3A%200-201-63344-X%29%20by%20William%20R.%20Cheswick%2C%20et.%20al.%0D%0A%0D%0A%09IP%20source%20addresses%20aren%27t%20trustable." title="Digg"><img src="http://ne0phyte.com/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://delicious.com/post?url=http%3A%2F%2Fne0phyte.com%2Fblog%2F2008%2F05%2F16%2Finternet-network-gotchas%2F&amp;title=Internet%2FNetwork%20Gotchas&amp;notes=The%20following%20forty%20five%20%2845%29%20Internet%2Fnetwork%20security%20gotchas%20are%20taken%20from%20Firewalls%20and%20Internet%20Security%20-%20Repelling%20the%20Wily%20Hacker%2C%20Second%20Edition%20%28ISBN%3A%200-201-63344-X%29%20by%20William%20R.%20Cheswick%2C%20et.%20al.%0D%0A%0D%0A%09IP%20source%20addresses%20aren%27t%20trustable." title="del.icio.us"><img src="http://ne0phyte.com/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.facebook.com/share.php?u=http%3A%2F%2Fne0phyte.com%2Fblog%2F2008%2F05%2F16%2Finternet-network-gotchas%2F&amp;t=Internet%2FNetwork%20Gotchas" title="Facebook"><img src="http://ne0phyte.com/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://twitter.com/home?status=Internet%2FNetwork%20Gotchas%20-%20http%3A%2F%2Fne0phyte.com%2Fblog%2F2008%2F05%2F16%2Finternet-network-gotchas%2F" title="Twitter"><img src="http://ne0phyte.com/wp-content/plugins/sociable/images/twitter.png" title="Twitter" alt="Twitter" class="sociable-hovers" /></a>


<br/><br/>]]></content:encoded>
			<wfw:commentRss>http://ne0phyte.com/blog/2008/05/16/internet-network-gotchas/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Security Truisms in Application Design and Architechture</title>
		<link>http://ne0phyte.com/blog/2008/05/16/application-security-truisms/</link>
		<comments>http://ne0phyte.com/blog/2008/05/16/application-security-truisms/#comments</comments>
		<pubDate>Fri, 16 May 2008 15:41:44 +0000</pubDate>
		<dc:creator>ne0phyte</dc:creator>
				<category><![CDATA[Security]]></category>

		<guid isPermaLink="false">http://ne0phyte.com/?p=23</guid>
		<description><![CDATA[Designing applications for the web requires an up-front security mind-set. It does not matter if the application takes credit card payments or if it hosts static web content. A public web site is just that: a public portal to computer assets that someone out there on the Internet will eventually find and will want to [...]]]></description>
			<content:encoded><![CDATA[<p>Designing applications for the web requires an up-front security mind-set. It does not matter if the application takes credit card payments or if it hosts static web content. A public web site is just that: a public portal to computer assets that someone out there on the Internet will eventually find and will want to exploit for whatever nefarious reason entertains their interests, whatever it is.</p>
<p>The purpose of this post is to discuss the web application design and architecture security truisms that I have held true during my experience as a developer and architect. The following fifteen (15) security truisms are taken from <a title="Preview Book" href="http://books.google.com/books?id=_ZqIh0IbcrgC&amp;printsec=frontcover&amp;source=gbs_summary_r&amp;cad=0" target="_blank">Firewalls and Internet Security &#8211; Repelling the Wily Hacker, Second Edition</a> (ISBN: 0-201-63344-X) by William R. Cheswick, et. al. These truisms are key to any security model &#8211; not just information security. For the purposes of this post, I will discuss how they relate to application design and architecture.</p>
<ol>
<li><strong>There is no such thing as absolute security.</strong> Any web application deployed to a network, be it publicly on the Internet, internally on an Intranet, or even privately on an extranet, will not be absolutely secure. This is due to the fact that it is <em>connected</em> to a network &#8211; the level of it&#8217;s security has been diminished purely by it&#8217;s nature of been <em>deployed</em>. This is a fact.</li>
<li><strong>Security is always a question of economics.</strong> The amount of security that a web application design employs is dependent upon the amount of security infrastructure the application owner is willing to pay for. Though tighter security can be bought with hardware cryptography, <abbr title="Lightweight Directory Access Protocol">LDAP</abbr> servers, etc., it&#8217;s always a question of cost vs. how much risk the application owner is willing to accept. In the end, it&#8217;s a question of balance.</li>
<li><strong>Keep the level of all your defenses at the same height.</strong> This is a tricky one that many people overlook &#8211; balance. The level of an application&#8217;s should balance the level of security of the environment in which it is being deployed. This includes, but is not limited to, the level of physical and software firewall protection, the amount and type of intrusion detection systems, etc. It doesn&#8217;t make a lot of sense to blow out the security architecture of a web application if it&#8217;s going to be deployed in your brother&#8217;s basement on his Wi-Fi router. Conversely, it makes equally less sense to deploy a an insecure web application in a shared hosting environment that hosts credit card payment applications.</li>
<li><strong>An attacker doesn&#8217;t go through security, but around it.</strong> The web application should not be designed as another security hole in the web site&#8217;s security! Attackers will look for weaknesses in web applications deployed to a web site and exploit them.</li>
<li><strong>Put your defenses in layers.</strong></li>
<li><strong>It&#8217;s a bad idea to rely on &#8220;security through obscurity.&#8221;</strong> Compiling the password into the source code, believing it won&#8217;t be found because it has been &#8220;obscured&#8221;, is stupid. I&#8217;m sorry, I said it. I&#8217;ve seen it done before. Put hope in the cost/benefit of hiding secrets in plain site will only reek havoc in the end.</li>
<li><strong>Keep it simple.</strong> Cleaner, well documented code is easier to maintain. Easier maintained code is even easier to secure.</li>
<li><strong>Don&#8217;t give a person or a program any more privileges than those necessary to do the job.</strong> Developers don&#8217;t need access to secured resources. The exception is source code repositories, development databases, development <abbr title="Lightweight Directory Access Protocol">LDAP</abbr> servers, etc. Web applications should be deployed by deployers, not developers. The production authentication credentials should be provided to system administrators that set up the web application server infrastructure. A truly well designed application architecture will not require a developer or deployer to know the production authentication credentials of protected resources such as databases, LDAP servers, or hardware key stores.</li>
<li><strong>Programming is hard.</strong> Secure programming is harder. Don&#8217;t make the job harder than it needs to be. Use common components commonly accepted by the global development community. Don&#8217;t reinvent the wheel by rewriting cryptography algorithms. Reuse code and see #7.</li>
<li><strong>Security should be an integral part of the original design.</strong></li>
<li><strong>If you do not run a program, it does not matter if it has security holes.</strong> If you do not deploy a web application, it does not matter if it is insecure. However, no one will be able to access it.</li>
<li><strong>A program or protocol is insecure until proven secure.</strong> Run web application vulnerability scanning tools. You will be surprised what you will find &#8211; and what you will learn about secure programming practices. See <a href="http://en.wikipedia.org/wiki/List_of_Web_Apps_Security_Scanners" target="_blank">http://en.wikipedia.org/wiki/List_of_Web_Apps_Security_Scanners</a> for a list of web application scanners.</li>
<li><strong>A chain is only as strong as its weakest link.</strong> Our hosting environment can provide us with the strongest firewalls and intrusion detection systems. However, we are writing software, too. The software we write is just one more link the chain. That link must be designed as strong as the rest of the links in chain.</li>
<li><strong>Security is a trade-off with convenience.</strong> And, as security often inconveniences users, the application owner will often feel inconvenienced by higher levels of security. This is where discussions on &#8220;single-sign-on&#8221; begin. For any given company, a users will want to sign-in to the web site once. To sign-in again will be an inconvenience. To have to remember more than one password is even more inconvenient. Ergo, without a &#8220;single-sign-on&#8221; solution in place, users will feel inconvenienced if they have to sign-in every time the visit a different web site that requires authentication for a given company.</li>
<li><strong>Don&#8217;t underestimate the value of your assets. </strong>Just because the web application does not perform secure payment transactions does not mean that it isn&#8217;t attractive to attackers. Any computer resource on the Internet can be used as a host for an attack for whatever reason.</li>
</ol>
<p>All this being said, secure web application design is possible, affordable, and necessary. It must be thought out and balanced against the needs of the application owner and deployment environment. As technology professionals, we are all responsible for the web applications that we design, implement, and deploy because, as any software being run in a remote hosting environment, we provide the gateway between our computer assets and the world wide web.</p>



Share and Enjoy:


	<a rel="nofollow"  href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fne0phyte.com%2Fblog%2F2008%2F05%2F16%2Fapplication-security-truisms%2F&amp;title=Security%20Truisms%20in%20Application%20Design%20and%20Architechture&amp;bodytext=Designing%20applications%20for%20the%20web%20requires%20an%20up-front%20security%20mind-set.%20It%20does%20not%20matter%20if%20the%20application%20takes%20credit%20card%20payments%20or%20if%20it%20hosts%20static%20web%20content.%20A%20public%20web%20site%20is%20just%20that%3A%20a%20public%20portal%20to%20computer%20assets%20that%20som" title="Digg"><img src="http://ne0phyte.com/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://delicious.com/post?url=http%3A%2F%2Fne0phyte.com%2Fblog%2F2008%2F05%2F16%2Fapplication-security-truisms%2F&amp;title=Security%20Truisms%20in%20Application%20Design%20and%20Architechture&amp;notes=Designing%20applications%20for%20the%20web%20requires%20an%20up-front%20security%20mind-set.%20It%20does%20not%20matter%20if%20the%20application%20takes%20credit%20card%20payments%20or%20if%20it%20hosts%20static%20web%20content.%20A%20public%20web%20site%20is%20just%20that%3A%20a%20public%20portal%20to%20computer%20assets%20that%20som" title="del.icio.us"><img src="http://ne0phyte.com/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.facebook.com/share.php?u=http%3A%2F%2Fne0phyte.com%2Fblog%2F2008%2F05%2F16%2Fapplication-security-truisms%2F&amp;t=Security%20Truisms%20in%20Application%20Design%20and%20Architechture" title="Facebook"><img src="http://ne0phyte.com/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://twitter.com/home?status=Security%20Truisms%20in%20Application%20Design%20and%20Architechture%20-%20http%3A%2F%2Fne0phyte.com%2Fblog%2F2008%2F05%2F16%2Fapplication-security-truisms%2F" title="Twitter"><img src="http://ne0phyte.com/wp-content/plugins/sociable/images/twitter.png" title="Twitter" alt="Twitter" class="sociable-hovers" /></a>


<br/><br/>]]></content:encoded>
			<wfw:commentRss>http://ne0phyte.com/blog/2008/05/16/application-security-truisms/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
