Slide 1

Slide 1 text

Security Automation for DevOps Security Automation for DevOps #AssimProj @OSSAlanR Alan Robertson Assimilation Systems Limited http://AssimilationSystems.com

Slide 2

Slide 2 text

2/31 Biography Biography ● 35+ years in IT/development – 10 years in system management (SysAdmin) ● Founded Linux-HA project - led 1998-2007 – aka “Heartbeat” - now called Pacemaker ● Founded Assimilation Project in 2010 ● Founded Assimilation Systems Limited in 2013 ● Alumnus of Bell Labs, SuSE, IBM

Slide 3

Slide 3 text

© 2015 Assimilation Systems Limited 4/31 Security questions Security questions ● Do you think good security staff is easily available? ● Do you think security is going to get better soon? ● Do you think you have enough staff for security to keep up with changes at DevOps / Agile rates?

Slide 4

Slide 4 text

© 2015 Assimilation Systems Limited 5/31 Disturbing Trends... Disturbing Trends... 30% of break-ins come through “lost” systems (Verizon) 90% have had failures of unmonitored services (Turnbull) 71% are unable to stay in compliance (Verizon) 30% only start monitoring only after a problem (Turnbull) 30% of systems doing nothing useful (Koomey)

Slide 5

Slide 5 text

© 2015 Assimilation Systems Limited 6/31 Assimilation Architecture Assimilation Architecture ● Central Collective Management Authority – written in Python – delegates most work to nanoprobes – does nothing as much as possible – Doing nothing scaless really well – should be into the 100K system range ● Fully distributed “nanoprobe” agents – Simple, policy-free – Written in 'C' – Run scripts for monitoring or discovery – Send/receive heartbeats – Listen for ARP, LLDP, CDP packets ● Neo4j graph database

Slide 6

Slide 6 text

© 2015 Assimilation Systems Limited 7/31 Assimilation Security Discovery Assimilation Security Discovery ● All IP+MAC Addresses on subnet ● Network Connectivity (CDP/LLDP) ● Packages and versions installed ● Services Offered / Used (netstat) ● Checksums of network-facing binaries, libraries, JARs ● Many other detailed security settings, permissions – (sshd_config, PAM, /proc/sys, auditd_conf, sudoers, etc)

Slide 7

Slide 7 text

© 2015 Assimilation Systems Limited 8/31 Assimilation Analysis / Reports Assimilation Analysis / Reports ● Comparison to best practices ● Risk scoring ● Unknown IP Addresses ● Automatic service monitoring ● Unmonitored services ● Triage-related risk scores

Slide 8

Slide 8 text

© 2015 Assimilation Systems Limited 9/31 B Best Practice Analyses est Practice Analyses ● Triggered by Discovery Updates – Analysis occurs within seconds of change – No change => No analysis ● We can analyze anything discovered ● You can easily discover anything you want ● Alerts and Reports available

Slide 9

Slide 9 text

© 2015 Assimilation Systems Limited 10/31 Demo Demo Everything will be discovered – nothing will be configured manually ● What needs hardening ● How to Triage your hardening issues ● How to Demonstrate and Track Progress ● How to keep them in compliance (hardened) ● Visualizing Your Attack Surface ● Bonus: Who has what package+version

Slide 10

Slide 10 text

© 2015 Assimilation Systems Limited 11/31 Where to find this Information online? Where to find this Information online? http://assimilationsystems.com/category/getting-started/ 1. 15 Minutes To Better Security 2. An Hour To Better Security 3. A Half-Day To Better Security Where to See Similar Demos ● http://assimilationsystems.com/category/videos/ ● http://assimilationsystems.com/sample-demo-output/

Slide 11

Slide 11 text

© 2015 Assimilation Systems Limited 12/31 Future Plans Future Plans ● Checksum whitelist/blacklist ==> risk scores ● Checksum queries ● Create service consolidating vendor patches ==> risk scores ● Interactive User Interface(s) (GUI)

Slide 12

Slide 12 text

© 2015 Assimilation Systems Limited 13/31 Get Involved! Get Involved! ● Get Assimilated! ● Contribute! – Testers, System Management, Continuous Integration – Best practice experts – Designers – Developers (C,Python, Shell, PowerShell, JavaScript) – Porters (esp Windows) – Promoters, Publicists, Packagers, etc.

Slide 13

Slide 13 text

© 2015 Assimilation Systems Limited 14/31 Resistance Is Futile! Resistance Is Futile! These slides: bit.ly/DevOpsDaysRox16 Mailing List: bit.ly/AssimML @OSSAlanR #assimilation on irc.freenode.net Project Web Site: assimproj.org Company Web Site: assimilationsystems.com Download: assimilationsystems.com/download

Slide 14

Slide 14 text

© 2015 Assimilation Systems Limited 15/31 Minimizing Network Footprint Minimizing Network Footprint (in roadmap) (in roadmap) ● Support diagnosing switch issues ● Minimize network traffic ● Ideal for multi-site arrangements

Slide 15

Slide 15 text

© 2015 Assimilation Systems Limited 16/31 Switch Discovery Graph from LLDP / CDP Switch Discovery Graph from LLDP / CDP

Slide 16

Slide 16 text

© 2015 Assimilation Systems Limited 17/31 Security Demo / HOWTO Security Demo / HOWTO ● No configuration was supplied – everything comes from discovery

Slide 17

Slide 17 text

© 2015 Assimilation Systems Limited 18/31 Risk Management/Mitigation Risk Management/Mitigation ● Intrusions ● Vulnerable Software ● Licensed Software ● Audit Risk ● Outages ● System management

Slide 18

Slide 18 text

© 2015 Assimilation Systems Limited 19/31 Why a graph database? (Neo4j) Why a graph database? (Neo4j) ● Humans describe systems as graphs ● Dependency & Discovery information: graph ● Speed of graph traversals depends on size of subgraph, not total graph size ● Root cause queries  graph traversals – notoriously slow in relational databases ● Visualization is Natural ● Schema-less design: good for constantly changing heterogeneous environment ● Graph Model === Object Model

Slide 19

Slide 19 text

© 2015 Assimilation Systems Limited 20/31 Monitoring Pros and Cons Monitoring Pros and Cons Pros Simple & Scalable Uniform work distribution No single point of failure Distinguishes switch vs host failure Easy on LAN, WAN Multi-tenant approach Cons Active agents Potential slowness at power-on

Slide 20

Slide 20 text

© 2015 Assimilation Systems Limited 21/31 Sixth Dimension: Graph Schema Sixth Dimension: Graph Schema Two Schema subgraphs ● Client / server dependency ● Switch interconnect

Slide 21

Slide 21 text

© 2015 Assimilation Systems Limited 22/31 "sshd": { "exe": "/usr/sbin/sshd", "cmdline": [ "/usr/sbin/sshd", "-D" ], "uid": "root", "gid": "root", "cwd": "/", "listenaddrs": { "0.0.0.0:22": { "proto": "tcp", "addr": "0.0.0.0", "port": 22 }, sshd sshd Service Service JSON Snippet (from netstat and /proc) JSON Snippet (from netstat and /proc)

Slide 22

Slide 22 text

© 2015 Assimilation Systems Limited 23/31 "ssh": { "exe": "/usr/sbin/ssh", "cmdline": [ "ssh", "servidor" ], "uid": "alanr", "gid": "alanr", "cwd": "/home/alanr/monitor/src", "clientaddrs": { "10.10.10.5:22": { "proto": "tcp", "addr": "10.10.10.5", "port": 22 }, ssh ssh Client Client JSON Snippet(from netstat and /proc) JSON Snippet(from netstat and /proc)

Slide 23

Slide 23 text

© 2015 Assimilation Systems Limited 26/31 First Dimension First Dimension: : Problems Addressed Problems Addressed ● Discovering and maintaining documentation (CMDB) using continuous discovery – Services, Systems, Dependencies, Switches, Interconnects, Configuration ● Monitoring and alerting: services, systems and compliance ● Managing compliance ● Mitigating risk

Slide 24

Slide 24 text

© 2015 Assimilation Systems Limited 27/31 Why Discovery? (DevOps) Why Discovery? (DevOps) ● Documentation: incomplete, incorrect ● Dependencies: unknown ● Planning: Needs accurate data ● Best Practices: Verification needs data ● ITIL CMDB (Configuration Management Data Base) Our Discovery: continuous, low-profile

Slide 25

Slide 25 text

© 2015 Assimilation Systems Limited 28/31 Second Dimension: Second Dimension: Unique Powerful Features Unique Powerful Features 1. Continuous Discovery 2. Discovery: Zero network footprint 3. Centralized graph database 4. We know everything that changes 5. Discover and update dependency information 6. Discovery and monitoring tightly integrated – discovery drives automation

Slide 26

Slide 26 text

© 2015 Assimilation Systems Limited 29/31 (even more) Features... (even more) Features... 7. Discovery and monitoring easily extensible 8. Naturally scalable to > 100K systems 9. Minimal network load 10.Server failures distinguishable from switch failures 11.Best practice and vulnerability alerts 12.Multi-tenant support

Slide 27

Slide 27 text

© 2015 Assimilation Systems Limited 30/31 Third Dimension: Third Dimension: Fully distributed work Fully distributed work Two philosophical underpinnings 1. Monitoring and Discovery are fully distributed 2. Reliable “no news is good news” Only responses to changes are centralized

Slide 28

Slide 28 text

© 2015 Assimilation Systems Limited 31/31 Service Monitoring based on HA Technologies Service Monitoring based on HA Technologies ● Well-proven architecture: – reliable “no news is good news” ● Implements Open Cluster Framework standard (LSB and others – Nagios coming!) ● Each system monitors own services ● Can also start, stop, migrate services

Slide 29

Slide 29 text

© 2015 Assimilation Systems Limited 32/31 How does discovery work? How does discovery work? Nanoprobe scripts perform discovery ● Each discovers one kind of information ● Can take arguments from environment ● Output JSON CMA stores Discovery Information ● JSON stored in Neo4j database ● CMA discovery plugins => graph nodes and relationships

Slide 30

Slide 30 text

© 2015 Assimilation Systems Limited 33/31 A Few Canned Queries A Few Canned Queries allipports get all port/ip/service/hosts allswitchports get switch connections crashed get crashed servers shutdown get gracefully shutdown servers downservices get nonworking services findip get system owning IP findmac get system owning MAC unknownips get unknown IP addresses unmonitored get unmonitored services

Slide 31

Slide 31 text

© 2015 Assimilation Systems Limited 34/31 OS discovery JSON Snippet OS discovery JSON Snippet { "nodename": "alanr-1225B", "operating-system": "GNU/Linux", "machine": "x86_64", "processor": "x86_64", "hardware-platform": "x86_64", "kernel-name": "Linux", "kernel-release": "3.8.0-31-generic", "kernel-version": "#46-Ubuntu SMP ...", "Distributor ID": "Ubuntu", "Description": "Ubuntu 13.04", "Release": "13.04", "Codename": "raring" }