<?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>Cloudiquity &#187; Security</title>
	<atom:link href="http://www.cloudiquity.com/tag/security/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.cloudiquity.com</link>
	<description>A blog about Cloud, Grid and HPC technologies</description>
	<lastBuildDate>Wed, 14 Jul 2010 12:22:41 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>System hardening guidelines for Amazon EC2</title>
		<link>http://www.cloudiquity.com/2009/04/system-hardening-guidelines-for-amazon-ec2/</link>
		<comments>http://www.cloudiquity.com/2009/04/system-hardening-guidelines-for-amazon-ec2/#comments</comments>
		<pubDate>Fri, 24 Apr 2009 18:10:17 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Amazon Web Services]]></category>
		<category><![CDATA[Cloud]]></category>
		<category><![CDATA[amazon ec2]]></category>
		<category><![CDATA[authentication]]></category>
		<category><![CDATA[encryption]]></category>
		<category><![CDATA[ExecShield]]></category>
		<category><![CDATA[Keys]]></category>
		<category><![CDATA[OSSEC]]></category>
		<category><![CDATA[PAX]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Security Groups]]></category>
		<category><![CDATA[SELinux]]></category>
		<category><![CDATA[System Hardening]]></category>

		<guid isPermaLink="false">http://www.cloudiquity.com/?p=352</guid>
		<description><![CDATA[One of the biggest questions we get from Clients is &#8220;Is Amazon EC2 secure&#8221; . That is like saying is my Vanilla network secure. Like anything you can take some steps to make the environment as secure as you can, such as:
- First read the Amazon Security Whitepaper and the Amazon discussion of Security processes
- Ensure [...]]]></description>
			<content:encoded><![CDATA[<p>One of the biggest questions we get from Clients is &#8220;Is Amazon EC2 secure&#8221; . That is like saying is my Vanilla network secure. Like anything you can take some steps to make the environment as secure as you can, such as:</p>
<p>- First read the <a href="http://s3.amazonaws.com/aws_blog/AWS_Security_Whitepaper_2008_09.pdf" target="_blank">Amazon Security Whitepaper </a>and the Amazon <a href="http://developer.amazonwebservices.com/connect/entry.jspa?externalID=1697" target="_blank">discussion of Security processes</a></p>
<p>- Ensure the system key is encrypted at start-up</p>
<p>- Ensure you plan for load balancing in case an instance goes down. Ensure you understand all the security implications of this and harden any other instances.</p>
<p>- Test or emulate the performance of applications deployed to the cloud in all geographies where you plan to deploy them. The latency could vary greatly for each.</p>
<p>- Never ever allow password base authentication for shell access.</p>
<p>- Encrypt all network traffic always.</p>
<p>- Always encrypt everything stored on S3</p>
<p>- Encrypt file systems for Block devices</p>
<p>- Open only the minimum required ports</p>
<p>- Include no authentication information in any AMI images</p>
<p>- Think about how your system can be hardened and what is out there such as <a href="http://fedoraproject.org/wiki/SELinux" target="_blank">SELinux</a>, <a href="http://en.wikipedia.org/wiki/PaX" target="_blank">PAX</a>,  <a href="http://en.wikipedia.org/wiki/Exec_Shield" target="_blank">ExecShield</a> etc</p>
<p>- Don’t allows any decryption keys into the cloud &#8211; understand the <a href="http://cloudsecurity.org/2009/04/08/is-amazon-aws-really-hipaa-compliant-today/" target="_blank">perils of keys and security</a></p>
<p>- Install host based intrusion detection system such as <a href="http://www.ossec.net/" target="_blank">OSSEC</a></p>
<p>- Regularly backup Amazon instances and store them securely. </p>
<p>- Use Security Groups. With EC2 security groups, you can completely isolate every tier, even internally to the EC2 cloud.</p>
<p>- Design in a way you can issue security patches to AMI instances</p>
<p>The nightmare scenario that you cannot cater for is is that Xen has unforeseen security issues which would allow inter-VM communication and which in essence would enable instance spying. Amazons doomsday scenario&#8230;..</p>
]]></content:encoded>
			<wfw:commentRss>http://www.cloudiquity.com/2009/04/system-hardening-guidelines-for-amazon-ec2/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Securing n-tier and distributed applications on EC2</title>
		<link>http://www.cloudiquity.com/2009/02/securing-distributed-applications-on-ec2/</link>
		<comments>http://www.cloudiquity.com/2009/02/securing-distributed-applications-on-ec2/#comments</comments>
		<pubDate>Fri, 20 Feb 2009 10:14:37 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Amazon Web Services]]></category>
		<category><![CDATA[Cloud]]></category>
		<category><![CDATA[Amazon]]></category>
		<category><![CDATA[EC2]]></category>
		<category><![CDATA[Security]]></category>

		<guid isPermaLink="false">http://www.cloudiquity.com/?p=184</guid>
		<description><![CDATA[In this post I will walk you through the  high level  of securing a normal tiered application running on EC2. First I will cover the basics of what EC2 provides and then briefly discuss how this can be used in a real life scenario.

Security Groups
For Network security EC2 provides a security groups, security groups are [...]]]></description>
			<content:encoded><![CDATA[<p>In this post I will walk you through the  high level  of securing a normal tiered application running on EC2. First I will cover the basics of what EC2 provides and then briefly discuss how this can be used in a real life scenario.<br />
<a href="http://developer.amazonwebservices.com/connect/entry.jspa?externalID=1928&amp;categoryID=100"></a></p>
<p><strong>Security Groups</strong></p>
<p>For Network security EC2 provides a security groups, security groups are essentially inbound firewalls  suited to the dynamic nature of EC2.  Using security groups you can specify which incoming network traffic should be delivered to your instance.</p>
<ul>
<li>The default mode is to deny access, you have to explicitly open ports to allow for inbound network traffic</li>
</ul>
<ul>
<li> If no security group is specified a special default group is assigned to the instance. This group allows all network traffic from other members of this group and discards traffic from other IP addresses and groups. You can change settings for this group</li>
</ul>
<ul>
<li> You can assign multiple security groups to an AMI instance.</li>
</ul>
<ul>
<li> The security groups for an instance are set at launch time and can not be changed. You can dynamically modify the rules in a security group and the new rules are automatically enforced for all running and future instance, there may be a small delay depending on the number of instances</li>
</ul>
<ul>
<li> You can control access either from  named security groups or source IP address range. You can specify the protocol(TCP, UDP, or     ICMP) , individual ports or port range to open</li>
<li>You can allow access to other users security groups using user-group pair</li>
</ul>
<ul>
<li> The current API (Amazon EC2 on 2008-12-17) does not support port ranges for security group using command line tools or Query API, you will need to use SOAP API</li>
</ul>
<ul>
<li> An account can have a maximum of 100 security groups</li>
</ul>
<ul>
<li> Security groups are just access rules applied to a single or collection of instances, if  two instances are part of the same security group this does not afford them any special access between them.</li>
</ul>
<ul>
<li> An instance running in promiscuous can not sniff any traffic intended for a different instance.</li>
<li>A running instance cannot change security group access rules. You need access keys or X 509 key to authorize change.</li>
</ul>
<ul>
<li>In the instance you can get the security group information from the instance meta-data (<span style="color: #808080;"><strong>curl http://169.254.169.254/1.0/meta-data/security-groups)</strong></span></li>
</ul>
<p><strong>Key Pair</strong></p>
<p>Amazon discourages the use of passwords and the normal way to access an instance is using ssh and a private key. Amazon EC2 provides facilities to generate the key(2048 bit RSA key), at instance startup you can attach the key name to the instance and this will allow root access. Normally you will customize the AMI with your own less privileged user public keys and disable root login</p>
<p><strong>Securing Your Application</strong></p>
<p>Now that we have covered the basics how can we use these to secure a distributed application. Below is the normal deployment architecture for a typical tiered application.<br />
<a href="http://www.cloudiquity.com/wp-content/uploads/2009/02/ec2.jpg"><img class="alignnone size-full wp-image-203" title="ec2" src="http://www.cloudiquity.com/wp-content/uploads/2009/02/ec2.jpg" alt="ec2" width="430" height="309" /></a></p>
<p>In the above deployment we have created 4 security groups</p>
<p><strong>Web-Security group</strong>: Allows http (80) and https(443) to everyone to access the application</p>
<p><strong>App security group</strong>: Only allows access from instances running in web security group on required ports e.g. 8080</p>
<p><strong>DB security group</strong> : Only allows access from instances running in app security group on required ports e.g. 3306</p>
<p><strong>ssh-admin security group</strong>: Only allows access to ssh port 22 and as a matter of policy access is allowed from specific host address or organization network. This allows easy management of permissions.</p>
<p>As you can start an instance with multiple security groups the web tier instances will run with web and ssh-admin security groups, app server instances with app and ssh-admin and finally database instances with db and ssh-admin.</p>
<p>You will not need to change web, app or db security groups, The cloud administrator will allow or revoke admin access by  just adding or removing hosts from ssh-admin group with port 22 access. You can write scripts or use any GUI (Elasticfox, Amazon admin console) tool<br />
</br/><br />
<strong>Other Best practices</strong></p>
<ul>
<li>Make secure requests to Amazon Web Services <a href="http://developer.amazonwebservices.com/connect/entry.jspa?externalID=1928&amp;categoryID=100">see</a></li>
<li>Restrict ssh port(22) access to  host or organization network</li>
<li>You can and are encouraged by amazon to use an other firewall (e.g iptables) in conjunction with security groups  on an instance to restrict inbound/outbound traffic and have finer control</li>
<li>Dont open any port unnecessarily</li>
<li>Have separate application administrator (ssh access to instances) and cloud administrator(setting up security groups and key-pair generation with access to amazon EC2 certificate and access keys but no ssh access to running instances)</li>
<li>Disable password based login( set PasswordAuthentication no in /etc/ssh/sshd_config) <a href="http://developer.amazonwebservices.com/connect/entry.jspa?externalID=1233&amp;categoryID=100"> see</a></li>
<li>Customize the AMI with your own user public keys and disable root login. If you need root login use sudo<a href="http://developer.amazonwebservices.com/connect/entry.jspa?externalID=1233&amp;categoryID=100"> see</a></li>
<li>Keep your AMI up-to-date with security patches and fixes</li>
</ul>
<p></br/><br />
At <a href="http://www.Janats.com" target="_self">Jana</a>, we specialise in Cloud Computing and are available for Cloud implementations or Cloud advisory services. Please <a href="mailto:info@jana.uk.com?subject=Cloud%20Services">contact us</a> for more details</p>
]]></content:encoded>
			<wfw:commentRss>http://www.cloudiquity.com/2009/02/securing-distributed-applications-on-ec2/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
