{"id":402235,"date":"2024-06-29T16:22:16","date_gmt":"2024-06-29T16:22:16","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=402235"},"modified":"-0001-11-30T00:00:00","modified_gmt":"2024-06-29T16:22:16","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=402235","title":{"rendered":"<span>Chatbox on Top of SIEM Solution<\/span>"},"content":{"rendered":"<div><!--[--><!--]--><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<p>One of the most time-consuming steps while implementing a SIEM solution is writing and tuning &#171;Playbook&#187; document \u2013 a set of reaction procedures SOC Team has to follow in case of alert triggering.<\/p>\n<p>During one of our implementation projects I stoped for a moment and thought: how can I optimize (ideally automate) the Playbook execution \u2013 in a playful way?<\/p>\n<p>&lt;cut\/><\/p>\n<p>First of all \u2013 how does Playbook looks like? Here is a basic snippet of this document:<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/956\/8ec\/aed\/9568ecaedc8f4c92aa1c4814708688e2.png\" alt=\"Playbook document\" title=\"Playbook document\" width=\"1550\" height=\"1412\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/956\/8ec\/aed\/9568ecaedc8f4c92aa1c4814708688e2.png\"\/><figcaption>Playbook document<\/figcaption><\/figure>\n<p>One of the ideas I could come up with was \u2013 hey, why don&#8217;t we add some AI on top of it? Everyone is doing AI nowadays, isn&#8217;t it? Can we automate SOC activities with some extra help of a Chatbot? <\/p>\n<p>TensorFlow is one of the well known free and open-source libraries available for machine learning and deep neural networks and it was the first thing to investigate.<\/p>\n<p>OK, now I forgot to mention one substantial fact \u2013 our SIEM solution (Enterprise Threat Detection, or SAP ETD) comes from SAP SE, which means this SIEM solution runs on SAP HANA as a platform. How can I integrate Tensorflow into HANA platform? <\/p>\n<p>Quick research confirmed that it was possible:<\/p>\n<p><a href=\"https:\/\/blogs.sap.com\/2020\/08\/11\/tensorflow-model-integration-with-sap-hana\/\" rel=\"noopener noreferrer nofollow\">Tensorflow Machine Learning Model Integration with SAP HANA<\/a><\/p>\n<p>Nowadays we can integrate TensorFlow even with ABAP environment:<\/p>\n<p><a href=\"https:\/\/blogs.sap.com\/2020\/08\/11\/tensorflow-model-integration-with-sap-hana\/\" rel=\"noopener noreferrer nofollow\">How To Use TensorFlow Seamlessly Inside ABAP<\/a><\/p>\n<p>OK, Google, that goes far beyond my humble research..<\/p>\n<p>So I decided to focus on end-to-end solutions. Let&#8217;s try to make use of SAP Conversational AI (CAI). Luckily, there is a trial service available, hopefully no programming skills is necessary.<\/p>\n<p>Now that I am logged onto a trial version CAI, let&#8217;s create a &#171;performing actions&#187; Chatbot named &#171;SEC&#187;, which would be (at least) able to participate in some basic discussions, such as greetings, small talks and weather:<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/691\/f61\/e25\/691f61e25782063948481be0a0336be7.png\" alt=\"Steps 1-2\" title=\"Steps 1-2\" width=\"1840\" height=\"1360\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/691\/f61\/e25\/691f61e25782063948481be0a0336be7.png\"\/><figcaption>Steps 1-2<\/figcaption><\/figure>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/54b\/4f5\/661\/54b4f566112f654f9575d0d3921cfdff.png\" alt=\"Step 3\" title=\"Step 3\" width=\"2006\" height=\"968\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/54b\/4f5\/661\/54b4f566112f654f9575d0d3921cfdff.png\"\/><figcaption>Step 3<\/figcaption><\/figure>\n<p>This newly born bot is already able to do some basic activities, but let&#8217;s add some extra security-relevant capabilities (intents) to it:<\/p>\n<ul>\n<li>\n<p>Initiator \u2013 collect information about attacker&#8217;s terminal id<\/p>\n<\/li>\n<li>\n<p>Username \u2013 collect information about attacker&#8217;s username<\/p>\n<\/li>\n<li>\n<p>System \u2013 collect information about attacker&#8217;s system<\/p>\n<\/li>\n<li>\n<p>Inform \u2013 inform SAP Basis Team about possible attacker in their system<\/p>\n<\/li>\n<li>\n<p>Alert \u2013 collect information about triggered alert<\/p>\n<\/li>\n<\/ul>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/e0f\/a63\/433\/e0fa63433df86421efe5f7910e03fdd2.png\" alt=\"Intents\" title=\"Intents\" width=\"2066\" height=\"480\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/e0f\/a63\/433\/e0fa63433df86421efe5f7910e03fdd2.png\"\/><figcaption>Intents<\/figcaption><\/figure>\n<p>Now we group these new &#171;intents&#187; into new &#171;skills&#187; so that our bot would be able to &#171;register alerts&#187; and &#171;talk to basis&#187;:<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/631\/0a1\/52c\/6310a152ccd4925707473aa18102a70f.png\" alt=\"New &quot;skills&quot;\" title=\"New &quot;skills&quot;\" width=\"1492\" height=\"504\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/631\/0a1\/52c\/6310a152ccd4925707473aa18102a70f.png\"\/><figcaption>New &#171;skills&#187;<\/figcaption><\/figure>\n<p>The last thing I want to do is of course bot training:<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/e2a\/31f\/9e5\/e2a31f9e54cedb647df14e48d96b6638.png\" alt=\"Training is in progress\" title=\"Training is in progress\" width=\"1557\" height=\"146\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/e2a\/31f\/9e5\/e2a31f9e54cedb647df14e48d96b6638.png\"\/><figcaption>Training is in progress<\/figcaption><\/figure>\n<p>When training is finished I can test the bot:<\/p>\n<figure class=\"\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/ad5\/941\/80d\/ad594180d750d1562b5aa1e01ef24256.gif\" alt=\"New chatbot\" title=\"New chatbot\" width=\"418\" height=\"863\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/ad5\/941\/80d\/ad594180d750d1562b5aa1e01ef24256.gif\"\/><figcaption>New chatbot<\/figcaption><\/figure>\n<p>When the bot says &#171;We have blocked this terminal&#8230;&#187; that&#8217;s no joke because one of the &#171;talk to basis&#187; skills was calling external APIs:<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/622\/b79\/176\/622b79176b3ca21bf2f7de9d09d7d709.png\" alt=\"Bot reacts on true-positives\" title=\"Bot reacts on true-positives\" width=\"1750\" height=\"462\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/622\/b79\/176\/622b79176b3ca21bf2f7de9d09d7d709.png\"\/><figcaption>Bot reacts on true-positives<\/figcaption><\/figure>\n<p>What do you think of Chatbot helping SOC Team registering alerts and reacting to threats? Tell in comments<\/p>\n<\/div>\n<\/div>\n<\/div>\n<p><!----><!----><\/div>\n<p><!----><!----><br \/> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/articles\/544244\/\"> https:\/\/habr.com\/ru\/articles\/544244\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div><!--[--><!--]--><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<p>One of the most time-consuming steps while implementing a SIEM solution is writing and tuning &#171;Playbook&#187; document \u2013 a set of reaction procedures SOC Team has to follow in case of alert triggering.<\/p>\n<p>During one of our implementation projects I stoped for a moment and thought: how can I optimize (ideally automate) the Playbook execution \u2013 in a playful way?<\/p>\n<p>&lt;cut\/><\/p>\n<p>First of all \u2013 how does Playbook looks like? Here is a basic snippet of this document:<\/p>\n<figure class=\"full-width\"><figcaption>Playbook document<\/figcaption><\/figure>\n<p>One of the ideas I could come up with was \u2013 hey, why don&#8217;t we add some AI on top of it? Everyone is doing AI nowadays, isn&#8217;t it? Can we automate SOC activities with some extra help of a Chatbot? <\/p>\n<p>TensorFlow is one of the well known free and open-source libraries available for machine learning and deep neural networks and it was the first thing to investigate.<\/p>\n<p>OK, now I forgot to mention one substantial fact \u2013 our SIEM solution (Enterprise Threat Detection, or SAP ETD) comes from SAP SE, which means this SIEM solution runs on SAP HANA as a platform. How can I integrate Tensorflow into HANA platform? <\/p>\n<p>Quick research confirmed that it was possible:<\/p>\n<p><a href=\"https:\/\/blogs.sap.com\/2020\/08\/11\/tensorflow-model-integration-with-sap-hana\/\" rel=\"noopener noreferrer nofollow\">Tensorflow Machine Learning Model Integration with SAP HANA<\/a><\/p>\n<p>Nowadays we can integrate TensorFlow even with ABAP environment:<\/p>\n<p><a href=\"https:\/\/blogs.sap.com\/2020\/08\/11\/tensorflow-model-integration-with-sap-hana\/\" rel=\"noopener noreferrer nofollow\">How To Use TensorFlow Seamlessly Inside ABAP<\/a><\/p>\n<p>OK, Google, that goes far beyond my humble research..<\/p>\n<p>So I decided to focus on end-to-end solutions. Let&#8217;s try to make use of SAP Conversational AI (CAI). Luckily, there is a trial service available, hopefully no programming skills is necessary.<\/p>\n<p>Now that I am logged onto a trial version CAI, let&#8217;s create a &#171;performing actions&#187; Chatbot named &#171;SEC&#187;, which would be (at least) able to participate in some basic discussions, such as greetings, small talks and weather:<\/p>\n<figure class=\"full-width\"><figcaption>Steps 1-2<\/figcaption><\/figure>\n<figure class=\"full-width\"><figcaption>Step 3<\/figcaption><\/figure>\n<p>This newly born bot is already able to do some basic activities, but let&#8217;s add some extra security-relevant capabilities (intents) to it:<\/p>\n<ul>\n<li>\n<p>Initiator \u2013 collect information about attacker&#8217;s terminal id<\/p>\n<\/li>\n<li>\n<p>Username \u2013 collect information about attacker&#8217;s username<\/p>\n<\/li>\n<li>\n<p>System \u2013 collect information about attacker&#8217;s system<\/p>\n<\/li>\n<li>\n<p>Inform \u2013 inform SAP Basis Team about possible attacker in their system<\/p>\n<\/li>\n<li>\n<p>Alert \u2013 collect information about triggered alert<\/p>\n<\/li>\n<\/ul>\n<figure class=\"full-width\"><figcaption>Intents<\/figcaption><\/figure>\n<p>Now we group these new &#171;intents&#187; into new &#171;skills&#187; so that our bot would be able to &#171;register alerts&#187; and &#171;talk to basis&#187;:<\/p>\n<figure class=\"full-width\"><figcaption>New &#171;skills&#187;<\/figcaption><\/figure>\n<p>The last thing I want to do is of course bot training:<\/p>\n<figure class=\"full-width\"><figcaption>Training is in progress<\/figcaption><\/figure>\n<p>When training is finished I can test the bot:<\/p>\n<figure class=\"\"><figcaption>New chatbot<\/figcaption><\/figure>\n<p>When the bot says &#171;We have blocked this terminal&#8230;&#187; that&#8217;s no joke because one of the &#171;talk to basis&#187; skills was calling external APIs:<\/p>\n<figure class=\"full-width\"><figcaption>Bot reacts on true-positives<\/figcaption><\/figure>\n<p>What do you think of Chatbot helping SOC Team registering alerts and reacting to threats? Tell in comments<\/p>\n<\/div>\n<\/div>\n<\/div>\n<p><!----><!----><\/div>\n<p><!----><!----><br \/> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/articles\/544244\/\"> https:\/\/habr.com\/ru\/articles\/544244\/<\/a><br \/><\/br><\/br><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-402235","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/402235","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=402235"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/402235\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=402235"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=402235"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=402235"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}