<?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 Huseyin Rencber on Medium]]></title>
        <description><![CDATA[Stories by Huseyin Rencber on Medium]]></description>
        <link>https://medium.com/@huseyinrencber?source=rss-d141c8dbaf3c------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/2*oRC8_XEA1i8Pi73i3xqamQ.png</url>
            <title>Stories by Huseyin Rencber on Medium</title>
            <link>https://medium.com/@huseyinrencber?source=rss-d141c8dbaf3c------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 30 Nov 2026 18:21:38 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@huseyinrencber/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[One Malicious File and Three Different AI]]></title>
            <link>https://huseyinrencber.medium.com/one-malicious-file-three-different-ai-d5aa36969703?source=rss-d141c8dbaf3c------2</link>
            <guid isPermaLink="false">https://medium.com/p/d5aa36969703</guid>
            <category><![CDATA[threat-detection]]></category>
            <category><![CDATA[threat-hunting]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[cybsersecurity]]></category>
            <category><![CDATA[yara]]></category>
            <dc:creator><![CDATA[Huseyin Rencber]]></dc:creator>
            <pubDate>Sat, 08 Jun 2024 19:44:01 GMT</pubDate>
            <atom:updated>2024-06-08T19:44:49.112Z</atom:updated>
            <content:encoded><![CDATA[<p>In the rapidly evolving landscape of cybersecurity, the need for robust and efficient threat detection mechanisms is more critical than ever. YARA, a tool widely used for identifying and classifying malware, has become an important asset for security professionals. However, crafting effective YARA rules can be complex and time consuming process, often requiring deep domain expertise and details. This is where Artificial Intelligence (AI) comes in, revolutionizing the way we create YARA rules. By leveraging AI, we can expedite the rule creation process, enhance accuracy, and stay ahead of emerging threats with unprecedented speed and precision. Is it real ??</p><p>AI’s role in YARA rule creation is transformative, enabling automated analysis and pattern recognition that far surpasses human capabilities. Through machine learning algorithms, AI can analyze vast amounts of data, identify subtle indicators of compromise, and generate highly effective YARA rules. This not only accelerates the development of threat detection patterns but also ensures that these patterns are continuously updated to counter new and sophisticated malware. In this blog, we will explore how AI is being utilized to create YARA rules and how are the results.</p><p>So lets test the most famous ones; chatgpt, gemini, copilot.</p><p>Our sample will be cuckoo macos malware. You can read the capabilities of the malware in this blog.</p><p><a href="https://www.sentinelone.com/blog/macos-cuckoo-stealer-ensuring-detection-and-defense-as-new-samples-rapidly-emerge/">macOS Cuckoo Stealer | Ensuring Detection and Defense as New Samples Rapidly Emerge</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*i8d-SrfvxTr_WOXZoieGEA.png" /></figure><p>sha256: 64af0ce43404134795309bb4bf7ce30ecd3e68fe953fd6e417407eb19590939b</p><p>Basically we will export the strings only from the content. After that we will provide these strings to the AI platforms and let them cook the YARA rule for us.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-Qv4WD4CxY4acisakOMg1Q.png" /></figure><h3><strong>ChatGPT</strong></h3><p>It needs some details from us, like strings patterns, file size, section etc. Strings are the most important part of the yara as you know, so we will provide this one.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oZhfTzvtnY31_olTGzVPsA.png" /></figure><p>Sample file contains 436 strings, without filtering them I will just paste it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*z9eQaOLtmE0BCtEPlh2T-Q.png" /></figure><p>Answer as below,</p><p>Sure! Based on the provided strings, I’ll identify some that might be indicative of suspicious or malicious behavior. Typically, suspicious strings could include those that refer to external libraries, uncommon file names, encoded or obfuscated content, and patterns that resemble payload delivery mechanisms.</p><p>Here’s an example YARA rule that targets some of these suspicious and potentially malicious strings:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/718/1*ML5m2-lnOCSND1mDvkRjRw.png" /></figure><p><em>### Explanation:</em></p><p><em>- **Meta Section**: Contains metadata about the rule, such as author, description, date, and version.<br>- **Strings Section**: Defines the patterns to look for in the file. This includes:<br> — Various strings from the list that are uncommon and could be indicative of suspicious behavior.<br>- **Condition Section**: Specifies the logic for when the rule should trigger:<br> — `any of ($suspicious_string*)`: Triggers if any of the specified suspicious strings are found.</em></p><p><em>This rule targets strings that are less common in typical macOS applications and more likely to be found in malware or potentially unwanted software. Adjustments can be made based on more specific indicators or additional context about the file in question.</em> “”</p><p>Ok we have the yara rule now, so easy way to test it we will use VT engines, retrohunt or live one both works.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_P1y2u9kxQHq0lIvZyH9tQ.png" /></figure><p>as you can see test result is successfull but it was very easy yara rule because there is “<strong>any”</strong> condition :)</p><p>So if you will run a retrohunt with this yara file you will get more than 10K match.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YubYisVx-S8cUELiJ6ShKQ.png" /></figure><p>So after some manuel changes on the file, you will get better result.</p><h3><strong>Gemini</strong></h3><p>Ridiculous performance, I don’t know why but very interesting output. Between all of these tests are conducted with free version.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1RzwMgdjicnE7J9rehotpg.png" /></figure><p>Here is the output</p><p><em>Here is a YARA rule that you can use to identify suspicious and malicious strings in a macOS file:</em></p><pre>rule suspicious_macos_file {<br>  meta:<br>    description = &quot;Suspicious strings found in a macOS file&quot;<br>  strings:<br>    # Common packing/encoding indicators<br>    $base64 = { [A-Za-z0-9+/]+ }<br>    $hex_string = { [0-9a-fA-F]{2,  } }<br>    <br>    # Known suspicious strings<br>    AWAV[A-Z]{4,10}<br>    h[A\A]A<br>    E$A\+E\(A\)<br>    M$A\+MXA<br>    {hM9g0s<br>    FTatHA<br>    C8H\)C\(H\)<br>    \([A\A]A\)<br>    K0L\)s\(<br>    X[A\A]A<br>    UUUUUUUUUH<br>    33333333H<br>    PPPPPPPAR<br>    PPPPPAS<br>    9QdtJL<br>    ATASAR<br>    PATARAS<br>    AWARASAV<br>    u ASPAR<br>    AUAUAUAUATP<br>    H9CPuPH<br>    PPPPPPPS<br>    i%WLwOd<br>    IscuDH<br>    ICP7gH<br>    BwE&#39;K@yhH<br>    2\.V4\*D5\.H<br>    \*.\)vO1<br>    OW \&quot;(2H<br>    9\.5X\=&lt;<br>    96\$1U1<br>    \.SX6y96\$I<br>    \.SX6y96\$H<br>    LcF\s+Hc<br>    LcF\(.+Hc<br>    HHcN\s+HcB<br>    G.+HcF\s+\(HcJ\)\(H\)<br>    IHcN\s+HcB\@H  <br>    HcF\+HcJ\+\+H</pre><pre><em>  # Check for presence of any suspicious or malicious string<br>  condition:<br>    any of them<br>}</em></pre><p><em>This rule includes the following:</em></p><ul><li><strong><em>Meta information:</em></strong><em> This section provides a description of the rule.</em></li><li><strong><em>Strings:</em></strong><em> This section defines the suspicious and malicious strings to be searched for.</em></li><li><strong><em>Common packing/encoding indicators:</em></strong><em> These strings are commonly used for packing or encoding malicious code.</em></li><li><strong><em>Known suspicious strings:</em></strong><em> These are specific strings that have been identified as suspicious or malicious in macOS malware.</em></li><li><strong><em>Condition:</em></strong><em> This section specifies how the rule triggers. In this case, the rule triggers if any of the suspicious or malicious strings are found in the file.</em></li></ul><p><strong><em>Important notes:</em></strong></p><ul><li><em>This is a sample rule and may not detect all suspicious or malicious files. You may need to update the rule based on your specific needs.</em></li><li><em>YARA relies on pattern matching, and there is always a risk of false positives. It is important to investigate any matches further before taking any action.</em></li><li><em>You can use this rule with YARA scanning tools to scan macOS files for potential threats.</em></li></ul><p>As you may have already guessed, this will fail.</p><p>Test time</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gTV-fMOvxnPfW1yicf5nmQ.png" /></figure><p>64af0ce43404134795309bb4bf7ce30ecd3e68fe953fd6e417407eb19590939b</p><ul><li>Line 5: rule “suspicious_macos_file”: syntax error, unexpected string count, expecting string identifier Line 6: rule “suspicious_macos_file”: unterminated regular expression</li></ul><p>Ok it was expected, well, if we push a little harder.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8E4euoMIE6Vb0wNTxTZMdQ.png" /></figure><p>Output as follows,</p><p><em>You’re right, the previous YARA rule had some syntax errors that prevented it from running in VirusTotal’s YARA engine. Here’s a corrected version that should work:</em></p><pre>rule suspicious_macos_file {<br>  meta:<br>    description = &quot;Suspicious strings found in a macOS file&quot;<br>  strings:<br>    # Common packing/encoding indicators<br>    $base64 = { [A-Za-z0-9+/]+ }<br>    $hex_string = { [0-9a-fA-F]{2,} }<br>    <br>    # Known suspicious strings<br>    &quot;AWAV[A-Z]{4,10}&quot;<br>    &quot;h[A\A]A&quot;<br>    &quot;E$A\+E\(A\)&quot;<br>    &quot;M$A\+MXA&quot;<br>    &quot;{hM9g0s&quot;<br>    &quot;FTatHA&quot;<br>    &quot;C8H\)C\(H\)&quot;<br>    &quot;\([A\A]A\)&quot;<br>    &quot;K0L\)s\(&quot;<br>    &quot;X[A\A]A&quot;<br>    &quot;UUUUUUUUUH&quot;<br>    &quot;33333333H&quot;<br>    &quot;PPPPPPPAR&quot;<br>    &quot;PPPPPAS&quot;<br>    &quot;9QdtJL&quot;<br>    &quot;ATASAR&quot;<br>    &quot;PATARAS&quot;<br>    &quot;AWARASAV&quot;<br>    &quot;u ASPAR&quot;<br>    &quot;AUAUAUAUATP&quot;<br>    &quot;H9CPuPH&quot;<br>    &quot;PPPPPPPS&quot;<br>    &quot;i%WLwOd&quot;<br>    &quot;IscuDH&quot;<br>    &quot;ICP7gH&quot;<br>    &quot;BwE&#39;K@yhH&quot;<br>    &quot;2\.V4\*D5\.H&quot;<br>    &quot;\*.\)vO1&quot;<br>    &quot;OW \&quot;(2H&quot;<br>    &quot;9\.5X\=&lt;&quot;<br>    &quot;96\$1U1&quot;<br>    &quot;\.SX6y96\$I&quot;<br>    &quot;\.SX6y96\$H&quot;<br>    &quot;LcF\s+Hc&quot;<br>    &quot;LcF\(.+Hc&quot;<br>    &quot;HHcN\s+HcB&quot;<br>    &quot;G.+HcF\s+\(HcJ\)\(H\)&quot;<br>    &quot;IHcN\s+HcB\@H&quot;  <br>    &quot;HcF\+HcJ\+\+H&quot;</pre><pre><em>  # Check for presence of any suspicious or malicious string<br>  condition:<br>    any of them<br>}</em></pre><p><em>Changes made:</em></p><ul><li><strong><em>Quotes around strings:</em></strong><em> Suspicious strings are now enclosed in double quotes (“) to avoid the unterminated regular expression error.</em></li><li><strong><em>Removed curly braces:</em></strong><em> Curly braces ({ }) were removed from the base64 and hex_string definitions as they are not necessary in this context.</em></li></ul><p><em>With these corrections, the YARA rule should be compatible with VirusTotal’s YARA engine and allow you to scan for suspicious strings in macOS files.</em></p><p>But again failed</p><h3><strong>Copilot</strong></h3><p>Let’s start quickly, without flirtatious talk.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JTaDP47BTukY9GXmcNw4qQ.png" /></figure><p>Ok result is below</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*msGz8rC-hlLjy5Y6TEwzJQ.png" /></figure><p>Copilot just used 157 strings for yara rule and there is no even condition :)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZD4Uyf2eY_-ShZlZeNiWFg.png" /></figure><p>very interesting . so basically as per the results of my test</p><p>ChatGPT &gt; Gemini &gt; Copilot</p><p>But obviously we can use AI for expedite our investigations and currently one of them works fine ( after a bit adjustments ).</p><p>Next blog will be related how cybersecurity analyst can use AI tools for the daily tasks.</p><p>Bye.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d5aa36969703" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[World Cup 2026: Gearing Up for Cyber Threats]]></title>
            <link>https://huseyinrencber.medium.com/world-cup-2026-gearing-up-for-cyber-threats-326f6dd596b4?source=rss-d141c8dbaf3c------2</link>
            <guid isPermaLink="false">https://medium.com/p/326f6dd596b4</guid>
            <category><![CDATA[fifa-world-cup]]></category>
            <category><![CDATA[cybersecurity-framework]]></category>
            <category><![CDATA[cyberattack]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <dc:creator><![CDATA[Huseyin Rencber]]></dc:creator>
            <pubDate>Mon, 03 Jun 2024 06:16:56 GMT</pubDate>
            <atom:updated>2024-06-03T06:17:26.811Z</atom:updated>
            <content:encoded><![CDATA[<p>The 2022 FIFA World Cup offers Qatar a significant opportunity to enhance its economic, social, and international standing. To ensure the event meets and surpasses global standards, Qatar has invested heavily in various areas, including data privacy and security. I was able to observe closely all the world cup tournament and participated some of the cybersecurity drills. Here you can find my notes about the cyber threat preparation for the next world cup.</p><p>As the 2026 World Cup approaches, countries must adopt comprehensive cybersecurity strategies to protect against potential threats. Learning from the 2022 World Cup in Qatar, the following steps should be taken:</p><h4>1. Develop a Dedicated Cybersecurity Framework</h4><p>Create a specialized cybersecurity framework tailored to the unique challenges of hosting a large-scale international event. This framework should address data privacy, threat detection, response protocols, and incident management. Below you will see more details about the cybersecurity framework.</p><h4>2. Collaboration with International Agencies</h4><p>Engage with international cybersecurity organizations, such as Interpol, to benefit from their expertise and resources. Establish partnerships for sharing intelligence and best practices. This is the key point, in terms of responding cyber attacks.</p><h4>3. Strengthen National Cybersecurity Infrastructure</h4><p>Invest in enhancing national cybersecurity infrastructure, including:</p><ul><li>Threat Intelligence Centers: Establish centers to monitor, detect, and respond to cyber threats in real-time.</li><li>Automated Monitoring Systems: Implement automated systems for continuous monitoring of networks and critical systems.</li><li>Malware Analysis Labs: Develop labs to analyze and reverse-engineer malware to understand and mitigate threats effectively.</li></ul><h4>4. Conduct Regular Cybersecurity Drills</h4><p>Organize annual cybersecurity drills to test the readiness of governmental and non-governmental entities. These drills should simulate various cyber attack scenarios to evaluate defense, resilience, and incident response capabilities.</p><h4>5. Implement International Standards</h4><p>Ensure cybersecurity measures align with international standards such as ISO 27001, NIST SP 800–53, and GDPR. This alignment helps maintain a high level of security and facilitates collaboration with global partners.</p><h4>6. Develop a Comprehensive Data Protection Strategy</h4><p>Protect the personal data of millions of fans and participants by:</p><ul><li>Data Privacy Laws: Strengthen existing data privacy laws and regulations.</li><li>Encryption and Access Controls: Implement strong encryption and access controls to safeguard sensitive information.</li><li>Data Breach Response Plans: Develop and regularly update response plans for potential data breaches.</li></ul><h4>7. Public-Private Partnerships</h4><p>Foster collaboration between public and private sectors to enhance cybersecurity efforts. Engage technology companies, cybersecurity firms, and other stakeholders in the planning and implementation process.</p><h4>8. Awareness and Training Programs</h4><p>Conduct extensive cybersecurity awareness and training programs for all personnel involved in the event. Ensure they understand the importance of cybersecurity and are equipped to handle potential threats.</p><h4>9. Evaluate and Update Cybersecurity Policies</h4><p>Continuously evaluate and update cybersecurity policies to address emerging threats and vulnerabilities. Use insights from previous events, including the 2022 World Cup, to refine strategies.</p><h4>10. Emergency Response Teams</h4><p>Establish dedicated emergency response teams to act swiftly in case of a cyber incident. These teams should be trained to manage and mitigate the impact of any cybersecurity breaches.</p><p>By implementing these measures, countries can better prepare for the cybersecurity challenges of hosting the 2026 World Cup, ensuring a safe and secure event for all participants and attendees.</p><h4>Data Privacy and Security Initiatives</h4><p>With millions of fans expected, protecting their data is crucial. Qatar, already equipped with its Personal Data Privacy Protection Law (PDPPL), introduced the FIFA 2022 World Cup Cybersecurity Framework specifically to address data-related challenges posed by the event.</p><p>Released in 2018 by the Supreme Committee for Delivery &amp; Legacy (SCDL), the Cybersecurity Framework sets the standards for data protection that all World Cup participants must follow. SCDL is responsible for implementing the framework and ensuring the necessary digital infrastructure is in place for the 2022 World Cup.</p><figure><img alt="Fifa World Cup Qatar Cybersecurity Framework" src="https://cdn-images-1.medium.com/max/1024/1*ni4IXr62oI0Jys0KODZtpQ.png" /></figure><h4>Scope of the Cybersecurity Framework</h4><p>The framework aims to develop and integrate essential cybersecurity capabilities across all organizations involved in the World Cup ecosystem. This ecosystem includes:</p><ul><li>Information Assets: Valuable data used and processed by World Cup services.</li><li>Services: Essential activities and facilities provided to stakeholders.</li><li>Entities: Organizations categorized under critical sectors contributing to the World Cup.</li></ul><p>SCDL, alongside the government, will manage the event, ensuring a unified system of cybersecurity safeguards for all stakeholders. Entities providing services must implement these safeguards to mitigate risks. The framework emphasizes three fundamental pillars: prevention, detection, and response to data breaches and unauthorized data access or use.</p><h3>Qatar’s Cybersecurity Efforts for the 2022 World Cup</h3><p>Given the magnitude of hosting such a significant event for the first time, Qatar wisely sought external support for cybersecurity. The most notable assistance came from Interpol through Project Stadia.</p><h4>Project Stadia</h4><p>Project Stadia, a 10-year initiative by Interpol, focuses on securing major sporting events, with particular attention to the 2022 FIFA World Cup. Funded by Qatar, this project convenes experts annually to discuss and enhance various aspects of cybersecurity. These discussions cover national cybersecurity capacities, risk management, IoT, and industrial control systems, resulting in comprehensive recommendations for protecting the country’s infrastructure during the event.</p><h4>Internal Cybersecurity Resources</h4><p>Internally, Qatar leveraged existing resources to bolster its cybersecurity. This included the already established Computer Emergency Response Team (Q-CERT), conducting annual cybersecurity drills, and creating a framework to guide critical organizations in implementing essential cyber defense mechanisms.</p><p><strong>Q-CERT<br></strong>Established in 2005 by the Ministry of Transport and Communications (MOTC) in collaboration with Carnegie Mellon’s Software Engineering Institute, Q-CERT plays a crucial role in Qatar’s cybersecurity measures. Q-CERT is developing a threat intelligence center and a fully automated threat monitoring system to ensure timely identification and mitigation of cybersecurity threats to the government network. Additionally, Q-CERT is establishing a malware analysis lab to reverse engineer and analyze malware.</p><p><strong>Cybersecurity Drills<br></strong>To prepare for cyber attacks, Qatar has conducted annual cybersecurity drills since 2013. The 2022 drills were the largest, involving over 125 governmental and non-governmental entities and more than 1400 participants. These exercises aimed to assess and enhance the readiness of these entities to detect and respond to cyber threats.</p><h4>Qatar 2022 Cybersecurity Framework</h4><p>The Supreme Committee for Delivery and Legacy released the Qatar 2022 Cybersecurity Framework, which outlines the core cyber-competencies and capabilities necessary to protect critical national services during the World Cup. Developed with input from government, civil society, and subject matter experts, the 425-page framework aligns with international standards like ISO 27001, NIST SP 800–53, PCI-DSS, and GDPR. It provides detailed controls for cybersecurity governance, endpoint, application, and network security, as well as specialized capabilities such as Operations Technology Security Monitoring, IoT, and Cloud Security. Entities involved in the World Cup ecosystem are expected to implement relevant capabilities from this framework.</p><h3><strong>Previos Cyber Threats at Sporting Events</strong></h3><p>The Global Landscape of Cyber Threats at Sporting Events:</p><p>The 2018 Pyeongchang Winter Olympics opening ceremony disruption attributed to a cyberattack. (<a href="https://www.wsj.com/world/u-s-and-u-k-accuse-russia-of-global-hacking-spree-targeting-british-elections-17761803">https://www.wsj.com/world/u-s-and-u-k-accuse-russia-of-global-hacking-spree-targeting-british-elections-17761803</a>)<br>The 2014 FIFA World Cup in Brazil where a cyberattack targeted the broadcaster’s network. (<a href="https://www.securityweek.com/category/cyberwarfare/page/193/">https://www.securityweek.com/category/cyberwarfare/page/193/</a>)<br>Highlight the increasing sophistication and frequency of cyberattacks targeting major events.</p><p><strong><em>Specific Cyber Threats to the 2026 World Cup:</em></strong><br>Disruption: A cyberattack could disable critical ticketing systems, causing long queues and frustration for fans. Critical infrastructures, banks, government sites and tournament sites may be exposed to Ddos ​​attacks.<br>Financial Gain: Hackers might launch ransomware attacks on ticketing platforms, demanding payment to restore access.<br>Espionage: Nation-state actors could target team communications or internal systems to gain an advantage.<br><strong>Government</strong> Action: A Collaborative Approach:</p><p>Elaborate on the different areas of government focus:<br>Information Sharing: Explain the importance of international cooperation between law enforcement agencies.<br>Infrastructure Security Assessments: Mention vulnerability assessments and penetration testing of critical systems.<br>Public Awareness Campaigns: Describe potential topics for educational campaigns aimed at fans and event staff.</p><h3><strong>Personal Notes</strong></h3><p>As a close observer of the 2022 World Cup in Qatar, I can attest to the success of the event from a cybersecurity standpoint. Having watched the games, visited the stadiums, reviewed the cybersecurity frameworks, and participated in the cybsecurity drills, it was evident that meticulous planning and execution were paramount. The tournament showcased a comprehensive cybersecurity framework, robust collaboration with international bodies, advanced threat detection and response systems, and rigorous data protection measures. Regular cybersecurity drills and extensive training programs ensured readiness and resilience against potential cyber threats. The integration of international standards and the fostering of public-private partnerships further strengthened the cybersecurity posture. These practices and insights are invaluable for future hosts and key personnel, providing a blueprint for securing upcoming World Cup tournaments.</p><p>These experiences and practices offer a valuable guide for countries preparing to host future World Cup tournaments for 2026, highlighting the importance of thorough planning, international cooperation, and continuous improvement in cybersecurity measures.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=326f6dd596b4" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Okta Incident Response Notes and Threat Hunting in Okta]]></title>
            <link>https://huseyinrencber.medium.com/okta-incident-response-notes-and-threat-hunting-in-okta-9d2671588950?source=rss-d141c8dbaf3c------2</link>
            <guid isPermaLink="false">https://medium.com/p/9d2671588950</guid>
            <category><![CDATA[okta]]></category>
            <category><![CDATA[incident-response]]></category>
            <category><![CDATA[threat-hunting]]></category>
            <dc:creator><![CDATA[Huseyin Rencber]]></dc:creator>
            <pubDate>Mon, 06 Nov 2023 07:43:45 GMT</pubDate>
            <atom:updated>2023-11-06T07:43:45.975Z</atom:updated>
            <content:encoded><![CDATA[<p>The biggest downside of using a shared service is that you are vulnerable to cyber incidents like this one. Okta has identified adversarial activity that leveraged access to a stolen credential to access Okta’s support case management system. The threat actor was able to view files uploaded by certain Okta customers as part of recent support casesTraditional architectures are designed according to the fact that the attack will always come from the internet or unknown sources and defense mechanisms are built accordingly. But this is where the real danger comes in and you can get attacked from the application you trust. Your castle has been conquered from the inside, and if you don’t have enough monitoring power, you will often find out later and intervene too late.</p><p><strong>Anyway, I would like to briefly share how we responded to the incident during the process, what we learned, what were our mistakes and what we did right. For the case details,</strong></p><p><a href="https://sec.okta.com/harfiles">Unauthorized Access to Okta&#39;s Support Case Management System: Root Cause and Remediation</a></p><p>What I experienced in the process as an information security incident response,</p><p>On the 5th the first suspicious okta alert was generated, it should be noted that okta shared incident details after two weeks around 20th of Oct.</p><ul><li>Attackers hijacked the session of admin user from new geo location after finding a valid session cookie in a HAR file, ( they got this from okta support management system ) giving them access to okta admin console.</li><li>Attacker created an API token</li></ul><p>Okta publishes this login event types <strong>system.api_token.create</strong> . So you can generate an alarm event with this one as suspicious request and you must verify the activity with the admin users. The reason of the token creation. Beside this it will be another good alert point is, in syslog event you will find <strong>system.client.concurrency_rate_limit.notification.</strong></p><ul><li>Attacker listed the permission of the admin</li><li>Enumerated org configuration, tried to build a list of users, groups and applications</li><li>Checked identity providers, Sign-On policies, MFA configs , Users, Groups etc.</li></ul><p>When there is such a security incident with the identity management system, it will be much more effective to approach it as if these things have been done for sure, and to try to determine the greatest view of the damage.</p><p>Although you automate your threat model, send a message to the administrator via soar and ask him to respond to the case, and define escalation steps, after a while, unfortunately, alarm blindness occurs because they receive similar alarms a lot. the administrator thinks that it is one of the activities he does constantly and does not care, soc analysts can evaluate it as the daily activity of the administrators. because the password change that the attacker applies next, trying to enter other applications inside with sso, application information, etc. many activities such as application information are among the daily operations. If you do not detect this activity with first two event types when it happens in the beginning and intervene quickly, unfortunately it may be too late for respond it properly. Another learned lesson.</p><p><strong>During the hunting I would say these event types might be critical to monitor closely;</strong></p><p><strong>Event Types</strong></p><p>user.account.privilege.grant<br>debugContext.debugData.privilegeGranted=”Super administrator” group.privilege.grant<br>policy.rule.update<br>policy.rule.delete<br>application.policy.sign_on<br>system.api_token.create<br>system.api_token.revoke<br>security.threat.configuration.update<br>zone.delete<br>zone.deactivate<br>user.account.lock<br>“security.threat.detected” “outcome.reason”=”Password Spray”<br>user.account.report_suspicious_activity_by_enduser<br>user.mfa.factor.deactivate<br>user.mfa.factor.deactivate <br>user.mfa.factor.reset_all <br>system.email.mfa_reset_notification.sent_message</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*v7m5CCczAHEltCBzJw2VIQ.png" /><figcaption><strong>system.client.concurrency_rate_limit.notification</strong></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1ZCzySQrgg_t3-1UWUUzyg.png" /></figure><p>Important for the debug data, it will provide new ip new location new device details. It will give fresh IP addresses, locations, and device details, all of which are crucial for the debug data. Keep a focused eye on admin login activity; if you see any unusual device behavior or location, for example, you can send out an alert.</p><p>For the threat hunting part, you must keep in mind that attacker will try to lateral movement activity, with SSO permission adversary group will try to jump other systems such as cloud management, vpn, code repo, password manager, email system etc. So if there is any changed username or group information just trace the same username activity in the all environments logs indexes etc.</p><p>Important note for these kinds of incidents: submit a high severity support issue with the vendor right away. It’s likely that you may receive a delayed response from them because they are currently conducting an investigation and need time to analyze the information. Additionally, they have other activities ongoing on their end. Thus, in order to defend against these dangerous supply chain threats, you need to be alert, quick, and organized. It’s likely that their assistance will arrive much later. ( 2 weeks in this okta case)</p><p>Lessons</p><ul><li>Keep a careful eye on super admin accounts. Whether using an otomated or SOC analyst, the procedure should still be efficient, well-organized, and quick.</li><li>You are alone with the incident until clarification comes from the vendor till that time you have to cover all investigation and share your finding with the investigation team. Response is the critical part of the cyber incidents, after the proper response you will have tons of times for the detailed investigation.</li><li>Critical event types put relevant team lead and managers also, admin may ignore it but someone else may spot. Admin might be busy but team lead can handle it. This process must be automatic for the big environments.</li><li>Do not rely too much on outsourced services. the easiest entry points for attackers are 3party applications like this. You need to keep your threat modeling and alarms ready and monitor them, you don’t need to care about system administrators, they usually realize the criticality of the situation after the incident occurs, not everyone may approach the processes with security priority.</li></ul><p><strong>IOCs</strong></p><p><a href="https://sec.okta.com/articles/2023/10/tracking-unauthorized-access-oktas-support-system">Tracking Unauthorized Access to Okta&#39;s Support System</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9d2671588950" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[MacOS Threat Hunting]]></title>
            <link>https://huseyinrencber.medium.com/macos-threat-hunting-f6e1a82c5f7a?source=rss-d141c8dbaf3c------2</link>
            <guid isPermaLink="false">https://medium.com/p/f6e1a82c5f7a</guid>
            <category><![CDATA[threat-hunting]]></category>
            <category><![CDATA[macos]]></category>
            <dc:creator><![CDATA[Huseyin Rencber]]></dc:creator>
            <pubDate>Mon, 07 Aug 2023 13:56:55 GMT</pubDate>
            <atom:updated>2023-08-26T20:37:26.336Z</atom:updated>
            <content:encoded><![CDATA[<p>Macos threat hunting aslında linux veya windows dan pek farklı değil. Bir malware bulaştıysa, diğer işletim sistemlerinde çalıştırılan komutlara benzer olanları macos için de uyguluyoruz. Mantık benzer, çalışan process kontrolleri, mevcut kullanıcı listesi, persistence noktaları vb gibi.</p><p>Kendim ilk analiz ettiğimde process ve connection kontrolüyle başlıyorum,</p><p><strong>netstat -na | egrep ‘LISTEN|ESTABLISH</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uj_q__5z-wn8whbUiVcDpw.png" /></figure><p>müthiş netstat komutu o an bağlı olan connection ve port bilgilerini veriyor. Listen olanlar da mac üzerinde çalışan servislerden kaynaklı açık olan dinlenen portlar, mesela ssh açık olabilir veya file sharing vs. Aşağıda apple kullandığı portları bulabilirsiniz.</p><p><a href="https://support.apple.com/en-us/HT202944">TCP and UDP ports used by Apple software products</a></p><p>Bir diğer komut, process adı , numarası , hang, user tarafından çalıştırılmış vs gibi güzel bilgiler sunuyor.</p><p><strong>lsof -i</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yl0eK2sjtS8cAOP5E5aQ6w.png" /></figure><p>Sonrasında tekrar şüpheli görülen process ler için PID özelinde <strong>ps</strong> komutu çalıştırıp sorgu yapılabilir.</p><p>PS komutunun yanında macos için “<strong>lsappinfo list</strong>” komutu da oldukça işlevli. Path , pid ve bundle bilgiler verebiliyor, aynı zamanda grep ile spesifik process adı da aratmak adına güzel bir komut.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YyXaZWwN28-Bq0qmyXwLaQ.png" /></figure><p><strong>Launchctl</strong> komutu da daemon / agent process leri gösterebiliyor, list seçeneği ile user ve sistem seviyesinde bilgi alınabiliyor.</p><p><a href="https://ss64.com/osx/launchctl.html">launchctl</a></p><p>Kontroller esnasında kullandığım macos araçları; activity monitor ve file access ayarları.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*srpMv55NZ-xuWgXUhAT4Pg.png" /><figcaption>activity monitor</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CnqdjzfWJe0ZbPuXEBT9sQ.png" /><figcaption>Disk Access</figcaption></figure><p>User bilgileri için login ve shutdown detaylarını içerdiği için last komutunu kullanılabilir.</p><p><strong>last</strong></p><p>Benzer şekilde <strong>dscl . list /Users </strong>komutu da kullanıcı bilgilerini içeriyor.</p><p><strong><em>Persistence</em></strong></p><p>Tüm macos kullanıcıları için Launchagent launchdaemons pathlerini kontrol. Apple script ve cronjob larda kontrol edilebilir.</p><p><strong>/Library/LaunchDaemons</strong></p><p>File dizini adına Library/application ile</p><p><strong>ls -al $TMPDIR</strong></p><p>Bunların yanında aynı zamanda yara kurallarıyla da tarama yapmak gerekebiliyor. Bununla ilgili kullandığım aracı ve yazısını aşağıda bulabilirsiniz.</p><p><a href="https://huseyinrencber.medium.com/yara-kural-yap%C4%B1s%C4%B1-ve-kullan%C4%B1m%C4%B1-c42f7b288f08">Yara Kural Yapısı ve Kullanımı</a></p><p>ISC Diary de çok güzel detaylar var.</p><p><a href="https://isc.sans.edu/diary/30160">macOS: Who?s Behind This Network Connection?</a></p><p><strong>nettop</strong> <br><strong>LittleSnitch</strong></p><p>bu iki tool da kullanılmaya değer…</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f6e1a82c5f7a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Cloudflare WAF & Siem]]></title>
            <link>https://huseyinrencber.medium.com/cloudflare-waf-siem-e66b1b75b4e4?source=rss-d141c8dbaf3c------2</link>
            <guid isPermaLink="false">https://medium.com/p/e66b1b75b4e4</guid>
            <dc:creator><![CDATA[Huseyin Rencber]]></dc:creator>
            <pubDate>Sun, 06 Aug 2023 08:33:00 GMT</pubDate>
            <atom:updated>2023-08-06T08:33:00.566Z</atom:updated>
            <content:encoded><![CDATA[<p>Her ne kadar ilk yazmaya başladığım zaman artık sıkça ilgilendiğim ve uğraştığım konuları buraya kaydederim desem de pek öyle olmuyormuş. Hayat yoğun bir şekilde akıp giderken bazen öncelikler değişiyor. Neyse yakın zamanda yoğun şekilde ilgilendiğim cloudflare waf ı detaylandıracağım.</p><p>Waf Nedir , Nasıldır ? IPS den farklı mıdır ?</p><p><a href="https://en.wikipedia.org/wiki/Web_application_firewall">Web application firewall - Wikipedia</a></p><p>Kısaca, WAF web uygulama trafiğini korurken, IPS dağıtımları tüm paketleri inceleyerek ağ düzeyinde tarama ve koruma sağlar. Bir IPS tipik olarak gelen trafiğe satır içi olarak dağıtılır, çoğu ağ protokolündeki tehditleri tarar ve OSI Katmanı 4–7&#39;de çalışır. IPS de SSL olarak trafiği inceleyebilirseniz, aslında owasp top 10 içinde olan yaygın tehditlere karşı da bir koruma sağladığını gözlemleyebilirsiniz. Yine de WAF kadar detaylı e etkin değil.</p><p>Cloudflare tüm ürünlerini basit kullanım metodolojisi üzerinde kurgulamış, buna waf da dahil. Yönetmek için tüm detaylarıyla sql injection, xss vs bilmenize bile gerek yok.</p><p>Web application firewall kuralı yazması bir imperva ve F5 kadar detaylı olmasa da custom rule çok rahat yazılabiliyor. WAF bölümü aşağıdaki gibi beş ana bölümden oluşuyor. En işlevli olanı custom rules, DDOS koruması adına rate limiting de girebiliyorsunuz.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Jo5mMqkK5FGntANwxLfMlg.png" /></figure><p>Cloudflare in kendi yönettiği ve update ettiği kurallara da managed rules sekmesinden erişiyorsunuz. OWASP ve Managed ruleset</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*a1tRrLrv5_7conNX6FP8TA.png" /></figure><p>Kuralların içeriğini göremeseniz de aksiyon değiştirebilir ve disable enable yapabilirsiniz.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iA4rpSnrvYgV2rlHxOW_Kg.png" /></figure><p>Bu arada benzer durum aws cloud waf için de aynı onlarda da kural içeriklerine erişemiyorsunuz. Başka yazıda değinilebilir…</p><p>Custom rule yazabilirsiniz, bu size daha çok detay girebilmenizi ve kolayca istisnalar tanımlamanızı sağlar. Use caseler için şunları örnek verebiliriz; spesifik cookie tanımı, ülke bazlı ve AS numarasına göre erişim kuralları, http headera, uri path belirterek yazılan özel kurallar vs.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eDUO4dat7b-J3dYybUyCkg.png" /></figure><p>Field seçeneğinden detayları girebilirsiniz, waf kurallarındaki field seçenekleri, Wireshark görüntüleme alanlarıyla aynı adlandırma kurallarını kullanır. Dolayısyla oradaki filtrelerinizi burada da kullanabilirsiniz.</p><p>http.cookie<br>http.host<br>http.referer<br>http.request.full_uri<br>http.request.method<br>http.request.cookies<br>http.request.timestamp.sec<br>Integerhttp.request.timestamp.msec<br>Integerhttp.request.uri<br>http.request.uri.path<br>http.request.uri.path.extension<br>http.request.uri.query<br>http.user_agent<br>http.request.version<br>http.x_forwarded_for<br>ip.src<br>IP addressip.src.lat<br>ip.src.lon<br>ip.src.city<br>ip.src.postal_code<br>ip.src.metro_code<br>ip.src.region<br>ip.src.region_code<br>ip.src.timezone.name<br>ip.src.asnum<br>Numberip.src.continent<br>ip.src.country<br>ip.src.subdivision_1_iso_code<br>ip.src.subdivision_2_iso_code<br>ip.src.is_in_european_union<br>Booleanraw.http.request.full_uri<br>raw.http.request.uri<br>raw.http.request.uri.path<br>raw.http.request.uri.path.extension<br>raw.http.request.uri.query</p><p>ssl</p><p>Bunlar standart olan string bazlı field seçenekleri ve dynamic ruleset engineler de var, detayları için</p><p><a href="https://developers.cloudflare.com/ruleset-engine/rules-language/fields/">Fields reference · Cloudflare Ruleset Engine docs</a></p><p>Kötü ve komik özellikleri;</p><p>Fazladan koruduğunuz domaininiz varsa waf kurallarını maalesef kopyalayamıyorsunuz bunun için api kullanmanız gerek, ara yüzden aynı kuralı tüm domainlerim için eşleştirme yap tanımlanamıyor maalesef bu mevcut çoğu waf da rahatça yapılıyor.</p><p>Lisansa göre kural tanımı girilmesi,</p><p>Managed rule için edit veya inceleme imkanı vermemesi,</p><p>log4j için custom kural yazmak isteseniz bunun ara yüzde engellemesi :))</p><p>şaka değil gerçek ; “${jndi:ldap:<em>//”</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*J5mq9KhzD7AkpKzfvmam2g.png" /></figure><p>Kendisi ara yüzden girdiğiniz parametreleri atak olarak algılıyor ve kesiyor tipik CF error code dönüyor 403. Her şey süper değil tabiki on prem waf lar gibi.</p><h4>SIEM entegrasyonu</h4><p>Bu kadar anlattıktan sonra elbette bunları siemle entegre edip , waf dan geçen zararlı istekler var mı web server loglarıyla karşılaştırmak isteriz.</p><p>Azure veya splunk ile denedim öncesinde log aktarımını gayet güzel gönderiyor fakat sınırı var. Logpush, dosya başına en fazla 100.000 kayıt içeren toplu işlerle günlükleri bir dakikadan kısa sürede teslim eder. Bu sınır gelecekte yükseltilebilir. Minimum parti boyutu yoktur ve Logpush, dosyaları dakikada birden fazla teslim edebiliyor.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pVeo3nmSfqcRMnOo_Y8B5Q.png" /></figure><p>Splunk için entegrasyonunun detayları yine Analytics &amp; Logs &gt;&gt; Logpush bölümünden tanımlanarak gönderilebilir.</p><p>Veri kümesi seç alanında, bir depolama hizmetine aktarılacak veri kümesini seçin ve İleri’yi seçin.</p><p>Data field bölümünde ,</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sz-jrPYr9FatqlOz83yNMA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WZo4bZwk9mwaczJZIS-KcA.png" /></figure><p>Splunk ile ilgili log detayları , url token vs girdikten sonra logpush job tamamlanıyor.</p><p>Bir sonraki yazıda görüşmek üzere…</p><p><a href="https://developers.cloudflare.com/waf/">Overview · Cloudflare Web Application Firewall (WAF) docs</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e66b1b75b4e4" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Yara Kural Yapısı ve Kullanımı]]></title>
            <link>https://huseyinrencber.medium.com/yara-kural-yap%C4%B1s%C4%B1-ve-kullan%C4%B1m%C4%B1-c42f7b288f08?source=rss-d141c8dbaf3c------2</link>
            <guid isPermaLink="false">https://medium.com/p/c42f7b288f08</guid>
            <category><![CDATA[yara]]></category>
            <category><![CDATA[siber-guvenlik]]></category>
            <category><![CDATA[sigma]]></category>
            <category><![CDATA[malware]]></category>
            <dc:creator><![CDATA[Huseyin Rencber]]></dc:creator>
            <pubDate>Sun, 09 Jan 2022 07:07:13 GMT</pubDate>
            <atom:updated>2022-01-09T07:33:50.701Z</atom:updated>
            <content:encoded><![CDATA[<p>Covid süreci, iş ve hayattaki değişikliklerden çok yazmaya vakit ayıramadım. Fakat yeni öğrendiğim bilgileri ufak ufak topladığım notlar mevcut. Türkçe olarak paylaşımın önemli olduğunu düşündüğüm için bazılarını bu şekilde blog olarak yazacağım.</p><p><a href="https://www.linkedin.com/in/huseyinrencber/">LinkedIn</a> ve <a href="https://twitter.com/huseyinrencber_">Twitter</a> üzerinden bana ulaşabilirsiniz.</p><p><a href="https://huseyinrencber.medium.com/sigma-kural-yap%C4%B1s%C4%B1-ve-siem-arama-format%C4%B1na-d%C3%B6n%C3%BC%C5%9Ft%C3%BCrme-e57fa9ad3a6a">Sigma yazısı</a> çok okunmuştu devam niteliğinde Yara kurallarını da yazmak istedim.</p><p>Loglar için ortak format <strong>sigma</strong> ve ağ trafiği için çok kullanılan format <strong>snort</strong> olduğu gibi dosyalar için de <strong>YARA</strong> diyebiliriz. Kısaca özetlersek proje Victor abimiz ( virustotal ekibinden ) tarafından oluşturulmuş. Açılımı da ilginç olan, zararlı yazılım dosyalarınızı tespit etmeye ve taramaya yardımcı olur. Metinsel veya <strong>binary</strong> formatında kötü amaçlı yazılım ailelerinin tanımlarını oluşturmak için kural tabanlı bir yaklaşım sağlar.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/605/1*hk7tqdRUAzT4HhDL5cJ1xQ.png" /><figcaption>:))</figcaption></figure><p>Bu yazıda kendi tecrübelerim ve kullanım şeklimden bahsedeceğim. Ana dokümantasyona aşağıdaki bağlantıdan erişebilirsiniz.</p><p><a href="https://yara.readthedocs.io/en/stable/">Welcome to YARA&#39;s documentation! - yara 4.4.0 documentation</a></p><p>Bir iki aydır yoğun şekilde crypto coin miner malware türleri için çeşitli kurallar yazdım bunlara da aşağıda örneklerde vereceğim. Windows, Linux ve Macos dosyaları için yara imzalarını kullanabilirsiniz.</p><h3><strong>YARA Kural Yapısı</strong></h3><p>Kısaca özetlemek açısından aşağıdaki infografik ( <strong>Thomas Roccia ) </strong>yeterli düzeyde bilgi sağlıyor. Anatomisi genel olarak aşağıdaki alanlardan oluşur.</p><ul><li>Kural adı</li><li>Metadata</li><li>Strings</li><li>Condition</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*8DtZT6oFfkwblWIW.png" /><figcaption><a href="https://medium.com/malware-buddy/security-infographics-9c4d3bd891ef#18dd">https://medium.com/malware-buddy/security-infographics-9c4d3bd891ef#18dd</a></figcaption></figure><p>Anatomisinden de anlaşılacağı üzere, YARA kuralları bir programlama dili gibidir, kötü amaçlı yazılım örneğinde bulunan kalıpları içeren bir dizi değişken tanımlayarak çalışırlar. Kurala bağlı olarak koşulların bazıları veya tümü karşılanırsa, bir kötü amaçlı yazılımın başarıyla tanımlanması için kullanılabilir. Kötü amaçlı yazılımın bir parçasını analiz ederken, araştırmacılar kötü amaçlı yazılım içinde, örneğin hangi tehdit grubuna ve kötü amaçlı yazılım ailesine atfedildiğini belirlemelerine olanak tanıyan benzersiz kalıpları ve dizeleri belirleyecektir. Bu sayede tehdit avcığılı yapabilir ve antivirüslerin de imza tabanlı kaçırdıkları yeni kötü amaçlı yazılım dosyalarını bulabilmenize olanak sağlar.</p><h3>YARA Kuralı Kullanım Alanları</h3><ul><li>Siber güvenlik analisteleri zararlı yazılım araştırması yaparken kullanabilir. Tehdit avcılığı sırasında tarama yapılabilir.</li><li>Bir zararlı dosyayı kategorize edip tanımlarken kullanılabilir. ( hangi aileden hangi apt grubunun izlerini taşıyor vs gibi )</li><li>Email gateway, NDR ve EDR platformlarında kullanılabilir.</li></ul><h3>YARA Kuralı Nasıl Yazılır</h3><p>Yazım için basit bir text editor uygulaması işinizi görecektir. ( notepad++ veya sublime iyidir ).</p><h4>Metadata</h4><p>Kuralın içeriğini veya YARA kuralının neyi arayacağını etkilemez, bunun yerine kuralın kendisi hakkında faydalı bilgiler sağlar. <strong><em>Author, Date, Version, Reference, Description, Hash</em></strong> gibi alanlar içerir. Kısacası yara kuralı hakkında öz bilgiler verir.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/566/1*IAnKi-VxCK5s5ysdhXf1LA.png" /><figcaption>coin miner yara rule metadata</figcaption></figure><h4>Strings</h4><p>İşte burası mevzunun kilit noktası, çünkü mümkünse eşsiz bir string bulmanız gerekmektedir. Kötü amaçlı yazılım örneğinde benzersiz ve ilginç dizeler bulmak bir YARA kuralı oluşturmak için idealdir. Bir kural içinde bir dize tanımlamak için, dizenin kendisinin bir değişken olarak bildirilmeniz gerekir.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/557/1*wCoJARFuMXWjotNCMV2lVA.png" /><figcaption>coin miner yara rule strings</figcaption></figure><p>Örnekte de olduğu üzere değişkenlere atama yapıyoruz. Burada ince ayarlama yapmak adına değiştiriciler de ekleyebiliriz.</p><ul><li><strong>nocase</strong>: Büyük küçük harfe bakmadan eşleşme arar.</li><li><strong>fullword</strong>: tam kelime araması için bunu ekleriz. örnek $s=”huseyinrencber” fullword olması halinde , “www.huseyinrencber.com” tespit edilebilecekken “www.huseyinrencbersitesi.com” tespit edilemez gibi.</li><li><strong>wide</strong> : burada unicode strings meselesi devreye giriyor. boş baytlar olması halinde h.u.s.e.y.i.n gibi stringlerde işinize yarar.</li><li><strong>wide ascii: </strong>unicode ve ascii karakterleri için</li></ul><p>Bu ince ayarları da yaptığımıza göre en önemli kısım bunları nasıl bulacağımız. Asıl zorluk burada zaten. Ben genel olarak string komutuyla bir önden göz atıyorum , virustotal de inceleme yaparak stringleri kontrol ediyorum, intezer gibi sitelerden yararlanıyorum, hex editorlerle bakıyorum, pestudio ile de stringleri inceliyorum sonrasında mümkün mertebe eşsiz stringler üzerinden kural yazmaya çalışıyorum. Eğer antivirüsler tarafından bulunmamışsa daha istekli kural yazıyorum yoksa zaten çoğunlukla olay bittikten sonra yazmanız boşuna oluyor biraz da. Windows ortamında da oldukça fazla yara kuralı yazan olduğu için de çok girmiyordum. İlla ki aradığınızı sizden önce yazılmışını bulabiliyorsunuz. Bir siber olay varsa ve yeni hedefli bir malware ile karşı karşıyaysanız ve ortamınızda bunu taramak istiyorsanız işte o zaman dikkatli inceleyip güzel bir kural yazmak istiyorsunuz ( biraz da mecburi ss durumu var ).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/557/1*SUCFtHUl-PutMHVg2GE96Q.png" /><figcaption>strings komutuyla inceleme</figcaption></figure><p>Bulduğum stringleri mutlaka virustotal enterprise da content komutuyla aratırım. Diğer dosyalar arasında eşleşme oluyor mu f/p oranı nasıl öğrenirim ona göre de conditionları düzenlerim veya kuraldan komple çıkarırım.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*U9CvQDbRl0wQfnkjsZfLQw.png" /></figure><p>Çıkan sonuçlara göre detections alanından ne kadar zararlı dosyada bu string den var anlayabilirsiniz veya hangi tip dosyalarda mevcut görebilirsiniz <strong>tag</strong> lerden.</p><p>Ender bir user agent varsa veya registry key ya da mutex varsa bunlar güzel kural yazımı için eşsiz ifadeleri barındırabilir.</p><h3>Conditions</h3><p>Bir YARA kuralı için kullanılacak arama ölçütlerini tanımlar, koşullar bölümü, kuralın başarılı bir eşleşmeyi tetiklemesi için ölçütleri tanımlar. İşte seçimi yapan kısım burası, string gelişmeyse bu sonuç. Karar verici amca burası. Aşağıdaki örneklerde olduğu gibi ölçütler belirleyebiliriz.</p><ul><li>İşletim sistemine göre hex değeri girme örnek <strong>uint32(0)==0x464c457f</strong></li><li>Dosya boyutuna göre <strong>(filesize&lt;5MB)</strong></li><li>Sayılarına göre <strong>str &gt; 5</strong></li><li>Koşul olarak kaç eşleşmenin tetiklenmesi gerektiğini göre</li><li><strong>4 of them </strong>veya<strong> any of them </strong>veya<strong> $str1 and not $str2</strong></li></ul><p>Koşullar belirterek hangi ölçütlerde tespit yapacağını kuralda belirtiriz.</p><p><strong>import</strong> ve <strong>export</strong> <strong>language</strong> tanımı <strong>time</strong> belirteci detayları da mevcut fakat o kadar derine inmeye gerek yok , yazdıkça bunları da ekleyebilirsiniz kurallarınıza.</p><h4>Yara Kurallarını Nasıl Kullanırız</h4><p>Yazdık veya bu kuralları edindik, twitter olsun github olsun veya threat intel platformunuzdan aldınız diyelim. Bunu nasıl tarayacağız, bazı EDR ve NDR lar destekliyor onlar üzerinden taratabilirsiniz. Virustotalde hunting kuralı olarak kaydederek de tarama yapabilirsiniz. Direk indirmeyi deneyip oradan da tarayabilirsiniz.</p><p><a href="https://yara.readthedocs.io/en/stable/gettingstarted.html">Getting started - yara 4.4.0 documentation</a></p><p>Macos da kullandığım bir tool var bu da oldukça hoşuma gitti. Yazdığınız kuralı ekleyip görsel olarak kontrol ederek tarayabilirsiniz.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*bxP-_55AQZzBT3b6" /><figcaption>xprotect</figcaption></figure><p>Kullanım senaryosu olarak aşağıdaki gibi de istifade edebilir ve ortamınızı tarayabilirsiniz.</p><h3>Huseyin Rencber on Twitter: &quot;Checking yara rules which are not detected by your endpoint agent might be a good idea. With this way you can scan these yara rules on endpoints. Virustotal #yara search example &gt; &quot;have:crowdsourced_yara_rule AND tag:peexe AND fireeye:clean AND positives:5+&quot; pic.twitter.com/24u7yZXBzy / Twitter&quot;</h3><p>Checking yara rules which are not detected by your endpoint agent might be a good idea. With this way you can scan these yara rules on endpoints. Virustotal #yara search example &gt; &quot;have:crowdsourced_yara_rule AND tag:peexe AND fireeye:clean AND positives:5+&quot; pic.twitter.com/24u7yZXBzy</p><p>Bir sonraki blockchain , macos vb konulardaki yazılarda görüşmek üzere…</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c42f7b288f08" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[DGA Nedir? Nasıl Tespit edilir & Engellenir?]]></title>
            <link>https://huseyinrencber.medium.com/dga-nedir-nas%C4%B1l-tespit-edilir-engellenir-4bc1e72e472c?source=rss-d141c8dbaf3c------2</link>
            <guid isPermaLink="false">https://medium.com/p/4bc1e72e472c</guid>
            <category><![CDATA[dga]]></category>
            <category><![CDATA[dga-malware]]></category>
            <category><![CDATA[dns-security]]></category>
            <category><![CDATA[dns]]></category>
            <category><![CDATA[sunburst]]></category>
            <dc:creator><![CDATA[Huseyin Rencber]]></dc:creator>
            <pubDate>Tue, 12 Jan 2021 09:09:35 GMT</pubDate>
            <atom:updated>2022-01-14T07:21:59.115Z</atom:updated>
            <content:encoded><![CDATA[<h3>DGA Nedir? Nasıl Tespit Edilir &amp; Engellenir?</h3><p>Domain Generation Algorithm ( DGA ) Domain Oluşturma Algoritması olarak adlandırılsa da, algoritmik olarak oluşturulmuş domain adlarıdır aslında ( AGD denebilir ). DGA’lar, bir dizi komut ve kontrol (C&amp;C) siteleri ile iletişim kurmak için kötü amaçlı yazılım istemcileri tarafından kullanılan domain adlarının bir listesini programlı olarak üreten kodlardır. Bu domainler, bir ana taşıyıcı ağda gizlice iletişim kurmak için kötü amaçlı yazılımlar ve hacker kontrollü sunucular için buluşma noktaları olarak kullanılır. Dinamik olarak oluşturulmuş domainlerden biri BT güvenliği tarafından algılandığında ve engellendiğinde, kötü amaçlı yazılım istemcisi ve C&amp;C sunucusu savunmaları atlamak için listede olan domainlerden bir sonrakine geçer. Bence çok şekil:)</p><p><a href="https://www.linkedin.com/in/huseyinrencber/">LinkedIn</a> ve <a href="https://twitter.com/huseyinrencber_">Twitter</a> üzerinden bana ulaşabilirsiniz.</p><p>DGA alanları aşağıdaki özelliklere sahiptir:</p><ul><li>Uzun ve anlamsız isimleri var — com, çünkü önceden kaydedilmiş bir domain adıyla daha az çakışma şansına sahip olmaları için.</li><li>Genellikle hem kötü amaçlı yazılım istemcisi hem de C&amp;C sunucusunun paylaştığı aynı kriptografik algoritmaları kullanılarak kodlanır veya şifrelenir, bu da onların kodunu çözmeyi / deşifre etmeyi zorlaştırır.</li><li>Her gün binlerce DGA alanı oluşturulur, ancak yalnızca birkaçı aktif veya çözülebilirdir ve bu, yalnızca kötü amaçlı yazılım istemcisi ve C&amp;C sunucusu tarafından bilinir.</li><li>Aktif olduklarında bile, kısa bir ömürleri vardır (genellikle sadece birkaç gün), bu da kara listeye almayı zorlaştırır.</li><li>Dns Tünelleme taktiği yerine de kullanıldığı noktalar vardır.</li></ul><p>Bir önceki <a href="https://huseyinrencber.medium.com/banka-domaini-taklit-edilerek-g%C3%B6nderilen-malware-i%CC%87ncelemesi-e19b9bb75185">yazımda </a>aktardığım zararlı yazılım C2 ya mail ile sistem bilgilerini aktarıyordu, burada dns katmanı ile de bu encode edilerek belli ölçüde yapılabilir.</p><p>Bilindiği üzere kötü amaçlı yazılım güncellemelerini ve ek modülleri indirmek için DNS sorgularını da kullanabilirler. Kötü amaçlı yazılımların engellenmesini zorlaştırmak için genellikle her gün çok sayıda yeni domain oluşturmak için bir domain oluşturma algoritması (DGA) kullanır. İletişim kanalını açık tutmak için, saldırganların bu domainlerden yalnızca küçük bir kısmını kaydettirmesi gerekir, ancak iletişimi engellemek için ağ güvenliği ekibinin neredeyse hepsini engellemesi gerekir. Bu örnek inbound yönünde olanlar için,</p><p>Tamam, bu gelen iletişim. Virüslü sunuculardan verileri dışa aktarmaya ne dersiniz? DNS protokolü, bir alan adının en fazla 253 karakter uzunluğunda olmasına izin verir ve “&lt;birşey&gt; .testdomain.com” sorguları, “testdomain.com” için DNS sunucularına yönlendirilir. Veriler, virüslü ana bilgisayarda (ör. “parola_testblogu_icin_gmail_com_pas123*.testdomain.com”) DNS sorguları oluşturularak ve diğer uçtaki mesajı yorumlamak için özel DNS sunucu yazılımı kullanılarak dışa aktarılabilir ( veya mevcut trafiği dinleyerek dns şifresiz iletişim kuran bir protokol ). Bunu encode ederek de sorgularını gönderebilir.</p><p>Kullanılan yöntemler arasında bence en tehlikeli olanlar ransomware ve sunburst malware ( solarwinds supply chain attack )örneği.</p><p>Örnek olarak ransomware revil ( sodinokibi )</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/899/1*HsfLnjTHcUyxt_UQQM6m2A.png" /><figcaption><a href="https://www.tesorion.nl/aconnection-between-the-sodinokibi-and-gandcrab-ransomware-families/">https://www.tesorion.nl/aconnection-between-the-sodinokibi-and-gandcrab-ransomware-families/</a></figcaption></figure><p>Virustotal üzerinde dga etiketi ile arama yapıp inceleyebilirsiniz.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SpnYYhIEUxQdl0JJHc8xfA.png" /><figcaption>virustotal tag:dga</figcaption></figure><p>Sunburst malware özelinde tersine mühendislik yöntemleriyle incelemeler blog yazıları epey paylaşıldı. Ben genel olarak bir malware veya apt grubunu ilk incelediğimde önce network aktivitelerine bakıyorum, ağda yapılan aktivitelerin iz bırakmama ihtimali yok encrypt eder tüneller vs ama iz bırakır. EDR veya endpoint tarafında her zaman geçerli bir durum değil maalesef, service kill edilebiliyor veya edr ip si öğrenilince null route yazılıp erişimi kesebiliyorlar veya o noktada ajan yüklenmemiş olabiliyor vs. DNS tarafı da network alanında daha çok ilgimi çekiyor. “Ben küçük meselelerin adamıyım bunlarla da birileri ilgilenmeli nihayetinde” Internet ekipler amiri:) Bu amcalar da tabi dga ve dns nimetinden istifade etmişler ziyadesiyle. Burada tabi microsoft ve fireeye açıklamadan bazı araştırmacılar kesin olarak domain decode ederek kesin yargıya vardılar( kurban şirketler bunlardır vb ) bunu tam olarak bilmek bence çok zor. Belki de hedef saptırıyor da olabilirler…</p><p><strong>SUNBURST</strong></p><p>Bu amcalar da SUNBURST’ün son C2 sunucusunu almak için bir aracı komut ve kontrol (C2) koordinatörünü kullanıyorlar. C2 koordinatörü arka kapıya işaretlemeyi devam ettirmesi veya durdurması talimatını verir. Ayrıca, SUNBURST’u DNS CNAME kayıtları aracılığıyla nihai C2 sunucusuna yeniden yönlendirir. Bunun, zararlı bulaşanlar arasında paylaşılan ağ altyapısını sınırlayarak <strong>UNC2452</strong>&#39;nin operasyonlarını bölümlere ayırmasına olanak tanıdığına inanıyorlar[2]</p><p>C2 koordinatörü, avsvmcloud[.]com etki alanı için yetkili authoritative DNS sunucusu olarak uygulanır. C2 koordinatörü ile iletişim kurmak için SUNBURST , avsvmcloud[.]com’un sub-domainlerini alt alan adlarını oluşturmak için bir DGA kullanır ve sistem DNS istemcisini kullanarak FQDN çözer. Arka kapı, C2 lardan komut almak için DNS yanıtlarını alışılmadık bir şekilde yorumlar.</p><p>DGA, FQDN’yi oluşturmak için aşağıdaki DNS son ekleriyle alt etki alanları oluşturur:</p><ul><li>.appsync-api.eu-west-1 [.] avsvmcloud [.] com</li><li>.appsync-api.us-west-2 [.] avsvmcloud [.] com</li><li>.appsync-api.us-east-1 [.] avsvmcloud [.] com</li><li>.appsync-api.us-east-2 [.] avsvmcloud [.] com</li></ul><p>Yazılım güncellemesi, bu rastgele görünen C2 alt etki alanlarının oluşturulması için kriptografik yardımcıları başlatmaktan sorumludur. Alt alanlar, kodlanmış bir kullanıcı kimliğinin sistemin etki alanı adının bir kodlamasıyla birleştirilmesiyle oluşturulur. C2 koordinatörü kurban alan adını şifrelenmiş verilerden kurtarabilir ve muhtemelen bunu SUNBURST’u nihai C2 sunucusuna yönlendirmek için kullanır.</p><p>Üç değere göre bir kullanıcı kimliği oluşturulur:</p><ul><li>MAC adresi</li><li>Alan adı</li><li>HKEY_LOCAL_MACHINE \ SOFTWARE \ Microsoft \ Cryptography \ MachineGuid değeri</li></ul><p>SUNBURST, bu birleştirilmiş değerlerin MD5 hashlerini alır ve bunu özel bir XOR şeması kullanarak kodlar.</p><p>SUNBURST, arka kapının çalışma modunu belirtmek için dört farklı alt etki alanı biçimi kullanır. Her form biraz farklı bilgiler içerir. Bununla birlikte, iki formda, araştırmacılar mağdur kuruluşların alan adlarını kurtarabilir. SUNBURST C2 koordinatör trafiğinde bir kurbanın etki alanının varlığını doğrulamak için DNS günlüklerini incelemenizi öneririz.</p><p>Sunburs DGA Decode için githubda paylaşılan tool&amp;script</p><p><a href="https://github.com/RedDrip7/SunBurst_DGA_Decode">RedDrip7/SunBurst_DGA_Decode</a></p><p><strong>Detection DGA</strong></p><p>Anomali çok sevilmese de ( f/p oranı vs ) pek önem verilmese de burada işe yaramakta. <strong>Elastic </strong>ekibinin bu konuda yazısı oldukça güzel.</p><p><a href="https://www.elastic.co/blog/machine-learning-in-cybersecurity-detecting-dga-activity-in-network-data">https://www.elastic.co/blog/machine-learning-in-cybersecurity-detecting-dga-activity-in-network-data</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/710/1*o0drXcuk148eXflwApr_tg.png" /></figure><p><strong>Splunk </strong>bu konu özelinde videosu da çok güzel ve detaylı onu da şuraya bırakayım. DGA uygulamasıyla, kötü amaçlı domainleri tespit etmek için machine learning kullanarak nasıl çalıştırılacağını gösteriyor.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2F1ctPStvI3BY%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3D1ctPStvI3BY&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2F1ctPStvI3BY%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="640" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/48dc0c499ddd8b0794fae2ac41f0ed35/href">https://medium.com/media/48dc0c499ddd8b0794fae2ac41f0ed35/href</a></iframe><p><strong>Infoblox </strong>da machine learning kullanmak, DGA tabanlı alan adlarını algılamanın daha iyi bir yoludur diye düşünmüş.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/349/1*xafFHS5a6lZEatQj--hA8g.png" /><figcaption><a href="https://blogs.infoblox.com/security/how-cyber-criminals-bypass-defenses-using-dga/">https://blogs.infoblox.com/security/how-cyber-criminals-bypass-defenses-using-dga/</a></figcaption></figure><p>Entropi: Alan adında ne kadar rastgelelik var?<br>Sözcüksel: Kodlanmış veya şifrelenmiş görünüyor mu?<br>N-gram: Alan adı bir dilde kelimeler içeriyor mu?<br>Sıklık: Aynı harici alana çok fazla istek mi gönderildi?<br>Boyut: Alan adı alışılmadık derecede uzun mu?</p><p>Sunburst vakasında okuduğum bazı yerlerde ana domaini engellemeyi önerenler olmuş, bu çaba statik olarak işe yarayabilir ama daha dinamik olan dga türlerinde işe yaramayacaktır. Dns bazlı fw kurallarının girilmesi her zaman tünelleme ve dga gibi konularda işe yaramayabilir. NGFW firewall ve dns fw olarak adlandırılan ürünlerde DGA ve DNS tunneling özelinde ayrı policy ler bulunmakta, bu profiller açılabilir. Bu cihazlarda ağda gidip gelen dns trafiğini izleyerek ona göre policy yazmanıza imkan sağlıyorlar.</p><p>Özetle host dan çıkan dns isteklerini izlemek ve tabi dönüşte gelen cevaplar özelinde nx kayıtlarını kontrol etmek oldukça işlevli olacaktır. ( genel olarak cihazların tespit tasarımları entropi, nx response, alt alan adı sıklığına göre şekilleniyor diyebilirim gördüğüm kadarıyla ) Bilelim, izleyelim ki engel olabilelim.</p><p>Son olarak Georgia Institute of Technology den olan abiler güzel bir akademik makale yazmışlar incelemek faydalı olabilir. Detecting and Tracking the Rise of DGA-Based Malware</p><p><a href="https://www.usenix.org/system/files/login/articles/login1212_antonakakis.pdf">https://www.usenix.org/system/files/login/articles/login1212_antonakakis.pdf</a></p><p><strong><em>Yetkili abiler &amp; ablalar</em></strong></p><p>https://en.wikipedia.org/wiki/Domain_generation_algorithm [1]</p><p>https://www.fireeye.com/blog/threat-research/2020/12/sunburst-additional-technical-details.html [2]</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4bc1e72e472c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Banka Domaini Taklit Edilerek Gönderilen Malware İncelemesi]]></title>
            <link>https://huseyinrencber.medium.com/banka-domaini-taklit-edilerek-g%C3%B6nderilen-malware-i%CC%87ncelemesi-e19b9bb75185?source=rss-d141c8dbaf3c------2</link>
            <guid isPermaLink="false">https://medium.com/p/e19b9bb75185</guid>
            <category><![CDATA[email]]></category>
            <category><![CDATA[malware-analysis]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[soc]]></category>
            <category><![CDATA[edr]]></category>
            <dc:creator><![CDATA[Huseyin Rencber]]></dc:creator>
            <pubDate>Wed, 27 May 2020 07:33:55 GMT</pubDate>
            <atom:updated>2022-01-14T07:22:16.177Z</atom:updated>
            <content:encoded><![CDATA[<h3>Banka Domaini Taklit Edilerek Gönderilen Malware Analizi</h3><p>Email ile zararlı url veya dosya gönderimi hala çok kullanılan yöntemler arasında bulunuyor. Bu yazımda bir bankanın domaini spoof edilerek gönderilen malware incelenecektir.</p><p><a href="https://www.linkedin.com/in/huseyinrencber/">LinkedIn</a> ve <a href="https://twitter.com/huseyinrencber_">Twitter</a> üzerinden bana ulaşabilirsiniz.</p><p>Öncelikle email spoofing nedir ? Aşağıdaki örnekte olduğu gibi bir domain taklit edilerek sahtecilikle karşı tarafa email gönderilmesidir.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/489/1*TvWmLBWVqKdvgkmb2_GxaA.png" /></figure><p>SMTP protokolü tasarlanırken kimlik doğrulama veya güvenlik standartları düşünülmediği için kolaylıkla sahtecilik yöntemleri uygulanabiliyor.</p><p>SMTP ve Email ile ilgili 25 den fazla RFC dokümanı mevcut ama temeline inersek <strong>1981 </strong>yılında yayınlanan RFC788 ve <strong>2008 </strong>de yayınlanan RFC 5321 protokol ile ilgili çok kapsamlı bilgiler bulabileceğiniz dokümanlar.</p><ul><li><a href="https://tools.ietf.org/html/rfc788">RFC 788 - Simple Mail Transfer Protocol</a></li><li><a href="https://tools.ietf.org/html/rfc5321">RFC 5321 - Simple Mail Transfer Protocol</a></li></ul><p>Email spoofing ile ilgili çeşitli çözümler (<strong>DKIM, SPF, DMARC, DNSBLs vb</strong> ) geliştirilmiş bunları uygulayarak büyük ölçüde bu durum engellenebilir /korunabilir.</p><p>E-posta neden malware ve zararlı url yaymak için bu kadar popüler bir vektör? Çünkü suçluların bir insanı hileli bir dosyayı veya bir e-postadaki bağlantıyı tıklamaya ikna etmesi, güçlendirilmiş bir altyapıya girmeye zorlamaktan daha kolaydır. Ayrıca internete açık web server zafiyetlerinin tespit edilmesi exploitlerinin takip edilmesi ve bunun fırsat olarak çıkması ilgili kurumda bulunması vb nispeten daha zorlayıcı olmasından email kanalı hala en çok kullanılan vektörlerden olmaktadır.</p><p>Örnek email logu;</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lbrS7F9NUKNqmwBHVICS3w.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/597/1*w2VI8MzRHsh-Py446dxMtg.png" /></figure><p>Basit anlamda sender ip ile domain kontrolü yapıldığında mx spf, spoof edildiği anlaşılır.</p><p>Örnek logda görüldüğü üzere Halk Bank spoof edilmiş.</p><p>Email loglarınızda kendi kurumunuzu bile çok rahat görebilirsiniz :) veya Türkiye’den herhangi bir kurumun spoof edilmiş halini. Servis sağlayıcılar operatörler bankalar vb</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/330/1*U7FiCjBXWrH33XYwAU992w.png" /></figure><p>Eğer email engellenmiş ve kullanıcıya gitmemişse detaylı incelemeleriniz TTP / IoC çıkarmanız için cihazınızın önünden trafik alıp bunu farklı kaynaklara yönlendirmeniz gerekmektedir zeek security onion suricata vb.</p><p>Örnek gelen emaildeki zararlılardan birisi <strong>BANKASI.exe</strong> adlı dosya, virus totaldeki detayları aşağıdaki gibidir.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/937/1*-z-6EJFwYsM5VWHyXqEP3A.png" /><figcaption><a href="http://virus total">https://www.virustotal.com/gui/file/36829935f0b7f4cc2ff3971b30fed6d1bbd2af01f08fb15790d5242cd751011e/detection</a></figcaption></figure><p>(Yukarıdaki details bölümleriyle ilgili daha önce yayınladığım <a href="https://medium.com/@huseyinrencber/malware-hash-fuzzy-hashing-3e5511c79eb?source=your_stories_page---------------------------">Malware Hash- Fuzzy Hashing</a> yazısını okuyabilirsiniz)</p><p>İlgili dosya agent tesla keylogger spyware ailesinden.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/738/1*RsfH_MlWZRvdGDujIjHFKQ.png" /></figure><p><strong>Agent Tesla</strong>, Microsoft’un .Net dilinde yazılmış bir spyware, keylogger ve bilgileri çalan Truva Atıdır. Agent Tesla, 2014&#39;ten beri aktif. Ajan Tesla aynı zamanda resmi web sitesinde abonelik lisansı ile de satılmış olan ticari bir projedir. İlginç şekilde menşei Türkiye’dir :) detaylı yazı için &gt;</p><p><a href="https://krebsonsecurity.com/2018/10/who-is-agent-tesla/">Who Is Agent Tesla?</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xDqhISRMpKtuI6Lc4LOXmw.png" /><figcaption>Agent Tesla</figcaption></figure><p>Ekte gönderilen zararlı dosya analiz edildiğinde aşağıdaki process leri çalıştırır;</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/729/1*I0mk0orOlEkD2hrf0Xo6-g.png" /><figcaption>process tree</figcaption></figure><p>Bankasi.exe çalıştıktan sonra, kötü amaçlı yazılım aşağıdaki konumda kendisinin bir kopyasını oluşturur;</p><p>% APPDATA% \ winservie.exe</p><p>Çalıştırılan komut;</p><p>“C:\Windows\System32\cmd.exe” /c, “C:\Users\admin\AppData\Roaming\winservie.exe”</p><p>winservice registry de autorun değerini değiştirir;</p><p>HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/798/1*mrfrM3CAzSUAlQmYm4Y3vA.png" /></figure><p>Bellekteki Agent Tesla Keylogger kodunu çözer ve InstallUtil.exe dosyasına enjekte eder.</p><p>Aşağıdaki örnekleri toplayıp C2 ya mail gönderir.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/378/1*lWiH4EYXQdCEtlSbJU0YHw.png" /></figure><p>installutil.exe process i suricata IDS de 2839853 numaralı kurala çarpmıştır</p><pre>2839853 - ETPRO TROJAN Win32/AgentTesla/OriginLogger Data Exfil via SMTP (trojan.rules)</pre><p>İlgili mail trafiği pcap analizinde tespit edilmiştir</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*00-e8Jp8wrQr_5i4k1acEQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/208/1*qS6rWfauEZtSBjngF1K2sg.png" /></figure><p><strong>Sender</strong>: HALK BANK &lt;<a href="/service/mailto:halkbank.e-ekstre@halkbank.com[.]tr">halkbank.e-ekstre@halkbank.com[.]tr</a>&gt; (<strong>Spoofed</strong>)</p><p><strong>Sender IP</strong>: rrcs-108–178–83–59.sw.biz.rr[.]com (108.178.83[.]59)</p><p><strong>Subject</strong>: T.HALK BANKASI A.S. 2.03.2020 Hesap Ekstresi</p><p><strong>Attachment</strong>: HALK BANKASI.IMG -&gt; BANKASI.exe</p><p><strong>MD5</strong>: f9063c7ac31e3316ad913b5e53d9a11b -&gt; f8bf1291d4e6a3dc1c4b500f009a58b7</p><p><strong>File Name</strong>: BANKASI.exe</p><p><a href="https://www.virustotal.com/gui/file/36829935f0b7f4cc2ff3971b30fed6d1bbd2af01f08fb15790d5242cd751011e/detection">https://www.virustotal.com/gui/file/36829935f0b7f4cc2ff3971b30fed6d1bbd2af01f08fb15790d5242cd751011e/detection</a></p><p><strong>MD5</strong>: f8bf1291d4e6a3dc1c4b500f009a58b7</p><p><strong>SHA-1</strong>: a0268e1b3444ce9780cad56ed583353c484405ac</p><p><strong>SHA-256</strong>: 36829935f0b7f4cc2ff3971b30fed6d1bbd2af01f08fb15790d5242cd751011e</p><p><strong>SSDeep</strong>: 6144:zTGTiQlbUZKs2Dipr6qzSwjTZjNpa8Y1LcRyblDLFF5yYrv8nFKYbv2/fmafw1:zaTiQlgcipjFRDa8YpVZl2+vmtIw1</p><p>Bir sonraki blog yazısında görüşmek üzere :)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e19b9bb75185" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Malware Hash- Fuzzy Hashing]]></title>
            <link>https://huseyinrencber.medium.com/malware-hash-fuzzy-hashing-3e5511c79eb?source=rss-d141c8dbaf3c------2</link>
            <guid isPermaLink="false">https://medium.com/p/3e5511c79eb</guid>
            <category><![CDATA[fuzzy]]></category>
            <category><![CDATA[dfir]]></category>
            <category><![CDATA[hashing]]></category>
            <category><![CDATA[malware]]></category>
            <dc:creator><![CDATA[Huseyin Rencber]]></dc:creator>
            <pubDate>Mon, 06 Apr 2020 10:01:29 GMT</pubDate>
            <atom:updated>2020-04-06T10:01:29.126Z</atom:updated>
            <content:encoded><![CDATA[<p>Malware incelerken veya dosya aratırken md5, sha1, sha256 vb hash leri kullanırız. Dosyalarda yapılan küçük değişikliklerle standart hashing algoritmaları ile sorguladığımızda bir kaç biti değişmiş yeni dosyayı bulamayız. Birincil kullanım amacı dosyanın bütünlüğünü kontrol etmek olan md5 vb hash algoritmaları bu tip küçük değişikliklerde benzerlik bulmamızda işimize yaramıyor. Zararlı dosya bulaşmış cihazlarda arama yaparken de sadece standart olan hash algoritmaları bu kapsamda yetersiz kalır. Bazen de size gönderilen zararlı dosyayı upload etmeden aramanız gerektiği durumlarda da başarısız sonuç bulursunuz sebebi yine bazı kısımları değiştirildiği için tespit edilemediğini düşünebiliriz.</p><p>Bir kötü amaçlı yazılım parçasındaki tek bir bitin işlevselliğini koruyacak şekilde değiştirilmesi son derece mümkündür. Bu durumda, bir forensics uzmanı, kötü amaçlı yazılım parçasını orijinal kötü amaçlı yazılımın hash değeriyle bulamaz.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/579/1*-n3C6rN65nCOKBh42v_kHg.png" /></figure><p>Bu sebeplerden oluşturulmuş sorunları gidermek adına dosyalar arasındaki benzerliği tespit etmek için aşağıdaki algoritmalar üretilmiştir.</p><p><strong>Autentihash nedir?</strong></p><p>Authentihash, Microsoft tarafından bir PE görüntü dosyasının ilgili bölümlerinin değiştirilmediğini doğrulamak için kullanılan bir sha256 karmasıdır. Bu özel hash türü Microsoft AppLocker tarafından kullanılır.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/846/1*Y3qq4s-AG-5mTN6JqcJwbw.png" /></figure><p><strong>Imphash nedir?</strong></p><p>Fireeye/mandiant tarafından oluşturulmuş bir <a href="https://eksisozluk.com/?q=hashing">hashing</a> yöntemi, import hash kısatılmışıdır.</p><p>Mandiant’ın belirli tehdit gruplarının arka planlarını izlemesinin benzersiz bir yolu, taşınabilir yürütülebilir (PE) ithalatlarını izlemektir. İçe aktarmalar, bir yazılımın (bu durumda arka kapı) diğer dosyalardan (genellikle Windows işletim sistemine işlevsellik sağlayan çeşitli DLL dosyaları) çağırdığı işlevlerdir. Bu içe aktarmaları izlemek için Mandiant, library/ API adlarına ve yürütülebilir dosyadaki belirli sıralarına dayalı bir hash oluşturur. Bir PE’nin içe aktarma tablosunun oluşturulma şekli (ve bu nedenle vurgulamanın nasıl hesaplandığı) nedeniyle, ilgili kötü amaçlı yazılım örneklerini tanımlamak için imphash değerini kullanabiliriz.</p><p><strong>TLSH nedir?</strong></p><p>TLSH — Trend Micro Lokasyon Duyarlı Karma fuzzy eşleme kütüphanesidir. Minimum uzunluğu 50 bayt olan bir bayt akışı verildiğinde TLSH, benzerlik karşılaştırmaları için kullanılabilecek bir karma değer üretir. Benzer nesneler, karma değerlerini karşılaştırarak benzer nesnelerin algılanmasına izin veren benzer karma değerlerine sahip olacaktır. Bayt akışının yeterli miktarda karmaşıklığa sahip olması gerektiğini unutmayın. Örneğin, aynı baytlık bir bayt akışı bir karma değeri oluşturmaz.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/939/1*vFqeipAkmxPgQkbtb9PERg.png" /><figcaption>bazaar.abuse.ch</figcaption></figure><p><strong>Vhash nedir?</strong></p><p>Virustotal reis de boş durmamış tabi , vhash adında dosya benzerliğinde kullanılmak için hash algoritmasını oluşturmuş.</p><p>VirusTotal, kötü amaçlı yazılımlarda bu tür küçük değişiklikleri tespit etmek için özelliklere sahiptir. Benzer örnekleri bulmak için fuzzy tabanlı vhash kullanılabilir.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/775/1*XPqgiM9iihj9lYxc7ZDRLA.png" /></figure><p><strong>Ssdeep nedir?</strong></p><p>ssdeep, bağlamla tetiklenen parçalı karmaları (CTPH) hesaplamak için bir programdır. fuzzy hashes olarak da adlandırılan CTPH, benzerlikleri olan girdileri eşleştirebilir. Bu girdiler aynı sırayla aynı bayt dizilerine sahiptir, ancak bu diziler arasındaki baytlar hem içerik hem de uzunluk bakımından farklı olabilir.</p><p>ssdeep karmaları artık basit tanımlama amacıyla yaygın olarak kullanılmaktadır. (ör. VirusTotal’daki Temel Özellikler bölümü) “Daha iyi bulanık karmalar” mevcut olmasına rağmen, ssdeep hızı (şimdi TLSH’nin iki katı kadar hızlı) ve fiili bir standart olması nedeniyle hala birincil seçimlerden biridir.</p><p>İyi malware incelemeler :)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3e5511c79eb" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Dns Tünelleme Tespiti ve Engellenmesi]]></title>
            <link>https://huseyinrencber.medium.com/dns-t%C3%BCnelleme-tespiti-ve-engellenmesi-aa28e9a60230?source=rss-d141c8dbaf3c------2</link>
            <guid isPermaLink="false">https://medium.com/p/aa28e9a60230</guid>
            <category><![CDATA[siem]]></category>
            <category><![CDATA[dns-tunneling]]></category>
            <category><![CDATA[siber-güvenlik]]></category>
            <category><![CDATA[dfir]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <dc:creator><![CDATA[Huseyin Rencber]]></dc:creator>
            <pubDate>Mon, 06 Jan 2020 13:33:52 GMT</pubDate>
            <atom:updated>2022-01-14T07:22:45.673Z</atom:updated>
            <content:encoded><![CDATA[<p>Dns ile ilgili konulara hakim olmak adına RFC 1034 ve 1035 i okumanızı tavsiye ederim, ayrıca aşağıdaki bağlantıdan da ilgili rfc dokümanlarına da erişebilirsiniz.</p><p><a href="https://www.linkedin.com/in/huseyinrencber/">LinkedIn</a> ve <a href="https://twitter.com/huseyinrencber_">Twitter</a> üzerinden bana ulaşabilirsiniz.</p><p><a href="https://powerdns.org/dns-camel/">https://powerdns.org/dns-camel/</a></p><p><a href="https://tools.ietf.org/html/rfc1034">https://tools.ietf.org/html/rfc1034</a></p><p>DNS tüneli ile ilgili bilinen ilk tartışma Nisan 1998&#39;de Bugtraq posta listesindeki Oskar Pearson’dan yapıldı (Pearson, 1998).</p><p><a href="http://www.gray-world.net/papers/dnstunnel.txt">http://www.gray-world.net/papers/dnstunnel.txt</a></p><p>DNS tünellemesi için hem Morto hem de Feederbot kötü amaçlı yazılımları kullanılmıştır. Son tünel saldırıları, 2018&#39;de Orta Doğu’daki hükümet kurumlarını hedefleyen tehdit grubu DarkHydrus ve 2016&#39;dan beri faaliyette olan ve hala aktif olan <strong>OilRig</strong>’i ( ki bizi en çok da bu amcalar ilgilendiriyor ) içeriyor.</p><h4><strong>Nedenler niçinler </strong>;</h4><p>Klasik bir firewall bypass yapalım derseniz kullanırsınız, malware ve C2 lar için kullanılır, captive portal vb durumlardan kaçınmak için kullanılabilir vs. Pentestlerde bulgu olarak hemen yazılan bu durumun engellenmesinden ziyade neden ağınızda kullanıldığını tespit etmek daha önemlidir. Bu kısma engelleme bölümünde değinelim.</p><h4><strong>Encoding</strong></h4><p>Az yukarıda Oilrig tarafından da kullanılıyor demiştik, amcalar hakkında kısa bilgi;</p><p><a href="https://attack.mitre.org/groups/G0049/">OilRig</a></p><p>Takdir edersiniz ki dns tünel için istemci ve sunucu levazım, burada encoding mevzusu da önemlidir. Oilrig de bondupdater ( base16) quadagent ( base64) tollarda çeşitli encodingleri kullanmıştır. Oil Rig — BONDUPDATER Orta Doğu hükümetine karşı Truva atı, C2 iletişimleri için DNS tünel protokolünde A kayıtlarını ve TXT kayıtlarını kullanabilir</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/745/1*oHdIih4EGRYw81s3W8cQew.png" /><figcaption>encoding</figcaption></figure><p><strong>Bazı toollar</strong></p><p>Bazı toollar <strong><em>iodine </em></strong>gibi encodingi en iyi olacak şekilde otomatik olarak ayarlar.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/605/1*luJsKVJH9nGeyZbPnMS8LQ.png" /></figure><p><strong><em>OzymanDNS</em></strong> Perl’de 2004 yılında Dan Kaminsky tarafından yazılmıştır. DNS üzerinden veya dosya aktarımı için bir SSH tüneli kurmak için kullanılır. İstekler base32 kodludur ve yanıtlar base64 kodlu TXT kayıtlarıdır.</p><p><strong><em>Heyoka</em></strong> DNS tünelleme yardımcı programları, 512 bayttan daha büyük yükleri kullanmalarını ve böylece performansı iyileştirmelerini sağlayan EDNS’den yararlanabilir. Bir DNS tünel oluşturma yardımcı programı olan Heyoka, istemcinin görünürlüğünü azaltmak için sunucuya yapılan talepler (yukarı akış verileri) için kaynak IP adreslerini taklit eder.</p><h4><strong>EDNS</strong></h4><p>DNS, standart olarak 512 Byte büyüklüğündeki UDP paketleri kabul etmektedir. Boyutu daha büyük paketler için UDP yerine TCP protokolü kullanılmaktadır. EDNS sayesinde artık 512 Byte’dan büyük olan sorgu cevapları için protokol değişikliğine gerek kalmadan 4096 Byte’ a kadar UDP üzerinden cevap verilmesini sağlamaktadır. Belirtilen boyut 512 Byte ile 4096 Byte arasında herhangi bir değer olabilir</p><p>Bu kısa bilgilerden sonra detection aşamasına geçelim.</p><h4><strong>Detection</strong></h4><ul><li>Sorgu ve cevabın boyutu, uzun sorgular ve paket boyutu yüksek cevaplar şüpheli olarak değerlendirilmeli siemde veya wireshark vb paket analiz cihazlarında kontrol edilmelidir.</li><li><strong>Entropi</strong>, bir dizgenin rasgeleliğini tanımlar. DNS adları durumunda, Domain Oluşturma Algoritmaları (DGA’lar) gibi rastgele ana bilgisayar adları oluşturur asdlfkjasdflwerjka.t1.security.local. Dize ne kadar fazla rastgele olursa, o kadar yüksek entropi değerine sahip olur . www[.]medium.com gibi daha az rastgelelik, entropi skorunu düşürür. Burada bir değere göre sıralamada yapılabilir 3 den büyükler için gibi. Splunkbase de olan url toolbox ile entropi kullanılarak dns tünelleme yakalanabilir.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/863/1*CXE3PFQ7Q4jwx-at5let5Q.png" /><figcaption><a href="https://www.splunk.com/en_us/blog/tips-and-tricks/when-entropy-meets-shannon.html">splunk entropy</a></figcaption></figure><ul><li>Belirli zaman içerisinde yapılan çoklu istek. Örnek olarak bir dakika içerisinde aynı source ip ve domainden fakat farkı subdomainlere 1 dakika içerisinde en az 5 istek olursa. Ayrıca ibm de dns analyser uygulaması ile de tespit edilebilir.</li></ul><p><a href="https://exchange.xforce.ibmcloud.com/hub/extension/6c52b4571878b24511052868dbb4f6c9">https://exchange.xforce.ibmcloud.com/hub/extension/6c52b4571878b24511052868dbb4f6c9</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/746/1*60a4_X83gRXt90b2QlQCEA.png" /><figcaption>qradar örnek kural tipi</figcaption></figure><ul><li>Çok yaygın olmayan sorgu tipleri görüyorsak clientlardan txt vs gibi, veya ağınızdaki cache dnslerinin haricinde bir dış dns e istek yapıyorsa birden fazla kez. Dns cache gibi mekanizma varken sürekli sorgu atmaya çalışıyorsa vs bunlar genel olarak şüphe uyandırıcı mevzular</li><li>IDS de snort imzalarıyla tespit edilebilir. Örnek iodine ve ozyman</li></ul><p><em>alert udp $EXTERNAL_NET 53 -&gt; $HOME_NET any (msg:”APP-DETECT iodine dns tunneling handshake server ACK”; flow:to_client; byte_test:1,&amp;,0x80,2; content:”|00 01 00 01 00|”; depth:5; offset:4; content:”v”; within:1; distance:4; content:”VACK”; within:200; fast_pattern:; metadata:policy max-detect-ips drop, service dns; reference:url,code.kryo.se/iodine/README.html; classtype:policy-violation; sid:123456; rev:4; gid:1; )</em></p><p><em>alert udp $HOME_NET any -&gt; any 53 (msg:”APP-DETECT OzymanDNS dns tunneling up attempt”; flow:to_server,no_stream; content:”|01 00 00 01 00 00 00 00 00 00|”; depth:10; offset:2; content:”-0&quot;; distance:6; content:”id-”; within:3; distance:1; fast_pattern:; content:”up”; within:8; detection_filter:track by_src, count 18, seconds 1; metadata:impact_flag red, policy max-detect-ips drop, service dns; reference:url,dankaminsky.com/2004/07/29/51/; classtype:policy-violation; sid:123456; rev:5; gid:1; )</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xQ8TbyoRqozVTyOg3-ayGg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/605/1*920pZKh0vIW4Ae33HJr3ww.png" /></figure><ul><li>NGFW de uygulama tanıma özelliği ile tespit edilebilir</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/605/1*PKA2ZDm6eQZhcHWpiK7SGA.png" /><figcaption>tcp over dns</figcaption></figure><h4><strong>Tespit ettik iyi hoş da engellense daha iyi değil mi?</strong></h4><p>Fw ler deki url filtering veya proxy ler vs hikaye çözüm sağlamaz bu konuya, dns e özel uygulama tanıyabilen teknolojiler daha doğru olacaktır. ( yukarıdaki örnek ekran görüntüsünde olduğu gibi ) Tcp traffic over dns gibi veya deep packet inspection ya da infoblox roksit gibi dns özelinde trafiği denetleyen cihazlar yardımcı olacaktır. Tüm clientlar kendi ağınızdaki dns lere sorgu atmalı dış ağa direk erişmemeli.</p><p>Bunlar da threshold bağımlı yazılan kurallar f/p teşkil edebilir veya hiç yakalamayabilir.</p><p>Ziyaret edilen istifade edilen sevilesi kaynaklar</p><p><a href="https://www.sans.org/reading-room/whitepapers/dns/paper/34152">hxxps://www.sans.org/reading-room/whitepapers/dns/paper/34152</a></p><p><a href="https://unit42.paloaltonetworks.com/dns-tunneling-in-the-wild-overview-of-oilrigs-dns-tunneling/">hxxps://unit42.paloaltonetworks.com/dns-tunneling-in-the-wild-overview-of-oilrigs-dns-tunneling/</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=aa28e9a60230" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>