<?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 Nigar Ismayilzada on Medium]]></title>
        <description><![CDATA[Stories by Nigar Ismayilzada on Medium]]></description>
        <link>https://medium.com/@nigarismayilzada?source=rss-ec8dc734cd0d------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*c8sIYvVpOhKAI5IR</url>
            <title>Stories by Nigar Ismayilzada on Medium</title>
            <link>https://medium.com/@nigarismayilzada?source=rss-ec8dc734cd0d------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 15:33:58 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@nigarismayilzada/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[SOC Architecture Deployment Part]]></title>
            <link>https://medium.com/@nigarismayilzada/soc-architecture-deployment-part-023411a566f8?source=rss-ec8dc734cd0d------2</link>
            <guid isPermaLink="false">https://medium.com/p/023411a566f8</guid>
            <dc:creator><![CDATA[Nigar Ismayilzada]]></dc:creator>
            <pubDate>Sun, 03 Nov 2024 17:33:38 GMT</pubDate>
            <atom:updated>2024-11-03T17:36:35.973Z</atom:updated>
            <content:encoded><![CDATA[<h3>SOC Architecture Overview</h3><p>In this project, I designed a Security Operations Center (SOC) architecture that integrates a variety of tools and technologies to effectively monitor, detect, respond to, and manage security events in a hybrid environment. This architecture is built using both Windows and Linux systems, with the following components:</p><p><strong>Infrastructure</strong><br>- <strong>Windows Endpoint</strong>: A standard Windows endpoint representing typical user workstations.<br>- <strong>Ubuntu Endpoint</strong>: A Linux-based endpoint for broader OS coverage.<br>- <strong>Windows Server</strong>: A Windows server with Active Directory (AD) services for centralized identity and access management.<br>- <strong>Ubuntu Server</strong>: A Linux server hosting several key SOC applications.</p><p>The architecture leverages the following security tools, each with a specific role in enhancing detection, response, and management capabilities:</p><p>1. <strong>Atomic Red Team</strong> (Windows): A platform used for emulating adversary techniques and tactics on the Windows endpoint to test the SOC’s detection and response capabilities.</p><p>2. <strong>Nessus</strong> (Ubuntu Endpoint): A powerful vulnerability scanner deployed on the Ubuntu endpoint to detect and assess vulnerabilities within the system.</p><p>3. <strong>Snort</strong> (Ubuntu Endpoint): An open-source Intrusion Detection and Prevention System (IDS/IPS) used to monitor network traffic for malicious activities or policy violations.</p><p>4. <strong>Wazuh</strong> (Ubuntu Server): A Security Information and Event Management (SIEM) system that aggregates, analyzes, and correlates security data from across the network to provide real-time threat detection and response.</p><p>5. <strong>Shuffle</strong> (Ubuntu Server): A Security Orchestration, Automation, and Response (SOAR) platform used to automate workflows, responses, and playbooks, enabling faster response times.</p><p>6. <strong>The Hive</strong> (Ubuntu Server): A case management tool used to organize and handle security incidents, allowing for efficient tracking, investigation, and resolution of cases.</p><p>7. <strong>OpenCTI</strong> (Ubuntu Server): A Threat Intelligence Platform (TIP) that enables the sharing, storing, and distribution of threat intelligence to improve incident detection and response.</p><p>8. <strong>pfSense</strong> (Firewall): An open-source firewall solution used to protect the network from unauthorized access and provide network monitoring and traffic control.</p><p>9. <strong>Active Directory</strong> (Windows Server): A directory service used for user authentication and management of resources within the SOC.</p><p><strong><em>Security Workflow</em></strong></p><p>1. <strong>Threat Detection and Response</strong>: Snort monitors network traffic for malicious activities, while Nessus continuously scans the environment for vulnerabilities. Atomic Red Team is used for adversary emulation on Windows systems to test detection capabilities. Wazuh collects logs and security data from all endpoints and servers, providing real-time alerts.</p><p>2. <strong>Automation and Orchestration</strong>: Shuffle is configured to automate routine tasks, such as enriching incidents with threat intelligence from VirusTotal and OpenCTI or sending alerts to the security team via the notification program.</p><p>3. <strong>Incident Management</strong>: The Hive is used to manage security incidents, allowing analysts to track, investigate, and resolve cases in a structured manner. Threat intelligence from OpenCTI helps in identifying and mitigating threats.</p><p>4. <strong>Firewall and Traffic Monitoring</strong>: pfSense acts as a network firewall, controlling traffic and providing visibility into inbound and outbound connections.</p><p>The initial phase of this project involved setting up the Windows and Ubuntu endpoints, as well as the Windows server with Active Directory. Since these steps were relatively straightforward, I won’t go into detail in this write-up. Instead, I’ll focus on the more complex aspects of the SOC architecture, starting with the installation of Snort on the Ubuntu endpoint.</p><p>The general picture of the architecture was as follows:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DosAnyJnYVmtbDOjFbEtsw.png" /></figure><p>In the architecture, it’s recommended to set up two firewalls to ensure high availability. If one firewall encounters an issue, the second firewall will seamlessly handle the traffic, maintaining uninterrupted flow. This redundancy adds an extra layer of resilience to your network security.</p><h3>SNORT</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/497/1*zqdV7tnuCV1bSWd8E5tjtw.png" /></figure><p>You can follow the step-by-step instructions for installing and configuring Snort on Ubuntu by visiting the following link:</p><p><a href="https://www.zenarmor.com/docs/linux-tutorials/how-to-install-and-configure-snort-on-ubuntu-linux#4-configuring-snort-logging">How to Install and Configure Snort on Ubuntu</a></p><p>Before installing Snort, it’s important to make sure your system is up-to-date. To do this, we use the following commands to update and upgrade the system:</p><pre>sudo apt update<br>sudo apt upgrade</pre><p>This ensures that all the latest security patches and software versions are applied, preparing your system for the Snort installation.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*YHmaziCyzRUmYkJ23vKWqg.png" /></figure><p>After that, type <strong>sudo apt-get install snort</strong>. This command will install the Snort program and its dependencies.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*qw1pProF49abPUd_FckV_Q.png" /></figure><p>Next, we use the following command to open the Snort configuration file in edit mode:</p><pre>nano /etc/snort/snort.conf</pre><p>This will open the file in read and write mode, allowing us to make changes and save them.</p><p>One of the key sections to modify is the ipvar HOME_NET, where we define our home network. It’s important to specify the correct IP address range for your network, including the /24 subnet mask. This ensures that Snort properly monitors the traffic for the intended network.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*5_gsT94IJhFQz9CO5mqhCQ.png" /></figure><p>To do this, execute the following command in the terminal (preferably while in the /etc/snort directory):</p><pre>sudo snort -T -i eth0 -c /etc/snort/snort.conf</pre><p>Explanation of the command:</p><ul><li>-T: Opens Snort in test mode, which checks the configuration for errors without running the service.</li><li>-i: Specifies the network adapter in use (replace enps03 with your actual adapter if different).</li><li>-c: Points to the Snort configuration file and its location.</li></ul><p>After running this command, you should see the results in the terminal. Any warnings at this stage can generally be ignored, as they often don’t impact Snort’s core functionality.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/603/1*gaR_9ptAz0uwBeqT2kOtUQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/856/1*VOQ2lmvLw57-aY0XN7buqA.png" /></figure><p>You can view the alerts generated by Snort’s rules in the log file. Snort logs these alerts whenever suspicious activity is detected based on its configured rules. To check the log file for alerts, navigate to the directory where Snort stores its logs.</p><p>By default, Snort logs are usually stored in:</p><pre>/var/log/snort/snort.alert.fast</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*L7r-Mf97b0lpOeVoYRU8bg.png" /></figure><h3>PFSENSE</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/702/1*WliYDfqmc-HC3qgS6-5VCA.png" /></figure><p>For a more detailed explanation, you can also refer to the following video tutorial, which provides step-by-step instructions:</p><p><a href="https://www.youtube.com/watch?v=Ayr_av2EX_U&amp;t=344s">Detailed pfSense Installation Guide</a></p><p>This video covers the process in depth and can be a helpful visual resource during installation.</p><p><strong>Step 1: Download pfSense ISO</strong></p><p>Begin by downloading the pfSense ISO from the official site:</p><p><a href="https://www.pfsense.org/download/">Download pfSense ISO</a></p><p><strong>Step 2: Create a New Virtual Machine</strong></p><p>After downloading the ISO, create a new virtual machine and mount the pfSense ISO file as the boot disk. Ensure the VM is configured with the necessary resources such as CPU, memory, and network adapters according to your environment’s requirements.</p><p>Accept policy.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/928/1*Do8Zjh43zf05nn-2bY8PrQ.png" /></figure><p>Press enter.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/935/1*cPsf77ZDD5SlDxnx0i9BvQ.png" /></figure><p>Press enter.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*FwQOumDPp9Z0nofHAOhXgA.png" /></figure><p>Press enter.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/931/1*qT1zlDH7rmUFkt8PvXUzzQ.png" /></figure><p>Press yes.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/934/1*3rBztH-LeLIv4V_AH8GtjQ.png" /></figure><p>Press no.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/916/1*iG2qkfALRQpQ9gk1ow6S-w.png" /></figure><p>Reboot system.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/941/1*gBMfiv4pXLg045jPUVx0xQ.png" /></figure><p>We make the options as shown in the Picture.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/903/1*dT0C8YgAryxNUdJX6SDkRA.png" /></figure><p>We write the interface address and select the subnet.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/850/1*KVT16pW8dY2cYpbIWlJ4tQ.png" /></figure><p>We write the gateway address of our own subnet .</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/851/1*DtA_HrtvRdN0Wo3aGOQtYQ.png" /></figure><p>Once pfSense is installed and running, you can access its web interface by entering the IP address assigned to the pfSense page in your web browser. Default credentials is admin/pfsense.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*O-kqm9A6ORuTrKxVu2AIGQ.png" /></figure><p>Set new credentials.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*mG--exhj_m0X5Ip6koWdUw.png" /></figure><p>We add a new network adapter in the pfsense vm.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/869/1*xbUK6wcDEzXXw0whWYGyOQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*BS38b8fWKmWppBEuy45D0g.png" /></figure><p>LAN is added automatic to the interface, we write static ip here and select the enable interface button.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*yxa2BaGljkeE1ajAB13yuQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*mzD3qpwzvFeo5Xv7lz73HQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*KqUgjiIHiDe1E3GBa2DJYQ.png" /></figure><p>We enter the network configs of the Windows endpoint and write the IP of the firewall in the gateway address part.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*WvJ4ke6w1u70TS_bS3mFFA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*dreM5evwNcoVGRfR3xMX8w.png" /></figure><p>We change the ubuntu endpoint’s adapter and we can access the pfsense site automatically.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*U0Mtcwhlo6HUf3hGnTJhzA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*GUboRMRJtWN1n7HL65J4IQ.png" /></figure><h3>AtomicRedTeam</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/1*PqF7FqDjP9Jg7miJEluSLw.png" /></figure><p>For assistance with the installation of Atomic Red Team, you can refer to the following resources:</p><ol><li><strong>Installation Guide</strong>: Detailed instructions are available on the official GitHub page: <a href="https://github.com/redcanaryco/invoke-atomicredteam/wiki/Installing-Invoke-AtomicRedTeam">Installing Invoke-AtomicRedTeam</a></li><li><strong>Red Canary GitHub</strong>: Explore additional tools and documentation provided by Red Canary: <a href="https://github.com/redcanaryco">Red Canary GitHub Repository</a></li><li><strong>Video Tutorial</strong>: A video guide that walks through the installation process: <a href="https://www.youtube.com/watch?v=_xW3fAumh1c&amp;t=726s">Atomic Red Team Installation Video</a></li></ol><p>These resources will provide comprehensive guidance and support for setting up Atomic Red Team effectively.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*QmPnOXlvAcTEQbkMHyvfjA.png" /></figure><p>When testing with Atomic Red Team, it’s important to ensure that Windows Defender does not interfere with the process. To prevent this, you should disable real-time protection and any scheduled scans temporarily.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*PPgtVJDhE9tSmy_l20L8YQ.png" /></figure><p>On the C: drive, create a new folder named AtomicRedTeam. Extract the downloaded Atomic Red Team files into the AtomicRedTeam folder you created.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*15m-REWq5D101YlOAAK6CA.png" /></figure><p>To download and install the necessary modules for Atomic Red Team, you can use PowerShell.</p><p>powershell -exec bypass</p><p>Install-Module -Name invoke-atomicredteam,powershell-yaml -Scope CurrentUser</p><p>Import-Module “C:\AtomicRedTeam\invoke-atomicredteam\Invoke-AtomicRedTeam.psd1” -Force</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*fhOxLOPqD996HQxPKdkH-Q.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*ct2UvmoWXwbw5uDgQw58cQ.png" /></figure><h3>NESSUS</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/733/1*AHDswNlFqTJA04gU8eVmQQ.png" /></figure><p>You can download Nessus from its official website.</p><p><a href="https://www.tenable.com/downloads/nessus?loginAttempted=true">https://www.tenable.com/downloads/nessus?loginAttempted=true</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*SnNB5ZgRAz--n7X_JY_p0Q.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*TLPc5O9lJeQLmBgFI8Kxzg.png" /></figure><p>Change to the directory where the Nessus .deb file is located.Use the dpkg command to install the Nessus package:</p><p>sudo dpkg -i nessus-&lt;version&gt;.deb</p><p>Replace nessus-&lt;version&gt;.deb with the actual file name of the Nessus installer you downloaded.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*ESuXdTlcSTJAhWw4VaMlQA.png" /></figure><p>At the end of the installation process, you will be able to access Nessus through its web interface.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*_WstnozQZyaNL_VB7uw0XA.png" /></figure><p>After installation, start the Nessus service with:</p><p>sudo systemctl start nessusd</p><p>Enable Nessus to start on boot:</p><p>sudo systemctl enable nessusd</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*eBDPYH9_iurS04duUBv59g.png" /></figure><p>Press continue.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*e90Ic3S4CWdLZoB9d5oUng.png" /></figure><p>Select second option and continue.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/533/1*6-O6ck8TsjHOBLQTqkIlPw.png" /></figure><p>After accessing the Nessus web interface, you’ll need to complete the registration process and enter the activation key.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/508/1*xdWhf6swHUpxO1iyQBk2yA.png" /></figure><p>Create account.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/478/1*qvT4xbup2lEYTUrXicm1hw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*o0qNtHPPW2FXN2eQGmQkTg.png" /></figure><h3>WAZUH</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dTGksRF1TacMNjr2dfks-w.png" /></figure><p>To install Wazuh, you can follow the step-by-step guide provided in the official Wazuh documentation. This guide will walk you through the installation process for Wazuh Indexer, Wazuh Manager, and other necessary components.You can access the official Wazuh installation guide here: <a href="https://documentation.wazuh.com/current/installation-guide/wazuh-indexer/step-by-step.html">Wazuh Installation Guide</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*Lt2a51FPfLkZfxB6u9zuOg.png" /></figure><p>During the Wazuh installation, you will need to modify the configuration file to include your own IP address.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*VaQExuQFFRTNgluemgKXBQ.png" /></figure><p>To install Wazuh using the installation script, you can run the wazuh-install.sh file with the -a tag, which stands for &quot;all-in-one&quot; installation. This command installs all necessary components in one go.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*faZdNnOwIY5OGzPvMlRopA.png" /></figure><p>At the end of the Wazuh installation process, the setup will provide you with the default username and password.Open your web browser and type your server’s IP address (where Wazuh is installed) into the address bar, followed by port 5601</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*mRE6xNM9EYFVRnwx850dRQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*LILZeA4jDoNJQHDMF7oIlA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*CKicg-uaTnTF9g6UT88SFg.png" /></figure><h3>SHUFFLE</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RfXdblHLQimT2iUbCcp8dQ.png" /></figure><p><strong>Cloning the Shuffle Repository and Setting Up the Database Folder</strong></p><p><strong>Clone the Shuffle Repository</strong>:</p><p>Open your terminal and run the following command to clone the Shuffle repository from GitHub:</p><p>git clone <a href="https://github.com/Shuffle/Shuffle">https://github.com/Shuffle/Shuffle</a></p><p><strong>Change Directory</strong>:</p><p>After cloning, navigate to the Shuffle directory:</p><p>cd Shuffle</p><p><strong>Create the Database Folder</strong>:</p><p>Next, create a folder named shuffle-database where Shuffle will store its database files:</p><p>mkdir shuffle-database</p><p><strong>Change Folder Permissions</strong>:</p><p>Adjust the folder permissions so that the Shuffle database can function properly. Use the chown command to give ownership to the correct user:</p><p>sudo chown -R 1000:1000 shuffle-database</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*SfYJm7sYdyu6HX_JHQy_JA.png" /></figure><p>Run the docker compose in background</p><blockquote><em>docker-compose up -d</em></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*eEkWsObsfKstngBq3AWs0Q.png" /></figure><p>Go browser and tape <strong>https:ip_address:port</strong></p><p>Set credentials.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*zmWNFmVQUoDV9gHBhHxnBg.png" /></figure><h3>THE HIVE</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PN--2SDbAcnyAUCrsdIeyQ.png" /></figure><p>For additional guidance on installing TheHive using Docker, you can refer to the official documentation provided by StrangeBee. This resource offers comprehensive instructions and details on setting up TheHive in a Docker environment.</p><p>You can access the documentation here:<br><a href="https://docs.strangebee.com/thehive/installation/docker/docker/">TheHive Docker Installation Guide</a></p><p>To set up TheHive using Docker, you’ll first need to create a docker-compose.yml file and populate it with the necessary configuration.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*N2TJkoy3d0n2NK6jCq8XZA.png" /></figure><p>Once the containers are up and running, access TheHive web interface by navigating to http://your_ip:9000 in your web browser.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*UaTWDvpl3wYUu1VoX7vakQ.png" /></figure><p>The default administrative credentials for TheHive are as follows:</p><ul><li>Username: admin@thehive.local</li><li>Password: secret</li></ul><p>Cortex web interface can be accessed by visiting http://your_ip:9001 in your browser.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*TVpFmnI2kq4SPqQaN3whFQ.png" /></figure><h3>OPENCTI</h3><p>To install <strong>OpenCTI</strong>, follow the step-by-step instructions provided at this link:</p><p><a href="https://docs.opencti.io/latest/deployment/installation/#using-docker">OpenCTI Installation Guide</a>.</p><p>This guide details each step required to deploy OpenCTI using Docker, including setting up prerequisites, configuring the environment, and running OpenCTI with Docker Compose. Following each step precisely will help ensure a successful installation.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UGKw4iPpT7_sOCI3vH7S6w.png" /></figure><p>In the next part of my guide, I cover the integration of the various tools within the SOC architecture, writing rules for threat detection, and testing those rules to ensure they are functioning as expected.</p><p>Next Part link is here : <a href="https://medium.com/@nigarismayilzada/soc-architechture-integration-part-47980a96d86d">https://medium.com/@nigarismayilzada/soc-architechture-integration-part-47980a96d86d</a></p><p>Thank you for reading!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=023411a566f8" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[SOC Architechture Integration Part]]></title>
            <link>https://medium.com/@nigarismayilzada/soc-architechture-integration-part-47980a96d86d?source=rss-ec8dc734cd0d------2</link>
            <guid isPermaLink="false">https://medium.com/p/47980a96d86d</guid>
            <dc:creator><![CDATA[Nigar Ismayilzada]]></dc:creator>
            <pubDate>Sun, 03 Nov 2024 17:20:11 GMT</pubDate>
            <atom:updated>2024-11-03T17:20:11.037Z</atom:updated>
            <content:encoded><![CDATA[<p>In this section, we will focus on the integration of various tools within our SOC architecture, writing effective rules for threat detection, and identifying vulnerabilities.</p><p><strong>Tool Integration</strong>:</p><ul><li>We will ensure that all tools, such as Wazuh, Snort, and Shuffle, are properly integrated to facilitate seamless data exchange and automation. This integration allows for real-time monitoring and response to security incidents.</li></ul><p><strong>Rule Writing</strong>:</p><ul><li>Custom rules will be created to monitor specific activities and detect potential threats. These rules will be designed to analyze network traffic, system logs, and user behaviors, enabling proactive threat identification.</li></ul><p><strong>Vulnerability Detection</strong>:</p><ul><li>We will also focus on identifying vulnerabilities within the system using tools like Nessus and Atomic Red Team. By scanning for known vulnerabilities and misconfigurations, we can strengthen our security posture and reduce potential attack surfaces.</li></ul><h3><strong>Write custom rules in SNORT</strong></h3><p>Now, we will focus on writing custom Snort rules tailored to detect specific types of attacks, including basic attacks and reconnaissance activities. This process is essential for enhancing our network security posture and identifying potential threats effectively.</p><p>Open the Snort configuration file or the directory where your Snort rules are stored. You can create a new file for your custom rules or add them to an existing rules file.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*l2dhGXwGd8YuaufE5MoLCg.png" /></figure><p>My rules:</p><p># SSH Brute Force Login Attempt<br>alert tcp any any -&gt; $HOME_NET 22 (msg:”SSH Brute Force Login Attempt”; flags:S; sid:1000003; rev:1;)</p><p># Possible DNS Tunneling<br>alert udp any any -&gt; $HOME_NET 53 (msg:”Possible DNS Tunneling”; content:”|0c|”; dsize:&gt;200; sid:1000006; rev:1;)</p><p># ICMP Ping Sweep<br>alert icmp any any -&gt; $HOME_NET any (msg:”ICMP Ping Sweep”; itype:8; sid:1000007; rev:1;)</p><p># FTP Brute Force Login Attempt<br>alert tcp any any -&gt; $HOME_NET 21 (msg:”FTP Brute Force Login Attempt”; flow:to_server,established; content:”530 Login incorrect”; sid:1000010; rev:1;)</p><p># Nmap TCP Connect Scan<br>alert tcp any any -&gt; $HOME_NET any (msg:”Nmap TCP Connect Scan”; flags:S; sid:1000011; rev:1;)</p><p># DNS Zone Transfer Attempt<br>alert tcp any any -&gt; $HOME_NET 53 (msg:”DNS Zone Transfer Attempt”; content:”|00 00 FC|”; flags:PA; sid:1000020; rev:1;)</p><ul><li>Save these rules in your local.rules file.</li><li>sudo snort -c /path/to/snort.lua -T</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*BFX2lL4Lsv9CqNShmze1_w.png" /></figure><p>After writing and testing your custom Snort rules, you can examine the log files to analyze the results of the alerts generated by Snort.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*H-rZBRQ2opP6m7-9YkVVpw.png" /></figure><p>To enable Wazuh to receive and monitor Snort logs, you must specify the path to the Snort log file in Wazuh’s configuration file (ossec.conf). This integration allows for centralized log management and enhances your overall security monitoring.</p><p><strong>Locate the Wazuh Configuration File</strong>:</p><ul><li>Open the Wazuh configuration file, typically located at /var/ossec/etc/ossec.conf.</li></ul><p><strong>Edit the Configuration File</strong>:</p><ul><li>Use a text editor to modify the ossec.conf file. Add a new &lt;localfile&gt; entry under the &lt;logging&gt; section to specify the path to the Snort log file.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*Lt5aiO4OEqbb9IWS0E0lbw.png" /></figure><p><strong>Save Changes</strong>:</p><ul><li>After adding the Snort log path, save the changes to the ossec.conf file.</li></ul><p><strong>Restart Wazuh</strong>:</p><ul><li>Restart the Wazuh manager to apply the configuration changes. You can do this with the following command:</li><li>sudo systemctl restart wazuh-manager</li></ul><h3>Vulnerability scan with NESSUS</h3><p>First, we will conduct a basic network scan using Nessus on the host where it is installed. This process will help us identify any vulnerabilities in the applications running on that host.</p><p><strong>Initiate the Scan</strong>:</p><ul><li>Open the Nessus web interface and log in with your credentials.</li><li>Create a new scan and select the “Basic Network Scan” template.</li><li>Specify the target host’s IP address or hostname.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*G76hhPRuuqpm-1M2bfZMTA.png" /></figure><p>After specifying the target IP address for your Nessus scan, you can save the scan configuration for later use. This allows you to easily initiate the scan at any time.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*1xUwsP42LGV2T01_qNXVOA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*45mpbtIGyq_JyRIeTArS1Q.png" /></figure><p>Detally report:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*e7TvC6JGBmVbg9l1MJU6gA.png" /></figure><h3>Vulnerability scan with AtomicRedTeam</h3><p><strong>Setting Up Active Directory and Adding the Windows Endpoint</strong></p><p>Before running tests with Atomic Red Team, you need to configure Active Directory and add your Windows machine to the AD environment. You can follow these two video tutorials for detailed guidance on the process:</p><ol><li><a href="https://www.youtube.com/watch?v=h3sxduUt5a8"><strong>Active Directory Setup</strong></a>: This video provides a comprehensive guide on setting up Active Directory on your network.</li><li><a href="https://www.youtube.com/watch?v=PSB3MVNgl68"><strong>Adding a Windows Endpoint to AD</strong></a>: This tutorial explains how to add a Windows machine to the Active Directory environment after AD has been configured.</li></ol><p>Following these steps will ensure that your Windows endpoint is successfully integrated into your Active Directory environment, allowing you to proceed with Atomic Red Team testing in a controlled AD setup.</p><p><strong>Collecting PowerShell Logs with Sysmon for SIEM Analysis</strong></p><p>To monitor the commands executed by Atomic Red Team in your SIEM, you need to collect PowerShell logs from the Windows endpoint. For this, Sysmon is a powerful tool that can help you track and forward detailed logs. You can follow this article to install Sysmon and configure it to collect the necessary logs:</p><p><a href="https://securitywithblue.medium.com/collecting-windows-logs-using-wazuh-sysmon-bdc154bb48c9"><strong>Collecting Windows Logs Using Wazuh and Sysmon</strong></a></p><p><a href="https://github.com/SwiftOnSecurity/sysmon-config/blob/master/sysmonconfig-export.xml">https://github.com/SwiftOnSecurity/sysmon-config/blob/master/sysmonconfig-export.xml</a></p><p>This guide explains how to install Sysmon, set up logging for processes like PowerShell, and forward these logs to your SIEM for further analysis. This will allow you to see the commands executed by Atomic Red Team in your security monitoring system.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/991/1*GgC9hFiJBQTUHgDsnL0jtg.png" /></figure><p><strong>Handling Errors While Testing Atomic Red Team</strong></p><p>If you encounter errors while testing Atomic Red Team, such as issues related to missing or corrupt modules, it is likely that you need to re-download or reinstall the necessary modules.</p><p>To fix this:</p><ol><li>Open PowerShell as an Administrator.</li><li>Run the following command to reinstall the required modules:</li></ol><p>powershell -exec bypass</p><p>Install-Module -Name invoke-atomicredteam,powershell-yaml -Scope CurrentUser</p><p>Import-Module “C:\AtomicRedTeam\invoke-atomicredteam\Invoke-AtomicRedTeam.psd1” -Force</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/883/1*YJvInoWp-q1unctzJ10wDw.png" /></figure><pre>Invoke-AtomicTest T1016</pre><p>Once you have executed Atomic Red Team tests, the commands run on the Windows endpoint will be visible in your SIEM.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4yCQPxMDtiVwvXuqOcA9aQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2Pp_Ur1Ey0iGLSM1fODfww.png" /></figure><p>Once you’ve completed your tests with Atomic Red Team, you can easily revert any changes made during the tests by using the -Cleanup plugin.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/792/1*irkc2Iw0XIEbRY6Phn7mqg.png" /></figure><p>You can continue testing additional techniques (TTPs) from Atomic Red Team to simulate various attack scenarios in your environment.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dhco4b5MViH0R62BulL5fw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mda-CP0bWO20YFgNhUWHew.png" /></figure><p><strong>Creating a Custom Rule in Wazuh</strong></p><p>To write a custom rule in Wazuh, you can navigate to the rules configuration section and add your new rule like this:</p><pre>&lt;group name=&quot;custom_windows_rules&quot;&gt;<br>  &lt;rule id=&quot;100011&quot; level=&quot;10&quot;&gt;<br>    &lt;decoded_as&gt;json&lt;/decoded_as&gt;<br>    &lt;field name=&quot;data.win.eventdata.parentCommandLine&quot;&gt;<br>      &lt;match&gt;&quot;C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe&quot; -exec bypass&lt;/match&gt;<br>    &lt;/field&gt;<br>    &lt;description&gt;PowerShell execution with bypass -exec detected&lt;/description&gt;<br>    &lt;group&gt;powershell,windows,exec_bypass&lt;/group&gt;<br>    &lt;mitre&gt;<br>      &lt;id&gt;T1086&lt;/id&gt; &lt;!-- MITRE ATT&amp;CK ID for PowerShell execution --&gt;<br>    &lt;/mitre&gt;<br>  &lt;/rule&gt;<br>&lt;/group&gt;</pre><h3>Explanation:</h3><ul><li><strong>&lt;decoded_as&gt;json&lt;/decoded_as&gt;</strong>: This specifies that the event is in JSON format.</li><li><strong>&lt;field name=&quot;data.win.eventdata.parentCommandLine&quot;&gt;</strong>: This field checks the command line that triggered the event.</li><li><strong>&lt;match&gt;</strong>: This pattern matches PowerShell executions that bypass execution policies.</li><li><strong>&lt;description&gt;</strong>: Provides a short description of the event.</li><li><strong>&lt;group&gt;</strong>: Organizes the event under relevant categories, like PowerShell or Windows events.</li><li><strong>&lt;mitre&gt;</strong>: Maps the rule to the MITRE ATT&amp;CK framework, specifying technique <strong>T1086 (PowerShell)</strong> and its associated <strong>Execution</strong> tactic.</li></ul><p>This rule will trigger a high-level alert (level 10) whenever PowerShell is executed with the -exec bypass flag, indicating potentially malicious activity.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/812/1*0zfihJN1EyQDjwHOC7SyEw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nth4rWnnktkGB8Hxb4okAg.png" /></figure><h3><strong>Integration The Hive and Cortex</strong></h3><p>To integrate Cortex with The Hive, the first step is to create a new organization in Cortex. This is important because using the default admin user’s API key can result in errors during the integration process. Follow these steps to ensure proper integration:</p><p><strong>Create a New Organization in Cortex</strong>:</p><ul><li>Log in to Cortex using the admin credentials.</li><li>Navigate to the <strong>Organizations</strong> section and create a new organization for the integration. This will allow you to assign specific API keys and permissions for The Hive to interact with Cortex.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9WwWzw5UvOmCcZCMiljLhg.png" /></figure><p><strong>Create a New User in the New Organization</strong>:</p><ul><li>Within the newly created organization, add a new user with the appropriate role (e.g., <strong>analyst</strong> or <strong>operator</strong>) depending on the access required.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LJGPMPPJ8uaEfzso0ZIRbg.png" /></figure><p><strong>Generate the API Key</strong>:</p><ul><li>After creating the user, generate an API key for this user. You will use this key for the integration with The Hive.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*K-1DpO9CH6O0aQC_0RzYHA.png" /></figure><p><strong>Configure The Hive</strong>:</p><ul><li>In The Hive, go to the <strong>Administration</strong> panel and navigate to the <strong>Connectors</strong> section.</li><li>Choose Cortex as the connector type and input the API key of the user created in Cortex.</li><li>Specify the Cortex instance URL and test the connection to ensure that The Hive is properly integrated with Cortex.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1a2iqrCXPnoi-A3rE7Moiw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/848/1*pyVtwkG9Qv_hFE6L2QoPoA.png" /></figure><h3><strong>Check IOCs with SHUFFLE</strong></h3><p>In this part, we will execute Mimikatz to obtain credentials, and then use Shuffle to automatically check the extracted hashes across various Threat Intelligence Platforms (TIPs).</p><p>Now, we’ll create a workflow in <strong>Shuffle</strong> to automate the process of checking Mimikatz-extracted hashes against Threat Intelligence Platforms (TIPs) like VirusTotal or AbuseIPDB.</p><ol><li><strong>Create a New Workflow</strong>:</li></ol><ul><li>In the <strong>Workflows</strong> section, create a new workflow.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9ZBZMrPx4fYRpgjlMowfGQ.png" /></figure><p><strong>Drag and Drop the Webhook Node</strong>:</p><ul><li>In your Shuffle workflow editor, locate the <strong>Webhook Node</strong> in the available nodes panel.</li><li>Click on it and drag it onto your workflow canvas.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nfu-CPdSA6p4We3oVAJjNg.png" /></figure><p><strong>Click on the </strong><strong>Change Me Node</strong>:</p><ul><li>Click on the node to open its configuration.</li><li>In the Call field, you&#39;ll see the default &quot;hello world&quot; text.</li><li>Delete this text to clear the current call.</li></ul><p><strong>Click the </strong><strong>+ Icon</strong>:</p><ul><li>After clearing the Call field, click the + icon next to it.</li><li>From the list, select Exec.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/461/1*vV7dqK8gFwhjNLFJqLtkAw.png" /></figure><ul><li>In your Shuffle workflow, click on the <strong>Webhook Node</strong> to open its configuration panel.</li><li>In the node configuration, you’ll see the <strong>Webhook URL</strong> that Shuffle automatically generates.</li><li>Copy this URL as we’ll need to add it to the Wazuh manager configuration.</li><li>On your Wazuh server, navigate to the configuration file (usually located at /var/ossec/etc/ossec.conf).</li></ul><pre>&lt;integration&gt;<br>    &lt;name&gt;shuffle&lt;/name&gt;<br>    &lt;hook_url&gt;YOUR_WEBHOOK_URL_HERE &lt;/hook_url&gt;<br>    &lt;alert_format&gt;json&lt;/alert_format&gt;<br>    &lt;rule_id&gt;100002&lt;/rule_id&gt;<br>  &lt;/integration&gt;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pWysQK10EbA9aktLb2ktaQ.png" /></figure><p>Then restart the Wazuh manager to apply the changes:</p><pre>systemctl restart wazuh-manager</pre><p>Now that everything is set up, we can proceed to run <strong>Mimikatz</strong> and trigger the workflow in Shuffle.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/617/1*Ywa_cYQzOCtgo4yGl0QC6w.png" /></figure><p>Start the workflow by clicking the <strong>Run</strong> or <strong>Start Workflow</strong> button.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/442/1*zlcNOo7Y0zFYNynp7ItQjQ.png" /></figure><p>After running the workflow and receiving the log, the next step is to extract the <strong>hashes</strong> from the log using regex.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uyivKcVLfDtThPOobiVcXA.png" /></figure><p>Select <strong>Regex capture group </strong>from<strong> Find Actions section. </strong>In <strong>input data</strong> <strong>field </strong>select <strong>$exec.text.win.eventdata.hashes</strong> from <strong>Execution Argument.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gaHY8YGKyYOFk10J0tO5mg.png" /></figure><p>Then type <strong>MD5=([0–9A-Fa-f]{32}) </strong>in<strong> Input data field.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/456/1*uUaGvmIZ-MT3lzpJaY7Duw.png" /></figure><p>Refresh the workflow.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/948/1*KuITNJ9cUmV2WCiSGEgMYw.png" /></figure><p>After drag and drop the <strong>VirusTotal node</strong> onto your workflow.</p><p>Click on the node and in the <strong>Action Type</strong>, select <strong>“Get Hash Report”</strong>.</p><ul><li>Visit the <a href="https://www.virustotal.com/gui/my-apikey"><strong>VirusTotal API key page</strong></a>.</li><li>Log in or create an account if needed.</li><li>Copy the provided <strong>API key</strong> from your account.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*akYrDj82SqPy-Qe8gyhjEg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HWMXOgCn3AM2D4UFeK0LJQ.png" /></figure><p>Next, select <strong>list</strong> via <strong>Change Me</strong> button with + icon from <strong>id</strong> field.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/455/1*3gQgyjqq7-wqXUHpOTSLbA.png" /></figure><p>Then refresh the workflow.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/933/1*AjOnTKJeKDWasJJW-4AOBg.png" /></figure><p>When you receive a <strong>200 status code</strong> from VirusTotal, it indicates that the request was successful, and you can analyze the response to gain insights into the file’s reputation.</p><p>Navigate through the response body to find the following path:</p><ul><li>body -&gt; attributes -&gt; last_analysis_stats -&gt; malicious</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/931/1*zUz79VNtWdpInxTFEy1Kng.png" /></figure><p>To integrate <strong>The Hive</strong> with <strong>Shuffle</strong>, you’ll need to create an analyst user in The Hive and use its API key for authentication in Shuffle.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HvbeR4dnu-_PKtCuQNzvaw.png" /></figure><p>Then select <strong>Create Alert</strong> as <strong>Find Actions. </strong>In title field, select <strong>$exec.title via </strong>clicking <strong>+ item </strong>and <strong>Execution Argument.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VIE0ePbqBjuw8Fg3azroTA.png" /></figure><p>Click Hide Body buttom.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/480/1*YRbIm3IkDUfeETisgLGNqQ.png" /></figure><p><strong>Severity:</strong> 2<br><strong>Type:</strong> Internal<br><strong>Tlp:</strong> 2<br><strong>Status: </strong>New<br><strong>Sourceref:</strong> “Rule: 100002”<br><strong>Source: </strong>Wazuh<br><strong>Pap:</strong> 2<br><strong>Flag:</strong> false<br><strong>Description:</strong> Malicious Activity: Mimikatz Detected<br>Host:$exec.text.win.system.computer<br>User:$exec.text.win.eventdata.user<br>CommandLine:$exec.text.win.eventdata.commandLine<br>Date: $exec.text.win.eventdata.utcTime</p><p>Once you’ve filled these fields, save the node and proceed with your workflow execution.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*H3Dh-endhm_uXXtY0lWUHA.png" /></figure><p><strong>ERROR HANDLING</strong></p><p>If you encounter a <strong>Bad Request</strong> error in the JSON response, particularly related to the .severity field, you can manually assign a value to the <strong>severity</strong> field as a workaround.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/981/1*fIzs6Ed7qm_QbT7k9JbR7w.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/485/1*ZdFwq-mWSj1tzfEF-y9Z-Q.png" /></figure><p><strong>Additional Part</strong>:</p><p>You can write policies in Active Directory to enforce security standards and streamline access control. For guidance on creating policies, refer to this resource: <a href="https://youtu.be/BdXauD16f-w?si=hk8uEE3MmUhw4-6p">Active Directory Policy Guide</a>.</p><p>For additional configurations in pfSense, you can use the resources provided in these videos: <a href="https://youtube.com/playlist?list=PLgfd8XL0dJ22RHN8xpglKRndH7kMm2mL8&amp;si=u2IoA7sf57Bqy1uR">pfSense Configuration Playlist</a>. This playlist covers a range of advanced settings to enhance your network setup.</p><p>Thanks for reading till the end!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=47980a96d86d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[DNSSEC nədir?Necə işləyir?]]></title>
            <link>https://medium.com/@nigarismayilzada/dnssec-n%C9%99dir-nec%C9%99-i%C5%9Fl%C9%99yir-755378bd2908?source=rss-ec8dc734cd0d------2</link>
            <guid isPermaLink="false">https://medium.com/p/755378bd2908</guid>
            <dc:creator><![CDATA[Nigar Ismayilzada]]></dc:creator>
            <pubDate>Sun, 11 Feb 2024 18:14:10 GMT</pubDate>
            <atom:updated>2024-02-11T18:14:10.173Z</atom:updated>
            <content:encoded><![CDATA[<p>DNS (Domain Name Server) xidməti domen adları və IP ünvanlarını uyğunlaşdırmaqla qoşulmaq istədiyimiz veb səhifəni göstərən protokoldur. Brauzerimizə google.com ünvanını yazdıqdan sonra brauzer əvvəlcə bu ünvanın DNS protokolu ilə harada yerləşdirildiyini sorğulayır və sonra DNS sorğusu ilə gələn IP ünvanına qoşularaq veb səhifəni göstərir. Bu proses zamanı daxil olan və gedən məlumatlar aydın şəkildə ötürülür və oxuna bilər.</p><p>Bu nöqtədə DNS sisteminin təhlükəsizlik çatışmazlıqlarını tamamlayaraq DNSSEC (Domain Name System Security Extensions) ortaya çıxdı. DNSSEC müştəri ilə DNS serveri arasında daxil olan və gedən məlumatların şifrələnmiş ötürülməsini təmin edir.</p><p>DNSSECİN KOMPONENTLƏRİ NƏLƏRDİR?</p><p>DNSSEC ilə zonanın təhlükəsizliyini təmin etmək üçün ilk addım eyni tipli bütün qeydləri <strong>resource record set’</strong>də (RRset) qruplaşdırmaqdır. Məsələn, zonanızda eyni etiketdə üç A qeydiniz varsa, onların hamısı bir A RRsetinə yığılacaq.</p><p><strong>RRSIG recordu:</strong> RRSIG recordu RRset recordlarının imzalanandan sonrakı halıdır.</p><p><strong>Zone-signing key</strong> <strong>(ZSK) :</strong> DNSSEC-in aktiv olduğu hər bir zonada ZSK public-private açar cütü var. Şəbəkə adminləri xüsusi açarla zonada hər bir RRset üçün kriptoqrafik imzalar yaradır və onları RRSIG qeydləri kimi saxlayır. Public ZSK açarı imzanı yoxlayır və DNSKEY qeydində saxlanılır.</p><p><strong>DNSKEY recordu:</strong> DNSKEY recordu public keyi saxlayır. Resolver’lər RRSIG qeydlərindəki imzaların qanuni olduğunu yoxlamaq üçün DNSKEY qeydlərindən istifadə edirlər.</p><p><strong>Key-signing key (KSK):</strong> ZSK-nın pozulmamasını təmin etmək üçün DNS ad serverlərində public ZSK-nı təsdiqləmək üçün KSK da var. O, ZSK-da public keyi imzalayır və DNSKEY qeydi üçün RRSIG yaradır. Private KSK həm ZSK, həm də KSK üçün public açarları imzalayır.</p><p><strong>DS record:</strong> DS recordu parent və child zonası arasında əlaqəni sübut edir. DS qeydləri parent zonada yerləşir və KSK-nı ehtiva edən child zonadan DNSKEY-in hash-i saxlayır.</p><p><strong>Next Secure</strong> (NSEC) recordu verilmiş zonada adın olub olmadığını müəyyən etmək üçün istifadə edilə bilər. Bir zonada qeydlərin olmadığı hallar problemini həll etmək üçün təqdim edildi, tez-tez “denial of existence” autentifikasiya problemi kimi tanınır. Hücumçular bu boşluqdan istifadə edə və vebsaytın host adı üçün NXDOMAIN cavabını saxtalaşdırmaqla saytı yararsız hala sala bilər. NSEC qeydləri, hər hansı digər qeydlər kimi, ZSK tərəfindən imzalanır və müvafiq RRSIG-ə malikdir.</p><p>NSEC3 zonadakı bütün etibarlı qeydləri siyahıya almaq üçün istifadə edilən NSEC qeydləri problemini həll etmək üçün hazırlanmışdır.</p><p>DNSSEC NECƏ İŞLƏYİR?</p><p>DNSSEC həlli və doğrulamasının əsas addımları belədir:</p><ol><li>Birincisi, müştəri özünün local təsdiqləyici(validating) rekursiv serverindən example.com üçün A qeydini tələb edir.</li><li>Validating rekursiv server, example.com kimi zonanın nüfuzlu(authoritative) serverlərinə rootdan aşağıya doğru normal rekursiya yolunu izləyir.</li><li>Sonra rekursiv server authoritative serverdən A qeydini tələb edir.</li><li>Authoritative server example.com üçün A qeydi və müvafiq RRSIG A qeydi ilə cavab verir.</li><li>Sonra rekursiv server example.com authoritative serverindən zona üçün DNSKEY qeydini soruşur.</li><li>example.com üçün səlahiyyətli server DNSKEY qeydini və example.com üçün müvafiq RRSIG DNSKEY qeydini qaytarır.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/676/1*RpMQZhMlujPbxR51NZ7QeQ.png" /></figure><p>7.Sonra rekursiv server .com-dan example.com kimi DS qeydini soruşur.</p><p>8. .com serveri DS qeydi və example.com üçün müvafiq RRSIG DS qeydi ilə cavab verir.</p><p>9. Sonra rekursiv server .com serverindən DNSKEY qeydini tələb edir.</p><p>10. .com serveri DNSKEY qeydi və müvafiq RRSIG DNSKEY qeydi ilə cavab verir.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/578/1*6pBUvz1OQto7U8Vu1kEEsw.png" /></figure><p>11. Sonra, rekursiv server kök(root) serverlərdən .com-un DS qeydini tələb edir.</p><p>12. Root serverlər .com üçün DS qeydini və müvafiq RRSIG DS qeydini qaytarır.</p><p>13. Sonra rekursiv server root üçün DNSKEY qeydini soruşur.</p><p>14. Root server DNSKEY qeydini və root üçün müvafiq RRSIG DNSKEY qeydini qaytarır.</p><p>15. Nəhayət, rekursiv server DNSKEY qeydini və root üçün müvafiq RRSIG DNSKEY qeydini yoxlamaq üçün konfiqurasiya edilmiş trust anchor’dən istifadə edir. DNSSEC-dən xəbərdar olan resolverlər artıq quraşdırılmış root serverlərin cavablarını yoxlamaq üçün lazımi açara malikdirlər.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/591/1*v7l0y0z70OxaDgYD-FMJEw.png" /></figure><p>Bu addımlar, əgər cavab əvvəlcədən yaddaşda saxlanmayıbsa, zona üçün ilk sorğunu əhatə edir. Keşləndikdən sonra zəncirin roota qədər olan bütün yoxlamalar artıq təsdiqlənmişdir. Bu halda, əgər müştəri example.com saytından fərqli A qeydi tələb edərsə, o, yalnız A qeydindəki imzanın təsdiqlənməsi işini görməlidir.</p><p>DNSSEC NƏ ÜÇÜN İŞLƏDİLİR?</p><p>DNSSEC şəbəkə təhlükəsizliyini artırmaq üçün əvəzolunmaz bir yol olsa da, o, istəmədən kritik zəiflikləri təqdim edə bilər. DNSSEC bir server, xidmət və ya şəbəkənin eyni anda birdən çox cihazdan gələn trafik tərəfindən pozulduğu distributed denial-of-service (DDoS) hücumlarının riskini artıra və təsirlərini gücləndirə bilər. DNSSEC DNS sorğu cavablarının sayını artırır, çünki texnologiya qeydləri düzgün yoxlamaq üçün əlavə sahələr və kriptoqrafik məlumat tələb edir.</p><p>Standard DNS sorğuları DNS poisoning (DNS spoofing)kimi man-in-the-middle attacklara həssasdır. Attacker DNS sorğusuna qanuni cavabı əvəz etmək üçün saxta cavab yeridir. Saxta cavab, tez-tez qanuni saytla eyni görünmək üçün konfiqurasiya edilmiş attacker tərəfindən idarə olunan serverə işarə edir. Bu, son istifadəçini olmamalı olduqları yerdə olduqlarından tamamilə xəbərsiz qoya bilər. DNSSEC müştəri cihazına qaytarmazdan əvvəl DNS sorğularına cavabları təsdiqləyir.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=755378bd2908" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>