<?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>Security 24/7</title>
	<atom:link href="http://security-24-7.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://security-24-7.com</link>
	<description>Information Security Blog</description>
	<lastBuildDate>Sat, 09 Feb 2013 08:54:37 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
		<item>
		<title>Lucky Thirteen: Breaking the TLS and DTLS Record Protocols</title>
		<link>http://security-24-7.com/lucky-thirteen-breaking-the-tls-and-dtls-record-protocols/</link>
		<comments>http://security-24-7.com/lucky-thirteen-breaking-the-tls-and-dtls-record-protocols/#comments</comments>
		<pubDate>Sat, 09 Feb 2013 08:54:37 +0000</pubDate>
		<dc:creator>roycoren</dc:creator>
				<category><![CDATA[SSL]]></category>

		<guid isPermaLink="false">http://security-24-7.com/?p=322</guid>
		<description><![CDATA[thought that SSL + TLS are the magic words?? think again! http://www.isg.rhul.ac.uk/tls/ Roy Coren Security Specialist Roy Coren AT gmail]]></description>
				<content:encoded><![CDATA[<p>thought that SSL + TLS are the magic words??<br />
think again!</p>
<p>http://www.isg.rhul.ac.uk/tls/</p>
<p>Roy Coren<br />
Security Specialist<br />
Roy Coren AT gmail</p>
]]></content:encoded>
			<wfw:commentRss>http://security-24-7.com/lucky-thirteen-breaking-the-tls-and-dtls-record-protocols/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Most Aggressively Spreading Malware Binaries</title>
		<link>http://security-24-7.com/most-aggressively-spreading-malware-binaries/</link>
		<comments>http://security-24-7.com/most-aggressively-spreading-malware-binaries/#comments</comments>
		<pubDate>Sat, 12 Jan 2013 12:33:18 +0000</pubDate>
		<dc:creator>roycoren</dc:creator>
				<category><![CDATA[Malware]]></category>

		<guid isPermaLink="false">http://security-24-7.com/?p=317</guid>
		<description><![CDATA[hello again! with that live list you can search various sites for MD5 file names and keep updated regarding what and how those malware are spreading in your network. this site is my bible regarding malware searching and fighting. http://mtc.sri.com/live_data/binaries/ HAPPY NEW YEAR! Roy Coren Security Specialist Roycoren AT gmail.com]]></description>
				<content:encoded><![CDATA[<p>hello again!<br />
with that live list you can search various sites for MD5 file names and keep updated regarding what and how those malware are spreading in your network.<br />
this site is my bible regarding malware searching and fighting.</p>
<p>http://mtc.sri.com/live_data/binaries/</p>
<p>HAPPY NEW YEAR!<br />
Roy Coren<br />
Security Specialist<br />
Roycoren AT gmail.com</p>
]]></content:encoded>
			<wfw:commentRss>http://security-24-7.com/most-aggressively-spreading-malware-binaries/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Malware Fighting Tools/Guides – Part 3 :Down and Dirty</title>
		<link>http://security-24-7.com/malware-fighting-toolsguides-part-3-down-and-dirty/</link>
		<comments>http://security-24-7.com/malware-fighting-toolsguides-part-3-down-and-dirty/#comments</comments>
		<pubDate>Tue, 11 Dec 2012 14:28:21 +0000</pubDate>
		<dc:creator>roycoren</dc:creator>
				<category><![CDATA[Malware]]></category>

		<guid isPermaLink="false">http://security-24-7.com/?p=299</guid>
		<description><![CDATA[Before we start – I just want to declare that the thing I publish here are Based on my experience only and in no means you should understand to buy or not to buy specific products. After understanding the essentials of CISO’s work, I’ll expand on how I did the research work from part1 alongside [...]]]></description>
				<content:encoded><![CDATA[<p>Before we start – I just want to declare that the thing I publish here are Based on my experience only and in no means you should understand to buy or not to buy specific products.<br />
After understanding the essentials of CISO’s work, I’ll expand on how I did the research work from part1 alongside with my incident response team from part 2.<br />
Regarding the tools I have mentioned earlier , those needs to give you FULL view from the bottom up on every request \ connection to the internet starting from the users endpoint to firewall\proxy and DNS requests and cross dissect the findings to give you positive catch.<br />
C&amp;C life cycle:</p>
<p>1) Hostile Downloaded from “some” website or using exposed browser holes to get into a computer.<br />
BTW – the hostile file can be an innocent legitimate skype.exe file that has been downloaded NOT from skype website…</p>
<p>2) If section 1 succeeded and no AV engine has stopped it , the hostile file is trying to “sniff” it’s way inside your organization , trying to elevate privileges and get as much as information as he can before going into phase II.</p>
<p>3) After getting some idea of how your organization “works” &#8211; the hostile file trying to get out and connect to the operator site , this phase usually known as domain fluxing and expressed by multiple burst random DNS searches to sites like [aabbccdd.your company domain extension ] or any other random sequence.<br />
At this step – if you have implemented the right products, the hostile activity should be block at your gateway via IDS\IPS \FW \proxy\url filtering\DLP or any other PREVENTION product.<br />
If it doesn’t and you need to look at step 4 – chances are you are in deep trouble…</p>
<p>4) Also known as Phase II, in which the hostile file –using it’s operator, are evolving into one unit that is fully aware of your organization methods and can exploit almost any aspect on your INTERNAL network.<br />
This includes admin users, passwords, emails, internal ip’s ,DC’s, DNS ,AD and even firewall changing data.<br />
This allows the attacker or shell we say “your commander” , to do whatever he likes in your data. 1-0 to the bad guys….<br />
The first question you might ask is: if my AV vendor is not discovering the bad guys , what can I do?<br />
Well – a good one…this brings me back to my friend original request once again. And the answer is:<br />
No AV vendor is “the one” , enough to look at sites like Virus total or URL Query to see that even 10 AV engines together can miss…therefore you need special tools for this special jobs.<br />
Or worst , if you trust your AV vendor as your sole solution for security – change your job…<br />
It has got to be a BEST OF BREAD solutions that will answer your dynamic organization’s requests and whims..<br />
They MUST be able to do the following in order to crossfire any hostile file in your environment.</p>
<p>Also make sure you IRT team are Using them and their results on a daily bases, in fact – base your security protocols and procedures on their output.</p>
<p>1) Security Event Management (SIEM): [ Such As Arcsight ,Symantec,RSA ]<br />
Connect every available and relevant device to your SIEM and write basic rules .<br />
Improve those rules as you go and remember, those devices can archive almost everything that happened on your network fairly easily, it is the correlation between those events that makes your life easier.</p>
<p>&nbsp;</p>
<p>2) A cross stream line analyzer: [ Such As Damballa FailSafe , Fire Eye , websense Full Suite, advanced Proxy\URL filtering ]<br />
This device sole purpose is to analyze the data from the endpoint to the DNS server \ Proxy \ FW and correlate them to one valid event.<br />
As I explained in the C&amp;C life cycle , it is essential to expose the hostile before phase II , meaning if you can catch one machine [or Asset] trying to contact hostile URL or doing a Domain fluxing –than phase II won’t be an issue for you.<br />
Hell , you can even make these connections terminate automatically or have an event based action to your remediate device.</p>
<p>&nbsp;</p>
<p>3) Investigating tool: [ Such As : Sillicium ECAT , HBGARY responder or even GMER or Comodo CCE ]<br />
MUST HAVE The “cross platform approach” , meaning running in your whole enterprise as a natural endpoint agent , collecting ALL your computers\servers files into one place ,analyzing them and give you suspected or convicted files.<br />
The methods should be as follow :</p>
<p>a) Compare your files through several MD5 signatures databases such as BIT9, NIST, MSDN, or any other Cloud based comparison engine(HITMAN\CCE)<br />
This will bring UP all the files that has no valid or Root CA or No Company embedded in them -so only sealed authentic files can reside on your machines.<br />
Any other result such as unknown files or broken CA – can imply that the file has been compromised by another hostile that may take additional steps, such as injecting DLL&#8217;s into other processes\Services and loading a rootkit, or connecting to additional C&amp;C sites.</p>
<p>b) Use Several AV engines or upload your suspicious files from section A to sites like VirusTotal and similar. You can even upload the MD5 string to the web , you can consult with other findings on your specific hash.</p>
<p>c) Analyze Floating codes and memory Hash in live mode.</p>
<p>d) Create your OWN white list of files that has been created by your organization software developers – and direct them to work as methodically as they can.</p>
<p>e) Check your current network connection from the process and up.<br />
Meaning if you can see EXCEL.exe reaching out to the internet – it is NOT looking to be updated from microsoft…<br />
Even Simple NETSTAT –NAB can give you desired results.</p>
<p>f) Use a good URL filtering engine\Anti Bot &#8211; this actually should be the first DOT in the line of crossfire since you will most probably have an alert from your URL filtering device saying on machine tried to reach a hostile website. You can advise many other Online URL Checking tools.<br />
a good tool in this section has to be one that updates as quickly as he can – since automated cleaning processes are happening on those websites almost whithin the hour – so before you block an access to it from your domain – make sure the danger hasn’t passed already…</p>
<p>From there you can start your query using all the tools and methods I have mentioned the more conclusive results on an evil residing on a machine you’ll get – the better.</p>
<p>this approach is the NOT bullet proof &#8211; but it will defiantly filter out above 95+% of your hostile files..therefore keep up with the technology and bring the human resource to the game.</p>
<p>&nbsp;</p>
<p>GOOD LUCK!</p>
<p>Roy Coren</p>
<p>Security Specialist</p>
<p>Roycoren@gmail.com</p>
]]></content:encoded>
			<wfw:commentRss>http://security-24-7.com/malware-fighting-toolsguides-part-3-down-and-dirty/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Malware Fighting Tools/Guides &#8211; Part 2 , How to be an Ace CISO</title>
		<link>http://security-24-7.com/malware-fighting-toolsguides-part-2-how-to-be-an-ace-ciso/</link>
		<comments>http://security-24-7.com/malware-fighting-toolsguides-part-2-how-to-be-an-ace-ciso/#comments</comments>
		<pubDate>Sat, 08 Dec 2012 09:19:02 +0000</pubDate>
		<dc:creator>roycoren</dc:creator>
				<category><![CDATA[Malware]]></category>

		<guid isPermaLink="false">http://security-24-7.com/?p=303</guid>
		<description><![CDATA[If one of my customers would come today and ask me to design a full method to eliminate unwanted or dangerous files in his domain, I would say &#8220;No such thing&#8221;. One of the reasons is that you can&#8217;t keep your sensitive enviroment clean enough without damaging the users freedom and productivity. Especially VP’s. Most of [...]]]></description>
				<content:encoded><![CDATA[<p>If one of my customers would come today and ask me to design a full method to eliminate unwanted or dangerous files in his domain, I would say &#8220;No such thing&#8221;.</p>
<p>One of the reasons is that you can&#8217;t keep your sensitive enviroment clean enough without damaging the users freedom and productivity. Especially VP’s.</p>
<p>Most of the time CISO and IT managers come to me AFTER somebody has made a 207 or 207A on their domain (that’s the police code for Kidnapping) , in that case you have a legal and usually a very big Go! From the CTO\CEO to do everything you can to stop it from happening again.</p>
<p>Those are the good time for software vendors \integrators who can celebrate a 100% sell rate on those companies.</p>
<p>But – as you guessed, those time pressed CISO’s  are not always aware on which products to implement and most important which technology will give them the best results per dime for the longest time…having that said without the right consultant the will take Pain and turn it to Gain, they usually invest in the wrong methods.</p>
<p>Getting back to the original “bug free” request, on those special cases I would recommend a full revision in the company approach to data security, starting from bottom up.</p>
<p>Implementing a good solid, management backed, data security policy is not something that happened in a day, but it is worth putting a lot of effort and starts something good and harvest those applause later</p>
<p>Issues to consider:</p>
<p>-          Have every user to sign that the computer\software he gets from the company are NOT his own.</p>
<p>-          Publish a list of allowed software in your organization-saying that anything besides that list will cause issues with the HR department…</p>
<p>-          Start by classifying  and identifying your:</p>
<p>1)      Sensitive data – “Show me your data and I’ll tell you how to protect it”</p>
<p>In most cases you will find that they DO NO know the location and the amount of it…this step alone take several months to complete</p>
<p>2)      Weakest points in the LAN \WAN\DMZ</p>
<p>3)      Everyday use data flow – this is the stream that all problems are starting from.</p>
<p>4)      Gather and estimate your human resources, see if the team needs additional knowledge and if he can handle 911 calls and everyday tasks.</p>
<p>In most cases you will find 1 or 2 persons doing 5 persons jobs – this is not the kind of situation you would want to be when implementing a large DLP or SIEM project and realize your team can’t decrypt the results or lack of time to do it.</p>
<p>-          Harden security policies on Mobile users – have smartphones and laptops use hard rules and policies without losing the dynamic of work productivity.</p>
<p>-          Offer well known , dumb proof, productive solutions for the issues above, you can start by drilling down your AD GPO and dead users, continue with AV kill rate to start ,along with your main firewalls rules and block ratio.</p>
<p>-          Keep your software up to date – probably the best tip I can give , no holes ,no foxes…</p>
<p>-          Assign virtual “Data owners” – have them to take responsibility on their data in terms of backup and unwanted access.</p>
<p>-          Pick less tools and solutions as possible for all the scenarios you can imagine – if the 911 call will arrive , the first thing you need is to act as fast as possible and you would want the best results \outcomes\ logs\ products refined and stilled to your desktop.</p>
<p>Now you can start thinking on wide projects like DLP, Endpoint security, SIEM, virtual security, IDS\IPS and most important – a descent monitoring system Or any other solutions that your organization needs – just make sure it fits your gold rules above.</p>
<p>With the outcomes of those  products , you can assign an incident response team to be the task force for all kinds of alarms and events.</p>
<p>And since you will get tens of millions events per day, if this team can handle 10 REAL security events per day , you have scored it! Ace!</p>
<p>See you on part 3..</p>
<p>Roy Coren</p>
<p>Security Specialist</p>
<p><a href="mailto:Roycoren@gmail.com">Roycoren@gmail.com</a></p>
]]></content:encoded>
			<wfw:commentRss>http://security-24-7.com/malware-fighting-toolsguides-part-2-how-to-be-an-ace-ciso/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Malware Fighting Tools/Guides</title>
		<link>http://security-24-7.com/malware-fighting-toolsguides/</link>
		<comments>http://security-24-7.com/malware-fighting-toolsguides/#comments</comments>
		<pubDate>Tue, 04 Dec 2012 13:23:11 +0000</pubDate>
		<dc:creator>roycoren</dc:creator>
				<category><![CDATA[Malware]]></category>

		<guid isPermaLink="false">http://security-24-7.com/?p=297</guid>
		<description><![CDATA[I have done some massive research and long term deep investigations &#8211; and this Checkpoint AntiBot module has got a very high percentage of accuracy on live Malware and C&#38;C communications residing on machines. Those tools helped me along the way to deal and remove those evils in a haystack (besides the obvious Format c: /q [...]]]></description>
				<content:encoded><![CDATA[<p>I have done some massive research and long term deep investigations &#8211; and this Checkpoint AntiBot module has got a very high percentage of accuracy on live Malware and C&amp;C communications residing on machines.<br />
Those tools helped me along the way to deal and remove those evils in a haystack (besides the obvious Format c: /q ).<br />
It has also a knowledge base containing everything you need to know about those evils and their families.<br />
For more information on what was my methodology of my research and with what tools i used -you can write to my email<br />
<a title="https://www.checkpoint.com/solutions/malware-portal/fighting-tools-guides.html" href="https://www.checkpoint.com/solutions/malware-portal/fighting-tools-guides.html" target="_blank">https://www.checkpoint.com/solutions/malware-portal/fighting-tools-guides.html</a></p>
<p>&nbsp;</p>
<p>N-Joy<br />
Roy Coren,<br />
Security Specialist<br />
roycoren@gmail.com</p>
]]></content:encoded>
			<wfw:commentRss>http://security-24-7.com/malware-fighting-toolsguides/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>DLP</title>
		<link>http://security-24-7.com/dlp/</link>
		<comments>http://security-24-7.com/dlp/#comments</comments>
		<pubDate>Sat, 14 Jan 2012 19:17:37 +0000</pubDate>
		<dc:creator>eyalestrin</dc:creator>
				<category><![CDATA[DLP]]></category>

		<guid isPermaLink="false">http://security-24-7.com/?p=284</guid>
		<description><![CDATA[One of the most common definitions for the term DLP (Data Loss Prevention or Data Leakage Prevention) is “systems that identify, monitor, and protect data through deep content inspection, contextual security analysis of transaction (attributes of originator, data object, medium, timing and recipient/destination and so on) and with a centralized management framework.” Purpose of this [...]]]></description>
				<content:encoded><![CDATA[<p>One of the most common definitions for the term DLP (Data Loss Prevention or Data Leakage Prevention) is “systems that identify, monitor, and protect data through deep content inspection, contextual security analysis of transaction (attributes of originator, data object, medium, timing and recipient/destination and so on) and with a centralized management framework.”</p>
<p><strong><span style="text-decoration: underline;">Purpose of this article</span></strong><br />
Organizations are interested to protect their sensitive data, and DLP provides them with the framework to do that. So far no news… However, the DLP world is a bit more complicated than that and the purpose of this article is to highlight few basic domains and areas that are worth thinking about when considering DLP solutions.</p>
<p><strong><span style="text-decoration: underline;">Common Data Locations and States</span></strong></p>
<ul>
<li> Data in motion – Any data that is moving through the network to destinations outside the local / corporate LAN via the Internet</li>
<li> Data at rest – Data that resides in files systems, databases and other storage methods</li>
<li> Data at the endpoint – Data at the endpoints of the network (e.g. data on USB devices, external drives, MP3 players, laptops, and other highly-mobile devices)</li>
</ul>
<p><strong><span style="text-decoration: underline;">Examples of sensitive data:</span></strong></p>
<ul>
<li> Confidential and/or proprietary data, for example: processes, methodologies, development code and etc.</li>
<li> Customer and employee data</li>
<li> Financial data</li>
<li> Data that is regulated by regional and national laws such as HIPAA, SOX and GLBA</li>
</ul>
<p><strong><span style="text-decoration: underline;">Common Data Leakage Channels:</span></strong><br />
<span style="text-decoration: underline;">Technical side:</span></p>
<ul>
<li> Email Traffic &#8211; SMTP from mail servers</li>
<li> Web mail (Gmail, Yahoo, etc)</li>
<li> Uploading files to internet destinations (HTTP, HTTPS, FTP)</li>
<li> Posting on internet sites (blogs, social media, forums)</li>
<li> Instant messaging (gTalk, MSN, Yahoo, Skype)</li>
<li> P2P networks</li>
<li> Wi-Fi networks</li>
<li> Key loggers, Trojan horses</li>
<li> Multiple platform (Windows, Linux, MAC, etc)</li>
<li> Application permissions (ERP, database, SaaS platforms, SharePoint)</li>
</ul>
<p><span style="text-decoration: underline;">Physical:</span></p>
<ul>
<li> Mobile devices</li>
<li> Non-encrypted hard drives</li>
<li> USB drives (Disk on key, external hard drives)</li>
<li> Portable media (CD/DVD, floppy drive, backup tapes)</li>
<li> Physical security (hard copy of documents)</li>
</ul>
<p><span style="text-decoration: underline;">Human factor:</span></p>
<ul>
<li> Lack of employee awareness to security risks</li>
<li> Partners, suppliers, temporary employees and visitors</li>
<li> Working from home, remote locations, internet cafe</li>
</ul>
<p><strong><span style="text-decoration: underline;">Company’s needs to protect themselves from scenarios as mentioned below:</span></strong></p>
<ul>
<li> Inadvertent forwarding of email containing product development or business plans to another email recipient</li>
<li> An employee extracts data from a secure system and conducts the analysis on a less secure system</li>
<li> Sending unreleased pricing information to the wrong email address</li>
<li> Customer or competitive information sent by an employee to a third-party for financial gain</li>
<li> A disgruntled employee with privileged access to sensitive information acts maliciously and steals information</li>
<li> Proprietary information sent to a distributor, who might then forward it on to competitors</li>
<li> Backup tapes are stored in a non-secure environment and curious intruder removes the tape to examine the content</li>
<li> Incorrect settings of permissions of file and directory structure could allow anyone access the information</li>
</ul>
<p><strong><span style="text-decoration: underline;">DLP solutions prevent confidential data loss by:</span></strong></p>
<ul>
<li> Monitoring communications going outside of the organization</li>
<li> Encrypting email containing confidential content</li>
<li> Enabling compliance with global privacy and data security mandates</li>
<li> Securing outsourcing and partner communications</li>
<li> Protecting intellectual property</li>
<li> Preventing malware-related data harvesting</li>
<li> Enforcing acceptable use policies</li>
<li> Providing a deterrent for malicious users (by creating the possibility of being caught)</li>
</ul>
<p><strong><span style="text-decoration: underline;">How to implement DLP solution:</span></strong></p>
<ol>
<li> Perform risk assessment to find out:</li>
<ul>
<li>What type of data exists in the organization?</li>
<li>Where is the data located/saved?</li>
<li>How valuable is the data to the organization?</li>
<li>What type of loss is the organization willing to accept?</li>
<li>What are the regulatory and privacy gaps for the organization?</li>
</ul>
<li> Classify the organization data:</li>
<ul>
<li>Top secret</li>
<li>Secret</li>
<li>Confidential</li>
<li>Restricted</li>
<li>Unclassified</li>
</ul>
<li> Decide what information does the organization would like to search and protect:</li>
<ul>
<li>Pattern, keyword matching and dictionaries</li>
<li>Document fingerprinting</li>
<li>Database fingerprinting</li>
</ul>
<li> Prepare data loss prevention plan:</li>
<ul>
<li>How to limit the damage to the organization</li>
<li>How to avoid similar incidents from happening in the future</li>
<li>How to report to the management, stock holders and media on the current data loss incident</li>
</ul>
<li> Prepare policies, standards and procedures for handling data loss incidents:</li>
<ul>
<li>Scan HTTPS traffic on the gateway</li>
<li>Block data from leaving the organization</li>
<li>Encrypt sensitive information inside database</li>
<li>Full disk encryption</li>
<li>Encrypt data before sending to partners/suppliers</li>
<li>Prevent use of portable media</li>
<li>Employee awareness training</li>
</ul>
<li> Deploy the DLP solution:</li>
<ul>
<li>Install a product on the gateway</li>
<li>Configure SSL termination – recommended</li>
<li>Configure encryption gateway for SMTP traffic – recommended</li>
<li>Deploy agents on the end-points – highly recommended</li>
</ul>
<li> Ongoing monitoring:</li>
<ul>
<li>Review incidents on regular basis (daily/weekly)</li>
<li>Fine-tune the product to raise alerts on important incidents and collect all other incidents.</li>
<li>Create reports on regular basis to locate top senders/targets</li>
<li>Perform data discovery on regular basis (daily/weekly/month) on network shares, servers, end-points, etc.</li>
</ul>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://security-24-7.com/dlp/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Hardening guide for Hyper-V on Windows 2008 R2 server core platform</title>
		<link>http://security-24-7.com/hardening-guide-for-hyper-v-on-windows-2008-r2-server-core-platform/</link>
		<comments>http://security-24-7.com/hardening-guide-for-hyper-v-on-windows-2008-r2-server-core-platform/#comments</comments>
		<pubDate>Sat, 29 Oct 2011 16:34:12 +0000</pubDate>
		<dc:creator>eyalestrin</dc:creator>
				<category><![CDATA[Hyper-V]]></category>
		<category><![CDATA[Windows 2008]]></category>

		<guid isPermaLink="false">http://security-24-7.com/?p=279</guid>
		<description><![CDATA[OS installation phase Boot the server using Windows 2008 R2 bootable DVD. Specify the product ID -> click Next. From the installation option, choose &#8220;Windows Server 2008 R2 (Server Core Installation)&#8221; -> click Next. Accept the license agreement -> click Next. Choose &#8220;Custom (Advanced)&#8221; installation type -> specify the hard drive to install the operating [...]]]></description>
				<content:encoded><![CDATA[<p><span style="text-decoration: underline;">OS installation phase</span></p>
<ol>
<li> Boot the server using Windows 2008 R2 bootable DVD.</li>
<li> Specify the product ID -> click Next.</li>
<li> From the installation option, choose &#8220;Windows Server 2008 R2 (Server Core Installation)&#8221; -> click Next.</li>
<li> Accept the license agreement -> click Next.</li>
<li> Choose &#8220;Custom (Advanced)&#8221; installation type -> specify the hard drive to install the operating system -> click Next.</li>
<li> Allow the installation phase to continue and restart the server automatically.</li>
<li> To login to the server for the first time, press CTRL+ALT+DELETE</li>
<li> Choose &#8220;Administrator&#8221; account -> click OK to replace the account password -> specify complex password and confirm it -> press Enter -> Press OK.</li>
<li> From the command prompt window, run the command bellow:<br />
<code>sconfig.cmd</code></li>
<li> Press &#8220;2&#8243; to replace the computer name -> specify new computer name -> click &#8220;Yes&#8221; to restart the server.</li>
<li> To login to the server, press CTRL+ALT+DELETE -> specify the &#8220;Administrator&#8221; account credentials.</li>
<li> From the command prompt window, run the command bellow:<br />
<code>sconfig.cmd</code></li>
<li> Press “1” to join the server to the domain -> press “D” to join to domain -> specify the domain name -> click “Yes” to restart the server.</li>
<li> To login to the server, press CTRL+ALT+DELETE -> supply credentials of Domain admin account.</li>
<li> From the command prompt window, run the command bellow:<br />
<code>sconfig.cmd</code></li>
<li> Press &#8220;5&#8243; to configure &#8220;Windows Update Settings&#8221; -> select &#8220;A&#8221; for automatic -> click OK.</li>
<li> Press &#8220;6&#8243; to download and install Windows Updates -> choose &#8220;A&#8221; to search for all updates -> Choose &#8220;A&#8221; to download and install all updates -> click &#8220;Yes&#8221; to restart the server.</li>
<li> To login to the server, press CTRL+ALT+DELETE -> supply credentials of Domain admin account.</li>
<li> From the command prompt window, run the command bellow:<br />
<code>sconfig.cmd</code></li>
<li> In-case you need to use RDP to access and manage the server, press &#8220;7&#8243; to enable &#8220;Remote Desktop&#8221; -> choose &#8220;E&#8221; to enable -> choose either &#8220;1&#8243; or &#8220;2&#8243; according to your client settings -> Press OK.</li>
<li> Press &#8220;8&#8243; to configure &#8220;Network settings&#8221; -> select the network adapter by its Index number -> press &#8220;1&#8243; to configure the IP settings -> choose &#8220;S&#8221; for static IP address -> specify the IP address, subnet mask and default gateway -> press &#8220;2&#8243; to configure the DNS servers -> click OK -> press &#8220;4&#8243; to return to the main menu.</li>
<li> Press &#8220;9&#8243; to configure &#8220;Date and Time&#8221; -> choose the correct &#8220;date/time&#8221; and &#8220;time zone&#8221; -> click OK</li>
<li> Press &#8220;11&#8243; to restart the server to make sure all settings take effect -> click &#8220;Yes&#8221; to restart the server.</li>
<li> To login to the server, press CTRL+ALT+DELETE -> supply credentials of Domain admin account.</li>
<li> To install the Hyper-V role, run the command bellow:<br />
<code>start /w ocsetup Microsoft-Hyper-V</code></li>
<li> Click “Yes” to allow the server to restart.</li>
<li> To login to the server, press CTRL+ALT+DELETE -> supply credentials of Domain admin account.</li>
<li> To check that the installation completed, run the command:<br />
<code>oclist | find /i "Microsoft-Hyper-V"</code></li>
<li> Run the commands bellow to enable remote management of the Hyper-V:<br />
<code>netsh advfirewall firewall set rule group="Remote Service Management" new enable=yes</p>
<p>netsh advfirewall firewall set rule group="Windows Management Instrumentation (WMI)" new enable=yes</code></li>
<li> In case you install antivirus for Server Core, add the following to the antivirus exclusions:
<ul>
<li> Virtual machine configuration files directory. By default, it is C:\ProgramData\Microsoft\Windows\Hyper-V.</li>
<li> Virtual machine virtual hard disk files directory. By default, it is C:\Users\Public\Documents\Hyper-V\Virtual Hard Disks.</li>
<li> Snapshot files directory. By default, it is %systemdrive%\ProgramData\Microsoft\Windows\Hyper-V\Snapshots.</li>
<li> Vmms.exe</li>
<li> Vmwp.exe</li>
</ul>
</li>
</ol>
<p><span style="text-decoration: underline;">Manage Hyper-V VMs from Windows 7</span></p>
<ol>
<li> Login to a Windows 7 client using administrative account.</li>
<li> Download and install the Remove Server Administration (RSAT) tools for Windows 7 from:<br />
<a href="http://www.microsoft.com/downloads/details.aspx?FamilyID=7D2F6AD7-656B-4313-A005-4E344E43997D&#038;displaylang=en">http://www.microsoft.com/downloads/details.aspx?FamilyID=7D2F6AD7-656B-4313-A005-4E344E43997D&#038;displaylang=en</a></li>
<li> Open Control Panel and click Programs.</li>
<li> Click Turn Window features on or off.</li>
<li> Under Remote Server Administration Tools Role -> Administration Tools check Hyper-V Tools.</li>
<li> Launch to tools by either typing Hyper-V Manager at the Start menu or go to Start ->Administrative Tools ->Hyper-V Manager.</li>
</ol>
<p><span style="text-decoration: underline;">Virtual Machine Servicing Tool 3.0</span></p>
<ol>
Virtual Machine Servicing Tool 3.0 helps to update offline virtual machines, templates, and virtual hard disks with the latest operating system and application patches.<br />
Download link:<br />
<a href="http://www.microsoft.com/download/en/details.aspx?displaylang=en&#038;id=23300">http://www.microsoft.com/download/en/details.aspx?displaylang=en&#038;id=23300</a></ol>
<p><span style="text-decoration: underline;">Using Authorization Manager for Hyper-V Security</span></p>
<ol>
Authorization Manager provides a flexible framework for integrating role-based access control into applications. It enables administrators who use those applications to provide access through assigned user roles that relate to job functions.<br />
Link for more information:<br />
<a href="http://technet.microsoft.com/en-us/library/cc726036.aspx">http://technet.microsoft.com/en-us/library/cc726036.aspx</a></ol>
]]></content:encoded>
			<wfw:commentRss>http://security-24-7.com/hardening-guide-for-hyper-v-on-windows-2008-r2-server-core-platform/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Hardening guide for Drupal 7.7</title>
		<link>http://security-24-7.com/hardening-guide-for-drupal-7-7/</link>
		<comments>http://security-24-7.com/hardening-guide-for-drupal-7-7/#comments</comments>
		<pubDate>Sat, 03 Sep 2011 11:52:20 +0000</pubDate>
		<dc:creator>eyalestrin</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[CentOS]]></category>
		<category><![CDATA[Drupal]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[SSL]]></category>

		<guid isPermaLink="false">http://security-24-7.com/?p=245</guid>
		<description><![CDATA[Pre-installation notes The guide bellow is based on CentOS 5.5 (i386), Apache 2.2.19, MySQL 5.5.15 The guide bellow is based on the previous guides: Hardening guide for Apache 2.2.15 on RedHat 5.4 (64bit edition) Hardening guide for MySQL 5.1.47 on RedHat 5.4 (64bit edition) Hardening guide for PHP 5.3.2 on Apache 2.2.15 / MySQL 5.1.47 [...]]]></description>
				<content:encoded><![CDATA[<p><strong><span style="text-decoration: underline;">Pre-installation notes</span></strong><br />
The guide bellow is based on CentOS 5.5 (i386), Apache 2.2.19, MySQL 5.5.15</p>
<p>The guide bellow is based on the previous guides:</p>
<ul>
<li><a href="http://security-24-7.com/?p=45">Hardening guide for Apache 2.2.15 on RedHat 5.4 (64bit edition)</a></li>
<li><a href="http://security-24-7.com/?p=53">Hardening guide for MySQL 5.1.47 on RedHat 5.4 (64bit edition)</a></li>
<li><a href="http://security-24-7.com/?p=56">Hardening guide for PHP 5.3.2 on Apache 2.2.15 / MySQL 5.1.47 (RHEL 5.4)</a></li>
</ul>
<p><strong><span style="text-decoration: underline;">PHP installation phase</span></strong></p>
<ol>
<li>Login to the server using Root account.</li>
<li>Before compiling the PHP environment, install the following RPM from the CentOS 5.5 DVD source folder:<br />
<code>rpm -ivh kernel-headers-2.6.18-194.el5.i386.rpm<br />
rpm -ivh glibc-headers-2.5-49.i386.rpm<br />
rpm -ivh glibc-devel-2.5-49.i386.rpm<br />
rpm -ivh gmp-4.1.4-10.el5.i386.rpm<br />
rpm -ivh libgomp-4.4.0-6.el5.i386.rpm<br />
rpm -ivh gcc-4.1.2-48.el5.i386.rpm<br />
rpm -ivh libxml2-2.6.26-2.1.2.8.i386.rpm<br />
rpm -ivh zlib-devel-1.2.3-3.i386.rpm<br />
rpm -ivh libxml2-devel-2.6.26-2.1.2.8.i386.rpm<br />
rpm -ivh pkgconfig-0.21-2.el5.i386.rpm<br />
rpm -ivh libpng-devel-1.2.10-7.1.el5_3.2.i386.rpm<br />
rpm -ivh libjpeg-devel-6b-37.i386.rpm<br />
</code></li>
<li>Download MySQL development RPM from:<br />
<a href="http://download.softagency.net/MySQL/Downloads/MySQL-5.5/">http://download.softagency.net/MySQL/Downloads/MySQL-5.5/</a></li>
<li>Download PHP 5.3.8 source files from:<br />
<a href="http://php.net/downloads.php">http://php.net/downloads.php</a></li>
<li>Download the latest libxml2 for PHP from:<br />
<a href="http://xmlsoft.org/sources/">http://xmlsoft.org/sources/</a></li>
<li>Copy the MySQL development RPM using PSCP (or SCP) into <span style="color: #3333ff;">/tmp</span></li>
<li>Copy the PHP 5.3.8 source files using PSCP (or SCP) into <span style="color: #0000ff;">/tmp</span></li>
<li>Move to <span style="color: #3333ff;">/tmp</span><br />
<code>cd /tmp</code></li>
<li>Install the MySQL development RPM:<br />
<code>rpm -ivh MySQL-devel-5.5.15-1.rhel5.i386.rpm</code></li>
<li>Remove MySQL development RPM:<br />
<code>rm -f MySQL-devel-5.5.15-1.rhel5.i386.rpm</code></li>
<li>Extract the <span style="color: #3333ff;">php-5.3.8.tar.gz</span> file:<br />
<code>tar -zxvf php-5.3.8.tar.gz</code></li>
<li>Extract the libxml2 source file:<br />
<code>tar -zxvf libxml2-2.7.7.tar.gz</code></li>
<li>Move the <span style="color: #3333ff;">libxml2-2.7.7</span> folder:<br />
<code>cd /tmp/libxml2-2.7.7</code></li>
<li>Run the commands bellow to compile the libxml2:<br />
<code>./configure</code>makemake install</li>
<li>Move to the PHP source folder:<br />
<code>cd /tmp/php-5.3.8</code></li>
<li>Run the commands bellow to compile the PHP environment:<br />
<code><code>./configure --with-mysql=mysqlnd --with-libdir=lib --prefix=/usr/local/apache2 --with-apxs2=/usr/local/apache2/bin/apxs --with-openssl --with-zlib --with-gd --with-jpeg-dir=/usr/lib --with-png-dir=/usr/lib --enable-pdo --with-pdo-mysql=mysqlnd --enable-ftp</code></code>makemake install</li>
<li>Edit using VI, the file <span style="color: #3333ff;">/usr/local/apache2/conf/httpd.conf</span><br />
Add the following string, to the end of the AddType section:<br />
<code>AddType application/x-httpd-php .php</code><br />
Replace the line from:<br />
<code>DirectoryIndex index.html</code>To:<br />
<code>DirectoryIndex index.php index.html index.htm</code><br />
Replace the value of the string, from:<br />
<code>LimitRequestBody 10000</code>To:<br />
<code>LimitRequestBody 600000</code></li>
<li>Copy the <span style="color: #3333ff;">PHP.ini</span> file<br />
<code>cp /tmp/php-5.3.8/php.ini-development /etc/php.ini</code></li>
<li>Change the permissions on the php.ini file:<br />
<code>chmod 640 /etc/php.ini</code></li>
<li>Edit using VI, the file <span style="color: #3333ff;">/etc/php.ini</span><br />
Replace the value of the string, from:<br />
<code>mysql.default_host =</code>To:<br />
<code>mysql.default_host = 127.0.0.1:3306</code>Replace the value of the string, from:<br />
<code>pdo_mysql.default_socket=</code>To:<br />
<code>pdo_mysql.default_socket=127.0.0.1</code>Replace the value of the string, from:<br />
<code>allow_url_fopen = On</code>To:<br />
<code>allow_url_fopen = Off</code>Replace the value of the string, from:<br />
<code>expose_php = On</code>To:<br />
<code>expose_php = Off</code>Replace the value of the string, from:<br />
<code>memory_limit = 128M</code>To:<br />
<code>memory_limit = 64M</code>Replace the value of the string, from:<br />
<code>;open_basedir =</code>To:<br />
<code>open_basedir = "/www"</code>Replace the value of the string, from:<br />
<code>post_max_size = 8M</code>To:<br />
<code>post_max_size = 2M</code>Replace the value of the string, from:<br />
<code>disable_functions =</code>To:<br />
<code>disable_functions = fpassthru,crack_check,crack_closedict,crack_getlastmessage,crack_opendict, psockopen,php_ini_scanned_files,shell_exec,chown,hell-exec,dl,ctrl_dir,phpini,tmp,safe_mode,systemroot,server_software, get_current_user,HTTP_HOST,ini_restore,popen,pclose,exec,suExec,passthru,proc_open,proc_nice,proc_terminate, proc_get_status,proc_close,pfsockopen,leak,apache_child_terminate,posix_kill,posix_mkfifo,posix_setpgid, posix_setsid,posix_setuid,escapeshellcmd,escapeshellarg,posix_ctermid,posix_getcwd,posix_getegid,posix_geteuid,posix_getgid,posix_getgrgid, posix_getgrnam,posix_getgroups,posix_getlogin,posix_getpgid,posix_getpgrp,posix_getpid, posix_getppid,posix_getpwnam,posix_getpwuid,posix_getrlimit,system,posix_getsid,posix_getuid,posix_isatty, posix_setegid,posix_seteuid,posix_setgid,posix_times,posix_ttyname,posix_uname,posix_access,posix_get_last_error,posix_mknod, posix_strerror,posix_initgroups,posix_setsidposix_setuid</code>Replace the value of the string, from:<br />
<code>;include_path = ".:/php/includes"</code>To:<br />
<code>include_path = "/usr/local/lib/php;/usr/local/apache2/include/php"</code>Replace the value of the string, from:<br />
<code>display_errors = On</code>To:<br />
<code>display_errors = Off</code>Replace the value of the string, from:<br />
<code>display_startup_errors = On</code>To:<br />
<code>display_startup_errors = Off</code></p>
<p>Replace the value of the string, from:<br />
<code>;gd.jpeg_ignore_warning = 0</code>To:<br />
<code>gd.jpeg_ignore_warning = 1</code></li>
<li>Run the commands bellow to restart the Apache service:<br />
<code><code>/usr/local/apache2/bin/apachectl stop</code></code>/usr/local/apache2/bin/apachectl start</li>
<li>Remove the PHP source and test files:<br />
<code>rm -f /tmp/php-5.3.8.tar.gz<br />
rm -f /tmp/libxml2-2.7.7.tar.gz<br />
rm -rf /tmp/php-5.3.8<br />
rm -rf /tmp/libxml2-2.7.7<br />
rm -rf /tmp/pear<br />
rm -rf /usr/local/apache2/lib/php/test<br />
rm -rf /usr/local/lib/php/test<br />
</code></li>
</ol>
<p><strong><span style="text-decoration: underline;">Drupal installation phase</span></strong></p>
<ol>
<li>Login to the server using Root account.</li>
<li>Run the command bellow to login to the MySQL:<br />
<code>/usr/bin/mysql -uroot -p<span style="color: #008000;">new-password</span></code>Note: Replace the string “<span style="color: #3333ff;">new-password</span>” with the actual password for the root account.</li>
<li>Run the following commands from the MySQL prompt:<br />
<code>CREATE USER '<span style="color: #008000;">blgusr</span>'@'localhost' IDENTIFIED BY 'password2';<br />
SET PASSWORD FOR '<span style="color: #008000;">blgusr</span>'@'localhost' = OLD_PASSWORD('password2');<br />
CREATE DATABASE <span style="color: #008000;">Z5J6Dw1</span>;<br />
GRANT ALL PRIVILEGES ON <span style="color: #008000;">Z5J6Dw1</span>.* TO "<span style="color: #008000;">blgusr</span>"@"localhost" IDENTIFIED BY "<span style="color: #008000;">password2</span>";<br />
FLUSH PRIVILEGES;<br />
quit</code>Note 1: Replace “<span style="color: #3366ff;">blgusr</span>” with your own MySQL account to access the database.<br />
Note 2: Replace “<span style="color: #3366ff;">password2</span>” with complex password (at least 14 characters).<br />
Note 3: Replace “<span style="color: #3366ff;">Z5J6Dw1</span>” with your own Drupal database name.</li>
<li>Download Drupal 7.7 from:<br />
<a href="http://drupal.org/project/drupal">http://drupal.org/project/drupal</a></li>
<li>Copy the Drupal 7.7 source files using PSCP (or SCP) into <span style="color: #3333ff;">/www</span></li>
<li>Move to <span style="color: #3333ff;">/www</span><br />
<code>cd /www</code></li>
<li>Extract the file bellow:<br />
<code>tar -zxvf drupal-7.7.tar.gz</code></li>
<li>Remove Drupal source file:<br />
<code>rm -f /www/drupal-7.7.tar.gz</code></li>
<li>Rename the Drupal folder:<br />
<code>mv /www/drupal-7.7 /www/drupal</code></li>
<li>Remove default content:<br />
<code>rm -f /www/drupal/CHANGELOG.txt<br />
rm -f /www/drupal/COPYRIGHT.txt<br />
rm -f /www/drupal/INSTALL.pgsql.txt<br />
rm -f /www/drupal/LICENSE.txt<br />
rm -f /www/drupal/UPGRADE.txt<br />
rm -f /www/drupal/INSTALL.mysql.txt<br />
rm -f /www/drupal/INSTALL.sqlite.txt<br />
rm -f /www/drupal/INSTALL.txt<br />
rm -f /www/drupal/MAINTAINERS.txt<br />
rm -f /www/drupal/sites/example.sites.php<br />
</code></li>
<li>Edit using VI, the file <span style="color: #3333ff;">/usr/local/apache2/conf/httpd.conf</span><br />
Replace the line from:<br />
<code>DocumentRoot "/www"</code>To:<br />
<code>DocumentRoot "/www/drupal"</code></li>
<li>Run the commands bellow to restart the Apache service:<br />
<code><code>/usr/local/apache2/bin/apachectl stop</code></code>/usr/local/apache2/bin/apachectl start</li>
<li>Create the following folders:<br />
<code>mkdir /www/drupal/sites/default/files</code>mkdir /www/private</li>
<li>Copy the <span style="color: #3366ff;">settings.php</span> file:<br />
<code>cp /www/drupal/sites/default/default.settings.php /www/drupal/sites/default/settings.php</code></li>
<li>Change permissions on the <span style="color: #3366ff;">settings.php</span> file:<br />
<code>chmod a+w /www/drupal/sites/default/settings.php</code>chmod -R 777 /www/drupal/sites/default/fileschmod -R 777 /www/private</li>
<li>Open a web browser from a client machine, and enter the URL bellow:<br />
<a href="http://Server_FQDN/install.php">http://<span style="color: #ff0000;">Server_FQDN</span>/install.php</a></li>
<li>Select “Standard” installation and click “Save and continue”.</li>
<li>Choose the default “English” and click “Save and continue”.</li>
<li>Specify the following details:
<ul>
<li>Database type: MySQL</li>
<li>Database name: <span style="color: #008000;">Z5J6Dw1</span></li>
<li>Database username: <span style="color: #008000;">blgusr</span></li>
<li>Database password: <span style="color: #008000;">password2</span></li>
<li>Click on Advanced Options</li>
<li>Database host: 127.0.0.1</li>
<li>Table prefix: <span style="color: #008000;">Z5J6Dw1_</span></li>
</ul>
<p>Note 1: Replace “<span style="color: #0000ff;">Z5J6Dw1</span>” with your own Drupal database name.<br />
Note 2: Replace “<span style="color: #0000ff;">blgusr</span>” with your own MySQL account to access the database.<br />
Note 3: Replace “<span style="color: #0000ff;">password2</span>” with complex password (at least 14 characters).</li>
<li>Click &#8220;Save and Continue&#8221;.</li>
<li>Specify the following information:
<ul>
<li>Site name</li>
<li>Site e-mail address (for automated e-mails, such as registration information)</li>
<li>Username (for the default administrator account)</li>
<li>E-mail address</li>
<li>Password</li>
</ul>
</li>
<li>Select &#8220;Default country&#8221; and &#8220;Default time zone&#8221;.</li>
<li>Unselect the &#8220;Update Notifications&#8221; checkboxes.</li>
<li>Click &#8220;Save and Continue&#8221;.</li>
<li>Close the web browser.</li>
<li>Create using VI the file <span style="color: #0000ff;">/www/config.php</span> with the following content:<br />
<code>&lt;?php<br />
$databases = array (<br />
'default' =&gt;<br />
array (<br />
'default' =&gt;<br />
array (<br />
'driver' =&gt; 'mysql',<br />
'database' =&gt; '<span style="color: #008000;">Z5J6Dw1</span>',<br />
'username' =&gt; '<span style="color: #008000;">blgusr</span>',<br />
'password' =&gt; '<span style="color: #008000;">password2</span>',<br />
'host' =&gt; '127.0.0.1',<br />
'port' =&gt; '',<br />
'prefix' =&gt; '<span style="color: #008000;">Z5J6Dw1_</span>',<br />
),<br />
),<br />
);<br />
?&gt;</code>Note 1: Make sure there are no spaces, newlines, or other strings before an opening &#8216;&lt; ?php&#8217; tag or after a closing &#8216;?&gt;&#8217; tag.<br />
Note 2: Replace “<span style="color: #0000ff;">blgusr</span>” with your own MySQL account to access the database.<br />
Note 3: Replace “<span style="color: #0000ff;">password2</span>” with complex password (at least 14 characters).<br />
Note 4: Replace “<span style="color: #0000ff;">Z5J6Dw1</span>” with your own Drupal database name.</li>
<li>Edit using VI, the file <span style="color: #0000ff;">/www/drupal/sites/default/settings.php</span><br />
Add the following line:<br />
<code>include('/www/config.php');</code>Remove the following section:<br />
<code>$databases = array (<br />
'default' =&gt;<br />
array (<br />
'default' =&gt;<br />
array (<br />
'driver' =&gt; 'mysql',<br />
'database' =&gt; '<span style="color: #008000;">Z5J6Dw1</span>',<br />
'username' =&gt; '<span style="color: #008000;">blgusr</span>',<br />
'password' =&gt; '<span style="color: #008000;">password2</span>',<br />
'host' =&gt; '127.0.0.1',<br />
'port' =&gt; '',<br />
'prefix' =&gt; '<span style="color: #008000;">Z5J6Dw1_</span>',<br />
),<br />
),<br />
);</code>Replace the string from:<br />
<code>ini_set('session.cookie_lifetime', 2000000);</code>To:<br />
<code>ini_set('session.cookie_lifetime', 0);</code></li>
<li>Change permissions on the <span style="color: #0000ff;">settings.php</span> file:<br />
<code>chmod a-w /www/drupal/sites/default/settings.php</code></li>
<li>Add the following lines to the /www/drupal/.htaccess file:<br />
<code># Block any file that starts with "."<br />
&lt;FilesMatch "^\..*$"&gt;<br />
Order allow,deny<br />
&lt;/FilesMatch&gt;<br />
&lt;FilesMatch "^.*\..*$"&gt;<br />
Order allow,deny<br />
&lt;/FilesMatch&gt;<br />
# Allow "." files with safe content types<br />
&lt;FilesMatch "^.*\.(css|html?|txt|js|xml|xsl|gif|ico|jpe?g|png)$"&gt;<br />
Order deny,allow<br />
&lt;/FilesMatch&gt;</code></li>
<li>Run the command bellow to change permissions on the /www/drupal/.htaccess file:<br />
<code>chmod 444 /www/drupal/.htaccess</code></li>
<li>Download into <span style="color: #0000ff;">/www/drupal/sites/all/modules</span>the latest build of the modules bellow:
<ul>
<li>Drupal Firewall &#8211; <a href="http://drupal.org/project/dfw">http://drupal.org/project/dfw</a></li>
<li>SpamSpan filter &#8211; <a href="http://drupal.org/project/spamspan">http://drupal.org/project/spamspan</a></li>
<li>Content Security Policy &#8211; <a href="http://drupal.org/project/content_security_policy">http://drupal.org/project/content_security_policy</a></li>
<li>GoAway &#8211; <a href="http://drupal.org/project/goaway">http://drupal.org/project/goaway</a></li>
<li>IP anonymize &#8211; <a href="http://drupal.org/project/ip_anon">http://drupal.org/project/ip_anon</a></li>
<li>Flood control &#8211; <a href="http://drupal.org/project/flood_control">http://drupal.org/project/flood_control</a></li>
<li>Password policy &#8211; <a href="http://drupal.org/project/password_policy">http://drupal.org/project/password_policy</a></li>
<li>Persistent Login &#8211; <a href="http://drupal.org/project/persistent_login">http://drupal.org/project/persistent_login</a></li>
<li>Secure Permissions &#8211; <a href="http://drupal.org/project/secure_permissions">http://drupal.org/project/secure_permissions</a></li>
<li>Security Review &#8211; <a href="http://drupal.org/project/security_review">http://drupal.org/project/security_review</a></li>
<li>System Permissions &#8211; <a href="http://drupal.org/project/system_perm">http://drupal.org/project/system_perm</a></li>
<li>Block anonymous links &#8211; <a href="http://drupal.org/project/blockanonymouslinks">http://drupal.org/project/blockanonymouslinks</a></li>
</ul>
</li>
<li>From SSH session, move to the folder <span style="color: #0000ff;">/www/drupal/sites/all/modules</span>.</li>
<li>Extract the downloaded above modules:<br />
<code><code>tar zxvf dfw-7.x-1.1.tar.gz</code></code>tar zxvf spamspan-7.x-1.1-beta1.tar.gztar zxvf content_security_policy-7.x-1.x-dev.tar.gztar zxvf goaway-7.x-1.2.tar.gztar zxvf ip_anon-7.x-1.0.tar.gztar zxvf flood_control-7.x-1.0.tar.gztar zxvf password_policy-7.x-1.0-beta1.tar.gztar zxvf persistent_login-7.x-1.x-dev.tar.gztar zxvf secure_permissions-7.x-1.5.tar.gztar zxvf security_review-7.x-1.x-dev.tar.gztar zxvf system_perm-7.x-1.x-dev.tar.gztar zxvf blockanonymouslinks-7.x-1.1.tar.gz</li>
<li>Remove the modules source files:<br />
<code><code>rm -f /www/drupal/sites/all/modules/dfw-7.x-1.1.tar.gz</code></code>rm -f /www/drupal/sites/all/modules/spamspan-7.x-1.1-beta1.tar.gzrm -f /www/drupal/sites/all/modules/content_security_policy-7.x-1.x-dev.tar.gzrm -f /www/drupal/sites/all/modules/goaway-7.x-1.2.tar.gzrm -f /www/drupal/sites/all/modules/ip_anon-7.x-1.0.tar.gzrm -f /www/drupal/sites/all/modules/flood_control-7.x-1.0.tar.gzrm -f /www/drupal/sites/all/modules/password_policy-7.x-1.0-beta1.tar.gzrm -f /www/drupal/sites/all/modules/persistent_login-7.x-1.x-dev.tar.gzrm -f /www/drupal/sites/all/modules/secure_permissions-7.x-1.5.tar.gzrm -f /www/drupal/sites/all/modules/security_review-7.x-1.x-dev.tar.gzrm -f /www/drupal/sites/all/modules/system_perm-7.x-1.x-dev.tar.gz</p>
<p>rm -f /www/drupal/sites/all/modules/blockanonymouslinks-7.x-1.1.tar.gz</li>
<li>Open a web browser from a client machine, and enter the URL bellow:<br />
<code><a href="http://Server_FQDN/?q=user/login">http://<span style="color: #ff0000;">Server_FQDN</span>/?q=user/login</a></code></li>
<li>From the upper menu, click on Configuration -&gt; People -&gt; Account Settings -&gt; &#8220;Who can register accounts&#8221;: select Administrators only -&gt; click on &#8220;Save configuration&#8221;.</li>
<li>From the upper menu, click on Configuration -&gt; Media -&gt; File system -&gt; &#8220;Private file system path&#8221;: specify /www/private -&gt; click on &#8220;Save configuration&#8221;.</li>
<li>From the upper menu, click on Configuration -&gt; Development -&gt; Logging and errors -&gt; &#8220;Error messages to display&#8221;: select None -&gt; click on &#8220;Save configuration&#8221;.</li>
<li>From the upper menu, click on Modules -&gt; from the list of modules, select “Update manager” -&gt; click on “Save configuration”.</li>
<li>From the upper menu, click on Modules -&gt; from the main page, select the following modules:
<ul>
<li>Drupal firewall</li>
<li>SpamSpan</li>
<li>Content Security Policy</li>
<li>Content Security Policy Reporting</li>
<li>GoAway</li>
<li>IP anonymize</li>
<li>Flood control</li>
<li>Password change tab</li>
<li>Password policy</li>
<li>Persistent Login</li>
<li>Secure Permissions</li>
<li>Security Review</li>
<li>System Perms</li>
<li>BlockAnonymousLinks</li>
</ul>
</li>
<li>Click on Save configuration.</li>
</ol>
<p><strong><span style="text-decoration: underline;">Drupal SSL configuration phase</span></strong></p>
<ol>
<li>Add the following line to the <span style="color: #0000ff;">/www/drupal/sites/default/settings.php</span> file:<br />
<code>$conf['https'] = TRUE;</code></li>
<li>Download into <span style="color: #0000ff;">/www/drupal/sites/all/modules</span>the latest build of the modules bellow:
<ul>
<li>Secure Pages &#8211; <a href="http://drupal.org/project/securepages">http://drupal.org/project/securepages</a></li>
<li>Secure Login &#8211; <a href="http://drupal.org/project/securelogin">http://drupal.org/project/securelogin</a></li>
</ul>
</li>
<li>From SSH session, move to the folder <span style="color: #0000ff;">/www/drupal/sites/all/modules</span>.</li>
<li>Extract the downloaded above modules:<br />
<code>tar zxvf securepages-7.x-1.x-dev.tar.gz</code>tar zxvf securelogin-7.x-1.2.tar.gz</li>
<li>Remove the modules source files:<br />
<code><code>rm -f /www/drupal/sites/all/modules/securepages-7.x-1.x-dev.tar.gz</code></code>rm -f /www/drupal/sites/all/modules/securelogin-7.x-1.2.tar.gz</li>
<li>Open a web browser from a client machine, and enter the URL bellow:<br />
<code><a href="https://Server_FQDN/?q=user/login">https://Server_FQDN/?q=user/login</a></code></li>
<li>From the upper menu, click on Modules -&gt; from the main page, select the following modules:
<ul>
<li>Secure Login</li>
<li>Secure Pages</li>
</ul>
</li>
<li>Click on Save configuration.</li>
<li>From the upper menu, click on Configuration -&gt; from the main page, click on the link Secure Pages -&gt; under Enable Secure Pages -&gt; choose Enabled -&gt; click on Save configuration.</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://security-24-7.com/hardening-guide-for-drupal-7-7/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Kickstart installation guide for CentOS 5.5</title>
		<link>http://security-24-7.com/kickstart-installation-guide-for-centos-5-5/</link>
		<comments>http://security-24-7.com/kickstart-installation-guide-for-centos-5-5/#comments</comments>
		<pubDate>Fri, 29 Oct 2010 13:34:00 +0000</pubDate>
		<dc:creator>eyalestrin</dc:creator>
				<category><![CDATA[CentOS]]></category>
		<category><![CDATA[Kickstart]]></category>

		<guid isPermaLink="false">http://security-24-7.com/?p=231</guid>
		<description><![CDATA[This guide explain how to install and configure kickstart server for network based deployments of CentOS, from an NFS share. The instructions should work the same on RedHat and Fedora. Pre-requirement CentOS 5.5 DVD Static IP address for the Kickstart/DHCP server /data partition In case using CISCO switches, &#8220;Spanning tree port fast&#8221; must be enabled. [...]]]></description>
				<content:encoded><![CDATA[<p>This guide explain how to install and configure kickstart server for network based deployments of CentOS, from an NFS share.<br />
The instructions should work the same on RedHat and Fedora.</p>
<p><strong><span style="text-decoration: underline;">Pre-requirement</span></strong></p>
<ul>
<li>CentOS 5.5 DVD</li>
<li>Static IP address for the Kickstart/DHCP server</li>
<li>/data partition</li>
<li>In case using CISCO switches, &#8220;Spanning tree port fast&#8221; must be enabled.</li>
</ul>
<p><strong><span style="text-decoration: underline;">Installation phase</span></strong></p>
<ol>
<li>Login to the CentOS server using Root account.</li>
<li>Mount the CentOS DVD:<br />
<code>mount /dev/cdrom /media</code></li>
<li>Move to the CentOS RPM folder inside the DVD:<br />
<code>cd /media/CentOS</code></li>
<li>Run the command bellow to install the TFTP-Server:<br />
<code><br />
rpm -ivh xinetd-2.3.14-10.el5.i386.rpm<br />
rpm -ivh tftp-server-0.49-2.el5.centos.i386.rpm</code></li>
<li>Run the command bellow to install the DHCP server:<br />
<code>rpm -ivh dhcp-3.0.5-23.el5.i386.rpm</code></li>
<li>Create new folder for the Kickstart server:<br />
<code>mkdir -p /data/kickstart</code></li>
<li>Edit using VI, the file /etc/xinetd.d/tftp and change the following settings:<br />
From:<br />
<code>disable = yes</code>To:<br />
<code>disable = no</code>From:<br />
<code>server_args = -s /tftpboot</code>To:<br />
<code>server_args = -s /data/kickstart</code></li>
<li>Run the command bellow to start the TFTP server:<br />
<code>/sbin/service xinetd start</code></li>
<li>Run the command bellow to start the TFTP server run at startup:<br />
<code>chkconfig xinetd on</code></li>
<li>Edit using VI, the file /etc/dhcpd.conf and add the following lines:<br />
<code>ddns-update-style none;<br />
allow bootp;<br />
allow booting;<br />
subnet 10.1.1.0 netmask 255.255.255.0 {<br />
option routers 10.1.1.254;<br />
option domain-name-servers 10.1.1.2;<br />
next-server 10.1.1.1;<br />
filename "pxelinux.0";<br />
range dynamic-bootp 10.1.1.200 10.1.1.210;<br />
}</code>Note 1: Replace 10.1.1.0 with the correct network ID.<br />
Note 2: Replace 255.255.255.0 with the correct subnet mask.<br />
Note 3: Replace 10.1.1.254 with the correct default gateway.<br />
Note 4: Replace 10.1.1.1 with the Kickstart server IP address.<br />
Note 5: Replace 10.1.1.200 with the first IP of the DHCP pool.<br />
Note 6: Replace 10.1.1.210 with the last IP of the DHCP pool.<br />
Note 7: Replace 10.1.1.2 with the correct DNS server.</li>
<li>Start the DHCP server<br />
<code>service dhcpd start</code></li>
<li>Run the command bellow to start the DHCP server run at startup:<br />
<code>chkconfig dhcpd on</code></li>
<li>Copy Boot Files<br />
<code>cp /usr/lib/syslinux/{pxelinux.0,menu.c32,memdisk,mboot.c32,chain.c32} /data/kickstart</code></li>
<li>Create a folder for the PXE menu files:<br />
<code>mkdir -p /data/kickstart/pxelinux.cfg</code></li>
<li>Move to the CentOS DVD root folder:<br />
<code>cd /media</code></li>
<li>Copy vmlinuz and initrd.img from the DVD to the images directory:<br />
<code>cp /media/images/pxeboot/{vmlinuz,initrd.img} /data/kickstart/images</code></li>
<li>Create the CentOS DVD structure:<br />
<code>cp -r CentOS /data/kickstart/<br />
cp -r isolinux /data/kickstart/<br />
cp -r repodata /data/kickstart/<br />
cp -r images /data/kickstart/</code></li>
<li>Create using VI, the file /data/kickstart/pxelinux.cfg/default with the following content:<br />
<code>default menu.c32<br />
prompt 0<br />
MENU TITLE PXE Menu<br />
LABEL CentOS<br />
MENU LABEL CentOS<br />
KERNEL images/vmlinuz<br />
append initrd=images/initrd.img vga=normal network ks=nfs:10.1.1.1:/data/kickstart/ks.cfg text</code>Note: Replace 10.1.1.1 with the Kickstart server IP address.</li>
<li>Create an unattended installation script /data/kickstart/ks.cfg<br />
Note: Make sure the file starts with the following lines:<br />
<code>install<br />
nfs --server=10.1.1.1 --dir=/data/kickstart</code>Note 1: Replace 10.1.1.1 with the Kickstart server IP address.<br />
Note 2: Make sure the lines beginning with &#8220;cdrom&#8221; and &#8220;url&#8221; does not exist on the file.<br />
Note 3: To review ks.cfg file options, see the link:<br />
<a title="http://www.redhat.com/docs/en-US/Red_Hat_Enterprise_Linux/5.4/html/Installation_Guide/s1-kickstart2-options.html" href="http://www.redhat.com/docs/en-US/Red_Hat_Enterprise_Linux/5.4/html/Installation_Guide/s1-kickstart2-options.html" target="_blank">http://www.redhat.com/docs/en-US/Red_Hat_Enterprise_Linux/5.4/html/Installation_Guide/s1-kickstart2-options.html</a></li>
<li>Edit using VI, the file /etc/exports and add the following line:<br />
<code>/data/kickstart *(ro,no_root_squash)</code></li>
<li>Start the NFS service:<br />
<code>service portmap start<br />
service nfs start<br />
chkconfig nfs on</code></li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://security-24-7.com/kickstart-installation-guide-for-centos-5-5/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Hardening guide for Squid 3.1.8 on CentOS 5.5</title>
		<link>http://security-24-7.com/hardening-guide-for-squid-3-1-8-on-centos-5-5/</link>
		<comments>http://security-24-7.com/hardening-guide-for-squid-3-1-8-on-centos-5-5/#comments</comments>
		<pubDate>Sun, 19 Sep 2010 19:10:28 +0000</pubDate>
		<dc:creator>eyalestrin</dc:creator>
				<category><![CDATA[Squid]]></category>

		<guid isPermaLink="false">http://security-24-7.com/?p=220</guid>
		<description><![CDATA[Login to the server using Root account. Create a new account: groupadd squid useradd -g squid -d /var/spool/squid -s /sbin/nologin squid Install the following RPM files from the CentOS DVD: rpm -ivh kernel-headers-2.6.18-194.el5.i386.rpm rpm -ivh glibc-headers-2.5-49.i386.rpm rpm -ivh glibc-devel-2.5-49.i386.rpm rpm -ivh gmp-4.1.4-10.el5.i386.rpm rpm -ivh libgomp-4.4.0-6.el5.i386.rpm rpm -ivh cpp-4.1.2-48.el5.i386.rpm rpm -ivh gcc-4.1.2-48.el5.i386.rpm rpm -ivh libstdc++-devel-4.1.2-48.el5.i386.rpm rpm [...]]]></description>
				<content:encoded><![CDATA[<ol>
<li>Login to the server using Root account.</li>
<li>Create a new account:<br />
<code>groupadd squid<br />
useradd -g squid -d /var/spool/squid -s /sbin/nologin squid</code></li>
<li>Install the following RPM files from the CentOS DVD:<br />
<code>rpm -ivh kernel-headers-2.6.18-194.el5.i386.rpm<br />
rpm -ivh glibc-headers-2.5-49.i386.rpm<br />
rpm -ivh glibc-devel-2.5-49.i386.rpm<br />
rpm -ivh gmp-4.1.4-10.el5.i386.rpm<br />
rpm -ivh libgomp-4.4.0-6.el5.i386.rpm<br />
rpm -ivh cpp-4.1.2-48.el5.i386.rpm<br />
rpm -ivh gcc-4.1.2-48.el5.i386.rpm<br />
rpm -ivh libstdc++-devel-4.1.2-48.el5.i386.rpm<br />
rpm -ivh gcc-c++-4.1.2-48.el5.i386.rpm</code></li>
<li>Download the latest Squid source files from: <a title="http://www.squid-cache.org/Versions/" href="http://www.squid-cache.org/Versions/">http://www.squid-cache.org/Versions/</a></li>
<li>Copy using SCP (or PSCP), Squid source files into /tmp</li>
<li>Move to /tmp<br />
<code>cd /tmp</code></li>
<li>Extract Squid source file:<br />
<code>tar zxvf squid-3.1.8.tar.gz</code></li>
<li>Move to the Squid source folder:<br />
<code>cd /tmp/squid-3.1.8</code></li>
<li>Run the commands bellow to compile Squid from source files:<br />
<code>./configure --bindir=/usr/sbin --sbindir=/usr/sbin --libexecdir=/usr/lib/squid --with-logdir=/var/log/squid --with-pidfile=/var/run/squid.pid --with-default-user=squid --sysconfdir=/etc/squid --datarootdir=/usr/share/squid --enable-http-violations</p>
<p>make all</p>
<p>make install  <br />
</code></li>
<li>Move one folder up and remove Squid source files and default content:<br />
<code>cd ..<br />
rm -rf /tmp/squid-3.1.8<br />
rm -f /tmp/squid-3.1.8.tar.gz<br />
rm -rf /usr/share/squid/man<br />
rm -f /etc/squid/cachemgr.conf.default<br />
rm -f /etc/squid/errorpage.css.default<br />
rm -f /etc/squid/mime.conf.default<br />
rm -f /etc/squid/msntauth.conf.default<br />
rm -f /etc/squid/squid.conf.default<br />
rm -f /etc/squid/squid.conf.documented</code></li>
<li>Change ownership and permissions on the log folder:<br />
<code>chown squid:root /var/log/squid<br />
chmod 770 /var/log/squid</code></li>
<li>Edit using VI, the file /etc/squid/squid.conf and add the following lines to the end of the file:<br />
<code>cache_access_log /var/log/squid/access.log<br />
cache_store_log none<br />
shutdown_lifetime 1 second<br />
icp_port 0<br />
htcp_port 0<br />
icp_access deny all<br />
htcp_access deny all<br />
forwarded_for off<br />
request_header_access Allow allow all<br />
request_header_access Authorization allow all<br />
request_header_access WWW-Authenticate allow all<br />
request_header_access Proxy-Authorization allow all<br />
request_header_access Proxy-Authenticate allow all<br />
request_header_access Cache-Control allow all<br />
request_header_access Content-Encoding allow all<br />
request_header_access Content-Length allow all<br />
request_header_access Content-Type allow all<br />
request_header_access Date allow all<br />
request_header_access Expires allow all<br />
request_header_access Host allow all<br />
request_header_access If-Modified-Since allow all<br />
request_header_access Last-Modified allow all<br />
request_header_access Location allow all<br />
request_header_access Pragma allow all<br />
request_header_access Accept allow all<br />
request_header_access Accept-Charset allow all<br />
request_header_access Accept-Encoding allow all<br />
request_header_access Accept-Language allow all<br />
request_header_access Content-Language allow all<br />
request_header_access Mime-Version allow all<br />
request_header_access Retry-After allow all<br />
request_header_access Title allow all<br />
request_header_access Connection allow all<br />
request_header_access Proxy-Connection allow all<br />
request_header_access User-Agent allow all<br />
request_header_access Cookie allow all<br />
request_header_access All deny all<br />
visible_hostname server1<br />
maximum_object_size 4096 KB<br />
minimum_object_size 1 KB<br />
dns_nameservers DNS_value<br />
client_lifetime 360 minutes<br />
pconn_timeout 360 minutes<br />
</code>Note 1: Replace “server1” with the Squid server DNS name.<br />
Note 2: Replace “DNS_value” with IP addresses of DNS servers</li>
<li>Run the command bellow to initialize the Squid:<br />
<code>/usr/sbin/squid -z</code></li>
<li>In-order to manually start the Squid service, run the command bellow:<br />
<code>/usr/sbin/squid</code></li>
<li>In-order to start the Squid service at server startup, add the command bellow to the /etc/rc.local file:<br />
<code>/usr/sbin/squid</code></li>
<li> Uninstall the following RPM:<br />
<code>rpm -e gcc-c++-4.1.2-48.el5<br />
rpm -e libstdc++-devel-4.1.2-48.el5<br />
rpm -e gcc-4.1.2-48.el5<br />
rpm -e cpp-4.1.2-48.el5<br />
rpm -e libgomp-4.4.0-6.el5<br />
rpm -e gmp-4.1.4-10.el5<br />
rpm -e glibc-devel-2.5-49<br />
rpm -e glibc-headers-2.5-49<br />
rpm -e kernel-headers-2.6.18-194.el5</code></li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://security-24-7.com/hardening-guide-for-squid-3-1-8-on-centos-5-5/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
	</channel>
</rss>
