<?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 Kemal Sarioglu on Medium]]></title>
        <description><![CDATA[Stories by Kemal Sarioglu on Medium]]></description>
        <link>https://medium.com/@kemalsarioglu?source=rss-2d206a9f0348------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*DEjSSHuJOJNEYhQZM5O49A.png</url>
            <title>Stories by Kemal Sarioglu on Medium</title>
            <link>https://medium.com/@kemalsarioglu?source=rss-2d206a9f0348------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 05:14:36 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@kemalsarioglu/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[Addressing Alert Fatigue in SOCs: Strategies for Mitigation]]></title>
            <link>https://medium.com/@kemalsarioglu/addressing-alert-fatigue-in-socs-strategies-for-mitigation-45e7dedb9448?source=rss-2d206a9f0348------2</link>
            <guid isPermaLink="false">https://medium.com/p/45e7dedb9448</guid>
            <dc:creator><![CDATA[Kemal Sarioglu]]></dc:creator>
            <pubDate>Sat, 27 Jan 2024 22:30:36 GMT</pubDate>
            <atom:updated>2024-01-27T22:41:08.927Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PxrRLZdGaQ62SzrKFy6enw.jpeg" /></figure><p><strong>SOC</strong> environments are designed to protect the digital assets of the companies where they are deployed. Company logs are forwarded to a central environment, where they are normalized and correlated. <strong>Alert fatigue</strong> is defined as the phenomenon that occurs when a large number of alerts are generated, overwhelming professionals. “Alert fatigue is the phenomenon of becoming desensitized (and thus ignoring or failing to respond appropriately) to signals meant to warn us about emergencies” (<a href="https://cloudsecurityalliance.org/blog/2022/06/24/four-reasons-for-alert-fatigue-and-how-to-make-it-stop/">1</a>).</p><p>SOC analysts, managers, malware analysts, and Incident Responders can be deployed in the SOC to handle the daily influx of alerts and incidents. Recently, there has been frequent questioning regarding the efficiency of SOC staff under the heavy alert bombardment. The prevention of alert fatigue is a subject that has been discussed and sought for solutions since the existence of SOC environments. The basics and solutions to alert fatigue are too comprehensive to fit into a single article. Today, we will discuss reasons for and proposed solutions to alert fatigue, particularly for those who are new to the issue.</p><p>Let’s consider an SOC environment where more than 1000 alerts are received daily, and only a limited number of analysts are in operation. At this point, the triage system comes into play; regardless of the severity of the alert, the alerts should be handled anyway. Now, imagine another SOC environment where analysts encounter only a few alarms a day, catching flies all day. Which one is considered ideal?</p><p>In a scenario where analysts are overwhelmed with a substantial number of cases, they prioritize investigating incidents based on a triage system and severity level. Striking a balance between these two extremes is crucial. If a rule generates too many false positives, it can lead to alert fatigue. In such instances, collaborative efforts within the IT team are essential. The responsibility of fine-tuning rules to reduce false positives and alleviate the workload for SOC analysts should be collectively undertaken. This ensures a coordinated approach, optimizing the efficiency of the entire team. However, challenges may arise if all parties within the IT team face the same burden, leaving limited time for necessary fine-tuning. However, what if security engineers face the same burden and have no time left for fine-tuning? Similarly, an excessive number of true positive alerts can also lead to alert fatigue.</p><p>In Managed Security Service Providers (MSSPs), analysts operate under specific time limits outlined in Service Level Agreements (SLAs). This introduces a certain level of pressure on analysts, potentially limiting their ability to conduct in-depth analyses of incidents or alerts. Experience in case resolution becomes crucial in mitigating this stress. On the other hand, in dedicated Security Operations Centers (SOCs), the pressure from the client side may be absent, but managing the volume of alerts remains a significant challenge. Deploying a honeypot or honeynet can be a proactive measure. This not only attracts attackers, generating real alerts for analysts but also provides a valuable opportunity to sharpen their skills. It helps prevent the atrophy of abilities that may occur due to low alertness, ensuring analysts remain vigilant and proficient in their roles.</p><p>The 2022 Devo SOC Performance Report, based on a survey conducted among 2100 decision-makers and SOC analysts, including Germany, reveals that 34% of the participants answered the question “What makes your organization’s SOC ineffective?” with “yields too many false positives” (p.5). This represents a significant portion that cannot be easily ignored. Among the participants, 18% mentioned “alert volume” as the reason for the ineffectiveness of their SIEM when responding to the question “Why is your SIEM not effective?” while 27% cited “alert quality”(p.8). The portion of participants who responded to the question “What, if anything, makes working in the SOC painful?” with “too many alerts to chase” is 26% (p.17). Overall, 55% of respondents say they have considered walking away from their jobs due to the pressure they feel (p.18) (<a href="https://www.devo.com/resources/analyst-research/2022-devo-soc-performance-report/">2</a>).</p><p>The survey conducted by Enterprise Strategy Group reveals that 37% of respondents mentioned that one of their top three challenges with alerts is “scaling to collect, process, and analyze the <strong>growing volume</strong> of security data” (<a href="https://www.darkreading.com/cybersecurity-analytics/soc-teams-burdened-by-alert-fatigue-explore-xdr">3</a>), which may lead to alert fatigue.</p><p>Outside of work, SOC managers struggle to relax due to the abundance of alerts, impacting their mood with friends and family. At work, they often cope by either disabling alerts (43%), stepping away from their computer (43%), hoping a team member will handle it (50%), or ignoring the alerts altogether (40%) (<a href="https://newsroom.trendmicro.com/2021-05-25-70-Of-SOC-Teams-Emotionally-Overwhelmed-By-Security-Alert-Volume">4</a>). “<em>In the midst of a skilled labor shortage, drowning your team in alerts and tedium is not the best way to retain the people who make an organization successful” </em>as rightly pointed out by Ryan Thomas <em>(</em><a href="https://newsroom.trendmicro.com/2021-05-25-70-Of-SOC-Teams-Emotionally-Overwhelmed-By-Security-Alert-Volume"><em>5</em></a><em>).</em></p><p><strong>Solution proposals:</strong></p><p>Finding a solution to alarm fatigue is a phenomenon that has long been discussed among software giants.</p><p>In a SOC, lower tiers decide which alerts to investigate, and automation, alongside solutions like Threat Intelligence, Machine Learning, UEBA, Watchlists, reduces routine tasks. Playbooks leverage tools for task automation, enabling focus on unique alerts and threat analysis (<a href="https://www.microsoft.com/en-us/security/blog/2021/02/17/6-strategies-to-reduce-cybersecurity-alert-fatigue-in-your-soc/">6</a>). The alert rules in your tools must be consistently adjusted to mirror alterations in an organization’s IT environments(<a href="https://arcticwolf.com/cybersecurity-alert-fatigue/">7</a>). Advanced automation techniques (e.g. SOAR) should be developed and used to reduce the burden of analysts. Common use of AI must be encouraged to minimize false positives.</p><p>If EDR has blocked or quarantined a malware before it runs, if a malware or phishing link has been blocked before it reaches the inbox of the target people, if access to a malicious site has been blocked under DNS control, it should be discussed whether the logs of these events will be pushed to the SIEM environment or not, depending on the alarm intensity.</p><p>Do not hesitate to comment and contribute, stay tuned!</p><p>© Copyright 2024</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=45e7dedb9448" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Instagram Account of Braunschweigpolizei : Hacked!]]></title>
            <link>https://medium.com/@kemalsarioglu/instagram-account-of-braunschweigpolizei-hacked-7c131fc4de57?source=rss-2d206a9f0348------2</link>
            <guid isPermaLink="false">https://medium.com/p/7c131fc4de57</guid>
            <dc:creator><![CDATA[Kemal Sarioglu]]></dc:creator>
            <pubDate>Wed, 17 Jan 2024 10:19:16 GMT</pubDate>
            <atom:updated>2024-01-27T22:45:23.288Z</atom:updated>
            <content:encoded><![CDATA[<h3><strong>Instagram Account of Braunschweigpolizei : Hacked!</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*72ttAIvw74QWpnP7DGq1mw.jpeg" /><figcaption>Image generated by AI via Bing</figcaption></figure><p>Any natural person, legal entity and state institutions may have personal or corporate accounts. The motive of the attackers will vary one to another or depending on the target they attack. Public relations departments of companies or relevant units under different names open corporate social media accounts. These accounts are followed by large masses and their hacking significantly damages the company’s reputation. We all know that a good reputation is your greatest asset in business life. For this reason, it is highly important to protect corporate (for sure it is also important to protect personal accounts) social media accounts. In today’s article, we will discuss the protection of social media accounts, hacking methods, and the motivation of attackers, based on the hacking of Braunschweigpolizei’s Instagram account case.</p><p>The verified Instagram account of Braunschweig Police in, a city near Hannover was hacked by attackers on 4th of January for a while and recovered on the following day. Attackers allegedly have put an unknown link on the profile, posted sensual photos of a young woman and commercials. The incident was reported sarcastically in a few news bulletins(<a href="https://www.spiegel.de/netzwelt/apps/instagram-account-der-polizei-braunschweig-gehackt-a-f34d53b7-c646-4613-9e30-d458685a370d">1</a>)(<a href="https://www.braunschweiger-zeitung.de/braunschweig/article241353408/Instagram-Account-der-Polizei-Braunschweig-gehackt.html#:~:text=Unbekannte%20Hacker%20haten%20in%20der,%2C%20vermutlich%20ein%20Phishing%2DLink">2</a>). There’s no panic button to push in emergency and return to previous stage before the attack. But there are some precautions and awareness activities that need to be taken to prevent it.</p><p>The Police then announced that they had recovered their account, saying “Da sind wir wieder/ we are back again”. One of the followers respond to “how can we protect our account?” is sarcastic again: “1234 is not a secure password”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/1*MibzVEsZModRJWIZzflQsA.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/1*Ou-m2eDlWMS1TDhttvcIZA.jpeg" /></figure><p>When we follow the link (as far as we can see from SSs) posted on profile, it leads us to a legitimate web site and can not be expanded. Analyzing the content posted, we can assume that the attackers may be having fun with their attack and trying to humiliate police unit. According to provided information, we can not see whether there is some DM communication attempt with followers or not, but the likelihood of this happening is low in official accounts, high in personal or commercial accounts.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/223/1*pJpJXgsVAjI6P16b8lIlKA.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/877/1*ZEjgIR-mAa7SnZyNN1Z-7Q.png" /><figcaption>Image Source: br-deu.de (left) &amp; watson.de (right)</figcaption></figure><p>It’s possible to create many variations over how the account is hacked, e.g. someone hacked officer’s wi-fi while he’s working home and intercepted credentials. It’s possible that they clicked on a malicious link in the comments section, which seems innocent and intriguing and then run a malicious Java script on the browser. The user downloaded unintentionally a keylogger and gave the attacker his own credentials and more. A victim brought a robbery video footage in a USB, which is already infected, to the station for the police the make a deeper investigation or the account users simply sticked their password on the screen. The attackers can get server of police unit’s public facing web site, then penetrate into network or exploit a vulnerability or zero-day. For sure, it is possible to increase the possibilities even further. Some scenarios can be least possible than others because of the measures they implement or skills the officers have.</p><h3><strong>Why do hackers hack the social media accounts?</strong></h3><ul><li>They collect the credentials as many as they can and sell it at dark web. Dark web social media trading is well-organized, you can buy any account at retail trade price or wholesale price (<a href="https://www.darkreading.com/cyberattacks-data-breaches/how-6-can-buy-hacked-social-media-streaming-accounts-from-the-dark-web-whizcase-study-reveals">3</a>).</li><li>In our “Braunschweigpolizei Instagram Case”, the attackers motivation can be, humiliating them after an alleged unfair arrest, that’s for sure from the hackers point of view.</li><li>A hack of a social media account can be an initial step of an intrusion to the whole network, in such a case, they wouldn’t for sure announce their hack through the hacked account.</li><li>“Taking revenge” is a big motivation, sometimes may lead the perpetrator to hire hackers to do a hack. I’ve personally observed angry partners who refuse to break up, looking for hackers to hack their girlfriend or boyfriend’s social media account or to be sure whether he/she is cheating on him/her or not.</li><li>Based on my personal observations on social media, some attackers attempt to connect with individuals and request money or borrow some amount through personal accounts. Some attackers hold the account hostage until a ransom is paid, in exchange for returning the account, pinning a post to main page defining how to reach out the attacker. In some cases they obtain some private messages or photos and use them to blackmail the victim.</li><li>Some fresh hackers in some cases seek for a real lab, mostly overseas, where they can practice their recently gained hacking skills, it’s a great opportunity for them, finding a poorly secured social media account, the next comes “showing off to peers in the group”.</li><li>Attackers may aim to hack an account of a prominent person or a special target to see his/her correspondences with his/her network.</li><li>Attackers may use the hacked social media accounts to reach out to a broader audience to spread malware or phishing links.</li><li>Social media accounts can be used for identity theft and further related fraudulent activities.</li><li>Social media account hacking motivations cannot be limited solely to the ones mentioned above. Social media account providers may change security measures and users can become more aware of potential attacks. These factors may prompt attackers to seek alternative methods in the evolving cyber landscape.</li></ul><p>Another important point we need to mention here is that: Talented hackers or APT groups may sprinkle evidence around to deceive the victim and analyst to mislead as if someone or another state affiliated group, who is totally unaware of attack, perpetrated it.</p><h3><strong>How do attackers hack the social media accounts and how to protect from them?</strong></h3><p>1- Brute forcing or guessing is a simple way of hacking the accounts. The strong password criteria changes day by day. There are some web sites to check how strong your password is. I personally recommend NOT giving the exact password you have, but a similar combination of it, a measure in case of the leakage of database of queries.</p><p>2- Activate Two Factor Authentication, via an authenticator, SMS or WhatsApp message, upon your choice and availability of methods.</p><p>3- The attackers may be already in your network and intercepting your traffic and suddenly a pop-up screen may ask you to provide your credentials, after allegedly you were locked out because of being inactive for a while. Simply do not provide credentials to such a page.</p><p>4- Social engineering attacks may come in various different forms depending on the attackers skills and your position. They may send the user a link through email or DM, that the user is required to visit a fake Instagram link to solve the issue. If a so-called Instagram message lands into your DM, which is not a usual way of delivery, simply ignore it (<a href="https://www.get-notch.com/blog/6-ways-hackers-steal-instagram-accounts">4</a>).</p><p>5- Users may receive illegitimate suspicious activity alerts from fake senders. Users have to be aware of the sender domain of the social media service, emails e.g. “@mail.instagram.com” or “@facebookmail.com”(<a href="https://www.get-notch.com/blog/6-ways-hackers-steal-instagram-accounts">4</a>). SPF, DKIM, DMARC or legitimate sender IP check can be handy but be relatively complex for non-technical users but worth learning.</p><p>6- Some tools allegedly expected to ease user’s life, can be integrated to social media account and function like a MITM and intercept your data (<a href="https://www.get-notch.com/blog/6-ways-hackers-steal-instagram-accounts">4</a>). Don’t download or use unreliable tools or apps, consult an expert or make a search personally.</p><p>7- In the reverse proxy attacks, attackers convince you to click a link that will direct you to a so-called Instagram, where you are asked for your credentials. In this case hackers get your credentials and 2FA real time(<a href="https://www.get-notch.com/blog/6-ways-hackers-steal-instagram-accounts">4</a>). Our main purpose here is not to practice attack type to bypass 2FA, if you have passion to dig deeper, there are enough open sources e.g. Youtube. To thwart the attack, what you need to do is to check whether you have recently received from Instagram or not via Security&gt;The Last/ recent emails. If you can carefully handle it, sandbox the URL you received through email or make a hover-over test on it.</p><p>I personally asked for more details from Braunschweig Police Department. I can update my article if I receive more details.</p><p>Stay tuned for new content. Never hesitate to make any contribution or comment.</p><p>© Copyright 2024</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7c131fc4de57" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Splunk Data Exfiltration Use Case]]></title>
            <link>https://medium.com/@kemalsarioglu/splunk-data-exfiltration-use-case-c5e981f70071?source=rss-2d206a9f0348------2</link>
            <guid isPermaLink="false">https://medium.com/p/c5e981f70071</guid>
            <dc:creator><![CDATA[Kemal Sarioglu]]></dc:creator>
            <pubDate>Fri, 22 Dec 2023 22:18:17 GMT</pubDate>
            <atom:updated>2023-12-24T16:38:01.236Z</atom:updated>
            <content:encoded><![CDATA[<p>Governments and nation-states may engage in cyber espionage for political, economic, or strategic advantages. Industrial espionage involves the theft of proprietary information from companies to gain a competitive edge. Some individual hackers may target organizations to enhance their reputation within hacking communities. They may seek recognition and validation from their peers by successfully compromising systems or networks. Competitors may resort to data exfiltration as a strategy to gain a competitive advantage. This could involve stealing intellectual property, trade secrets or confidential business plans to be one step ahead in the market. Definitely adversaries may have various motivations to steal data.</p><p>Here Data Loss Prevention solutions come into play. Various tech giants e.g., Microsoft (Pureview), Proofpoint, Fortra, Symantec, Trellix, Forcepoint offer DLP solutions under different names (<a href="https://www.gartner.com/reviews/market/data-loss-prevention">1</a>). DLP solutions are base on; protecting our data by content discovery, policy enforcement and monitoring mechanisms, employing regular expressions to identify specific patterns, like credit card numbers, SSN, passport information, address, telephone or email. Pre-defined DLP policy may exist in solution, you may only hit “apply”. For example Microsoft Purview’s Optical Character Recognition (OCR) lets you scan content of images for sensitive information, then you apply DLP policies and handle the data accordingly. DLP solutions can be a built-in feature of a NGFW or UTM, e.g. Fortinet (<a href="https://www.fortinet.com/de/resources/cyberglossary/ngfw-vs-utm">2</a>). DLP policies can be implemented to Cloud assets, some email security solutions support DLP policies. You are required to deploy agent of DLP solution for endpoint protection.</p><p>Splunk Enterprise Security plays a crucial role by providing the capability to create alerts, especially when you may have had no previous means to detect attackers’ intrusions. Hackers may attempt to evade this rule by breaking down data blocks into smaller sets. This rule serves as a barrier, particularly for hasty hackers who are impatient and aim to exfiltrate data quickly. See below rule:</p><blockquote>index=fortinet sourcetype=”fortigate_traffic” NOT dest IN (“10.*”, “172.[0–2][0–9].*”, “172.31.*”, “192.168.*”)</blockquote><blockquote>| stats sum(sentbyte) as sent_byte by src dest</blockquote><blockquote>| eval sent_mb = sent_byte/(1024*1024)</blockquote><blockquote>| where sent_mb&gt;50</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0KGMVNQ3h2D2H0VFc-KNbg.png" /></figure><p>This query is basic and is likely to generate false positives, capturing legitimate outbound traffic, particularly when a user is using video streaming applications. The competency of the SIEM engineer and SOC analysts is crucial in addressing this issue. Fine-tuning is necessary; additional exclusions based on destination IPs can be defined in the SPL query to prevent alert fatigue. However, it’s important to acknowledge that if any of the excluded IPs are compromised, it poses a risk and could lead to a potential data leak. Regular monitoring of excluded IPs is necessary. In my experience, some routine traffic to specific IPs was observed. It’s worth noting that agents deployed on endpoints, while communicating with the cloud, might generate such traffic, triggering our detection rule</p><p>Here are some ways of reducing false positives, which might be caused by above rule: Use Splunk Machine Learning Toolkit (MLTK) to understand normal behaviours of your network and systems. Implement UEBA. Integrating threat intelligence feeds into your detection mechanisms will enhance accuracy of detection rules. Regularly review rule and update rule when necessary. As you have already noticed, it’s not a clear-cut case, so collaboration among IT sub-units play a crucial role to craft the best rule.</p><p>You can save the SPL query as a “Report”, save as an “Alert” (create notable events, add to triggered alerts, send email etc) or save it as a “Dashboard”.</p><p><strong>Key elements to prevent data exfiltration:</strong></p><p><em>1- Classify your data, this allows you and your employees to prioritize protection efforts.</em></p><p><em>2- Implement DLP solutions, as mentioned before.</em></p><p><em>3- Implement network segmentation and restrict access to sensitive data.</em></p><p><em>4- Encrypt your sensitive data both in transit and at rest.</em></p><p><em>5- Train the users and raise the awareness</em></p><p><em>6- Secure your endpoints, be sure that no one can disable or bypass security tools</em></p><p><em>7- Enforce strong access controls and be stick to least privilege</em></p><p><em>8- Keep all your systems, OSs, applications updated</em></p><p><em>9- Be vigilant against the insider threat activities, monitor unusual behaviours</em></p><p>This use case proposal may not be providing a clear and easy-to-implement solution, as stated. It has been acknowledged that it’s a basic query and needs improvement. I plan to update this article in the near future</p><p>In a world, where the hackers try to hire cyber security staff, who’s been already employed in target company, enterprises should develop a multi directional approach to data exfiltration issue.</p><p>If you have any questions, contribution, another perspective, I’ll be happy to see you comments.</p><p>© Copyright 2023</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c5e981f70071" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Splunk Port Scanning Use Case]]></title>
            <link>https://medium.com/@kemalsarioglu/splunk-port-scanning-use-case-7360bb741ccc?source=rss-2d206a9f0348------2</link>
            <guid isPermaLink="false">https://medium.com/p/7360bb741ccc</guid>
            <dc:creator><![CDATA[Kemal Sarioglu]]></dc:creator>
            <pubDate>Tue, 19 Dec 2023 21:39:54 GMT</pubDate>
            <atom:updated>2023-12-22T22:21:20.724Z</atom:updated>
            <content:encoded><![CDATA[<p>Port scanning activity is conducted as part of a reconnaissance activity. The hacker obtains your assets’ IP somehow, either through a replied email, websites’ IP or by randomly scanning IP blocks… etc. and then start to look for an open port or service or a vulnerability (unpatched or zero day) in services, applications and operating systems. Trying an open source passive reconnaissance tools e.g. Shodan may not bring what attacker exactly expects to have. So, the best way is always to do scanning by automation like Python, Bash scripts or Powershell command or special tools like NMAP or UI version of it, ZENMAP.</p><p>Reminder: The unauthorized use of port scan tools is subject to legal consequences and goes against ethical standards. Refrain from practicing such activities unless you have explicit permission.</p><p>In the next step, the attacker will formulate a plan to exploit vulnerabilities by targeting open or unfiltered ports.</p><p>Port scanning itself generates traffic on our network, but it is not sufficient to cause a significant volume of noise. Its importance lies in the subsequent exploit activities that may follow.</p><p>While we maintain control over the status of ports — open, closed, or filtered — through the firewall, attackers may attempt to explore all 65535 ports. Typically, legitimate users engaging with our web service are expected to establish and terminate connections via designated ports. Any traffic directed to numerous ports is understandably considered suspicious activity. It’s important to note that authorized vulnerability scans and penetration tests are assessed separately from this scenario. Nevertheless, all of these activities, including Red-Team exercises, generate alerts. Security professionals must diligently sort through these alerts to distinguish between routine and potentially malicious actions.</p><p><strong>How can we detect a port scan activity through Splunk?</strong></p><blockquote>index=”fortinet” sourcetype=”fortigate_traffic” <br> | stats dc(dest_port) as num_dest_ports dc(dest_ip) as num_dest_ip by src_ip <br> | where num_dest_ports&gt;500 OR num_dest_ip&gt;500</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5A4xwE_IwByQukFPrU4adw.png" /></figure><p><strong>Reminder</strong>: If you directly copy the query from this page and paste it into Splunk, it may not function, you may need to retype the double quotation marks.</p><p>Above SPL query brings us the output of an attack with attacker’s IP, if attacker scanned more than 500 ports or IPs in our network. The threshold for scanned ports can be reduced up to 50. The query is actually handy to detect a port scan inside (actually it brings all scan activities without classifying, including vulnerability scans and penetration test activities) our network, especially when an endpoint is compromised and used for lateral movement. If we are trying to detect a port scan against our public IPs, we can exclude our private IP block. See below:</p><blockquote>index=”fortinet” sourcetype=”fortigate_traffic”</blockquote><blockquote>| search NOT (src IN (“10.*”, “172.[0–2][0–9].*”, “172.31.*”, “192.168.*”))</blockquote><blockquote>| stats dc(dest_port) as num_dest_ports, dc(dest_ip) as num_dest_ip by src_ip</blockquote><blockquote>| where num_dest_ports &gt; 500 OR num_dest_ip &gt; 500</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ksRgNEHbLMJKlLU8iRlRLw.png" /></figure><p>Above query will bring us a port scan activity conducted by actors outside of our network. The threshold for scanned ports can be reduced up to 50 as in the first query and any of the private IP blocks can be pulled out the network if it doesn’t exist in your enterprise network. Note that firewalls occasionally may not show scan traffic to each port depending on various reasons.</p><p>Alternatively, you can also take a look at the SPL query that Spunk tutorial uses to detect port scanning activities, by using a wildcard for index and firewall* for sourcetype (<a href="https://www.youtube.com/watch?v=-dSfCinEihY&amp;list=PL7zWAA-DF0k98jw_Hseh7JyQ74fq8AxYT&amp;index=9&amp;ab_channel=SplunkHow-To">1</a>).</p><p>You can save the SPL query as a “Report”, save as an “Alert” (create notable events, add to triggered alerts, send email etc) or save it as a “Dashboard”.</p><p><strong>How to prevent port scan or subsequent damages?</strong></p><p><em>1- Firewall configuration, if set to block or limit consecutive connection attempts from a single IP, may deter attackers. IDS/IPS solutions would detect or prevent from port scans</em></p><p><em>2- Network real-time monitoring to detect deviation from baseline and log analysis via SIEM</em></p><p><em>3- Scan your network regularly before attackers do and take necessary measures, close unnecessary, unused ports and services, implement segmentation or robust patching when necessary, conduct penetration testing</em></p><p><em>4- Rate limiting implementation, to both inbound and outbound traffic, would prevent large number of connections in a short period of time</em></p><p><em>5- Port Knocking, not a well known solution, but may help professionals if configured properly, when connected to the ports in the correct order, it opens the allowed port connection for a certain period of time.</em></p><p>If you have a comment or contribution, please leave a comment. I’d be happy to read and respond.</p><p>© Copyright 2023</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7360bb741ccc" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Splunk Brute Force Use Case]]></title>
            <link>https://medium.com/@kemalsarioglu/splunk-brute-force-use-case-d4ca6603fc66?source=rss-2d206a9f0348------2</link>
            <guid isPermaLink="false">https://medium.com/p/d4ca6603fc66</guid>
            <dc:creator><![CDATA[Kemal Sarioglu]]></dc:creator>
            <pubDate>Mon, 18 Dec 2023 08:50:05 GMT</pubDate>
            <atom:updated>2023-12-22T22:21:51.109Z</atom:updated>
            <content:encoded><![CDATA[<p>Cyber attacks are increasing day by day, individual users or corporate employees are more aware of the security incidents than previous years. However, in some type of attacks users have limited options to do, it happens behind the scene, conducted by shadow actors, to say it directly: hackers. It’s regular duty of cybersecurity professionals to handle the case.</p><p>But how do hackers step into our systems, network and compromise our assets? Brute Force attack is technically classified by MITTRE Attack Framework(<a href="https://attack.mitre.org/tactics/TA0006/">1</a>) as part of Credential Access under attacker “Tactics”. Getting credentials methods can not restricted with only Brute Forcing, includes some other means e.g. credential dumping, key logging…</p><p>From hackers point of view, brute forcing is easy to conduct, may require a little bit patience, but at the end of the day really handy to reach their goals.</p><p>I’ll not deep dive into the offensive side of brute force attack but mention a few just to make readers familiar with them. Aircrack-ng is handy for network penetration, I’ve made some tests in my home wi-fi to crack the credentials. John the Ripper is also one of the Kali standard tools I’ve experienced, guesses automatically the hashing type, needs to be used with dictionaries. Burp Suite is another common tool used for web login brute forcing attacks. Enough for beginning.</p><p>Please be aware that any unauthorized brute force or similar action will be subject to criminal proceedings.</p><p>There are some measures both IT professionals and common user can implement, e.g. account lock-out policy, MFA, strong password policy, avoiding use of dictionary words, CAPTCHA and WAF. I have to mention here that skilled hackers find a way to evade any of them. In conclusion, more than one strategy like Defense in Depth, Zero Trust, Business Continuity and Plans…etc have to be implemented.</p><p>Continuous monitoring and logging are crucial to expose the brute force attacks and prevent any further damage to company assets. Enterprises use, depending on the size of their digital infrastructure, SIEM (Security Incident and Event Management) tools to monitor the events and incidents. Splunk serves normally as a big data mining tool but Splunk Enterprise Security functions as a SIEM solution.</p><p><strong>How to detect a Brute Force attack by using Splunk Enterprise Security?</strong></p><blockquote>index=* source=”WinEventLog:Security” user=* user!=””</blockquote><blockquote>| stats count(eval(action=”success”)) as successes count(eval(action=”failure”)) as failures by user</blockquote><blockquote>| where successes&gt;0 AND failures&gt;100</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SYAyu_xkSZ247i7BZzqS7Q.png" /><figcaption>Successful login after failed Brute Force</figcaption></figure><p><strong>Reminder</strong>: If you directly copy the query from this page and paste it into Splunk, it may not function, you may need to retype the double quotation marks.</p><p>You entered above SPL and it returned nothing? No panic. It’s something expected and good for your digital environment. If the success equals to zero, that means attackers couldn’t succeed to log in after brute force attack. The query examines security logs, extracting information about user log-in attempts. It identifies users who have experienced both successful and unsuccessful log-in actions, filtering for cases where there are more than 100 failed attempts before a successful log-in.</p><blockquote>index=* source=”WinEventLog:Security” user=* user!=””</blockquote><blockquote>| stats count(eval(action=”success”)) as successes count(eval(action=”failure”)) as failures by user</blockquote><blockquote>| where failures&gt;100</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Ke6hCjnwxDkWF3W4--HeWw.png" /><figcaption>Failed Brute Force</figcaption></figure><p>Above query provides us failed brute force attempts, with user names the attack was conducted on.</p><p>You can alternatively use below SPL query, suggested by Splunk(<a href="https://www.youtube.com/watch?v=x78lcsWPPW8&amp;list=PL7zWAA-DF0k98jw_Hseh7JyQ74fq8AxYT&amp;index=10&amp;ab_channel=SplunkHow-To">2</a>) after making necessary modifications.</p><blockquote>index=* sourcetype=win*security user=* user!=””</blockquote><blockquote>| stats count(eval(action=”success”)) as successes count(eval(action=”failure”)) as failures by user</blockquote><blockquote>| where successes&gt;0 AND failures&gt;100</blockquote><p>You can save the SPL query as a “Report”, save as an “Alert” (create notable events, add to triggered alerts, send email etc) or save it as a “Dashboard”.</p><p><strong>Countermeasures to Prevent Brute Force Attacks</strong></p><blockquote>1 — Using Strong Passwords: Avoid dictionary words, use complex passwords with a combination of uppercase and lowercase letters, numbers, and special characters. Implement a password policy that requires regular password changes</blockquote><blockquote>2 — Limiting Login Attempts by banning the attacker IP temporarily will interrupt brute force.</blockquote><blockquote>3- Using CAPTCHAs at web login will provide a protection to an extend, as it’s evadible.</blockquote><blockquote>4- Using 2FA is an efficient way to counter brute force attacks</blockquote><blockquote>5- Implementing an account lock-out policy will stop the attacker for a while.</blockquote><blockquote>6- Implement rate limiting policy by restricting the number of login attempts within a specific time period</blockquote><blockquote>7- Implement IP Blacklisting</blockquote><blockquote>8- Monitor and log, use WAF, IDS/IPS, SIEM tools, deploy honeypot depending on your operational capabilities</blockquote><blockquote>9- Train users about strong password choice</blockquote><blockquote>10- Keep your systems up to date with latest security patches</blockquote><p>Cyber security is a very dynamic field. Every developing attack necessitates the development of new defense techniques.</p><p>I’m planning to proceed with the Splunk Use Case series, so stay tuned! Feel free to drop a comment if you have any contributions. I’ll be happy to answer your questions to the best of my ability. Thanks for reading and sharing!</p><p>© Copyright 2023</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d4ca6603fc66" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[WAIT!]]></title>
            <link>https://medium.com/@kemalsarioglu/wait-fd4f4f12a54b?source=rss-2d206a9f0348------2</link>
            <guid isPermaLink="false">https://medium.com/p/fd4f4f12a54b</guid>
            <dc:creator><![CDATA[Kemal Sarioglu]]></dc:creator>
            <pubDate>Thu, 14 Dec 2023 23:03:23 GMT</pubDate>
            <atom:updated>2024-01-16T07:35:41.235Z</atom:updated>
            <content:encoded><![CDATA[<p>I’ll be right back soon with fruitful articles!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fd4f4f12a54b" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>