ansible automate your soc with atl slide...core practitioners. experts with deep it technical...

34
Automate your SOC with Ansible Faz Sadeghi Specialist Solution Architect - Red Hat

Upload: others

Post on 05-Jun-2020

3 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Ansible Automate your SOC with ATL Slide...Core practitioners. Experts with deep IT technical knowledge. ... SOC QRADAR Captain Chiara IOC IDM Major Mario NOC IDS/IPS N O C IO C S

Automate your SOC with Ansible

Faz SadeghiSpecialist Solution Architect - Red Hat

Page 2: Ansible Automate your SOC with ATL Slide...Core practitioners. Experts with deep IT technical knowledge. ... SOC QRADAR Captain Chiara IOC IDM Major Mario NOC IDS/IPS N O C IO C S

57%

65%

40

Source:https://www.zdnet.com/article/global-security-spending-to-top-103-billion-in-2019-says-idc/https://venturebeat.com/2017/12/16/the-lesson-behind-2017s-biggest-enterprise-security-story/ https://published-prd.lanyonevents.com/published/rsaap15.6381_ap18/sessionsFiles/4483/TTA-F03%20Security%20Operations%202018%20What%20Is%20Working%20What%20Is%20Not._FINAL.pdf

Time to resolve an incident has increased

Severity of attacks has increased

Average number of security tools used in a SOC

5%The average security team typically examines less than 5% of the alerts flowing into them every day (and in many cases, much less than that). "

$103 bil.Global spending on security hardware, software and services

Page 3: Ansible Automate your SOC with ATL Slide...Core practitioners. Experts with deep IT technical knowledge. ... SOC QRADAR Captain Chiara IOC IDM Major Mario NOC IDS/IPS N O C IO C S

What’s Ansible security automation?

DESIGNED TO ORCHESTRATE THREAT RESPONSE ACROSS SECURITY DOMAINS

● Expansion of Ansible as the Enterprise automation platform

● Integrates & orchestrates multiple classes of security solutions

● Provides modules, roles and playbooks to support security use cases across those solutions

SECURE WEB

GATEWAYS

IDS/IPS

ENDPOINT PROTECTION PLATFORMS

SECURE EMAIL GATEWAYS

THREAT INTELLIGENCE

PLATFORMS

ENTERPRISE FIREWALLSSIEM

PAM

Page 4: Ansible Automate your SOC with ATL Slide...Core practitioners. Experts with deep IT technical knowledge. ... SOC QRADAR Captain Chiara IOC IDM Major Mario NOC IDS/IPS N O C IO C S

Why should YOU care about security?

IT Process

Core practitioners. Experts with deep IT technical knowledge.

Organization-wide Process

Business process owners, Product Managers, Legal, PR, Customer Relations

Page 5: Ansible Automate your SOC with ATL Slide...Core practitioners. Experts with deep IT technical knowledge. ... SOC QRADAR Captain Chiara IOC IDM Major Mario NOC IDS/IPS N O C IO C S

What is a SOC?

SOC

● Prevent

● Detect

● Assess

● Respond

Page 6: Ansible Automate your SOC with ATL Slide...Core practitioners. Experts with deep IT technical knowledge. ... SOC QRADAR Captain Chiara IOC IDM Major Mario NOC IDS/IPS N O C IO C S

Organizations are building internal security operations capabilities (even if in a limited sense) because they desire more control over their security monitoring and response process. They also want to have more informed conversations with regulators.“”Gartner

Why do we need a SOC?

Page 7: Ansible Automate your SOC with ATL Slide...Core practitioners. Experts with deep IT technical knowledge. ... SOC QRADAR Captain Chiara IOC IDM Major Mario NOC IDS/IPS N O C IO C S

What kind of SOCs are out there?

Command

Coordinates other SOCs.Provides threat intelligence, situational

awareness and additional expertise.Rarely directly involved in day-to-day

operations.

Multifunction

Dedicated facility with a dedicated team performing not just security, but other

critical 24/7 IT operations from the same facility to reduce costs.

Fusion

Traditional SOC functions and new ones, such as threat intelligence, computer

incident response team (CIRT) and operational technology (OT) functions, are

integrated into one SOC facility.

Page 8: Ansible Automate your SOC with ATL Slide...Core practitioners. Experts with deep IT technical knowledge. ... SOC QRADAR Captain Chiara IOC IDM Major Mario NOC IDS/IPS N O C IO C S

SECURITY PROCESSES MATURITY MODEL

Something similar happened in the past, I wrote it down and I can now look at

what I’ve done then

I learned from what happened in the past and I wrote a process that

I can re-use

Something is happening and I have to find a solution

COM

PLEX

ITY SIEM SOAR

SCALE

OPPORTUNISTIC SYSTEMATIC INSTITUTIONALIZED

Page 9: Ansible Automate your SOC with ATL Slide...Core practitioners. Experts with deep IT technical knowledge. ... SOC QRADAR Captain Chiara IOC IDM Major Mario NOC IDS/IPS N O C IO C S

GOVERNMENT/EMEA

The C4 Command, Development, management and security of of enterprise applications, systems and networks

190,000 Users

470+ Barracks

15 Datacentres

National territory and International missions

Maintain an Extensive Private Network

The Italian Army

Page 10: Ansible Automate your SOC with ATL Slide...Core practitioners. Experts with deep IT technical knowledge. ... SOC QRADAR Captain Chiara IOC IDM Major Mario NOC IDS/IPS N O C IO C S

GOVERNMENT/EMEA

“”Source: https://ndupress.ndu.edu, https://sajigroup.com

You can’t predict future, but you can plan for it.Saji IjiyemiIn the interconnected digital world,

every individual becomes an operator and we’re often only as strong as our weakest link.Michael S. Rogers

Page 11: Ansible Automate your SOC with ATL Slide...Core practitioners. Experts with deep IT technical knowledge. ... SOC QRADAR Captain Chiara IOC IDM Major Mario NOC IDS/IPS N O C IO C S

GOVERNMENT/EMEA

Decision Making Room

NOC IOC

SecurityDivided in 3 teams:

● CIRT (Response & Audit)● Monitoring & Analysis

○ + 9 sub groups● Security Systems

Infrastructure● Datacenter Management

○ 3 sites in 2 locations● Mini-datacenter Management

○ 12 sites in 7 locations● Internet Access Management

Network● Private network (EINet) transport and

services● Network Appliances● Active Directory Domain● Email services

SOC

Page 12: Ansible Automate your SOC with ATL Slide...Core practitioners. Experts with deep IT technical knowledge. ... SOC QRADAR Captain Chiara IOC IDM Major Mario NOC IDS/IPS N O C IO C S

USE CASES

Triage Of Suspicious Activities

Enabling programmatic access to log configurations such as destination, verbosity, etc.

Threat Hunting

Automating alerts, correlation searches and signature

manipulation

Incident Response

Creating new security policies to whitelist, blacklist or quarantine a

machine

Page 13: Ansible Automate your SOC with ATL Slide...Core practitioners. Experts with deep IT technical knowledge. ... SOC QRADAR Captain Chiara IOC IDM Major Mario NOC IDS/IPS N O C IO C S

The Tool Set

Offense Signature

Page 14: Ansible Automate your SOC with ATL Slide...Core practitioners. Experts with deep IT technical knowledge. ... SOC QRADAR Captain Chiara IOC IDM Major Mario NOC IDS/IPS N O C IO C S

"All characters appearing in this work are fictitious. Any

resemblance to real persons, living or dead, is purely

coincidental."

DISCLAIMER

Page 15: Ansible Automate your SOC with ATL Slide...Core practitioners. Experts with deep IT technical knowledge. ... SOC QRADAR Captain Chiara IOC IDM Major Mario NOC IDS/IPS N O C IO C S

Lieutenant LuigiSOCQRADAR

Captain Chiara IOCIDM

Major MarioNOCIDS/IPS

NOC

IOC

SOC

Page 16: Ansible Automate your SOC with ATL Slide...Core practitioners. Experts with deep IT technical knowledge. ... SOC QRADAR Captain Chiara IOC IDM Major Mario NOC IDS/IPS N O C IO C S

Triage Of Suspicious Activities

Page 17: Ansible Automate your SOC with ATL Slide...Core practitioners. Experts with deep IT technical knowledge. ... SOC QRADAR Captain Chiara IOC IDM Major Mario NOC IDS/IPS N O C IO C S

Triage OfSuspicious Activities

The additional information allows to dismiss the offense as a false positive.

Local firewalls are configured to send their logs to QRadar. The log verbosity is set to high.

Generates an offense from an anomaly on mission site.

Local firewalls are rolled back to their previous configurations to avoid overload/fatigue.

A ticket is opened and populated with all relevant data.

USE CASE 1 - INVESTIGATION ENRICHMENT ON FIREWALLS

The ticket is populated with data from the actions taken and then closed.

Lieutenant Luigi

Page 18: Ansible Automate your SOC with ATL Slide...Core practitioners. Experts with deep IT technical knowledge. ... SOC QRADAR Captain Chiara IOC IDM Major Mario NOC IDS/IPS N O C IO C S

USE CASE 1 - INVESTIGATION ENRICHMENT ON FIREWALLS

- name: Forward Cisco ASA Logs

hosts: ciscoasa

tasks:

include_role:

name: log_manager

tasks_from:

forward_logs_to_syslog

vars:

syslog_server: 192.168.0.1

ciscoasa_server_name: test

firewall_provider: ciscoasaTriage Of Suspicious Activities

Page 19: Ansible Automate your SOC with ATL Slide...Core practitioners. Experts with deep IT technical knowledge. ... SOC QRADAR Captain Chiara IOC IDM Major Mario NOC IDS/IPS N O C IO C S

USE CASE 1 - INVESTIGATION ENRICHMENT ON FIREWALLS- hosts: fortios

vars:

vdom: "root"

tasks:

- name: Global settings for remote syslog server.

fortios_log_syslogd_setting:

vdom: "{{ vdom }}"

https: "False"

log_syslogd_setting:

custom_field_name:

- custom: “cef”

id: "6"

name: "default_name_7"

enc_algorithm: "high-medium"

facility: "kernel"

mode: "udp"

port: "12"

server: "192.168.0.1"

source_ip: "84.230.14.43"

ssl_min_proto_version: "default"

status: "enable"

Triage Of Suspicious Activities

Page 20: Ansible Automate your SOC with ATL Slide...Core practitioners. Experts with deep IT technical knowledge. ... SOC QRADAR Captain Chiara IOC IDM Major Mario NOC IDS/IPS N O C IO C S

USE CASE 1 - INVESTIGATION ENRICHMENT ON FIREWALLS

Triage Of Suspicious Activities

- name: Create a QRadar Log Source and Enable Offense Rule

hosts: qradar

collections:

- ibm.qradar

tasks:

- name: Create QRadar Log Source - FortiGate

qradar_log_source_management:

name: "FortiGate LogSource: {{ fgate_ip_addr }}"

type_name: "Fortinet FortiGate Security Gateway"

state: present

description: "Automated Creation of QRadar LS"

identifier: "{{ fgate_ip_addr }}"

Page 21: Ansible Automate your SOC with ATL Slide...Core practitioners. Experts with deep IT technical knowledge. ... SOC QRADAR Captain Chiara IOC IDM Major Mario NOC IDS/IPS N O C IO C S

No malware has been found so the offense can be dismissed as a false positive.

The application server is searched for the malware files.

Generates an offense indicating a malware has been installed on an application server.

A ticket is opened and populated with all relevant data.

USE CASE 2 - INVESTIGATION ENRICHMENT ON SERVER

The ticket is populated with data from the actions taken and then closed.

Lieutenant Luigi

Page 22: Ansible Automate your SOC with ATL Slide...Core practitioners. Experts with deep IT technical knowledge. ... SOC QRADAR Captain Chiara IOC IDM Major Mario NOC IDS/IPS N O C IO C S

USE CASE 2 - INVESTIGATION ENRICHMENT ON SERVER

- name: Gather log files from remote systems

hosts: lab

become: yes

tasks:

- name: Find logs

find:

paths: /var/log/

patterns: '*.log'

recurse: yes

register: _logs

- name: Fetch logs

fetch:

src: "{{ item.path }}"

dest: logs

with_items: "{{ _logs.files }}"

Triage Of Suspicious Activities

Page 23: Ansible Automate your SOC with ATL Slide...Core practitioners. Experts with deep IT technical knowledge. ... SOC QRADAR Captain Chiara IOC IDM Major Mario NOC IDS/IPS N O C IO C S

Threat Hunting

Page 24: Ansible Automate your SOC with ATL Slide...Core practitioners. Experts with deep IT technical knowledge. ... SOC QRADAR Captain Chiara IOC IDM Major Mario NOC IDS/IPS N O C IO C S

USE CASE 3 - MBL* Automation Inwards

An existing offense rule is updated to accommodate the new offenses.

A ticket is opened with the update request.

A new security bulletin is received. The ticket is

populated with data from the actions taken and then closed.

Master Block List

Lieutenant Luigi

Page 25: Ansible Automate your SOC with ATL Slide...Core practitioners. Experts with deep IT technical knowledge. ... SOC QRADAR Captain Chiara IOC IDM Major Mario NOC IDS/IPS N O C IO C S

USE CASE 4 - MBL* Automation Outwards

A new signature is created on the IPS to accommodate the new signatures.

A ticket is opened with the update request.

A new security bulletin is received.

The ticket is populated with data from the actions taken and then closed.

Major Mario

Page 26: Ansible Automate your SOC with ATL Slide...Core practitioners. Experts with deep IT technical knowledge. ... SOC QRADAR Captain Chiara IOC IDM Major Mario NOC IDS/IPS N O C IO C S

USE CASE 4 - IMPLEMENTING A NEW CUSTOM SIGNATURE ON IPS

Threat Hunting

- hosts: fortios

vars:

vdom: "root"

tasks:

- name: Configure IPS custom signature

fortios_ips_custom:

vdom: "{{ vdom }}"

https: “False"

ssl_verify: “False"

state: “present"

ips_custom:

action: “pass"

application: “Other"

comment: "TEST IPS Comment"

location: "client"

log: "disable"

log_packet: "disable"

os: "Linux"

protocol: "TCP"

severity: "info"

signature: "F-SBID( --name 'Block.example.com'; --pattern 'example.com'; --service

HTTP; --no_case; --flow from_client; --context host; )"

status: "disable"

tag: "ipsSignature"

Page 27: Ansible Automate your SOC with ATL Slide...Core practitioners. Experts with deep IT technical knowledge. ... SOC QRADAR Captain Chiara IOC IDM Major Mario NOC IDS/IPS N O C IO C S

Incident Response

Page 28: Ansible Automate your SOC with ATL Slide...Core practitioners. Experts with deep IT technical knowledge. ... SOC QRADAR Captain Chiara IOC IDM Major Mario NOC IDS/IPS N O C IO C S

The IP address is added to the blacklist object group on the edge firewalls.

The offense criteria are no longer met and it can be closed.

A ticket is opened and populated with all relevant data.

Generates an offense from an anomaly on the external network perimeter or access from an IP flagged on a security bulletin.

The ticket is populated with data from the actions taken and then closed.

USE CASE 5 - PUBLIC IP BLACKLISTING

Lieutenant Luigi

Page 29: Ansible Automate your SOC with ATL Slide...Core practitioners. Experts with deep IT technical knowledge. ... SOC QRADAR Captain Chiara IOC IDM Major Mario NOC IDS/IPS N O C IO C S

USE CASE 5 - INCIDENT RESPONSE

Incident Response

- hosts: ciscoasa gather_facts: no connection: network_cli vars: acl_name:

tasks: - asa_acl: lines: - access-list ACL-ANSIBLE extended deny ip host {{ ip_address }} any log match: strict replace: block

Page 30: Ansible Automate your SOC with ATL Slide...Core practitioners. Experts with deep IT technical knowledge. ... SOC QRADAR Captain Chiara IOC IDM Major Mario NOC IDS/IPS N O C IO C S

USE CASE 6 - SSO CREDENTIALS QUARANTINE + FORCE PASSWORD RESET

The offense criteria are no longer met and the investigation can proceed.

Credentials are blocked for further investigation.

A ticket is opened and populated with all relevant data.

Generates an offense from an authentication anomaly.

The ticket is populated with data from the actions taken. Investigation proceeds and credentials sanitised.

A password reset is forced on the credentials.

The ticket is populated with data from the actions taken and then closed. The offense on QRadar is closed.

Captain Chiara

Page 31: Ansible Automate your SOC with ATL Slide...Core practitioners. Experts with deep IT technical knowledge. ... SOC QRADAR Captain Chiara IOC IDM Major Mario NOC IDS/IPS N O C IO C S

USE CASE 6 - SSO CREDENTIALS QUARANTINE

Incident Response

- name: syncope change user status hosts: syncopeserver vars: vars_files: - group_vars/pam.yml tasks: - name: change credential status Syncope_change_user_status:

changeStatusOnSyncope: true adminUser: "{{ adminUser }}" adminPwd: "{{ password }}" serverName: "{{ syncope-server }}" syncopeUser: "{{ syncope-user }}" newStatus: SUSPEND

Page 32: Ansible Automate your SOC with ATL Slide...Core practitioners. Experts with deep IT technical knowledge. ... SOC QRADAR Captain Chiara IOC IDM Major Mario NOC IDS/IPS N O C IO C S

AUTOMATE AN ENTIRE PROCESS THROUGH TOWER

Page 33: Ansible Automate your SOC with ATL Slide...Core practitioners. Experts with deep IT technical knowledge. ... SOC QRADAR Captain Chiara IOC IDM Major Mario NOC IDS/IPS N O C IO C S

Where are you in the Automation Journey

How do we centralise our processes?

How do we orchestrateour processes?

How can wesimplify our job?

COM

PLEX

ITY SIEM SOAR

SCALE

Ansible security automation

OPPORTUNISTIC SYSTEMATIC INSTITUTIONALIZED

Page 34: Ansible Automate your SOC with ATL Slide...Core practitioners. Experts with deep IT technical knowledge. ... SOC QRADAR Captain Chiara IOC IDM Major Mario NOC IDS/IPS N O C IO C S