Testing Endpoint Security: an Introductory Guide

Total Page:16

File Type:pdf, Size:1020Kb

Testing Endpoint Security: an Introductory Guide Testing Endpoint Security: An Introductory Guide A Sophos technical paper January 2018 Testing Endpoint Security: An Introductory Guide Contents Preface 3 Exploits 14 Introduction 4 Definition 14 Why Conduct Endpoint Security Testing 4 Why Exploits Matter 14 Attack Chain and Modern Attacks 4 How to Test Exploits 15 Disclaimer 6 Active Attacks 17 Prerequisites 6 Definition 17 Testing Overview 6 Why Active Attacks Matter 17 Testing Checklist 7 How to Test Active Attacks 18 Portable Executables (Malware) 7 False Positives 18 Definition 7 Definition 18 Packed/Compressed Files 7 Why False Positives Matter 18 Potentially Unwanted Applications 8 How to Test False Positives 19 Why Portable Executables Matter 8 How to Test Portable Executables 9 Additional Resources 20 Packed Files 9 Testing Lab Environment 20 Potentially Unwanted Applications 10 Overview 20 Ransomware 10 Virtual Testing Lab Architecture 21 Definition 10 Where to Get Samples 22 File Encryptors 10 Conclusion 24 Disk Encryptors/Wipers 10 Why Ransomware Matters 11 How to Test Ransomware 11 Weaponized Documents and Malicious Scripts 12 Definition 12 Weaponized Documents 12 Malicious Scripts 12 Why Weaponized Documents and Malicious Scripts Matter 12 How to Test Weaponized Documents and Malicious Scripts 13 A Sophos technical paper January 2018 2 Testing Endpoint Security: An Introductory Guide Preface The endpoint security market includes numerous vendors with various powerful technologies designed to keep IT assets safe, yet organizations of all sizes are still susceptible to even the most basic attacks, such as a phishing email with a weaponized document or embedded malicious macro. In general, there is a disconnect between the standard processes by which the industry tests security products to validate their efficacy and the broad spectrum of rapidly evolving real-world threats. What’s worse, the endpoint security market has become shrouded in a fog of acronyms, vendor-specific terminology, and forward-looking marketing. The risk to IT organizations is that they place the security of their endpoints and servers in the hands of a product that has not been effectively tested beyond a few basic scenarios. Perhaps due to varying availability of malicious file samples, ill-understood saliency of threat types, or the costs associated with construction of a versatile testing environment, there is a tendency to measure performance of endpoint security across only a single threat vector. As a result, tests are often not holistic, and disproportionally focus on file-based portable execution detection (we'll expand upon this later). As a result, we at Sophos decided to provide a resource for those who wish to become excellent testers of endpoint security, to provide an aid in conducting unbiased, extensive, and effective testing on any endpoint security product. We did not wish to produce yet another exhaustive "How to Test" guide, but rather a guide on how to become a world-class tester. There are ample resources for those that need a simple step-by-step guide on how to download some malicious .exes and double-click on them. There is, however, a distinct lack of resources catering towards helping a tester establish the connections between how attacks upon networked infrastructure are performed in the real-world and the various capabilities of endpoint security products to defend against them (and how to validate their efficacy). We hope you find this resource both enlightening and useful. A Sophos technical paper January 2018 3 Testing Endpoint Security: An Introductory Guide Introduction Why Conduct Endpoint Security Testing No organization can afford ineffective endpoint security that fails to provide protection against the wide array of ever-increasing and mutating real-world threats. Worse still is that many organizations must rely on third-party tests, vendor-biased or influenced tests, or simply no tests at all. In the age where attackers can learn their skills in a matter of hours watching tutorials on YouTube, the importance of knowing, with some degree of relative certainty, how effective your endpoint security product is couldn't be greater. In the past few years, there has been a movement among security professionals and hobbyists to empower themselves and take the matter of testing into their own hands. The old adage "the proof of the pudding is in the eating" comes to mind. While it is commendable that an increasing number of individuals wish to supplement third-party and first-party testing results with their own, the industry has been awash with advice and guidance typically focused on how to test antivirus and antivirus alone, often via a single attack vector (such as double-clicking on a malicious file or a scripted equivalent). Attackers are well aware that the majority of testing of endpoint security products is focused on this single attack vector, typically of portable executables. This has given rise to a number of antivirus evasion techniques, and the prevalence of their use, such as code caving an executable or exploiting vulnerabilities within software, all the while (ineffective) testing would appear to indicate that the endpoint's defenses are strong. Best phrased by Bruce Schneier, "Security is a chain; it's only as secure as the weakest link.”¹ Testing is essential to find out, for ourselves, how strong our defenses are, for if they are weak, we are only a matter of a misplaced click away from making tomorrow’s news headlines. Attack Chain and Modern Attacks With modern attacks, it is rare that a single event or malware component constitutes the entirety of how an adversary attacks an organization to complete an objective. Most attacks involve multiple steps or stages and not all attacks will use the same techniques to achieve their objective. When observing opportunistic, real-world attacks, it is important to understand that breaking any link in the chain of events that the adversary must complete is often sufficient to thwart the attack in its entirety. The more capabilities a security product has to prevent and detect elements across the length of the attack chain, the more opportunities it has to defeat the attack. Often in testing, organizations focus on a single aspect of an attack, like the detection of malicious executables or the prevention of data theft. While this focus is valid in determining a product’s ability to stop that step of the attack, it is also important to realize that not all attacks will be detectable if the protection software only focuses on only some techniques and not others. For example, having software that is great at detecting malicious executables will do an admirable job in detecting attack campaigns that use malicious executables, but will be completely useless if the adversary is able to complete their objective while never delivering an executable file. ¹ https://www.schneier.com/books/secrets_and_lies/pref.html A Sophos technical paper January 2018 4 Testing Endpoint Security: An Introductory Guide Web and email have become common vectors of delivering an attack as they specifically target humans to socially engineer them. While this document focuses on attacks post- delivery, these are two pivotal stages of the attack chain that should be considered when conducting testing. A product that can block access to the malicious URL or IP address, from which the attack is launched or controlled, breaks the entire chain of the attack at its earliest point. Equally, a product that can block an inbound email or provide heightened scrutiny of email clients and web browsers (context-aware behavioral monitoring) will add an invaluable layer of additional security alongside typical anti-malware capabilities. When evaluating a protection product, it is important to understand how it will address attacks from multiple perspectives. Some of this can be done with testing but often it is just as easy to read the product literature to understand if the product is offering a point solution that targets a single technique or is more comprehensive. Some things to consider and test for include: Ì Attack Surface reduction, preventing users from going to known dangerous locations on the internet or plugging in uncontrolled devices to their computer Ì Ability to detect or prevent the deployment of malicious executables Ì Ability to detect or prevent interaction with malicious documents, image files, and other non-executable files Ì Ability to prevent legitimate applications from performing malicious actions Ì Ability to detect and take action on malicious code or scripts loaded directly into memory that do not require a file to be written to disk Ì Ability to prevent the exploitation of known and unknown vulnerabilities in applications already deployed on the device As a real-world example of the nature of a modern attack, let’s look at NotPetya, the ransomware attack from early 2017. It should be noted that NotPetya was a supply chain attack – the attackers compromised the updating system for a popular software package so that, when the users of the package updated to the latest version, they downloaded and installed NotPetya. An interesting part of NotPetya was that the ransomware mechanism appears to have no intention of collecting the ransom, instead seemingly focused on causing nothing but destruction – a stark contrast to the original Petya variant whose orchestrators would provide a decryption key upon payment of the ransom. After NotPetya was installed via the supply chain attack, it overwrote sections of the master boot record and leveraged exploits in system components to spread laterally to infect more machines. At the same time, it harvested user authentication credentials and scanned the local network for other devices to attack and ultimately encrypt files on those devices. Protection software that stopped any one of the aspects of the attack would either completely prevent the attack or significantly reduce the damage. An endpoint security product that could stop all the aspects is more effective than a product that depends upon a single protection method to do all the work.
Recommended publications
  • Opentext Product Security Assurance Program
    The Information Company ™ Product Security Assurance Program Contents Objective 03 Scope 03 Sources 03 Introduction 03 Concept and design 04 Development 05 Testing and quality assurance 07 Maintain and support 09 Partnership and responsibility 10 Privavy and Security Policy 11 Product Security Assurance Program 2/11 Objective The goals of the OpenText Product Security Assurance Program (PSAP) are to help ensure that all products, solutions, and services are designed, developed, and maintained with security in mind, and to provide OpenText customers with the assurance that their important assets and information are protected at all times. This document provides a general, public overview of the key aspects and components of the PSAP program. Scope The scope of the PSAP includes all software solutions designed and developed by OpenText and its subsidiaries. All OpenText employees are responsible to uphold and participate in this program. Sources The source of this overview document is the PSAP Standard Operating Procedure (SOP). This SOP is highly confidential in nature, for internal OpenText consumption only. This overview document represents the aspects that are able to be shared with OpenText customers and partners. Introduction OpenText is committed to the confidentiality, integrity, and availability of its customer information. OpenText believes that the foundation of a highly secure system is that the security is built in to the software from the initial stages of its concept, design, development, deployment, and beyond. In this respect,
    [Show full text]
  • Secure by Design, Secure by Default: Requirements and Guidance
    Biometrics and Surveillance Camera Commissioner Secure by Design, Secure by Default Video Surveillance Products Introduction This guidance is for any organisation manufacturing Video Surveillance Systems (VSS), or manufacturing or assembling components intended to be utilised as part of a VSS. It is intended to layout the Biometrics and Surveillance Camera Commissioners (BSCC) minimum requirements to ensure such systems are designed and manufactured in a manner that assures they are Secure by Design. It also contains certain component requirements that will ensure a configuration that is Secure by Default when the component is shipped, thereby making it more likely that the system will be installed and left in a secure state. This guidance forms part of a wider suite of documentation being developed as part of the SCC Strategy, in support of the SCC Code of Practice. Background and Context The nature of the Internet means that connected devices can be subjected to a cyber attack from anywhere in the world. Widespread attacks on connected products is a current and real threat, and a number of highly publicised attacks have already occurred. The Mirai malware targeted devices such as internet-enabled cameras (IP cameras). Mirai was successful because it exploited the use of common default credentials (such as a username and password being set by the manufacturer as ‘admin’) and poor security configuration of devices. Ultimately, this facilitated attacks on a range of commercial and social media services and included an outage of streaming services such as Netflix. An evolution of Mirai, called Reaper, has also been discovered. Reaper used publicly and easily available exploits that remained unfixed (patched) and highlighted the problem around non patching of known security vulnerabilities, allowing attackers to utilise them to cause harm.
    [Show full text]
  • Principles for Software Assurance Assessment a Framework for Examining the Secure Development Processes of Commercial Technology Providers
    Principles for Software Assurance Assessment A Framework for Examining the Secure Development Processes of Commercial Technology Providers PRIMARY AUTHORS: Shaun Gilmore, Senior Security Program Manager, Trustworthy Computing, Microsoft Corporation Reeny Sondhi, Senior Director, Product Security Engineering, EMC Corporation Stacy Simpson, Director, SAFECode © 2015 SAFECode – All Rights Reserved. Principles for Software Assurance Assessment Table of Contents Foreword ��������������������������������������������������������������������������������������������������������������������������������� 3 Methodology �������������������������������������������������������������������������������������������������������������������������� 3 Problem Statement ���������������������������������������������������������������������������������������������������������������� 4 Framework Overview ������������������������������������������������������������������������������������������������������������� 5 Guiding Principles for Software Security Assessment ����������������������������������������������������������������������6 The SAFECode Supplier Software Assurance Assessment Framework ������������������������������ 7 What Are Your Risk Management Requirements? ����������������������������������������������������������������������������7 The Tier Three Assessment �����������������������������������������������������������������������������������������������������������������8 The Tier One and Tier Two Assessments ���������������������������������������������������������������������������������������������8
    [Show full text]
  • Model-Based Security Testing
    Model-Based Security Testing Ina Schieferdecker Juergen Grossmann Fraunhofer FOKUS Fraunhofer FOKUS Berlin, Germany Berlin, Germany Freie Universitaet Berlin [email protected] Berlin, Germany [email protected] Martin Schneider Fraunhofer FOKUS Berlin, Germany [email protected] Security testing aims at validating software system requirements related to security properties like confidentiality, integrity, authentication, authorization, availability, and non-repudiation. Although security testing techniques are available for many years, there has been little approaches that allow for specification of test cases at a higher level of abstraction, for enabling guidance on test identification and specification as well as for automated test generation. Model-based security testing (MBST) is a relatively new field and especially dedicated to the sys- tematic and efficient specification and documentation of security test objectives, security test cases and test suites, as well as to their automated or semi-automated generation. In particular, the com- bination of security modelling and test generation approaches is still a challenge in research and of high interest for industrial applications. MBST includes e.g. security functional testing, model-based fuzzing, risk- and threat-oriented testing, and the usage of security test patterns. This paper provides a survey on MBST techniques and the related models as well as samples of new methods and tools that are under development in the European ITEA2-project DIAMONDS. 1 Introduction The times of rather static communication in strictly controlled, closed networks for limited purposes are over, while the adoption of the Internet and other communication technologies in almost all domes- tic, economic and social sectors with new approaches for rather dynamic and open networked environ- ments overwhelmingly progresses.
    [Show full text]
  • Guidelines on Minimum Standards for Developer Verification of Software
    Guidelines on Minimum Standards for Developer Verification of Software Paul E. Black Barbara Guttman Vadim Okun Software and Systems Division Information Technology Laboratory July 2021 Abstract Executive Order (EO) 14028, Improving the Nation’s Cybersecurity, 12 May 2021, di- rects the National Institute of Standards and Technology (NIST) to recommend minimum standards for software testing within 60 days. This document describes eleven recommen- dations for software verification techniques as well as providing supplemental information about the techniques and references for further information. It recommends the following techniques: • Threat modeling to look for design-level security issues • Automated testing for consistency and to minimize human effort • Static code scanning to look for top bugs • Heuristic tools to look for possible hardcoded secrets • Use of built-in checks and protections • “Black box” test cases • Code-based structural test cases • Historical test cases • Fuzzing • Web app scanners, if applicable • Address included code (libraries, packages, services) The document does not address the totality of software verification, but instead recom- mends techniques that are broadly applicable and form the minimum standards. The document was developed by NIST in consultation with the National Security Agency. Additionally, we received input from numerous outside organizations through papers sub- mitted to a NIST workshop on the Executive Order held in early June, 2021 and discussion at the workshop as well as follow up with several of the submitters. Keywords software assurance; verification; testing; static analysis; fuzzing; code review; software security. Disclaimer Any mention of commercial products or reference to commercial organizations is for infor- mation only; it does not imply recommendation or endorsement by NIST, nor is it intended to imply that the products mentioned are necessarily the best available for the purpose.
    [Show full text]
  • Testing the Security of Your Applications 2 Application Security Testing Cybersecurity the Way We Do It
    the way we see it Testing the Security of your Applications 2 Application Security Testing Cybersecurity the way we do it Safeguarding Business Critical Systems and Applications Organizations are under increased pressure to innovate, rapidly develop new applications, and adopt new technologies such as social, mobile, analytics, cloud and the Internet of Things (SMACT). This increases the security risk to business applications and systems. It is a very real and present risk. The number of security all web and mobile applications before release, particularly if breaches reported is escalating – between 2013 and 2014 they are highly regulated. Yet the right people to carry out this 1 alone attacks grew by 120% – and the threat of an attack testing are both difficult to find and costly to employ, plus their from hacktivists or criminal organizations is more pertinent work isn’t scalable nor repeatable. We offer a comprehensive today than ever before. solution designed to address this growing threat to your The average yearly cost of cybercrime for large organizations business applications. in 2014 was US$7.6m – a 10.4% net increase over the Powered by HPE Fortify on Demand, our Application 2 previous year . Combine this with data breach incidents Security Testing solution makes it simple and fast to initiate costing companies $194 on average per compromised record fundamental security controls, whether you have just a few and it’s clear that major attacks could potentially result in applications or are looking to launch a comprehensive security losses totaling tens or even hundreds of millions. This accrues program across your organization without large upfront not only through lost revenue, but as a result of reputational investment.
    [Show full text]
  • A Guide for Running an Effective Penetration Testing Programme
    A guide for running an effective Penetration Testing programme April 2017 A guide for running an effective Penetration Testing programme Published by: CREST Tel: 0845 686-5542 Email: [email protected] Web: http://www.crest-approved.org/ Principal Author Principal reviewer Jason Creasey, Ian Glover, President, CREST Managing Director, Jerakano Limited DTP notes For ease of reference, the following DTP devices have been used throughout the Penetration Testing Guide. Acknowledgements CREST would like to extend its special thanks to those CREST member organisations who took part in interviews and to those clients who agreed to be case studies. Warning This Guide has been produced with care and to the best of our ability. However, CREST accepts no responsibility for any problems or incidents arising from its use. A Good Tip ! A Timely Warning An insightful Project Finding Quotes are presented in a box like this. © Copyright 2013. All rights reserved. CREST (GB). 2 A guide for running an effective Penetration Testing programme Contents Part 1 – Introduction and overview • About this Guide ................................................................................................................................................4 • Purpose ..............................................................................................................................................................4 • Scope .................................................................................................................................................................5
    [Show full text]
  • Oracle Software Security Assurance Oracle’S Methodology for the Development and Maintenance of Security in Its Products
    ORACLE BRIEF Oracle Software Security Assurance Oracle’s methodology for the development and maintenance of security in its products As organizations increasingly rely on software controls to protect their computing environments and data, ensuring that these controls operate in the way they were intended has become a paramount concern. Software security assurance encompasses all the activities involved in ensuring that software operates at an expected and predictable level of security. Managing security incidents, meeting complex regulatory and auditing requirements, and keeping current with security releases can add tremendous costs to an organization’s IT budget; thus organizations must give careful consideration to how their software providers approach software security assurance. Security built in, not bolted on S T A T I C CODE ANALYSIS Encompassing every phase of the product development lifecycle, Oracle Software Static security analysis of source code Security Assurance is Oracle's methodology for building security into the design, build, is used during the entire product testing, delivery, and maintenance of its products. Oracle's goal is to ensure that development cycle. This type of analysis works very well for identifying Oracle's products, as well as the customer systems that leverage those products, buffer overflows and memory leaks in remain as secure as possible. C/C++ code, resource handling issues Secure Coding Standards in J2EE and .NET, finding improper Secure software does not happen by itself. It requires consistently applied credentials handling, various injections, incorrect system configurations, etc. methodologies across each organization; methodologies that conform to stated policies, objectives, and principles. D Y N A M I C C O D E ANALYSIS Oracle Secure Coding Standards are a guide for developers in their efforts to produce Dynamic analysis activity always takes secure code.
    [Show full text]
  • Network Security Testing
    White Paper Network Security Testing 26601 Agoura Road, Calabasas, CA 91302 | Tel: 818.871.1800 | Fax: 818.871.1805 | www.ixiacom.com | 915-1785-01 Rev C January, 2011 2 Table of Contents The Current State of Network Security ...................................................... 4 Sources of Vulnerabilities ........................................................................... 9 Denial of Service Attacks ............................................................................ 9 Making Money from Malware. ....................................................................14 Network Security Testing. ..........................................................................15 Testing Security Devices ............................................................................18 Ixia’s IxLoad-Attack.....................................................................................19 3 Security is a discipline concerned with protecting networks and computer systems against threats such as exploits, malware, data leakage, spam, and denial of service (DoS) attacks, as well as ensuring trusted access through mechanisms such as IPsec or SSL. Enterprises have deployed security devices of all types to defend against threats, and to prevent unintended data leakage. Network security devices consist of one or more security functions, including firewall, intrusion prevention/detection systems (IPS/IDS), data leakage prevention (DLP), and content security filtering functions (e.g. anti-spam, antivirus, URL filtering). Those functions have
    [Show full text]
  • Testing the Social-Mobile- Analytics-Cloud Pack: the Way Forward
    VIEW POINT TESTING THE SOCIAL-MOBILE- ANALYTICS-CLOUD PACK: THE WAY FORWARD “The whole is greater than the sum of its parts” - Aristotle This paper highlights the need for an integrated testing approach for Social-Mobile-Analytics-Cloud pack Convergence of Social Media, Mobile, Analytics, & Cloud is one of the hottest trends these days. This convergence of technologies provides opportunities for organizations to create newer products, services and customers. It is a major business agenda for a large number of organizations. The deep inroads made by these technologies are changing the enterprise technology landscape, thereby forcing organizations to rethink their strategies and increase technology investments in this direction. According to various Industry Associations, the outlook for Social-Mobile-Analytics-Cloud technologies is very bright. This throws up multiple revenue opportunities for vendors to offer related IT services, including offering the right testing services to the Social-Mobile-Analytics-Cloud pack. Testing services are witnessing growth in mobile testing, testing for cloud, social media etc., with each evolving independently. Presently, the testing of services for each element in the Social-Mobile-Analytics-Cloud pack is more silo-based. Organizations are yet to strategize for the Social-Mobile-Analytics-Cloud pack as a whole. There is a need for an integrated end-to-end testing approach. The intent of this paper is to provide a brief background on different testing techniques for each element of the Social-Mobile-Analytics-Cloud pack. It will further focus on how an integrated testing approach is important for organizations to attain a higher Return on Investment (ROI) on their Social-Mobile-Analytics-Cloud initiatives.
    [Show full text]
  • A Survey on Software Security Testing Techniques
    International Journal of Computer Science and Telecommunications [Volume 4, Issue 4, April 2013] 14 A Survey on Software Security Testing Techniques ISSN 2047-3338 Abdullah Saad AL-Malaise AL-Ghamdi Department of Information Systems, Faculty of Computing & Information Technology, King Abdulaziz University, Kingdom of Saudi Arabia [email protected] Abstract– This article briefs a survey on software security software can be exploited by intruders to open security holes. techniques. Software security testing is not the identical as With the development of the Internet, software security testing the correctness and competence of security functions problems are becoming even more ruthless and excruciating. implemented by software, which are most frequently verified Many critical software applications and services need through requirements-based testing. These tests are important; integrated security measures against malicious attacks. The they expose only a small piece of the depiction needed to verify the security of the software. Security testing is necessary because purpose of security testing of these systems include it has a distinct relationship with software quality. Software identifying and removing software flaws that may potentially meets quality requirements related to functionality and guide to security violations, and validating the effectiveness performance, it does not necessary mean that the software is of security measures. secure. A vulnerability tools is a program that performs the analytical phase of a vulnerability analysis, and assessment. Index Terms– Software Security, Assurance, Reliability and Vulnerability analysis defines, identifies, and classifies the Recoverability security holes and their weakness in computer systems includes network, server, or communications channel. Also vulnerability analysis can predict the effectiveness of I.
    [Show full text]
  • Application Security: Safeguarding Data, Protecting Reputations
    • Cognizant 20-20 Insights Application Security: Safeguarding Data, Protecting Reputations Assessing IT systems and network vulnerabilities in today’s interconnected digital world is a daunting endeavor. By embracing penetration testing’s best practices and procedures, organizations can proactively and affordably address security loopholes before hackers undermine customer confidence, brand reputation and financial well-being. Executive Summary there is a grave concern about security, reinforced by recent events: In today’s connected digital ecosystem, applica- tions are center stage, influencing all the ways • In January 2016, a large Belgian bank was in which we interact and communicate. These attacked by cybercriminals that cost the bank applications contain sensitive data and deliver 70 million euros, although no customers were business-critical information services, and as affected by the breach. This type of attack is a result even the smallest security loophole is called a whaling attack or spear-phishing.2 exploited by cybercriminals looking to wreak havoc. While numerous cybercrime incidents have • In August 2015, the U.S. Internal Revenue occurred over the years that damaged customer Service reported that about 300,000 taxpayers’ confidence and brand reputation, solving inherent personal information was compromised when information security challenges remains a work in hackers cracked the agency’s multi-step progress for many organizations. authentication process and were able to make fraudulent claims for tax refunds using stolen The hacking challenge is so steep, that born- identities.3 digital companies Yahoo and Google recently 1 • In November 2015, a Switzerland-based partnered to create an encrypted e-mail system encrypted e-mail provider’s Internet connection that allegedly cannot be decrypted even by the was held for ransom by hackers in what could companies themselves.
    [Show full text]