{"id":1766,"date":"2022-11-11T23:03:00","date_gmt":"2022-11-11T23:03:00","guid":{"rendered":"https:\/\/www.balajibandi.com\/?p=1766"},"modified":"2022-11-12T23:54:38","modified_gmt":"2022-11-12T23:54:38","slug":"build-siem-with-opensource-tools-made-easy","status":"publish","type":"post","link":"https:\/\/www.balajibandi.com\/?p=1766","title":{"rendered":"Build SIEM with OpenSource Tools ..Made easy."},"content":{"rendered":"\n<p>It&#8217;s been a Long time since I was thinking to create a SIEM using opensource tools<\/p>\n\n\n\n<p>Which has several components &#8211; All based on Linux Opensource tools.<\/p>\n\n\n\n<p>Tools I used and planned to integrate (be patient, take some time to get all running) but we get there slowly and finish testing and using the product.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1014\" height=\"679\" src=\"https:\/\/www.balajibandi.com\/wp-content\/uploads\/2022\/11\/image.png\" alt=\"\" class=\"wp-image-1767\" srcset=\"https:\/\/www.balajibandi.com\/wp-content\/uploads\/2022\/11\/image.png 1014w, https:\/\/www.balajibandi.com\/wp-content\/uploads\/2022\/11\/image-300x201.png 300w, https:\/\/www.balajibandi.com\/wp-content\/uploads\/2022\/11\/image-768x514.png 768w, https:\/\/www.balajibandi.com\/wp-content\/uploads\/2022\/11\/image-705x472.png 705w\" sizes=\"auto, (max-width: 1014px) 100vw, 1014px\" \/><\/figure>\n\n\n\n<p><a href=\"https:\/\/www.graylog.org\/\">Graylog &#8211; Log Server<\/a><br><a href=\"https:\/\/wazuh.com\/\">Wazuh Indexer &#8211; Data storage backend<\/a><br><a href=\"https:\/\/wazuh.com\/\">Wazuh &#8211; Log Analysis<\/a><br><a href=\"https:\/\/www.elastic.co\/kibana\/\">Kibana <\/a>&#8211; <a href=\"https:\/\/grafana.com\/\">Grafana<\/a> &#8211; Visualization<br><a href=\"https:\/\/thehive-project.org\/\">The Hive &#8211; Case Management<\/a><br><a href=\"https:\/\/shuffler.io\/\">Shuffle &#8211; Automation<\/a><br><a href=\"https:\/\/github.com\/OpenCTI-Platform\/connectors\">OpenCTI<\/a> \/<a href=\"https:\/\/github.com\/MISP\/MISP\"> MISP<\/a> &#8211; Intelligence Enrichment<br><a href=\"https:\/\/github.com\/louislam\/uptime-kuma\">Uptime Kuma &#8211; Health Monitoring<\/a><\/p>\n\n\n\n<p>Load balancer (LB) Linux-based with Syslog-ng or rsyslog for Logs collection.<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>Above tools I am using apart from that, I may use Linux Loadbalancer (LB) to Loadbalance the logs from End Network devices, and also wazuh event collection to wazuh-manager from Windows events and logs.<\/p>\n\n\n\n<p>If you looking for logs to LB, then you need to use TCP (not UDP 514) TCP has a 3-way handshake so LB can detect the failures and LB accordingly.<\/p>\n\n\n\n<p>For PoC &#8211; I will be using All in one Server &#8211; Once that integration working and tested, each server will be in a different VM, I also want to use Kubernetes here with Docker for high available or node availability.<\/p>\n\n\n\n<p>For now, below VM specification for PoC :<\/p>\n\n\n\n<p><strong>VM Specification :<\/strong><\/p>\n\n\n\n<p>CPU &#8211; 4 Cores<\/p>\n\n\n\n<p>RAM: 32GB<\/p>\n\n\n\n<p>HDD: 400GB ( SATA)<\/p>\n\n\n\n<p>Operating System: Ubuntu 20. X LTS<\/p>\n\n\n\n<p>Preparation :<\/p>\n\n\n\n<p><strong>Linux installation  &#8211; <\/strong><\/p>\n\n\n\n<p>Download ISO image from Ubuntu.<\/p>\n\n\n\n<p>Installed basic installation so we add later whatever packages required for our long goal.<\/p>\n\n\n\n<p>Once Ubuntu is installed and everything ok you get a login prompt.<\/p>\n\n\n\n<p>If you looking to enable root Login, by default root login is disabled.<\/p>\n\n\n\n<p><strong>vi \/etc\/ssh\/sshd_config<\/strong>  ( I use VI editor &#8211; please use whatever ever convenient for usage)<\/p>\n\n\n\n<p><strong>PermitRootLogin yes<\/strong>  &lt;&lt;- remove the # from of this line or change like this once you find the line.<\/p>\n\n\n\n<p><strong>Press ESC and :wq <\/strong>for quit and write.<\/p>\n\n\n\n<p>change the password for root<\/p>\n\n\n\n<p><strong>#password root (enter new password)<\/strong><\/p>\n\n\n\n<p>restart SSH Service to login using the root login user.<\/p>\n\n\n\n<p><strong>\/etc\/init.d\/ssh restart<\/strong><\/p>\n\n\n\n<p>Try (I use putty) SSH using the root user. (now you have root user access and we are ready to install packages).<\/p>\n\n\n\n<p><a href=\"https:\/\/www.balajibandi.com\/?p=1770\"><strong>Next step we will generate Certs and install WAZUH<\/strong><\/a><\/p>\n\n\n\n<p>happy Labbing &#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;.!<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>It&#8217;s been a Long time since I was thinking to create a SIEM using opensource tools Which has several components &#8211; All based on Linux Opensource tools. Tools I used and planned to integrate (be patient, take some time to get all running) but we get there slowly and finish testing and using the product. [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-1766","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/www.balajibandi.com\/index.php?rest_route=\/wp\/v2\/posts\/1766","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.balajibandi.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.balajibandi.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.balajibandi.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.balajibandi.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1766"}],"version-history":[{"count":3,"href":"https:\/\/www.balajibandi.com\/index.php?rest_route=\/wp\/v2\/posts\/1766\/revisions"}],"predecessor-version":[{"id":1788,"href":"https:\/\/www.balajibandi.com\/index.php?rest_route=\/wp\/v2\/posts\/1766\/revisions\/1788"}],"wp:attachment":[{"href":"https:\/\/www.balajibandi.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1766"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.balajibandi.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1766"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.balajibandi.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1766"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}