<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Bolaji Ladokun on Medium]]></title>
        <description><![CDATA[Stories by Bolaji Ladokun on Medium]]></description>
        <link>https://medium.com/@ladokunbolaji?source=rss-c3216dacb500------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*Rh6vPPYqQ4LSinb1DDlaYw.jpeg</url>
            <title>Stories by Bolaji Ladokun on Medium</title>
            <link>https://medium.com/@ladokunbolaji?source=rss-c3216dacb500------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 30 Nov 2026 19:12:24 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@ladokunbolaji/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[The Modern CISO Is an Animal Trainer (Whether You Like It or Not)]]></title>
            <link>https://ladokunbolaji.medium.com/the-modern-ciso-is-an-animal-trainer-whether-you-like-it-or-not-633f23367c79?source=rss-c3216dacb500------2</link>
            <guid isPermaLink="false">https://medium.com/p/633f23367c79</guid>
            <category><![CDATA[cyber-security-awareness]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[ciso]]></category>
            <category><![CDATA[management]]></category>
            <category><![CDATA[cyberattack]]></category>
            <dc:creator><![CDATA[Bolaji Ladokun]]></dc:creator>
            <pubDate>Tue, 21 Apr 2026 13:51:01 GMT</pubDate>
            <atom:updated>2026-04-21T13:51:01.501Z</atom:updated>
            <content:encoded><![CDATA[<p>I saw a slide recently that nailed it: a lion, arms raised, surrounded by chaos; tools, processes, OT, legacy systems, disaster recovery, business continuity. And right there in the middle: “<strong><em>The modern CISO as animal trainer.</em></strong>”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7KHSOitgh0I94EdHjC7s7w.png" /></figure><p>It’s uncomfortable. It’s also accurate.</p><p>Because if you strip away the frameworks, the certifications, and the endless vendor noise, what you’re <strong>really doing as a CISO today is not “managing security.</strong>” You’re managing behavior. Unpredictable, instinct-driven, sometimes irrational behavior that cut across systems, people, and technology stacks that were never designed to work together.</p><blockquote>That’s not governance. That’s a zoo.</blockquote><h3>The Illusion of Control</h3><p>Let’s be honest, most security strategies are built on the illusion that things are under control:</p><ul><li>Defined processes</li><li>Standardized tools</li><li>Clear policies</li><li>Structured architectures</li></ul><p>But then reality walks in:</p><ul><li>A legacy system no one wants to touch</li><li>An OT environment that doesn’t follow IT rules</li><li>A business unit that bypasses security for speed</li><li>A zero-day that doesn’t care about your roadmap</li></ul><p>Suddenly, your “<strong><em>structured program</em></strong>” starts looking more like crowd control.</p><p>And that’s where the animal trainer mindset becomes useful.</p><h3>You’re Not Eliminating Risk; You’re Conditioning It</h3><p>An animal trainer doesn’t eliminate instinct. They work with it.</p><p>Same with a modern CISO.</p><p>You’re not going to:</p><ul><li>Remove human error</li><li>Eliminate shadow IT</li><li>Fully modernize legacy environments overnight</li></ul><p>What you can do is shape behavior:</p><ul><li>Make secure behavior the easiest path</li><li>Reward compliance (not just punish failure)</li><li>Design controls that align with how people actually work</li></ul><blockquote>Security that fights human nature loses. Every time.</blockquote><h3>The Real Skill: Orchestration, Not Domination</h3><p>Old-school security leadership was about control.</p><p>Modern security leadership is about orchestration.</p><p>Look at the landscape you’re juggling:</p><ul><li>IT vs OT</li><li>Cloud vs on-prem</li><li>Innovation vs regulation</li><li>Speed vs security</li></ul><p>Each of these pulls in a different direction. If you try to “dominate” them, you create resistance. If you orchestrate them, you create alignment.</p><p>That’s the difference between a handler and a trainer.</p><h3>Tools Don’t Solve Chaos; They Amplify It</h3><p>The slide had “Tools” floating somewhere in the mix. That’s intentional.</p><blockquote>Because tools don’t fix complexity; they scale it.</blockquote><p>Every new tool:</p><ul><li>Adds another signal</li><li>Introduces another integration point</li><li>Requires another skillset</li><li>Creates another dependency</li></ul><p>Without the right behavioral model, you’re not building a security stack; you’re feeding the zoo.</p><h4>The CISO as Translator</h4><blockquote>Here’s the part most people underestimate: communication.</blockquote><p>A trainer doesn’t just understand the animal; they bridge the gap between instinct and instruction.</p><p>As a CISO, you’re constantly translating:</p><ul><li>Business risk into technical controls</li><li>Technical threats to business impact</li><li>Compliance requirements into operational reality</li></ul><blockquote>If you get this wrong, nothing else matters. You’ll have the best tools and the cleanest architecture, and still lose the organization.</blockquote><h3>So What Does “Good” Look Like?</h3><p>Not perfection. Not full control.</p><p>Good looks like:</p><ul><li>Systems that fail safely</li><li>People who default to secure behavior</li><li>Visibility that drives action, not noise</li><li>A strategy that accepts chaos, but channels it</li></ul><blockquote>In other words: a well-trained environment, not a perfectly controlled one.</blockquote><h3>Final Thought</h3><p>The lion doesn’t become less dangerous because you understand it.</p><p>But you learn how to work with it.</p><p>That’s the job.</p><p>Not to pretend the environment is tame, but to operate effectively in a world that isn’t.</p><p>And if you’re honest about it, that’s what makes the role interesting.</p><p>Because anyone can manage order.</p><p>It takes a different kind of leader to manage controlled chaos.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=633f23367c79" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Mental Models for Enterprise Cyber Security -Part 1]]></title>
            <link>https://ladokunbolaji.medium.com/mental-models-for-enterprise-cyber-security-part-1-e80764375754?source=rss-c3216dacb500------2</link>
            <guid isPermaLink="false">https://medium.com/p/e80764375754</guid>
            <category><![CDATA[cyber-risk-management]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[strategy]]></category>
            <category><![CDATA[thinking]]></category>
            <category><![CDATA[mental-models]]></category>
            <dc:creator><![CDATA[Bolaji Ladokun]]></dc:creator>
            <pubDate>Fri, 04 Nov 2022 23:02:39 GMT</pubDate>
            <atom:updated>2022-11-04T23:07:58.854Z</atom:updated>
            <content:encoded><![CDATA[<p>There is no easier way to say it, enterprise security is hard! Organizations implement best practices to ensure the security of systems, business processes and ultimately people. Even the best of security processes and practices are not fail-safe for many reasons such as human error and various blind spots. Mental models are a kind of internal symbol or representation of external reality, hypothesized to play a major role in <a href="https://en.wikipedia.org/wiki/Cognition">cognition</a>, <a href="https://en.wikipedia.org/wiki/Reasoning">reasoning</a> and <a href="https://en.wikipedia.org/wiki/Decision-making">decision-making</a>. Every day, security professionals (analysts, architects, engineers etc.) make countless security related decisions. Mental models can help to make clear thinking and improve decision making. In this article, my goal is to share some mental models that can help to abstract cyber security challenges.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/1*3Z3dpm5C3DCdgO0RR7t8KQ.png" /><figcaption>Mental Model — Source: Google Images</figcaption></figure><p>I am going to discuss five mental models useful for better thinking</p><ul><li>First Principle Thinking</li><li>Second Principle Thinking</li><li>Inversion</li><li>Circle of Competence</li><li>Probabilistic thinking</li></ul><h3><strong>First Principle Thinking</strong></h3><p>This framework helps in a clear understanding of a problem to its fundamental elements. The main idea of first principle thinking is to break down complicated problems into basic elements and then reassemble them from the ground up.</p><p>To adopt first principles thinking follow this simple approach:</p><ul><li><em>Define the problem to the best of your ability</em></li><li><em>Break down the problem into its fundamental elements</em></li><li><em>Try to change one or more of the fundamentals</em></li><li><em>Build a new solution from scratch</em></li></ul><p>Asking “Why” and “What” would help to make thinking iterations and make clear and better answers while looping through. Here are some generic questions that could help:</p><blockquote>What is the problem?<br>Why does it exist?<br>Why does it need to be solved?<br>What would help to solve XX and why?</blockquote><h3><strong>Second Principle Thinking</strong></h3><p>While first order thinking is the process of considering the intended and perhaps obvious implications of a business decision or policy change.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/648/1*ea5vs5csUX5Fk3-pJn6RxA.png" /><figcaption>Source: Google Images</figcaption></figure><p>Second order thinking is the process of tracing down and unraveling the implications of those first order impacts. Think about it like asking the question “And then what?”. This is a very useful model to understand the potential implication about the decisions and conclusions reached after the first principle thinking</p><h3><strong>Inversion</strong></h3><p>Inversion is <strong>the practice of thinking through problems in reverse</strong>. It’s the practice of “inverting” a problem — turning it upside down — to see it from a different perspective. In its most powerful form, inversion is asking how an endeavor could fail, and then being careful to avoid those pitfalls. For example, when thinking about Business Continuity and Disaster Recovery strategy, think about what would be the worst situation to recover from. This would help to build a robust resilient strategy. Here are some useful hints on inversion model:</p><ul><li><em>Identify your goal and define what failure looks like.</em></li><li><em>Take action to avoid the worst scenario.</em></li><li><em>Compare ‘cons’ when making a decision.</em></li><li><em>Use ‘pre-mortems”.</em></li></ul><h3><strong>Circle of Competence</strong></h3><p>Understanding your circle of competence helps you avoid problems, identify opportunities for improvement, and learn from others. This model requires a great amount of self-awareness. You should not overestimate your own capabilities.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Jk9HwcmT6az_1U5KaMvIig.png" /><figcaption>Source: Google Images</figcaption></figure><p>Both as security professionals and on as an organizations, you <strong>have</strong> to know the edge of your own competency. It is impossible to fulfill all your enterprise security needs in-house. Outsourcing and collaborating with more organizations with better competence is very important. In some cases, your strategy is to learn about needed competence and building capabilities. On the other hand, you don’t want to outsource your competent capabilities.</p><blockquote>This model is a battle between ego and competence</blockquote><h3><strong>Probabilistic Thinking</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/678/1*PcZqHQcokmcQVvbYpgKQjg.png" /><figcaption>Source: Google Images</figcaption></figure><p>Probabilistic thinking is trying to estimate using our knowledge, logic, and basic math to estimate the likelihood of any specific outcome. No individual or organization has infinite resources. Being able to estimate the likelihood of an event is very important to develop adequate cyber preparedness, prevention and detection forte. For example, making a decision to protecting an asset with an higher exposure factor.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e80764375754" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Brain Dump: Guides to Securing Containers]]></title>
            <link>https://ladokunbolaji.medium.com/brain-dump-guides-to-securing-containers-cd67f2082cd0?source=rss-c3216dacb500------2</link>
            <guid isPermaLink="false">https://medium.com/p/cd67f2082cd0</guid>
            <category><![CDATA[containerization]]></category>
            <category><![CDATA[cyberattack]]></category>
            <category><![CDATA[devsecops]]></category>
            <category><![CDATA[docker]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <dc:creator><![CDATA[Bolaji Ladokun]]></dc:creator>
            <pubDate>Sat, 07 Aug 2021 20:06:15 GMT</pubDate>
            <atom:updated>2021-08-07T20:47:24.480Z</atom:updated>
            <content:encoded><![CDATA[<p>Yes, we know! Container usage is increasing exponentially. Containers are a very important part of the DevOps approach. Containers — A technology to run one or more than one process on an independent and isolated environment. For sure, they are lightweight and have other great advantages. The DevOps culture is great at delivering continuous integration and delivery for business. With new technological approaches comes new challenges. There are always weak points that need to be hardened in order to be secure. If you are unfamiliar with container technology, <a href="https://medium.com/codingthesmartway-com-blog/docker-beginners-guide-part-1-images-containers-6f3507fffc98">here</a> is a great way to start. In this post, I will discuss some of the attack vectors peculiar to containers and the countermeasures.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/823/1*I1GggbD-GweTxHWYGmOUHQ.png" /><figcaption>Source: Google Images — <a href="https://dev.to/prabusubra/understanding-docker-containers-and-images-ed7">https://dev.to/prabusubra/understanding-docker-containers-and-images-ed7</a></figcaption></figure><h3><strong>Understanding the Attack Vectors</strong></h3><p>In order to effectively protect environment running containers, it is very important to know what are the components of a container. Containers contain:</p><ul><li>code</li><li>runtime</li><li>libraries</li><li>environment variables</li><li>configuration files</li></ul><p>Each of these components are attack surfaces for malicious actors. By observing the life cycle of container, it can provide us with the exploitable weaknesses in each phase.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/515/1*RKrHfPc0N1XfKhuRP0r-jw.png" /><figcaption>Container Life Cycle and Weak Points</figcaption></figure><p>The contents of a Dockerfile contribute massively into the security of an image because the instructions for building an image are stored in it. In every state of the life cycle, it is important to ensure a malicious actor is not able to modify the Dockerfile.</p><p>It is possible for malicious actor to achieve any of the following:</p><ul><li>Make it part of a command-and-control network</li><li>Connect a container to a zombie network</li><li>Mine cryptocurrency</li><li>Steal or exfiltrate data</li><li>Gain understanding of network topologies</li><li>Steal or access secrets</li></ul><p>The build machine is very important. An attacker can influence the outcome of a build in any phase which of course can lead unwanted results like establishing footholds and ultimately moving laterally within the infrastructure.</p><p><strong>Tampering with docker file and source codes: </strong>The contents of a Dockerfile dictates the behaviour of the container. The various dockerfile commands are very important. It is possible for an attacker to modify the contents of this file to fulfil his/her malicious intent.</p><p><strong>Vulnerable Base Images: </strong>In many cases, the base operation system of an image is vulnerable to known attacks. While it’s important to actively detect vulnerabilities on deployed containers, it is equally important to keep track of emerging vulnerabilities affecting base images before they are being deployed.</p><p><strong>Vulnerable dependencies:</strong> More often, there are loads of vulnerabilities shipped into container environments through applications and their dependencies. Examples could be deprecated python, npm or maven libraries.</p><p><strong>Image modification during build: </strong>It is possible for an attacker to perform some sort of man-in-the-middle attack by being positioned in the CI/CD pipeline. This way, he can modify contents and commands in the build phase and hence be able to inject malicious code in the process.</p><p><strong>Attack on deployment machine: </strong>The security of the deployment machine is very important to the container. Taking over the deployment machine means the confidentiality and integrity of the running container environment can be compromised. Patches and baseline hardening should be applies to deployment environment.</p><p><strong>Tampering with stored images: </strong>Registry and other storage environments where images are kept need to be well protected as compromise could lead to stored images being altered. ensure</p><h3>Container Security Checklist</h3><ul><li>Protect your docker file: the RUN command in the docker file is very important, it provides the instruction for a container at run time.</li><li>Know your base image: it is very important to know what images you are using and the supply chain.</li><li>Use non-root users where possible.</li><li>Avoid mounting sensitive directory: while provisioning your container with storage or volumes, avoid mounting storage locations with sensitive contents. Employ the practice of least privilege and need-to-know in situations like this. Avoid OS paths.</li><li>Protect your build machines</li><li>Enable drift protection and immutable containers</li><li>Avoid putting sensitive data in images: keys, passwords and other vital sensitive data should not be kept in images. Passing secrets via network interfaces, hardcoding secrets into containers are bad. Secrets can be sent to containers via files in mounted volumes but the file should be temporary.</li><li>Reduce Attack Surfaces</li><li>Use Firewalls: Network access controls should be governed by firewalls. Ensure only ports that need to be exposed are exposed. Implement the right subnetting and access controls only needed for the container/application environment</li><li>Admission Control: Use admission controls to verify images against defined policies. This would ensure that non-compliant images are not deployed in your environment.</li><li>Identifying vulnerable dependencies: regular vulnerability scans can help to detect vulnerable containers and quickly fix them. Depending on the base image, deployed application and dependencies. You can make decisions on what type of scan engine is needed. Some examples are <a href="https://github.com/aquasecurity/trivy">Trivy</a>, <a href="https://anchore.com/opensource/">Anchore</a>, <a href="https://github.com/quay/clair">Clair</a> etc. You can find some great tools <a href="https://geekflare.com/container-security-scanners/">here</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cd67f2082cd0" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Setting up Rsyslog Server for Log Collection using Vagrant Boxes]]></title>
            <link>https://ladokunbolaji.medium.com/setting-up-rsyslog-server-for-log-collection-using-vagrant-boxes-85841225cfd7?source=rss-c3216dacb500------2</link>
            <guid isPermaLink="false">https://medium.com/p/85841225cfd7</guid>
            <dc:creator><![CDATA[Bolaji Ladokun]]></dc:creator>
            <pubDate>Sat, 16 Jan 2021 01:48:33 GMT</pubDate>
            <atom:updated>2021-01-16T09:52:02.583Z</atom:updated>
            <content:encoded><![CDATA[<p>My guess is that you are reading this blog post because you need to collect logs from linux OS to a central location. If that is true, I will try to make it easy and clear. According to the <a href="https://www.rsyslog.com/">official documentation</a>, rsyslog is kind of swiss army knife of logging, being able to accept inputs from a wide variety of sources, transform them, and output to the results to diverse destinations.</p><p>Rsyslog extends syslog protocol with new features like:</p><ul><li>RELP Protocol support</li><li>Buffered operation support</li><li>You can listen to TCP/UDP connections</li><li>It can load a lot of modules</li><li>You can discard message after one or more rules</li></ul><p>Rsyslog provides a robust way of performing log monitoring and analysis for security functions and activities. Together, we will walk through how to collect log into a rsyslog server using ubuntu vagrant boxes.</p><p>Prerequisite: Install Vagrant on your host device — <a href="https://medium.com/@AnnaJS15/getting-started-with-virtualbox-and-vagrant-8d98aa271d2a">here is a good way to start with vagrant</a></p><p><strong>Asset List:</strong><br><strong><em>Rsylog server: 192.168.33.10<br>Client Machine: 192.168.33.11</em></strong></p><h3><strong>Task 1: Prepare the Rsyslog Server</strong></h3><ol><li><strong>Get Ubuntu Bionic Vagrant Box</strong></li></ol><pre>~# mkdir syslog-server<br>~# cd syslog-server<br>~# vagrant init ubuntu/bionic64</pre><p><strong>2. Assign an IP to the vagrant box <br></strong>Edit the Vagrantfile in the vagrant<em> syslog-server folder.<br></em>Remove the # symbol and assign the IP address: 192.168.33.10</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qNEZ1rTMveYtxfKDlrzKaw.png" /></figure><p>3. Power up the rsyslog server</p><pre>~# vagrant up</pre><h3>Task 2: Prepare the Client Machine</h3><ol><li><strong>Get Ubuntu Bionic Vagrant Box</strong></li></ol><pre>~# mkdir client-ubuntu<br>~# cd client-ubuntu<br>~# vagrant init ubuntu/bionic64</pre><p>2. <strong>Assign an IP to the vagrant box <br></strong>Edit the Vagrantfile in the vagrant<em> syslog-server folder.<br></em>Remove the # symbol and assign the IP address: 192.168.33.11</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*htkkWbwEi9GNwrtlbUueUw.png" /></figure><p>3. Power up the rsyslog server</p><pre>~# vagrant up</pre><h3>Task 3 : Configure the Rsyslog Server</h3><ol><li>Connect to the rsyslog server</li></ol><pre>~# cd syslog-server<br>~# vagrant ssh</pre><p>2. Verify rsyslogd is installed</p><pre>~# rsyslogd -v</pre><p>3. Install rsyslog if not Installed</p><pre>~# sudo apt install rsyslog</pre><p>4. Now check if the rsyslog service is enabled</p><pre>~# systemctl status rsyslog</pre><p>5. If not working start the service then enable it</p><pre>~# systemctl start rsyslog<br>~# systemctl enable rsyslog</pre><p>6. Configure the rsyslog after installation, open the config file</p><pre>~# sudo vi /etc/rsyslog.conf</pre><p><em>Use nano editor if you are more comfortable with that.</em></p><p>7. Rsyslog supports both UDP and TCP for log transportation, let’s enable this. In the config file, locate the lines below:</p><pre>module(load=”imtcp”)<br>input(type=”imtcp” port=”514&quot;)</pre><pre>module(load=”imudp”)<br>input(type=”imudp” port=”514&quot;)</pre><p>Remove the <em># </em>in front of the lines above.</p><p>8. Then you need to enable <a href="https://www.rsyslog.com/doc/v8-stable/configuration/modules/imuxsock.html">unix sock module</a> and <a href="https://www.rsyslog.com/doc/v8-stable/configuration/modules/imjournal.html">journal Module,</a> by removing pound symbol in front of them.</p><pre>module(load=”imuxsock”) # provides support for local system logging</pre><pre>module(load=”imjournal”) # provides the ability to import structured log messages from systemd journal to syslog.</pre><p>9. Let’s ensure logs are arranged according to hostnames</p><pre>$template RemoteMachineLogs,”/var/log/%HOSTNAME%/%PROGRAMNAME%.log”<br>*.* ?RemoteMachineLogs<br>&amp; ~</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/917/1*xCRZkSxR5Gubt0poACCK9A.png" /></figure><p>10. Restart the rsyslog service.</p><pre>~# sudo systemctl restart rsyslog</pre><p>11. Verify Port Accepting Connection</p><pre>~# netstat -tulnp | grep “rsyslog”</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UdKfueeRcLHSFjNLp6Tpdw.png" /></figure><p>12. Enable the host-based firewall on the rsyslog server to receive connection over port 514</p><pre>~# sudo ufw allow 514/udp<br>~# sudo ufw allow 514/tcp<br>~# sudo ufw reload</pre><h3>Task 4: Configure the Client Machine</h3><ol><li>Connect to the client machine</li></ol><pre>~# cd client-ubuntu<br>~# vagrant ssh</pre><p>2. Verify rsyslogd is installed</p><pre>~# rsyslogd -v</pre><p>3. Install rsyslog if not Installed</p><pre>~# apt install rsyslog</pre><p>4. Now check if the rsyslog service is enabled</p><pre>~# sudo systemctl status rsyslog</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/869/1*Ie0f8qbo9B6TrLIXxUyhXg.png" /></figure><p>5. If not working start the service then enable it</p><pre>~# sudo systemctl start rsyslog<br>~# sudo systemctl enable rsyslog</pre><p>6. Configure the rsyslog after installation, open the config file</p><pre>~# sudo nano /etc/rsyslog.conf</pre><p>7. Let’s forward the log to the syslog server.</p><pre>*.* action(type=”omfwd” target=”192.168.33.10” port=”514” protocol=”tcp” action.resumeRetryCount=”100&quot; queue.type=”linkedList” queue.size=”10000&quot;)</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*egmitxGpt8ZKZdj1QPRQBw.png" /></figure><p>8. Restart the rsyslog service.</p><pre>~# sudo systemctl restart rsyslog</pre><p>9. Open the terminal of the Rsyslog server to verify you are receiving logs already</p><pre>~# sudo ls -la /var/log/</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OpazcU5ceza2b9IVi0UUuw.png" /></figure><p>The machine is sending log already. The machine name is mime.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=85841225cfd7" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[MITRE ATT&CK: Some Useful Tips on Detection]]></title>
            <link>https://ladokunbolaji.medium.com/mitre-att-ck-some-useful-tips-on-detection-fe6db9fc2afe?source=rss-c3216dacb500------2</link>
            <guid isPermaLink="false">https://medium.com/p/fe6db9fc2afe</guid>
            <category><![CDATA[security-operation-center]]></category>
            <category><![CDATA[blue-team]]></category>
            <category><![CDATA[threat-hunting]]></category>
            <category><![CDATA[mitre-attack]]></category>
            <category><![CDATA[mitre-attack-framework]]></category>
            <dc:creator><![CDATA[Bolaji Ladokun]]></dc:creator>
            <pubDate>Fri, 27 Nov 2020 21:22:47 GMT</pubDate>
            <atom:updated>2020-11-28T07:30:11.129Z</atom:updated>
            <content:encoded><![CDATA[<p>Mitre Att&amp;ck framework does a great job in outlining attack techniques and adversary tactics enterprises face. Most security professionals would agree that it has helped so much in helping to understand the attack landscape defenders are facing. Every great concept comes with great responsibilities. One of the responsibilities that comes with Mitre Att&amp;ck framework is that defenders must interpret it correctly. In this post I will highlight some useful hints on using Mitre Att&amp;ck framework.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xiJut6arbspqYBE9PNoW9w.png" /><figcaption>Mitre Matrix: <a href="https://attack.mitre.org/">https://attack.mitre.org/</a></figcaption></figure><h3>Focus on what matters</h3><p>As simple at this might sound, it is very important! Focus on specific techniques that are applicable to the business and to the business assets. Going aggressive or trying to cover it all is not always the best approach. Usually, the resources to achieve this is not always available. In order to have a good detection, painstakingly identifying possible attacks, attack surfaces and tool(s) capabilities is very important. This is the basis for good detection and visibility.</p><h3><strong>Overconfidence in detection</strong></h3><p>Sadly, there is no one size fit all for detection. While writing a detection for a specific technique or sub-technique in the Mitre Att&amp;ck framework, a single rule is not always sufficient. You will end up writing or deploying several rules to have good detection coverage. Take for example<a href="https://attack.mitre.org/techniques/T1059/001/"> sub-technique ID: T1059.001</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JO33suL3IREPkCXYLuiTEw.png" /><figcaption>Source: Mitre Att&amp;ck: <a href="https://attack.mitre.org/techniques/T1059/001/">https://attack.mitre.org/techniques/T1059/001/</a></figcaption></figure><p>There are countless ways attackers can leverage on the usage of powershell to cause breach. It is absolutely impossible to cover all scenarios in this sub-techniques with one detection rule. Put this also in mind that this is applicable to vendor and open-source detections rules.</p><h3><strong>Mind the blind spots</strong></h3><p>Mind the blind spots when collecting data for the purpose of detection. Ensure you collect useful and important fields needed for both detection and analysis.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1002/1*xHS3C58EfNhAlj6dfhqtiA.png" /><figcaption>Source: Google Images</figcaption></figure><p>Take for example the windows audit policy, ensure you configure relevant and important ones. It is important to enable process creation along with the command line fields — you can find a great compilation by malware archeology <a href="https://www.malwarearchaeology.com/cheat-sheets/">here</a>. If you are using auditd for unix based systems. Ensure you have the right configuration and audit level needed for detection. It is advisable to approach it granularly.</p><h3>New tools and instances</h3><p>Keep abreast of newly deployed tools or technologies within your environment. A new software can open new attack surface(s) for malicious actors. Similar to this is also novel techniques or vulnerabilities that opens up your environment to new threat actors. Try as much as possible to reduce the lag time between new techniques and detection rules.</p><h3>Devaluing Data Sources</h3><p>Most organizations have limitation in collection of logs from some data sources simply because of obvious constraints like storage. But sometimes it is possible to devalue some data sources both during data collection and during security operations. Data sources like web gateway, antivirus, CASB and email logs might sometimes be overlooked. Of course, it is obvious that these data sources do not have so much coverage in the Mitre Att&amp;ck framework, they are a great source of truth sometimes. It is very important to put in mind the uniqueness of these data sources in the overall defense strategy.</p><h3><strong>Don’t trust any tool that does it all</strong></h3><p>Presumptuously, it is possible to think as SOC or SecOps have 100% detections capability — this is not true! <em>To make matters worse, a lot of security product vendors claim to have their Mitre Att&amp;ck coverage to be at </em>100%. The least you should do is to verify this. There are a lot of tools (e.g. <a href="https://caldera.readthedocs.io/en/latest/">Caldera</a>, <a href="https://atomicredteam.io/">Atomic Red</a>) that supports adversary emulation. This would effectively help in testing detection capabilities of any security product you are using.</p><p>Happy Defending!</p><p><strong>References</strong></p><p>Mitre Att&amp;ck: <a href="https://attack.mitre.org/">https://attack.mitre.org/</a><br>Caldera: <a href="https://caldera.readthedocs.io/en/latest/">https://caldera.readthedocs.io/en/latest/</a><br>Atomic Red: <a href="https://atomicredteam.io/">https://atomicredteam.io/</a><br>Attack Mapping: <a href="https://github.com/olafhartong/ATTACKdatamap">https://github.com/olafhartong/ATTACKdatamap</a><br>Mitre Att&amp;ck Navigator: <a href="https://mitre-attack.github.io/attack-navigator/">https://mitre-attack.github.io/attack-navigator/</a><br>Adventures in Mapping things to Mitre: <a href="https://www.youtube.com/watch?v=ko-l3a6V0zI&amp;ab_channel=SOCPrime">https://www.youtube.com/watch?v=ko-l3a6V0zI&amp;ab_channel=SOCPrime</a><br>Logging Cheat Sheet for Windows: <a href="https://www.malwarearchaeology.com/cheat-sheets/">https://www.malwarearchaeology.com/cheat-sheets/</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fe6db9fc2afe" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>