Use Case Development

Presented by: Christopher Crowley

Presentation
Resource Thumbnail

Use Case Development is a structured process for identifying and developing specific scenarios of compromise, known as use cases, to detect and respond to various threats in a Security Operations (SOC) environment. This process involves decomposing the scenario into characteristics, related artifacts, detection opportunities, enrichment opportunities, and implementation options, and developing the use case through monitoring, assessment, revision, review, and expiration. The goal is to create effective use cases that enable organizations to improve their security operations and mitigate cyber risks.

Full Transcript / Content

--- Page 1 --- MGT517 Use Case Development for Security Operations Copyright Christopher Crowley 2017 Christopher Crowley – chris@montance.com - CCrowMontance --- Page 2 --- MGT517 | Managing Security Operations Quick View Talk Explained 2 The Problem --- Page 3 --- MGT517 | Managing Security Operations Background Explanation of Talk - Conversation with collaborator - Based on his experience, organizations need assistance building use cases for their SIEMs - Asked me to assist in developing training / capability - Question: Why would organizations have difficulty developing use cases? 3 --- Page 4 --- MGT517 | Managing Security Operations Quick View MGT517 Excerpt 4 Definition and Program Components --- Page 5 --- MGT517 | Managing Security Operations Level Set First Principles - I assume there’s a group in your organization responsible for security operations - Very flexible definition of this, but often referred to as the SOC. Referential to SANS MGT517 - To understand where my Use Case expression comes from, I want to describe what I assume is in place, and if it isn’t you need to build it before worrying about building use cases 5 --- Page 6 --- MGT517 | Managing Security Operations Definition of Security Operations First Principles Security Operations – Protecting the confidentiality, integrity, and availability information systems of an organization through: proactive design and configuration, ongoing monitoring of system state, detection of unintended actions or undesirable state, and minimizing damage from unwanted affects. 6 --- Page 7 --- MGT517 | Managing Security Operations Download This Slide Deck Download https://bit.ly/crow-soc 7 --- Page 8 --- MGT517 | Managing Security Operations Download This Slide Deck Download https://bit.ly/crow-soc 8 --- Page 9 --- MGT517 | Managing Security Operations Long Term Build Plan and Improvement SOC Lifecycle - Design-> Build - Operate + Mature Drivers Charter SOC Structure Staffing Tech Im-plement Monitor & Detect Respond Improve --- Page 10 --- MGT517 | Managing Security Operations SOC Requirements Steering Committee Three Types of SOC 10 - Based on the requirements of your industry, organization objectives, and monetary investment your SOC will resemble one of the following - Compliance SOC – usually little growth / change - Security SOC – minimal competence - little growth - Security SOC – high competence - striving --- Page 11 --- MGT517 | Managing Security Operations SOC Requirements SOC Types Difference Between Minimal and High Competence 11 - What’s the difference between a minimally competent SOC and a performance / striving SOC? - Organization support: Funding, Vision, Agency to affect change - SOC awareness of organization needs - Threat Intelligence (consumption and generation) --- Page 12 --- MGT517 | Managing Security Operations Design Elements Components - Technology – hardware and software to accomplish the function’s objective - Inputs – expected objects transferred to function - Processes – the actions performed by the function - Artifacts – expected output from the function - People – employees, directly embedded contractors, customers, partners 12 --- Page 13 --- MGT517 | Managing Security Operations What Is Success for a SOC? SOC is successful when it intervenes in adversary efforts to impact the availability, confidentiality, and integrity of organization’s information assets. It does this by proactively making systems more resilient to impact and reactively detecting, containing, and eliminating adversary capability. Statement of Success --- Page 14 --- MGT517 | Managing Security Operations Quick View MGT517 Excerpt 14 Functional Components --- Page 15 --- MGT517 | Managing Security Operations Functional Components of SOC Components - The functional capabilities a SOC is expected to perform - Other parts you need to be operational - Software and hardware to make a SOC - Interactions between these capabilities - Interaction from SOC functions to other parts of the business - People and skillsets to make the SOC effective - Processes for repeatable and effective operations 15 --- Page 16 --- MGT517 | Managing Security Operations SOC / Command Center Components - The Command Center performs command and control of all activity related to security operations - Single point of entry for security related security requests (like 911 for emergencies) - Authority to direct response and notify constituents - Identification and deconfliction of incidents - Objective: Maintain situational awareness of systems and threat environment, manage threats, proactively protect systems 16 --- Page 17 --- MGT517 | Managing Security Operations Network Security Monitoring (NSM) Components - Fundamental and critical capability - This entails watching the actions and communication of the information systems for unwanted activity - All forms of communication and activity - Requires dedicated hardware, software, and specialized staff - Gigantic amounts of constantly changing data - Objective: fast and accurate detection of issues 17 --- Page 18 --- MGT517 | Managing Security Operations Threat Intelligence Components - Insecure systems won’t be compromised without a threat leveraging the vulnerability - Studying the threats to our environment to better: prepare, detect, and respond - Threat Intel takes two forms - Production of Threat Intel – develop information based on artifacts - Consumption of Threat Intel - buy a feed, share with partners, etc. - Objective: tactical and strategic advantage over adversaries 18 --- Page 19 --- MGT517 | Managing Security Operations Incident Response Components - Incident Response is engaged after a problem detected by NSM or external notification - Strives to minimize the damage from the incident - Performs thorough analysis to determine extent of the incident - Leverages lessons learned from incidents to enhance defensibility of the organization - Objective: minimize impact of problems 19 --- Page 20 --- MGT517 | Managing Security Operations Forensics Components - In support of Incident Response, specialized capabilities to determine the extent of the incident and proactively prevent spread of adversary with detection based on forensic analysis - We’ll discuss each of these types of forensics: - Host - Network - Reverse Engineering - eDiscovery - Objective: detailed data and event analysis for incident verification and impact assessment 20 --- Page 21 --- MGT517 | Managing Security Operations Forensics – Host Components - Host Forensics studies data on individual systems – includes cloud, mobile devices and memory forensics - Indicators of Compromise, used to scope intrusion - Application data - Operating system artifacts - Logs - Objective: detailed analysis of events on systems of interest 21 --- Page 22 --- MGT517 | Managing Security Operations Forensics – Network Components - Network Forensics studies network artifacts - Switch/Router/Firewall Logs - Proxy Logs - Mail Logs - … Logs - Full Packet Capture (PCAP) - Objective: detailed analysis of events on network to understand what was compromised 22 --- Page 23 --- MGT517 | Managing Security Operations Forensics – Reverse Engineering Components - RE is very difficult but incredibly useful - Studies hardware or software - Determines the capability of the item studied - Frequently malware (software) analysis - Also could be firmware, hardware, etc. - Objective: detailed analysis, determination of safety and intent of hardware or software in use in the organization 23 --- Page 24 --- MGT517 | Managing Security Operations Forensics – eDiscovery Components - eDiscovery is a necessary capability in any organization - Interfaces with Legal team to define objectives - Leverages existing infrastructure to efficiently support collection - Requires specialized expertise for retention of records - Most organizations have obligation to support discovery - For US Government, also entails Freedom of Information Act (FOIA) requests - Objective: Collect information assets in a reproducible and thorough fashion 24 --- Page 25 --- MGT517 | Managing Security Operations Self-Assessment Components - Configuration Monitoring - Vulnerability Assessment - Pen Testing - Exercises - Objective: ongoing assessment of attack surface of information systems and organization capability to resist and recover when incidents occur 25 --- Page 26 --- MGT517 | Managing Security Operations Configuration Monitoring Components - CM is the practice of approving change and detecting variation from approved baselines and configurations - Change Control - File Integrity Monitoring / Application Whitelisting - Baseline and standard approved configurations - Deviation authorization and tracking - Continuous Monitoring - Objective: monitor settings and change from specified baseline of settings 26 --- Page 27 --- MGT517 | Managing Security Operations Vulnerability Assessment Components - Vulnerability Assessment is testing systems for issues, such as missing patches or misconfiguration and directing remediation - Typically performed using a vulnerability scanner - Software with inventory of known patches and flaws, and methods for checking if they’re missing - Objective: identify attack surface of systems: vulnerability to known flaws and weak configurations 27 --- Page 28 --- MGT517 | Managing Security Operations Penetration Testing Components - Pen Testing goes beyond vulnerability scans to model how an adversary would compromise a system and what is at risk - Time intensive, expertise required - Objective: determine risk of an information system by demonstrating impact of compromise and model adversary attack methods against a system 28 --- Page 29 --- MGT517 | Managing Security Operations Exercises Components - Exercises model plausible scenarios, challenging staff to follow procedures and adapt new ones. They reinforce good practices and fix bad behavior. - Very valuable, but often neglected - The culture of “too busy” frequently prevents exercises - Objective: assess staff readiness, capability to follow defined procedures and improvise in the face of unanticipated issues 29 --- Page 30 --- MGT517 | Managing Security Operations Structure of SOC Components - Pool of people (typically small group) - Everyone on one team, share responsibility, rotate rolls or matrix based on skillset and capability - Attacker Phase Mirroring - Organized groups as counter to attacker behaviors - Functional Group - What is mostly presumed for the MGT517 class material: primarily a pedagogical choice for clarity Functions Arrangement Options 30 --- Page 31 --- MGT517 | Managing Security Operations Multi-SOC Models Layers of SOC Follow-the-sun 31 - Three or more physical locations across the globe to give 24x7 coverage - Dublin (UTC) , Seattle (UTC -8), Singapore (UTC +8) for example - Legal concerns of data privacy laws and data portability, and political stability of the country - Transitions between teams and consistency among capabilities and methodology is a challenge - We’ll talk more about culture tomorrow, but having the exact same procedures for teams in New York, Mumbai, and Tokyo will likely result in sub optimal performance, account for regional difference - Select which functions need follow the sun. NSM and Command Center are likely candidates, as is IR --- Page 32 --- MGT517 | Managing Security Operations Puzzle Pieces SOC Architecture Putting The Pieces Together is Left as an Exercise for the Reader 32 --- Page 33 --- MGT517 | Managing Security Operations Puzzle Pieces SOC Architecture 33 Available at https://bit-ly/crow-soc --- Page 34 --- MGT517 | Managing Security Operations Quick View MGT517 Excerpt 34 Process, Procedures, Playbooks --- Page 35 --- MGT517 | Managing Security Operations The Only Constant Is Change Maturity - SOC processes should be designed to adapt to the inevitable changes it will face - Following the procedure is the right thing to do, so long as the procedures are always updated - Demonstrate SOCs capability to utilize its capability and resources everywhere possible to aid the business: federated central logging, for example Agility and Adaptability --- Page 36 --- MGT517 | Managing Security Operations Playbook Maturity - Playbooks provide operational guidance on - Preferred methodology - Objective state - Available resources and opportunities for assistance - Requirements for escalation - Authority to perform tasks, and boundaries of authority - Should include checklists and quick reference material Guidelines for the Professional --- Page 37 --- MGT517 | Managing Security Operations Standard Operating Procedures Maturity - SOPs should be used in cases where rigor is needed to avoid errors - SOPs are useful for lower skilled, high turn over positions, but high-skill workers are often benefited by SOPs and checklists (despite their occasional protests to the contrary) Exact Steps to be Performed --- Page 38 --- MGT517 | Managing Security Operations Quick View MGT517 Excerpt 38 Use Case Development --- Page 39 --- MGT517 | Managing Security Operations Use Case Development Use Case Development - I want to define what I’m developing before I set out to create it - Let’s explore a couple references then arrive at a definition First Question: What is a Use Case? --- Page 40 --- MGT517 | Managing Security Operations Use Case Development Use Case Development - The term Use Case is a Unified Modeling Language (UML) term for the description of all feasible user interactions with a system - Use Case Diagram one of the behavioral diagrams in UML Use Case Defined by UML --- Page 41 --- MGT517 | Managing Security Operations Use Case Development Use Case Development - Analytical Pivoting? - Diamond model uses this concept and “activity grouping” to explore items of interest What is a Use Case? --- Page 42 --- MGT517 | Managing Security Operations Use Case Development Use Case Development - Analytical - describes the practice of analysis - If you don’t have an analytical practice that your analysts use consistently, you should fix that issue - This is necessary for collaboration and consistent work output An Aside: Analysis --- Page 43 --- MGT517 | Managing Security Operations Use Case Development Use Case Development - Tend to describe compromise scenarios What do vendors say? - Kind of like “all the ways a user can interact with the system” but the subset of those ways that we care about within SOC --- Page 44 --- MGT517 | Managing Security Operations Use Case Development Use Case Development A Use Case describes a relevant scenario of compromise and potential method(s) of detecting the offensive activity - Tweet your suggested revision: @CCrowMontance Use Case Defined for SOCs --- Page 45 --- MGT517 | Managing Security Operations Use Case Development Use Case Development - Identify scenario of interest and business relevance - Characteristics of scenario (decompose it) - Related Artifacts - Detection opportunities in data - Enrichment opportunities in data (Threat Info, Correlation) - Implementation - Monitoring / Assessment - Revision / Review / Expiration Steps to Build a Use Case --- Page 46 --- MGT517 | Managing Security Operations Use Case Development Use Case Development - Some scenarios have ceased to be relevant - Predictable TCP sequence numbers, for example - Some scenarios should have ceased to be relevant, but nevertheless persist - ARP manipulation attacks, for example - If you set it up and never revisit it, you’re creating inefficiency for the analysts tasked with initial differentiation Revision / Review / Expiration --- Page 47 --- MGT517 | Managing Security Operations Use Case Development Use Case Development - Technical Analysts: NSM, IR, Forensics - Threat Intelligence Analysts - Vulnerability analysts - Baseline team - Consideration by constituents (affected business units) - May be dedicate use case developers, or a task of a specific rule Who is Involved in Use Case Development? --- Page 48 --- MGT517 | Managing Security Operations Use Case Development Use Case Development - Hunting is reviewing available data for indicators of suspicious items worthy of further investigation - An output from hunting is use case ideas to develop - Or, the use case is the operational implementation of the ideas developed / discovered during hunting - Don’t saddle the hunt effort with use case development per se – collect ideas during the hunt effort to implement in use cases later How is This Different Than Hunting? --- Page 49 --- MGT517 | Managing Security Operations Use Case Development Use Case Development - Don’t make your own to start with! - So many repositories with pre-existing use cases for you to leverage - Start with your SIEM vendor resources - Use other SIEM vendor resources to recreate their UCs Repositories for Use Cases --- Page 50 --- MGT517 | Managing Security Operations Use Case Development Use Case Development - https://www.ibm.com/security/services/use-case-library - https://conf.splunk.com/files/2016/slides/a-framework-for- developing-and-operationalizing-security-use-cases.pdf - https://www.splunk.com/en_us/resources/use-cases.html - https://blog.phantom.us/2017/02/08/selecting-use-cases- for-automation-part-2/ - https://github.com/Neo23x0 - Threathunting.net (D.J. Bianco’s site) - Chuvakin (Gartner): Detailed SIEM Use Case Example Repositories for Use Cases --- Page 51 --- MGT517 | Managing Security Operations Use Case Development Use Case Development - Usually in your SIEM or correlation capability - Can be implemented in script form - Critical element is automation in data selection and correlation to highlight potential misbehavior - Example: geographically improbable simultaneous logins (VPN + local authentication) How is a Use Case Implemented? --- Page 52 --- MGT517 | Managing Security Operations Use Case Development Use Case Development - Phin Phisher versus the Hacking team example is an elegant exploit scenario with modern tropes - Zero day - DNS C2 - Pivoting - Credential Reuse (mimikatz & plain text passwords) - Intellectual Property Theft - Hacktivism, Government Surveillance: >>CYBER<< Example Use Case --- Page 53 --- MGT517 | Managing Security Operations Phin Phisher Defense Adversary Interruption Network Recon Custom Exploit Dev Exploit Appliance DNS C2 Responder.py Network Scanning File Server Access Backup Extraction Local Admin Account Log on to other system Mimikatz Password for Domain Admin TrueCrypt Volume access Nagios Session Access to RCS network GitHub RCS extraction Phineas Phisher vs. Hacking Team – Interruption Change Detection DNS C2 Observed Scans notice File server in DMZ Account login anomaly App whitelist anomaly Data Loss rules for RCS --- Page 54 --- MGT517 | Managing Security Operations Use Case Development Use Case Development - One example to develop a use case: DNS C2 - Identify scenario of interest and business relevance - Characteristics of scenario (decompose it) - Related Artifacts - Detection opportunities in data - Enrichment opportunities in data (Threat Info, Correlation) - Implementation - Monitoring / Assessment - Revision / Review / Expiration Example Implementations --- Page 55 --- MGT517 | Managing Security Operations Use Case Development Use Case Development - Scenario of interest and business relevance - DMZ is one of two ways into the environment (second being social engineering) - Business relevance: HT is definitely a target, Remote Control Service (RCS) software is valuable product with international interest (for and against) Example Implementation: Scenario and Relevance --- Page 56 --- MGT517 | Managing Security Operations Use Case Development Use Case Development - Characteristics of scenario (decompose it) - Decomposed on previous slide, selecting DNS C2 element to focus this use case on - Each could be selected in turn for development into relevant use cases - DMZ scanning, lingering iSCSI share into DMZ, … Example Implementations: Decomposition --- Page 57 --- MGT517 | Managing Security Operations Use Case Development Use Case Development - Related Artifacts - DNS Logs - DNS query history - DNS query results - DNS C2 characteristics: multiple requests to same TLD w/ varying, long, host names Example Implementations: Artifacts --- Page 58 --- MGT517 | Managing Security Operations Use Case Development Use Case Development - Detection opportunities in data - DNS logs, or passive DNS monitoring via network - DNS – new domains - DNS – long domains - DNS – varying hosts w/ same domains Example Implementations: Opportunities --- Page 59 --- MGT517 | Managing Security Operations Use Case Development Use Case Development - Enrichment opportunities in data (Threat Info, Correlation) - Domain reputation - Domain age - Domain history (new / first time we’ve queried) - Internal resource querying: in this case, why is the appliance sending loads of DNS queries Example Implementations: Enrichment --- Page 60 --- MGT517 | Managing Security Operations Use Case Development Use Case Development - Implementation options – more is better, but noisier - DNS log script - Length, new domains, - Stack ranking: least frequency of occurrence of queried domain per host; high frequency queries to a single domain - SIEM (as above, potentially better integration to multiple log sources) - NIDS (as above, benefit of passive collection) Example Implementations: Implementation --- Page 61 --- MGT517 | Managing Security Operations Use Case Development Use Case Development - Monitoring / Assessment - I’d set up dnscat2 (or similar) and run on a quarterly basis as a test/validation task - I would rotate the DNS C2 tool every couple of instances as updated tools are available - Switch domains so NSM staff isn’t able to be lazy Example Implementations: Monitoring --- Page 62 --- MGT517 | Managing Security Operations Use Case Development Use Case Development - Revision / Review / Expiration - Monthly review of effectiveness of this - Would you expect DNS C2 to occur every month? Once in quarter? Once in a year? - I’d keep this in place and have an annual scope review - Have an expiration / review date for all use cases Example Implementations: Expiration --- Page 63 --- MGT517 | Managing Security Operations Quick View MGT517 Excerpt 63 Summary --- Page 64 --- MGT517 | Managing Security Operations For More Information References - This is the model from SANS MGT517: Managing Security Operations: Detection, Response, and Intelligence - Part of what your SOC / Security Operations needs to do is develop a better way to incorporate detective methodology. 64 --- Page 65 --- MGT517 | Managing Security Operations Downloads & Contact Information First Principles https://bit.ly/crow-soc @CCrowMontance chris@montance.com 65 --- Page 66 --- MGT517 | Managing Security Operations

Related Q&A

  • Q: What is a 'Use Case' in the context of this presentation?
    A: A specific condition or set of conditions that the SOC is monitoring for to detect a threat.
  • Q: What is the 'Use Case Lifecycle'?
    A: Development, Implementation, Tuning, and Retirement.
  • Q: What is the 'MaGMA' framework reference?
    A: Management, Growth, Metrics, and Assessment - a framework for use cases.