{"id":2812,"date":"2020-01-21T09:16:36","date_gmt":"2020-01-21T09:16:36","guid":{"rendered":"http:\/\/internal.n4engage.co.uk\/?p=2812"},"modified":"2020-08-24T13:55:11","modified_gmt":"2020-08-24T13:55:11","slug":"bringing-chat-ops-to-cyber-security","status":"publish","type":"post","link":"http:\/\/internal.n4engage.co.uk\/2020\/01\/21\/bringing-chat-ops-to-cyber-security\/","title":{"rendered":"Bringing Chat-Ops to Cyber-Security"},"content":{"rendered":"\n

I’m Martin and I’m a Cyber-Security Engineer at N4Engage. What does a Cyber-Security Engineer do? Well, we design and build the security systems that protect N4Engage\u2019s customers and their data, by detecting attacks and anomalies across networks and systems we can identify threats and mitigate them before they become a risk to your business.<\/p>\n\n\n\n

Recently, we were reviewing our processes for alerting on security events and we realised just how many emails we were receiving and how difficult it can be to find the signal amongst all the noise. When we started to look at alternatives, our Team Collaboration solution<\/a> seemed the obvious answer and when I looked into how to go about building ‘bots’ on Webex<\/a>, it turned out to be remarkably simple.<\/p>\n\n\n\n

I based my bot on this excellent code<\/a> from hpreston on GitHub<\/a> which handles all of the basic integrations automatically. First step was to get the code able to receive and respond to simple messages sent to it.<\/p>\n\n\n\n

<\/div>\n\n\n\n
\"\"<\/figure><\/div>\n\n\n\n
<\/div>\n\n\n\n

In order to format the alerts in a better way than simple markdown I used the Adaptive Cards<\/em> functionality in Teams. It lets you create a card layout which is expressed as JSON – fortunately Microsoft provide a handy card designer<\/a>.<\/p>\n\n\n\n

<\/div>\n\n\n\n
\"\"<\/figure><\/div>\n\n\n\n
<\/div>\n\n\n\n

Next, I needed to get messages from our SIEM platform into the bot, we primarily use Alienvault USM Anywhere<\/a> for SIEM and it offers AWS SNS as a notification o<\/a>p<\/a>tion<\/a> however instead of triggering a Lambda function I opted to use a HTTPS webhook subscription which called directly to the python flask application running on the server.<\/p>\n\n\n\n

When I began my new script I started getting a lot of alerts through for low severity alarms that we don’t typically need to alert on. By including these alarms in my bot we were going to end up back where we started with alert-fatigued SOC analysts, so I added a configurable threshold for alerts and a command to update this threshold.<\/p>\n\n\n\n

<\/div>\n\n\n\n
\"\"<\/figure><\/div>\n\n\n\n
<\/div>\n\n\n\n

Next feature I wanted to add was some useful actions that could be executed directly from the Teams interface without needing to open up the SIEM console to begin investigations. After some discussion I realised these would probably look different for different kinds of alarm so I split out Office365 alarms, network intrusion alarms and malware detections to different templates. The action buttons on the cards can either link directly to a URL that will open up in the browser or can trigger a webhook within my application – the “View Alarm Details” button will open up the SIEM view, whereas the “Whois” button will trigger a whois function in my code, which grabs the relevant details and replies back to the user in the same chatroom.<\/p>\n\n\n\n

<\/div>\n\n\n\n
\"\"<\/figure><\/div>\n\n\n\n
<\/div>\n\n\n\n

In the N4Engage Security Operations Centre (SOC), we use a security incident response platform called TheHive<\/a> to track active security incidents and the indicators associated with them. In order to make it easy and frictionless to create new incidents I wanted to add a button for this too. Fortunately there’s a convenient Python API client<\/a> for TheHive too which makes this a straightforward integration. <\/p>\n\n\n\n

When an analyst clicks the Hive Case button in Teams, they will get a link sent back from the bot with a link to their newly created case which is automatically tagged with the correct customer and has the domains\/IP addresses from the alarm added as observables. <\/p>\n\n\n\n

<\/div>\n\n\n\n
\"\"<\/figure><\/div>\n\n\n\n
<\/div>\n\n\n\n

Since we started using this new tool, we’ve found we can\nstart investigations into high-severity incidents faster and collaborate more\neffectively on the analysis as a team even when we’re working remotely or on\nmobile devices. We’re already looking at integrating more of our systems into\nSocBot and improving filtering and deduplication to reduce alert fatigue while\nimproving incident response times.<\/p>\n\n\n\n

If you would like to find out more about our Security and Compliance<\/a> offerings get in touch<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"

I’m Martin and I’m a Cyber-Security Engineer at N4Engage. What does a Cyber-Security Engineer do? Well, we design and build the security systems that protect N4Engage\u2019s customers and their data, by detecting attacks and anomalies across networks and systems we can identify threats and mitigate them before they become a risk to your business. Recently, […]<\/p>\n","protected":false},"author":16,"featured_media":4204,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[92],"tags":[94,103,102,104,105,101,97],"yoast_head":"\nBringing Chat-Ops to Cyber-Security - N4Engage<\/title>\n<meta name=\"description\" content=\"I'm Martin and I'm a Cyber-Security Engineer at N4Engage. What does a Cyber-Security Engineer do? Well, we design and build the security systems that protect N4Engage\u2019s customers and their data...\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"http:\/\/internal.n4engage.co.uk\/2020\/01\/21\/bringing-chat-ops-to-cyber-security\/\" \/>\n<meta property=\"og:locale\" content=\"en_GB\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Bringing Chat-Ops to Cyber-Security - N4Engage\" \/>\n<meta property=\"og:description\" content=\"I'm Martin and I'm a Cyber-Security Engineer at N4Engage. What does a Cyber-Security Engineer do? Well, we design and build the security systems that protect N4Engage\u2019s customers and their data...\" \/>\n<meta property=\"og:url\" content=\"http:\/\/internal.n4engage.co.uk\/2020\/01\/21\/bringing-chat-ops-to-cyber-security\/\" \/>\n<meta property=\"og:site_name\" content=\"N4Engage\" \/>\n<meta property=\"article:published_time\" content=\"2020-01-21T09:16:36+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2020-08-24T13:55:11+00:00\" \/>\n<meta property=\"og:image\" content=\"http:\/\/internal.n4engage.co.uk\/wp-content\/uploads\/2020\/01\/Bringing-chat-ops-to-cyber-security.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1024\" \/>\n\t<meta property=\"og:image:height\" content=\"683\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Estimated reading time\">\n\t<meta name=\"twitter:data1\" content=\"3 minutes\">\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebSite\",\"@id\":\"http:\/\/internal.n4engage.co.uk\/#website\",\"url\":\"http:\/\/internal.n4engage.co.uk\/\",\"name\":\"N4Engage\",\"description\":\"The Collaboration Experts\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":\"http:\/\/internal.n4engage.co.uk\/?s={search_term_string}\",\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-GB\"},{\"@type\":\"ImageObject\",\"@id\":\"http:\/\/internal.n4engage.co.uk\/2020\/01\/21\/bringing-chat-ops-to-cyber-security\/#primaryimage\",\"inLanguage\":\"en-GB\",\"url\":\"http:\/\/internal.n4engage.co.uk\/wp-content\/uploads\/2020\/01\/Bringing-chat-ops-to-cyber-security.jpg\",\"width\":1024,\"height\":683},{\"@type\":\"WebPage\",\"@id\":\"http:\/\/internal.n4engage.co.uk\/2020\/01\/21\/bringing-chat-ops-to-cyber-security\/#webpage\",\"url\":\"http:\/\/internal.n4engage.co.uk\/2020\/01\/21\/bringing-chat-ops-to-cyber-security\/\",\"name\":\"Bringing Chat-Ops to Cyber-Security - N4Engage\",\"isPartOf\":{\"@id\":\"http:\/\/internal.n4engage.co.uk\/#website\"},\"primaryImageOfPage\":{\"@id\":\"http:\/\/internal.n4engage.co.uk\/2020\/01\/21\/bringing-chat-ops-to-cyber-security\/#primaryimage\"},\"datePublished\":\"2020-01-21T09:16:36+00:00\",\"dateModified\":\"2020-08-24T13:55:11+00:00\",\"author\":{\"@id\":\"http:\/\/internal.n4engage.co.uk\/#\/schema\/person\/975260e32334c90850492fa04db0c9ae\"},\"description\":\"I'm Martin and I'm a Cyber-Security Engineer at N4Engage. What does a Cyber-Security Engineer do? Well, we design and build the security systems that protect N4Engage\\u2019s customers and their data...\",\"inLanguage\":\"en-GB\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"http:\/\/internal.n4engage.co.uk\/2020\/01\/21\/bringing-chat-ops-to-cyber-security\/\"]}]},{\"@type\":\"Person\",\"@id\":\"http:\/\/internal.n4engage.co.uk\/#\/schema\/person\/975260e32334c90850492fa04db0c9ae\",\"name\":\"Martin Rothe\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"http:\/\/internal.n4engage.co.uk\/#personlogo\",\"inLanguage\":\"en-GB\",\"url\":\"http:\/\/2.gravatar.com\/avatar\/89a12a1a1937b4b84f1d599f789fe336?s=96&d=mm&r=g\",\"caption\":\"Martin Rothe\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","_links":{"self":[{"href":"http:\/\/internal.n4engage.co.uk\/wp-json\/wp\/v2\/posts\/2812"}],"collection":[{"href":"http:\/\/internal.n4engage.co.uk\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/internal.n4engage.co.uk\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/internal.n4engage.co.uk\/wp-json\/wp\/v2\/users\/16"}],"replies":[{"embeddable":true,"href":"http:\/\/internal.n4engage.co.uk\/wp-json\/wp\/v2\/comments?post=2812"}],"version-history":[{"count":8,"href":"http:\/\/internal.n4engage.co.uk\/wp-json\/wp\/v2\/posts\/2812\/revisions"}],"predecessor-version":[{"id":4202,"href":"http:\/\/internal.n4engage.co.uk\/wp-json\/wp\/v2\/posts\/2812\/revisions\/4202"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/internal.n4engage.co.uk\/wp-json\/wp\/v2\/media\/4204"}],"wp:attachment":[{"href":"http:\/\/internal.n4engage.co.uk\/wp-json\/wp\/v2\/media?parent=2812"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/internal.n4engage.co.uk\/wp-json\/wp\/v2\/categories?post=2812"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/internal.n4engage.co.uk\/wp-json\/wp\/v2\/tags?post=2812"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}