|
Security, Trust and Risk A whitepaper by encription limited Author: Campbell Murray Introduction Having a regular ethical hack performed is required to obtain and maintain BS7799 and ISO27001 standards and it is also recommended for connection to Government Connect. The payment card industry also recommends that all companies taking credit card payment obtain PCI compliance or in other words, have an ethical hack performed. Ethical hacking is a key component of risk assessment, audit, counter fraud, best practice and good governance. Not only will ethical hacking identify risks and highlight remedial actions it will reduce your ICT costs long term by resolving those vulnerabilities and reducing support issues. It is also a requirement for many financial and insurance organisations regulated by the FSA and increasingly the data protection act presses a multitude of organisations to demonstrate data security. The upshot of this is that the number and variety of ethical hackers has mushroomed in the last few years which raise several hurdles for the purchasers. In such a new market, what do you look for to ensure you get value for money and a quality product? In order to answer these questions it is important firstly to understand what an ethical hacker is, and is not. What is an ethical hacker? In simple terms an ethical hacker is an individual with the same tools and knowledge as a malicious hacker but rather than break into systems for criminal gain an ethical hacker will do this by invitation for a fee. An ethical hacker must be authorised to perform any tests on your systems. This is done by defining the scope of the test, what is to be tested and how it will be tested. The test team will also require a disclaimer stating that they are legally authorised to carry out this activity on your property. The ethical hacker performing the test must not test anything beyond the agreed scope, to do so would be unethical. This brings me to my next point. An ethical hacker must be trusted. Does your ethical hacking supplier perform background checks on their employees? During any security assessment it is highly likely that the test team will encounter sensitive, possibly restricted data. Do you trust your ethical hacker with this information? How is your test result stored? Securely we would expect and with a minimum of 256 bit encryption! In such a highly specialised field the ethical hacker has to be expert in all domains of security from the physical to having an encyclopaedic knowledge of network devices and infrastructure as well as being an expert in every web and server programming language. How can you guarantee that your ethical hacker will have this knowledge? Well you can certainly check their certifications and there are plenty to choose from; CEH, CFEH, GSIH etc but the real measure of an ethical hacker’s metal is their depth of experience. You will gain a far better picture of how an organisation performs by taking up references from within your sector from others who have used the same supplier. You may also consider requesting CV’s of the test team to see who they have worked with and in what capacity. In this rapidly expanding market you could fall foul of the ethical hacker or established company that has chosen to enter this field having passed the exams but without hands on experience the value of the test should be considered limited. Emerging accreditation processes such as the TIGER Scheme will measure ethical hackers not just on their technical skills but also their ability to report findings in plain English. TIGER also allows potential clients to securely view the experience of an individual ethical hacker. You should also establish if they follow an accepted methodology for testing. There are several unofficial but widely recognised standards available, OSSTMM being the most popular and comprehensive at present. Finally your ethical hacker must be independent. It is recommended that your own in house IT staff gain knowledge of IT security best practice but an ethical hacker should not work for you or any organisation that supplies your hardware or software, for example, because he or she will have prior knowledge of your setup and hardware versions. The non-independent ethical hacker could also be biased in their test results especially if vulnerability is discovered in something that their company has supplied. It should be a serious consideration that the company you choose only supply ethical hacking services and nothing else. Companies that have chosen to enter the field of ethical hacking but have previously provided other IT services universally use their ethical hacking accredited technicians for other projects, diluting their expertise and experience in this demanding and specialised field. If an ethical hacker does not solely perform ethical hacks, how much value will their opinion have?
What types of test are there? A ‘black box’ test will provide no information to the ethical hacker at all, just a pointer in the right direction to what should be tested. This could be the company name, address, an IP Address or website URL. A black box test will provide the most realistic ethical hack in that the ethical hacker starts with the same level of knowledge as the malicious hacker. Other definitions of tests exist and are vendor specific. I have heard of ‘crystal box’, ‘rainbow box’, ‘oblique box’ and all other manner of variations. The terms black and white box are sufficient for us. External penetration test Websites are the second most vulnerable aspect of your IT an ethical hacker can test. The reasons for this are many. If you were to put out to tender that you wanted a new website built you are likely to have dozens of agencies beating down your door to tell you why you should use them. It is a cut throat [read ‘buyers’] market and the web development agencies compete on price, search engine optimisation, marketing strategies, deadlines and budget. What they do not consider is security and this is for two reasons. Firstly to build security into web applications would push the price up and secondly no one is asking for security in web applications hence the development agencies remain blissfully ignorant to the threats they create. Websites are now a common extension to the business management process, taking orders, handling customer requests, providing customer liaison and delivering new products requires that the web application itself has a high level of privilege on the web server. No matter how secure the server is, if the web application is vulnerable and has a high level of operator rights on the server then the server may in turn be compromised.
Wireless devices are also a ripe vulnerability area. A year ago the use of the WEP encryption protocol was adequate for most peoples security needs and at the time considered industry best practice. However cryptography has moved on rapidly since then and WEP security can now be defeated in around 14 minutes. WPA offers a higher level of protection providing it is implemented correctly and is now recommended by central government. That said we still encounter WEP encrypted access points and sometimes altogether unsecured access points. With the increased proliferation of mobile computing devices rogue WAP’s (Wireless Access Points) are springing up more and more frequently. What is an underlying theme in almost all vulnerabilities that we detect is a lack of understanding of IT security issues; certainly from web developers and users of mobile devices and it is the lack of knowledge that is the greatest threat to an authority. The department who enabled WEP security probably aren’t aware of how quickly it can be defeated or how their website may compromise the integrity and confidentiality of their data. The number one vulnerability in any organisation regardless of industry or government sector is the staff. Trusting colleagues can be easily tricked into providing the hacker with the information they need or they can be persuaded to carry out actions that will jeopardise security.
The first group we sent an email impersonating another member of staff from the other group of given names. This was in part to test anti spam filters as this spoofed email should have been blocked. However it wasn’t and it got through to all five contacts. This email contained a deliberate mistake. The content was requesting that members of staff download some software from the link provided. The purpose of the software was for IT performance monitoring and that this would be an anonymous process. However the link was broken. Half an hour later we sent another email apologising for the earlier mistake and providing the correct link. All five users downloaded and installed the software. What was most worrying about this attack is that we made no effort to disguise the URL in the link; it was clearly to www.encription.co.uk and not in relevance to the organisations internal or other website systems. This hack falls into a social engineering group which we call request testing but would normally be called spear phishing, and it worked by gaining trust. It is a psychological principal that people are more likely to believe something if it sounds like something they have already heard. This certainly proved true in this case. In the second group of staff to be tested we determined that we would gain their network and other logon details with the minimum of effort. This was achieved by emailing the test group a message with a link to an external website. The message explained that we were working in partnership with the organisation and had created a system for staff to log into via a web URL and update their contact details. The URL posted in this phishing email linked to a clone of the organisations website which we had made. Of the five staff tested three gave us their usernames and passwords within 7 minutes of the email being released. We deliberately created our clone website so that on harvesting this information the visitor was returned to a login failure page. In doing so staff re-entered their details again and again. After a few minutes they then tried other combinations of usernames and passwords which they had for other systems. One member of staff helpfully emailed us to inform us that there was a problem with the system; he was a head of department and we later discovered his login details gave us administrative rights over his network node! What about the other two people from the test group who didn’t respond though? One was on holiday at the time and the other had recently left the organisation and no-one was checking his mail! If this had been different we may have got a full 10 / 10! What is truly interesting about these results is that we later performed a security awareness test for the organisation on several members of staff including those we had socially engineered. Of the test group the highest marks were obtained by those who had willingly compromised their own security. The conclusion we draw from this is that understanding of policy does not reflect understanding of security. All of the staff vulnerability we have mentioned here is down to a lack of threat awareness. The only remedy to this is to train staff in threat awareness and make them aware of the impact their actions may have, regardless of how well intentioned they may be. What else should you expect? First and foremost the report should be clear and easy to understand. A two thousand page technical manual may be thorough but it is of little value to an organisations staff that may not have the time to read and comprehend it all. It should contain a section for non IT / board / senior management (vulnerability overview) Of course the report will be technical but technical aspects of the results should be described in two formats, firstly a section for technical managers (technical overview) introducing key concepts but in a language appropriate to the managers level of technical knowledge and providing them with the necessary information to project manage their response to the results and of course there will be a section for systems administrators (full technical details including fix). This will be no holds barred technical data. But it is still important to consider how this information is formatted. Stuffing the technical aspects of the report into an appendices will not enamour your IT staff to the ethical hacker and it is important that they can work together should there be any need for communication during debrief and fixing phase. Likewise it is a measure of an ethical hackers experience if they put into reports what they found that was worthy of praise. This is important for two reasons, firstly that your IT staff still need to know that the ethical hacker is not there simply to criticise it is just as important to measure and identify that which works so that these aspects of your IT defences remain unchanged and lessons may be learnt from them.
Conclusions
Finally An ethical hack, when carried out and reported properly, will give you knowledge of all your IT security weaknesses and provide you with the information you require to fix those vulnerabilities. This will reduce your ICT costs over the long term, reducing vulnerability and support calls. An initial assessment can also provide you with the business case to justify further expenditure. However IT is a dynamic entity and a penetration test is only a snapshot in time. Regular testing is required to remain on top of security threats and regular training is needed to help colleagues protect your data and themselves. Appendix A Anonymous extracts from penetration test reports. Contents A.1 - Vulnerability overview diagram A.2 - Example executive summary A.3 - Example scope Appendix A.1 Vulnerability Overview
Appendix A.2 ANONYMOUSAPPLICATION PENETRATION TEST REPORT Executive Summary With authorisation from Anonymous, encription limited undertook a series of confidential penetration tests over a four-day period. The objective was to identify potential security vulnerabilities in either the physical or IT environment at the ABC Office. No verbal contact was made with any member of staff. Attempts to gain access to the IT infrastructure, the web site and other services reveals that a password of at least 6 characters is in use (recommendations are always for 8 characters). Although vulnerabilities have been identified in services, such as wireless access points, there is still a level of security in place that will defeat many attackers. Third party suppliers, such as the web site and web hosting, cause the greatest security risks to the company. The physical environment appears to be less secure and has some points where access into the building could be obtained relatively easily. Using encription’s verification scale, the security at Anonymous is good and is rated at 70%, (100% being totally secure). Encription, in liaison with the web hosters would be able to resolve all of the identified IT vulnerabilities Appendix A.3 1 INTRODUCTION 2 SCOPE & LIMITATIONS 2.2 LIMITATIONS 2.3 PRIOR KNOWLEDGE 2.4 METHOD DOCUMENT DETAILS ABOUT ENCRIPTION LIMITED encription limited is a UK based IT security company operating from Worcestershire. From this central location we are able to deliver our services nationwide. With highly experienced consultants at our disposal, encription limited is able to meet your IT security needs, no matter how simple or complex, including consultancy, ethical hacking and staff training. All our consultants have extensive experience in IT security, forensic investigation and ethical hacking. We work to BS7799 (ISO27001) security standards and we are ISO 9001:2000 certified. Our mission In doing so, we keep abreast of the latest IT security threats and work with appropriate organisations, professional bodies and the public sector to develop and maintain IT security standards, defences and techniques that will reduce the risk of an attack on your IT systems. Our solutions are tailored to your specific needs, risk profile, risk appetite and budget. Our Partners Our Clients include About the author: Campbell Murray is the Technical Director of encription limited [ www.encription.co.uk ] and has many years experience in the building and penetration testing of web and network applications across a range of languages, server and database technologies. Campbell is an expert social engineer and has demonstrated repeated success in this field of testing. LEGAL NOTICE LIMITATION OF LIABILITY. THE AUTHOR WILL NOT BE LIABLE FOR ANY SPECIAL, INCIDENTAL, INDIRECT, OR CONSEQUENTIAL DAMAGES (INCLUDING, WITHOUT LIMITATION, DAMAGES FOR PERSONAL INJURY, LOSS OF BUSINESS PROFITS, BUSINESS INTERRUPTION, LOSS OF BUSINESS OR CONFIDENTIAL INFORMATION, LOSS OF PRIVACY, OR ANY OTHER PECUNIARY LOSS) ARISING OUT OF THE USE OF OR INABILITY TO USE THE INFORMATION IN THIS DOCUMENT, EVEN IF THE AUTHOR HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. This document is © encription limited 2007 |
| Data Protection Policy | Site Map | Resources |



