<?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 GDB HackerOne on Medium]]></title>
        <description><![CDATA[Stories by GDB HackerOne on Medium]]></description>
        <link>https://medium.com/@gdbhackerone?source=rss-62701f453ef2------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*aidWK93rbzKba2rfcgYtog.jpeg</url>
            <title>Stories by GDB HackerOne on Medium</title>
            <link>https://medium.com/@gdbhackerone?source=rss-62701f453ef2------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 02 Dec 2026 05:48:27 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@gdbhackerone/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[Day 3 TryHackMe | Advent of Cyber 2024]]></title>
            <link>https://gdbhackerone.medium.com/day-3-tryhackme-advent-of-cyber-2024-be3592bcb47b?source=rss-62701f453ef2------2</link>
            <guid isPermaLink="false">https://medium.com/p/be3592bcb47b</guid>
            <category><![CDATA[analysis]]></category>
            <category><![CDATA[investigate]]></category>
            <category><![CDATA[kql]]></category>
            <category><![CDATA[elk-stack]]></category>
            <category><![CDATA[remote-code-execution]]></category>
            <dc:creator><![CDATA[GDB HackerOne]]></dc:creator>
            <pubDate>Wed, 04 Dec 2024 05:10:05 GMT</pubDate>
            <atom:updated>2024-12-04T05:10:05.398Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*l2wA9zpqMkjKdnZd.png" /></figure><p><em>By 𝓞𝓟 𝓚𝓮𝓿𝓲𝓷 ッ | 3/ 12/ 2024</em></p><p><strong>“Even if I wanted to go, their vulnerabilities wouldn’t allow it.”</strong></p><h3>Overview</h3><p>In today’s task, we dive deep into the investigation of a web attack from two perspectives:</p><ol><li><strong>Operation Blue</strong>: The defensive (blue team) approach to analyze and understand the attack using log analysis tools like ELK (Elasticsearch, Logstash, Kibana).</li><li><strong>Operation Red</strong>: The offensive (red team) perspective to explore how an attacker exploited vulnerabilities in the application.</li></ol><h3>Learning Objectives</h3><ul><li>Understand the basics of log analysis with ELK.</li><li>Learn how KQL (Kibana Query Language) helps in filtering and querying logs.</li><li>Explore how insecure file uploads can lead to Remote Code Execution (RCE).</li></ul><h3>Operation Blue: Investigating the Attack</h3><h4>Tools and Setup</h4><p>In this section, we focus on the tools and techniques to investigate a web attack using the ELK stack. ELK is widely used for log aggregation, visualization, and analysis, making it an essential tool in any SOC analyst’s toolkit.</p><h4>Log Analysis Using ELK</h4><p>Our task is to analyze logs from the WareVille Rails booking platform, which was targeted on <strong>October 1, 2024</strong>. We aim to uncover:</p><ul><li>How the attack was carried out.</li><li>The commands executed by the attacker.</li></ul><h4>Steps to Investigate</h4><ol><li><strong>Set Time Range in Kibana</strong><br>Set the time range in Kibana to the attack period:</li></ol><ul><li><strong>Start Time</strong>: October 1, 2024 @ 00:00:00.000</li><li><strong>End Time</strong>: October 2, 2024 @ 00:00:00.000</li></ul><ol><li><strong>Timeline Analysis</strong></li></ol><ul><li>A spike in activity between <strong>11:30:00 and 11:35:00</strong> indicates suspicious behavior.</li><li>Logs show that a file named <strong>“shell.php”</strong> was accessed with parameters c and d.</li></ul><p><strong>2. Search Query</strong><br>Use the following Kibana Query Language (KQL) syntax to filter logs:</p><pre>message: &quot;shell.php&quot;</pre><ol><li>This query retrieves all log entries containing the term shell.php.</li><li><strong>Fields to Observe</strong><br>Add the following fields to analyze the attack effectively:</li></ol><ul><li><strong>clientip</strong>: Identifies the attacker’s IP address.</li><li><strong>request</strong>: Tracks the accessed file or endpoint.</li><li><strong>verb</strong>: Monitors HTTP methods (e.g., GET or POST).</li><li><strong>auth</strong>: Checks authentication status.</li><li><strong>bytes</strong>: Observes data transfer size.</li></ul><h4>Observations</h4><ul><li>A web shell was uploaded to the server via an insecure file upload mechanism.</li><li>The attacker executed malicious commands via the shell.php file.</li></ul><h3>Operation Red: The Attack Perspective</h3><h4>Vulnerability Exploited</h4><p>The attacker exploited an <strong>insecure file upload</strong> feature in the WareVille Rails web app. This allowed them to upload a malicious PHP file (shell.php), granting them remote access to the server.</p><h4>Steps of the Attack</h4><ol><li><strong>Upload the Web Shell</strong></li></ol><ul><li>The attacker identified a file upload functionality lacking proper validation.</li><li>Uploaded shell.php containing malicious code.</li></ul><p><strong>2. Access the Shell</strong></p><ul><li>Used a crafted HTTP GET request to execute commands through the shell:</li></ul><pre>GET /shell.php?c=whoami</pre><p><strong>3. Commands Executed</strong></p><ul><li>The attacker ran commands to gather system information, escalate privileges, and compromise the server further.</li></ul><h3>KQL Syntax for Investigation</h3><p>Here are some helpful Kibana Query Language (KQL) commands for investigating logs:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/628/1*hjAGTQGfXKcHq4d5vGP5Lg.png" /></figure><p><strong>“Practical Insights: Investigating and Exploiting a Vulnerability”<br></strong>In today’s challenge, we will tackle a two-part task:</p><ol><li><strong>Blue Team Activity</strong>: Investigate the attack logs in Kibana to uncover critical evidence.</li><li><strong>Red Team Activity</strong>: Recreate the attack to understand its execution and retrieve the flag.</li></ol><p>We will analyze logs between <strong>11:30 AM and 12:00 PM on October 3, 2024</strong> and then perform the attack on the vulnerable website <strong>Frosty Pines Resort</strong>.</p><h3>Blue Team Task: Investigating the Attack with Kibana</h3><h4>Step 1: Access Kibana</h4><ul><li>Visit Kibana at <a href="http://MACHINE_IP:5601.">http://MACHINE_IP:5601.</a></li><li>Set the time filter to focus on the attack window:</li><li><strong>Start</strong>: October 3, 2024, 11:30 AM</li><li><strong>End</strong>: October 3, 2024, 12:00 PM</li></ul><h4>Step 2: Analyze Logs to Answer Questions</h4><p><strong>Where Was the Web Shell Uploaded?</strong></p><ul><li>Search for shell.php in Kibana using the query:</li></ul><pre>message: &quot;shell.php&quot;</pre><ul><li>Look for logs indicating the upload location. Typically, the request or url field contains this information.</li></ul><ol><li><strong>What IP Address Accessed the Web Shell?</strong></li></ol><ul><li>Once the upload location is identified, filter for logs where the shell.php file was accessed.</li><li>Query for shell.php and add the clientip field to observe the IP address that interacted with the web shell.</li></ul><h4>Example Queries</h4><ul><li>To find the web shell’s upload location:</li></ul><pre>message: &quot;shell.php&quot;</pre><p>To identify the accessing IP:</p><pre>request: &quot;/path/to/shell.php&quot;</pre><h3>Red Team Task: Exploiting the Vulnerability</h3><h4>Step 1: Modify the Hosts File</h4><ul><li>Map the domain frostypines.thm to the machine IP.</li></ul><pre>echo &quot;MACHINE_IP frostypines.thm&quot; &gt;&gt; /etc/hosts</pre><h4>Step 2: Access the Vulnerable Website</h4><ul><li>Visit the website at <a href="http://frostypines.thm./">http://frostypines.thm.</a></li></ul><h4>Step 3: Exploit the Vulnerability</h4><ul><li><strong>Upload Malicious Web Shell</strong>:</li><li>Find the file upload functionality on the website.</li><li>Use a malicious PHP file, such as shell.php, to exploit the insecure file upload mechanism.</li><li><strong>Trigger the Web Shell</strong>:</li><li>Access the uploaded file using a browser or a crafted HTTP GET request.<br> Example:</li></ul><pre>curl &quot;http://frostypines.thm/path/to/shell.php?c=whoami&quot;</pre><h4>Step 4: Retrieve the Flag</h4><ul><li>Use the web shell to navigate the server’s directory structure and locate the flag.txt file.<br> Example:</li></ul><pre>curl &quot;http://frostypines.thm/path/to/shell.php?c=cat /path/to/flag.txt&quot;</pre><h3>Walkthrough of Answers</h3><p><strong>Blue Question 1: Where Was the Web Shell Uploaded?</strong></p><ul><li>Search logs for the upload event using shell.php.</li><li>Identify the directory path in the request or url field.</li><li><strong>Answer Format</strong>: /directory/directory/directory/filename.php.</li></ul><p><strong>Blue Question 2: What IP Address Accessed the Web Shell?</strong></p><p>Filter logs for interactions with the uploaded shell.php.</p><ul><li>Look for the IP address in the clientip field.</li><li><strong>Answer Format</strong>: **.**.**.**.</li></ul><p><strong>Red Question: What Is the Content of the Flag?</strong></p><p>Exploit the vulnerability and execute a command to read the flag.txt file.</p><ul><li><strong>Answer Format</strong>: ***{***************}.</li></ul><h3>Takeaways</h3><h4>Blue Team Takeaways</h4><ul><li><strong>Log Analysis</strong>: Effective use of Kibana Query Language (KQL) is essential for pinpointing attack details.</li><li><strong>Monitoring and Alerts</strong>: Setting up alerts for suspicious file uploads or accesses can help detect attacks early.</li><li><strong>Blue Team Perspective</strong>: Always monitor logs for anomalies and set up alerts for suspicious activity.</li></ul><h4>Red Team Takeaways</h4><ul><li><strong>Input Validation</strong>: Ensure all user inputs, including file uploads, are thoroughly validated.</li><li><strong>Restricted Execution</strong>: Prevent execution of unauthorized files on the server.</li><li><strong>Red Team Perspective</strong>: Test for insecure features, such as file uploads, during vulnerability assessments.</li></ul><h3>Next Steps</h3><p>For further learning:</p><ul><li>Investigate how to secure file upload functionalities.</li><li>Explore advanced KQL queries and ELK visualization techniques.</li></ul><h3>Conclusion</h3><p>This practical task highlights the importance of both offensive and defensive cybersecurity practices. By investigating logs and recreating the attack, we gain a deeper understanding of vulnerabilities, and the steps required to secure web applications effectively.</p><p>By utilizing the ELK stack and KQL effectively, we were able to uncover the details of the attack and gain insights into how it was executed. This highlights the importance of log analysis in understanding the attack lifecycle and implementing effective defenses.</p><p><strong>Happy Hunting and Stay Secure!</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=be3592bcb47b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Day 2 TryHackMe | Advent of Cyber 2024]]></title>
            <link>https://gdbhackerone.medium.com/day-2-tryhackme-advent-of-cyber-2024-ecff825295c9?source=rss-62701f453ef2------2</link>
            <guid isPermaLink="false">https://medium.com/p/ecff825295c9</guid>
            <category><![CDATA[investigation]]></category>
            <category><![CDATA[elasticsearch]]></category>
            <category><![CDATA[analysis]]></category>
            <category><![CDATA[elastic]]></category>
            <category><![CDATA[siem]]></category>
            <dc:creator><![CDATA[GDB HackerOne]]></dc:creator>
            <pubDate>Wed, 04 Dec 2024 04:17:46 GMT</pubDate>
            <atom:updated>2024-12-04T04:21:56.844Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*-8Igj53aoEMtFUf1.png" /><figcaption>Elastic SIEM</figcaption></figure><p><em>By 𝓞𝓟 𝓚𝓮𝓿𝓲𝓷 ッ | 2/ 12/ 2024</em></p><h3>Investigating Security Alerts in Wareville Using ELK: A SOC-Mas Case Study</h3><p>In the festive town of Wareville, the holiday joy of SOC-mas was disrupted by malicious activity. The town’s Elastic SIEM platform became the cornerstone of an investigation into suspicious PowerShell activity. This blog walks through the investigation process, using ELK (Elasticsearch, Logstash, Kibana) to unveil key details.</p><h3>Step 1: Connecting to Elastic SIEM</h3><p>To begin, investigators connected to the Elastic SIEM using the following credentials:</p><ul><li><strong>URL</strong>: <a href="https://lab_web_url.p.thmlabs.com/">https://LAB_WEB_URL.p.thmlabs.com</a></li><li><strong>Username</strong>: elastic</li><li><strong>Password</strong>: elastic</li></ul><h3>Step 2: Investigating the Activity Timeline</h3><p>The Mayor’s office reported suspicious activity on <strong>Dec 1, 2024, between 0900 and 0930</strong>. Analysts focused on logs generated during this timeframe.</p><h3>Fields to Extract</h3><p>To uncover critical details, the following fields were added as columns in the SIEM interface:</p><ul><li><strong>host.hostname</strong>: Identifies the system where the activity occurred.</li><li><strong>user.name</strong>: Shows the user performing the activity.</li><li><strong>event.category</strong>: Ensures relevance to PowerShell activities.</li><li><strong>process.command_line</strong>: Reveals the commands executed.</li><li><strong>event.outcome</strong>: Indicates the success or failure of the activity.</li><li><strong>source.ip</strong>: Tracks the origin of the commands.</li></ul><h3>Step 3: Filtering for Specific Details</h3><p>To narrow down the investigation:</p><ul><li><strong>user.name</strong>: Filtered for service_admin to investigate the suspected account.</li><li><strong>source.ip</strong>: Filtered for 10.0.11.11 to locate the origin of the PowerShell activity.</li></ul><h3>Discovering PowerShell Commands</h3><p>McSkidy observed encoded PowerShell commands in the logs. Using event.category: process, analysts accessed detailed command logs.</p><h3>Step 4: Decoding the PowerShell Command</h3><p>Encoded PowerShell commands were in <strong>Base64</strong>. Using a decoding tool, McSkidy followed these steps:</p><ol><li><strong>Recipe 1: FromBase64</strong>: Converts Base64 to text.</li><li><strong>Recipe 2: Decode text</strong>: Converts the text to UTF-16LE (1200), the encoding used by PowerShell.</li></ol><p>The decoded command revealed <strong>Glitch’s attempt to restore Wareville’s systems.</strong></p><h3>Step 5: Key Findings</h3><h3>Failed Login Attempts</h3><ul><li><strong>Account Name</strong>: The name of the account responsible for failed login attempts was identified.</li><li><strong>Number of Attempts</strong>: Analysts counted the failed logon attempts using SIEM logs.</li></ul><h3>Glitch’s IP Address</h3><ul><li><strong>Source</strong>: source.ip field revealed <strong>Glitch&#39;s IP address.</strong></li></ul><h3>Successful Login</h3><ul><li><strong>Timestamp</strong>: Glitch’s successful login to ADM-01 was recorded as:<br><strong>Dec 1, 2024 08:54:39.000</strong></li></ul><h3>Decoded Command</h3><p>The decoded PowerShell command executed by Glitch:<br><strong>Command Details</strong>: Included steps to fix Wareville’s systems and counter Mayor Malware’s sabotage.</p><h3>Step 6: Lessons Learned</h3><h3>Leveraging ELK for Investigation</h3><p>Elastic SIEM proved invaluable for:</p><ul><li><strong>Field Customization</strong>: Tailoring the interface to display only relevant details.</li><li><strong>Filtering and Refinement</strong>: Narrowing down logs based on IP, user, and event category.</li><li><strong>Command Decoding</strong>: Providing insights into encoded malicious commands.</li></ul><h3>Operational Security (OPSEC)</h3><p>This case highlighted OPSEC mistakes, such as leaving identifiable traces (e.g., encoded commands), which enabled swift attribution.</p><h3>Conclusion</h3><p>Thanks to McSkidy’s expertise and the powerful ELK stack, Wareville successfully thwarted an attack aimed at ruining SOC-mas. The investigation uncovered malicious activity, identified the culprit, and restored peace to the town. This case underscores the importance of robust SIEM tools and analytical skills in cybersecurity.</p><h3>Further Reading:</h3><ul><li><a href="https://www.elastic.co/siem">Introduction to Elastic SIEM</a></li><li><a href="https://www.elastic.co/blog">Investigating with ELK: Best Practices</a></li></ul><p>Stay tuned for more cybersecurity adventures as we defend SOC-mas in Wareville!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ecff825295c9" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Day 1: Maybe SOC-mas music, he thought, doesn’t come from a store?]]></title>
            <link>https://gdbhackerone.medium.com/day-1-maybe-soc-mas-music-he-thought-doesnt-come-from-a-store-29251b02fd67?source=rss-62701f453ef2------2</link>
            <guid isPermaLink="false">https://medium.com/p/29251b02fd67</guid>
            <category><![CDATA[soc]]></category>
            <category><![CDATA[filesystem]]></category>
            <dc:creator><![CDATA[GDB HackerOne]]></dc:creator>
            <pubDate>Tue, 03 Dec 2024 04:02:11 GMT</pubDate>
            <atom:updated>2024-12-03T04:02:11.366Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/738/1*ZPI5xyMlLiHsPkJjtR8ugA.png" /><figcaption><em>McSkidy tapped keys with a confident grin, A suspicious website, now where to begin?She’d seen sites like this, full of code and of grime, Shady domains, and breadcrumbs easy to find.</em></figcaption></figure><p><em>By 𝓞𝓟 𝓚𝓮𝓿𝓲𝓷 ッ | 2/ 12/ 2024</em></p><h3>How the Glitch stole SOC-mas:</h3><ul><li><strong>Key Characters</strong>:</li><li><strong>Mayor Malware</strong>: A deceptive villain secretly planning to undermine the town’s cybersecurity for control.</li><li><strong>Glitch</strong>: A misunderstood outsider, initially seen as a threat but secretly working to protect Wareville against cyber threats.</li><li><strong>McSkidy Software</strong>: Wareville’s brilliant cybersecurity expert who discovers the truth.</li><li><strong>Plot Summary</strong>:</li><li>While the town celebrates, Mayor Malware executes an <strong>“evil plan”</strong> to weaken Wareville’s cyber defenses.</li><li>Glitch, despite being ostracized, silently works to fortify the town’s systems.</li><li>McSkidy detects unusual activity in the SOC systems, investigates, and uncovers that Glitch is protecting the town, not sabotaging it.</li><li>Meanwhile, Mayor Malware frames Glitch for the cyber threats to maintain control.</li><li>McSkidy joins forces with Glitch to expose Mayor Malware’s treachery and save SOC-mas.</li></ul><h3>Story Breakdown:</h3><ol><li><strong>Introduction to Wareville</strong>:</li></ol><ul><li>A tech town full of diverse families like Softwares, Freewares, Hardwares, and Firmwares.</li><li>The town is preparing for <strong>SOC-mas</strong>, their annual cybersecurity celebration.</li></ul><p><strong>2. Mount Hackit</strong>:</p><ul><li>Located outside Wareville, a mountain of discarded tech, feared by all Wares due to the presence of <strong>The Glitch</strong>, a mysterious hacker.</li></ul><p><strong>3. The Glitch’s Setup</strong>:</p><ul><li>Lives in a hidden lair on Mount Hackit, using older tech to monitor and protect Wareville’s cybersecurity.</li><li>Despite being misunderstood and feared, the Glitch starts hacking to protect SOC-mas.</li></ul><p><strong>4. Mayor Malware’s Sabotage</strong>:</p><ul><li><strong>Mayor Malware</strong>, the villain, attempts to disrupt SOC-mas by sabotaging the town’s power and security systems.</li><li>The Glitch blocks his plans but is blamed for the disturbance.</li></ul><p><strong>5. McSkidy Investigates</strong>:</p><ul><li><strong>McSkidy Software</strong>, a cybersecurity expert, identifies a connection to Mount Hackit and confronts the Glitch.</li><li>At the lair, she learns the Glitch is protecting Wareville from Mayor Malware.</li></ul><p><strong>6. Alliance is Formed</strong>:</p><ul><li>Realizing the Glitch’s true intentions, McSkidy joins forces with him.</li><li>Together, they prepare to defend SOC-mas against the mayor’s next attack.</li></ul><p><strong>7. Call to Action</strong>:</p><ul><li>The adventure invites everyone to assist McSkidy and the Glitch starting December 1st.</li></ul><h3>Main Overall Concept:</h3><p>The story uses a festive cybersecurity theme to highlight:</p><ul><li>The importance of teamwork in combating cyber threats.</li><li>Not judging based on appearances or assumptions, as even misunderstood individuals can be protectors.</li><li>The fight between good (Glitch and McSkidy) and evil (Mayor Malware) in safeguarding Wareville’s digital safety.</li></ul><p><strong>Day 1: Investigating Malicious Links</strong></p><p><strong>Story Context: </strong><br>McSkidy is investigating a suspicious website and traces it to a user named <strong>Glitch</strong>. <br>Thinking it’s a simple case, she digs deeper, unaware of the complex, hidden dangers awaiting her.</p><p><strong>Learning Objectives and Key Concepts:</strong></p><p><strong><em>1. Investigating Malicious Link Files: <br></em></strong> — Analyze suspicious links for potential threats like malware downloads, phishing schemes, or exploit kits. <br> — Tools to use: <br> — <strong>URL Scanners:</strong> VirusTotal, URLScan.io, etc. <br> — <strong>Static Analysis:</strong> Checking link structure, domain details, and hidden redirects. <br> — <strong>Dynamic Analysis:</strong> Testing the behavior of the link in a controlled sandbox environment.</p><p><strong><em>2. Operational Security (OPSEC) and Common Mistakes: </em></strong><br> — <strong>OPSEC:</strong> Measures to protect sensitive information during investigations or operations. <br><strong> — Common OPSEC Mistakes: <br></strong> — Reusing identifiers (e.g., usernames, email addresses) across multiple platforms. <br> — Visiting malicious websites directly from your work machine or exposing your IP address. <br> — Failing to anonymize your activity using tools like VPNs or Tor.</p><p><strong><em>3. Tracking and Attributing Digital Identities: <br></em></strong> — How to follow breadcrumbs left by a suspect online (e.g., usernames, email patterns, IP addresses). <br><strong> — Best Practices: </strong><br> — Cross-referencing usernames across multiple platforms using OSINT tools (e.g., Sherlock, Maltego). <br> — Leveraging WHOIS records, domain registrars, or certificate transparency logs for attribution.</p><p><strong><em>Your Approach for the Challenge:<br></em>1.</strong> <strong>Analyze the Malicious Link: <br></strong>Inspect for malicious behavior without compromising your system. Use tools like VirusTotal or a VM for safety.</p><p><strong>2. Apply OPSEC Best Practices: <br></strong>Ensure anonymity in your investigation. Use Tor or VPNs to mask your identity.</p><p><strong>3. Track “Glitch”: <br></strong> Start by gathering OSINT on “Glitch.” Look for reused usernames or linked digital footprints.</p><h3><strong>Investigating the YouTube to MP3 Converter Website</strong></h3><h4>Key Steps for Analysis:</h4><p><strong>1. Access the Website: <br></strong> — From the AttackBox, navigate to the provided `MACHINE_IP` in a web browser. <br> — Review the website layout, content, and claims critically.</p><p><strong>2. Identify Suspicious Indicators: <br></strong> — The <strong>About Page</strong> mentions “The Glitch,” immediately flagging the site for deeper investigation. <br> — Claims like “Secure” and “Safe” could be false assurances.</p><p><strong>3. Assess Known Risks: <br></strong> — <strong>Malvertising</strong>: Look for pop-ups, redirects, or ads embedded in the site. <br> — <strong>Phishing Attempts</strong>: Check for prompts requesting personal or sensitive information. <br> — <strong>Bundled Malware</strong>: Pay attention to download links, unexpected file types, or installation prompts.</p><p>Instructions to Access the Website:</p><p>Open the provided URL using the web browser on your AttackBox or system.<br>Enter a YouTube Link Paste the provided YouTube link:<br><a href="https://www.youtube.com/watch?v=dQw4w9WgXcQ">https://www.youtube.com/watch?v=dQw4w9WgXcQ</a><br>Click on the “Convert” button.</p><p>Choose File Type: Select either mp3 or mp4 as the output format.<br>This will initiate a file download named download.zip.</p><p>Locate the Downloaded File:If using the AttackBox, navigate to the /root/ directory.<br>bash<br>Copy code<br>cd /root/<br>On a local system, check your Downloads folder.</p><p>Extract the File:Right-click on download.zip and select Extract To.<br>In the extraction dialog, click Extract to unpack the contents into a folder.</p><p>Prepare for Analysis: Navigate into the extracted folder to inspect the files for further investigation.</p><p>Run the file Command on song.mp3:</p><p>Execute the following command to identify the file type:<br>bash code<br>file song.mp3<br>file somg.mp3</p><p>There are multiple ways to inspect .lnk files to reveal the embedded commands and attributes. For this room, however, we&#39;ll use <strong>ExifTool</strong></p><h3>Introduction to OPSEC</h3><p>This is a classic case of OPSEC failure.</p><p>Operational Security (OPSEC) is a term originally coined in the military to refer to the process of protecting sensitive information and operations from adversaries. The goal is to identify and eliminate potential vulnerabilities before the attacker can learn their identity.</p><p>In the context of cyber security, when malicious actors fail to follow proper OPSEC practices, they might leave digital traces that can be pieced together to reveal their identity.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=29251b02fd67" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Day 7 of MyDFIR SOC Analyst Challenge: Installing Elastic Agent on Windows Server]]></title>
            <link>https://gdbhackerone.medium.com/day-7-of-mydfir-soc-analyst-challenge-installing-elastic-agent-on-windows-server-755ca18f06b0?source=rss-62701f453ef2------2</link>
            <guid isPermaLink="false">https://medium.com/p/755ca18f06b0</guid>
            <category><![CDATA[30-day-challenge]]></category>
            <category><![CDATA[fleet-management]]></category>
            <category><![CDATA[windows-server]]></category>
            <dc:creator><![CDATA[GDB HackerOne]]></dc:creator>
            <pubDate>Sat, 07 Sep 2024 19:16:33 GMT</pubDate>
            <atom:updated>2024-09-07T19:16:33.222Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*P6fuTiRyLytRLLn1tFGAWQ.png" /></figure><p><em>By 𝓞𝓟 𝓚𝓮𝓿𝓲𝓷 ッ | 7 / 09 / 2024</em></p><p><strong>Objective</strong>: Today, we’re focusing on setting up a Windows Server that can enroll into our Fleet Server for centralized management. Let’s dive into the process step-by-step:</p><h4>Step 1: Deploy a Fleet Server</h4><ul><li>Head over to Vultr, click on “Deploy New Server.”</li><li>Select Ubuntu Server 22.04, allocate 30GB storage, 1vCPU, and 4GB RAM.</li><li>Skip auto backups and IPV6, but make sure to use Virtual Private Cloud 2.0 and select the appropriate network.</li></ul><h4>Step 2: Configure Firewall and Web GUI</h4><ul><li>Leave the firewall group as is, name the server something like “MyDFIR-Fleet-DS” and click “Deploy Now.”</li><li>Access the web GUI using your public IP address on port 5601.</li><li>Navigate to the “Fleet” section under the management tab, and click “Add Fleet Server.”</li></ul><h4>Step 3: Set Up Fleet Server</h4><ul><li>Choose the “Quick Start” option.</li><li>Input your public IP address, ensuring it’s formatted correctly with “HTTPS” and port 8220.</li><li>Generate the Fleet server policy, copy the provided command, and prepare to paste it into the Fleet Server once it’s up and running.</li></ul><h4>Step 4: SSH into Fleet Server</h4><ul><li>Log into your Ubuntu Fleet Server using SSH and update your repositories.</li><li>Paste the Fleet Server command to install the Elastic Agent and confirm connection to the Elastic Stack.</li></ul><h4>Step 5: Troubleshooting</h4><ul><li>Modify the firewall rules to allow port 9200, ensuring Elastic Agent can communicate with the Elastic Stack.</li><li>If connection issues arise, ensure ports 8220 and 443 are open for your Fleet Server.</li></ul><h4>Step 6: Enrolling the Elastic Agent</h4><ul><li>Once the firewall and server configurations are complete, rerun the installation command for the Elastic Agent.</li><li>If errors persist, revisit the Fleet settings to ensure the correct ports are used.</li></ul><h4>Step 7: Successfully Enrolled!</h4><ul><li>After adjusting the settings and using the “ — insecure” flag to bypass certificate errors, the Elastic Agent successfully installs.</li><li>Navigate to the “Discover” section in Elastic and search for logs. You should see your Windows Server activity, confirming successful enrollment.</li></ul><h4>What’s Next?</h4><p>Now that we’ve successfully enrolled our Windows Server into the Fleet, the next step is to dive into system activity monitoring using Sysmon. Stay tuned for the next blog post where we’ll explore this powerful Windows service.</p><p><strong>Conclusion</strong>: Day 7 was packed with valuable troubleshooting lessons and hands-on experience with Elastic Stack and Fleet Server. Each step brings us closer to mastering the skills necessary for a SOC Analyst role.</p><p>Stay tuned for Day 8, where we’ll enhance our monitoring capabilities!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=755ca18f06b0" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Day 6: Centralized Management with Fleet Server and Elastic Agent]]></title>
            <link>https://gdbhackerone.medium.com/day-6-centralized-management-with-fleet-server-and-elastic-agent-797a0ea0d7e3?source=rss-62701f453ef2------2</link>
            <guid isPermaLink="false">https://medium.com/p/797a0ea0d7e3</guid>
            <category><![CDATA[fleet-server]]></category>
            <category><![CDATA[elasticsearch]]></category>
            <category><![CDATA[dfir]]></category>
            <category><![CDATA[fleet-management]]></category>
            <dc:creator><![CDATA[GDB HackerOne]]></dc:creator>
            <pubDate>Sat, 07 Sep 2024 01:38:23 GMT</pubDate>
            <atom:updated>2024-09-07T01:44:32.535Z</atom:updated>
            <content:encoded><![CDATA[<p><em>By 𝓞𝓟 𝓚𝓮𝓿𝓲𝓷 ッ | 6/ 09 / 2024</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JSO_Ya-Zlq8a-qUjAkEERw.png" /></figure><p>Welcome to Day 6 of the <strong>30-Day MyDFIR SOC Analyst Challenge!</strong> If you’ve been following along, you’re well on your way to gaining practical experience as a SOC Analyst. If you’re just joining us, I highly recommend starting from Day 1 to get the full benefit of this challenge.</p><p>Today’s focus is on a critical aspect of managing a large-scale network — centralized log collection and management using <strong>Elastic Agent</strong> and <strong>Fleet Server</strong>. We’ll delve into what these components are, why they are essential, and provide a step-by-step guide to setting up your own Fleet Server and enrolling your endpoints.</p><h3>Understanding Elastic Agent</h3><p>The <strong>Elastic Agent</strong> is a unified solution that allows for the collection of logs, metrics, and other types of data from various endpoints. Unlike the traditional approach where you might need multiple Beats (Filebeat, Metricbeat, etc.) for different types of data collection, the Elastic Agent consolidates this into a single entity. This simplification makes it easier to manage and scale your data collection efforts.</p><h3>Key Features of Elastic Agent</h3><p>The <strong>Elastic Agent</strong> is a powerful and versatile tool that significantly enhances the way organizations manage and monitor their IT infrastructure. Here’s a deeper look into its core features:</p><h4>1. Unified Data Collection</h4><ul><li><strong>Centralized Logging</strong>: Elastic Agent simplifies the process of collecting logs from various sources, such as system logs, application logs, and network logs, into a single, unified agent. This centralization reduces the overhead of managing multiple log collectors and ensures consistency across your logging infrastructure.</li><li><strong>Metrics Gathering</strong>: In addition to logs, the Elastic Agent can gather a wide range of metrics, including CPU usage, memory consumption, disk I/O, network traffic, and more. This data is crucial for performance monitoring, capacity planning, and troubleshooting.</li><li><strong>Security Data</strong>: The agent can also be configured to collect security-related data, such as audit logs, threat detections, and compliance-related events. This helps in maintaining a robust security posture by providing real-time visibility into potential security incidents.</li></ul><h4>2. Policy Management</h4><ul><li><strong>Dynamic Policy Updates</strong>: One of the standout features of Elastic Agent is its ability to dynamically update policies across all enrolled endpoints. Whether you need to add a new log source, modify an existing integration, or adjust security settings, you can do so with just a few clicks in the Kibana interface.</li><li><strong>Automated Rollouts</strong>: Once a policy is updated, it’s automatically rolled out to all connected agents. This eliminates the need for manual intervention, ensuring that all endpoints are always up-to-date with the latest configurations.</li><li><strong>Custom Policies</strong>: You can create custom policies tailored to specific environments or use cases. For example, you might have different policies for production, development, and testing environments, each with its own set of log collection rules and security settings.</li></ul><h4>3. Integration Flexibility</h4><ul><li><strong>Elasticsearch Integration</strong>: Elastic Agent seamlessly integrates with Elasticsearch, making it easy to store, search, and analyze the data collected. Elasticsearch’s powerful search and analytics capabilities allow you to gain deep insights into your logs and metrics.</li><li><strong>Logstash Support</strong>: For more complex data processing needs, Elastic Agent can forward data to Logstash, where you can apply advanced filtering, enrichment, and transformation before sending it to Elasticsearch or other destinations.</li><li><strong>Third-Party Integrations</strong>: Elastic Agent also supports a wide range of third-party integrations, allowing you to extend its capabilities. For instance, you can integrate with cloud services like AWS or Azure, or with security tools like SIEM platforms and threat intelligence feeds.</li></ul><h4>4. Scalability</h4><ul><li><strong>Efficient Resource Usage</strong>: Elastic Agent is designed to be lightweight and efficient, minimizing the impact on system resources. This makes it suitable for deployment on a wide range of endpoints, from servers to workstations, and even IoT devices.</li><li><strong>Horizontal Scalability</strong>: As your organization grows, you can easily scale your deployment by adding more agents and Fleet Servers. The architecture is built to handle large-scale deployments, with thousands of agents reporting to multiple Fleet Servers.</li><li><strong>Multi-Platform Support</strong>: Elastic Agent is compatible with various operating systems, including Windows, Linux, and macOS. This cross-platform support ensures that you can deploy it across your entire IT environment, regardless of the underlying OS.</li></ul><h4>5. Security and Compliance</h4><ul><li><strong>Endpoint Security</strong>: Elastic Agent includes built-in security features that help protect your endpoints. This includes capabilities like malware detection, endpoint detection and response (EDR), and behavioral analysis.</li><li><strong>Compliance Monitoring</strong>: The agent can be configured to monitor compliance-related events and generate alerts when non-compliant activities are detected. This is particularly useful for organizations subject to regulatory requirements, such as GDPR, HIPAA, or PCI-DSS.</li><li><strong>Encrypted Communication</strong>: All data collected by the Elastic Agent is encrypted in transit, ensuring that sensitive information is protected from unauthorized access.</li></ul><h4>6. Real-Time Monitoring and Alerts</h4><ul><li><strong>Immediate Insights</strong>: With Elastic Agent, data is collected and forwarded in near real-time, allowing you to monitor your environment with minimal delay. This real-time capability is crucial for detecting and responding to incidents as they happen.</li><li><strong>Custom Alerts</strong>: You can configure custom alerts based on specific conditions or thresholds. For example, you can set up alerts for high CPU usage, unexpected log entries, or security incidents. These alerts can be sent via various channels, such as email, Slack, or integrated with other incident response systems.</li></ul><h3>Fleet Server: The Centralized Management Hub</h3><p>As your network grows, managing each Elastic Agent individually becomes impractical. This is where the <strong>Fleet Server</strong> comes into play. The Fleet Server acts as a centralized management hub, allowing you to control all your Elastic Agents from a single location. This is especially useful when you need to update agent policies, add new data integrations, or even unenroll agents.</p><h3>Benefits of Using a Fleet Server</h3><p>Managing an extensive network of endpoints can be challenging, particularly when it comes to ensuring consistent configurations, maintaining up-to-date policies, and routing logs efficiently. The Fleet Server addresses these challenges by providing a centralized, scalable, and flexible solution for managing Elastic Agents across your infrastructure. Here’s an in-depth look at its key benefits:</p><h4>1. Centralized Management</h4><ul><li><strong>Single Pane of Glass</strong>: The Fleet Server acts as a central management hub, allowing administrators to control all Elastic Agents from one interface within Kibana. This centralized approach significantly reduces the complexity involved in managing a large number of agents. Instead of logging into individual machines or using disparate tools, you can monitor, manage, and update all your agents from a single location.</li><li><strong>Visibility Across Endpoints</strong>: With centralized management, you gain complete visibility into the status of all agents across your network. You can easily see which agents are online, which are reporting errors, and whether they are running the latest policies. This holistic view is crucial for maintaining the health and security of your environment.</li><li><strong>Streamlined Operations</strong>: By consolidating management tasks into one platform, Fleet Server streamlines operational workflows. Routine tasks like enrolling new agents, updating configurations, and troubleshooting issues can be performed quickly and efficiently, freeing up time for more strategic initiatives.</li></ul><h4>2. Simplified Policy Updates</h4><ul><li><strong>Mass Deployment of Changes</strong>: One of the most significant advantages of Fleet Server is the ability to push policy updates to all enrolled agents simultaneously. Whether you need to deploy a new log collection rule, modify an existing integration, or update security settings, these changes can be rolled out across your entire fleet with a few clicks.</li><li><strong>Minimized Human Error</strong>: Manual updates are prone to errors, especially in large environments. Fleet Server mitigates this risk by ensuring that policy updates are applied consistently and accurately across all agents. This consistency helps maintain the integrity of your data collection and security posture.</li><li><strong>Version Control and Rollback</strong>: Fleet Server supports version control for policies, allowing you to track changes and revert to previous versions if necessary. This feature is particularly useful when testing new configurations or when an update causes unexpected issues.</li></ul><h4>3. Scalability</h4><ul><li><strong>Efficient Management of Large-Scale Deployments</strong>: As organizations grow, the number of endpoints they manage can increase exponentially. Fleet Server is designed to handle this growth, enabling you to efficiently manage hundreds or even thousands of Elastic Agents. Its architecture is built to support large-scale deployments, ensuring that performance remains stable even as the number of connected agents increases.</li><li><strong>Horizontal Scalability</strong>: If your environment expands beyond the capacity of a single Fleet Server, you can easily add additional Fleet Servers to distribute the load. This horizontal scalability ensures that your management infrastructure can grow alongside your organization without sacrificing performance or reliability.</li><li><strong>Automated Enrollment</strong>: Fleet Server simplifies the process of enrolling new endpoints. Agents can be automatically enrolled into the Fleet upon installation, reducing the administrative overhead associated with scaling up your infrastructure. This automation ensures that new endpoints are quickly brought under management and begin reporting data without delay.</li></ul><h4>4. Flexible Data Routing</h4><ul><li><strong>Customizable Data Flow</strong>: Fleet Server provides the flexibility to route data collected by Elastic Agents to different destinations based on your specific needs. Whether you want to send logs directly to Elasticsearch for real-time analysis or to Logstash for advanced processing, Fleet Server allows you to configure these routes easily.</li><li><strong>Multi-Destination Support</strong>: In complex environments, you might need to send different types of data to different destinations. For example, security logs might be routed to a dedicated SIEM, while performance metrics are sent to a monitoring platform. Fleet Server’s flexible data routing capabilities support such scenarios, allowing you to tailor data flows to meet the unique requirements of your organization.</li><li><strong>Adaptability to Changing Requirements</strong>: As your data management needs evolve, Fleet Server allows you to quickly adjust data routing rules. This adaptability ensures that your data collection and processing pipelines remain aligned with your business objectives, even as those objectives change over time.</li></ul><h4>5. Enhanced Security and Compliance</h4><ul><li><strong>Centralized Security Controls</strong>: With Fleet Server, you can enforce consistent security policies across all endpoints. This centralized control helps ensure that all agents adhere to the same security standards, reducing the risk of misconfigurations or vulnerabilities.</li><li><strong>Compliance Monitoring and Reporting</strong>: Fleet Server enables organizations to monitor compliance-related activities across all managed endpoints. By centralizing data collection and policy management, Fleet Server simplifies the process of demonstrating compliance with regulatory requirements, such as GDPR, HIPAA, or PCI-DSS.</li><li><strong>Role-Based Access Control (RBAC)</strong>: Fleet Server integrates with Kibana’s RBAC, allowing you to define who can manage agents, modify policies, or access specific data. This granular control over permissions helps protect sensitive information and ensures that only authorized personnel can make critical changes.</li></ul><h3>Step-by-Step Guide to Setting Up Fleet Server and Elastic Agent</h3><p>Now that you understand the importance of Elastic Agent and Fleet Server, let’s dive into the setup process.</p><h4>Step 1: Install Elasticsearch and Kibana</h4><p>Before setting up the Fleet Server, ensure that Elasticsearch and Kibana are installed and running. If you haven’t done this yet, refer to our Day 2 guide where we covered the installation of the ELK stack.</p><h4>Step 2: Enable Fleet in Kibana</h4><ol><li><strong>Access Kibana</strong>: Log in to your Kibana dashboard.</li><li><strong>Navigate to Fleet</strong>: Go to the “Management” section and click on “Fleet”.</li><li><strong>Enable Fleet</strong>: If Fleet is not enabled, Kibana will prompt you to enable it. Follow the on-screen instructions to do so.</li></ol><h4>Step 3: Set Up the Fleet Server</h4><ol><li><strong>Download Elastic Agent</strong>: In the Fleet section, you’ll find an option to download the Elastic Agent. Choose the appropriate version for your operating system.</li><li><strong>Run the Installer</strong>: Run the installer on your designated Fleet Server machine.</li><li><strong>Enroll in Fleet</strong>: During installation, the agent will ask if you want to enroll in Fleet. Choose “Yes” and follow the prompts. You’ll need the URL of your Fleet Server and an enrollment token, which can be generated in Kibana.</li></ol><h4>Step 4: Configure the Fleet Server</h4><ol><li><strong>Set Up the Policy</strong>: In Kibana, navigate to the “Fleet” section and click on “Policies”. Here, you can create a new policy or use the default one. This policy will dictate what data is collected and where it is sent.</li><li><strong>Add Integrations</strong>: Depending on what data you want to collect (e.g., logs, metrics, security data), you can add integrations to your policy.</li><li><strong>Assign Policy to Agents</strong>: Once the policy is ready, you can assign it to your enrolled agents. The Fleet Server will push this policy to all connected agents.</li></ol><h4>Step 5: Enroll Endpoints into Fleet</h4><ol><li><strong>Install Elastic Agent on Endpoints</strong>: Repeat the Elastic Agent installation on each endpoint you want to manage. During installation, ensure they are enrolled in your Fleet Server using the same process as Step 3.</li><li><strong>Verify Enrollment</strong>: Back in Kibana, you should see all your enrolled agents listed under the “Agents” tab in the Fleet section.</li></ol><h4>Step 6: Monitor and Manage</h4><p>With your Fleet Server and Elastic Agents set up, you can now monitor the status of all your agents, push updates, and modify policies as needed — all from the Kibana interface.</p><h3>Conclusion</h3><p>By using Elastic Agent and Fleet Server, you’ve streamlined the process of managing log collection across a large number of endpoints. This setup not only saves time but also reduces the risk of errors and ensures that all your endpoints are consistently configured. In our next session, we’ll dive deeper into installing Elastic Agent on various endpoints and fine-tuning your Fleet Server settings for optimal performance.</p><p>Remember, the key to success in this challenge is consistency and curiosity. Keep pushing forward, and soon you’ll have the practical experience needed to excel as a SOC Analyst. Stay tuned for Day 7!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=797a0ea0d7e3" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Day 5 of MyDFIR SOC Analyst Challenge: Setting Up Your Windows Server in the Cloud]]></title>
            <link>https://gdbhackerone.medium.com/day-5-of-mydfir-soc-analyst-challenge-setting-up-your-windows-server-in-the-cloud-4c0e33882f0d?source=rss-62701f453ef2------2</link>
            <guid isPermaLink="false">https://medium.com/p/4c0e33882f0d</guid>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[rdp]]></category>
            <category><![CDATA[windows-server]]></category>
            <category><![CDATA[mydfir]]></category>
            <category><![CDATA[soc-analyst]]></category>
            <dc:creator><![CDATA[GDB HackerOne]]></dc:creator>
            <pubDate>Thu, 05 Sep 2024 17:40:40 GMT</pubDate>
            <atom:updated>2024-09-05T17:40:40.711Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xlOat6WzhqMnbIZYo2ivvg.png" /></figure><p><strong>Introduction:</strong> Welcome to Day 5 of the 30-Day MyDFIR SOC Analyst Challenge! Today&#39;s objective is all about creating a Windows Server that acts as your target machine in the cloud, with RDP (Remote Desktop Protocol) exposed to the internet. This setup is crucial for simulating real-world scenarios where you might need to access and manage servers remotely.</p><p><strong>Step 1: Getting Started</strong> To kick off, head over to Vultr and select &quot;Deploy New Server.&quot;</p><ul><li><strong>Type:</strong> Cloud Compute (Shared CPU)</li><li><strong>Location:</strong> Choose the same location as your previous deployments to keep things consistent.</li><li><strong>Image:</strong> Windows Standard Version 2022</li><li><strong>Plan:</strong> Regular Cloud Compute at $24/month with one vCPU and 2 GB of memory</li><li><strong>Auto Backup:</strong> NO</li><li><strong>IPv6:</strong> NO</li></ul><p>For this setup, we will move the Windows Server and Ubuntu Server out of the VPC network area.</p><p>The update would look something like this</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1008/1*OnnknzbsAOpVIzFAueGo9g.png" /></figure><p><strong>Step 2: Configure Your Server</strong> Next, add your Server Hostname and Label. Ensure the hostname follows the format: <strong>MYDFIR-WIN-(YourUserName)</strong>. After that, click “Deploy Now.”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9iMDb-df0nbtlb3pDVdhZQ.png" /></figure><p>Once the server is deployed, give it some time to spin up. Check the status, and once it&#39;s running, you&#39;ll have access to the details of your machine.</p><p><strong>Step 3: Access Your Server</strong> Click on “View Console” on the right side of the screen to access your new Windows Server. Use the credentials provided by Vultr to log in. Once inside, ensure that RDP is exposed to the internet and that you can log in using your IP.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/408/1*Tb4MB5LFtFL_MQLSxpYltg.png" /></figure><p><strong>Conclusion:</strong> Congratulations! You now have a fully operational Windows Server in the cloud with RDP exposed to the internet. In the next part of the challenge, we’ll dive into setting up a Fleet Server and how it can be utilized for easy configurations across your endpoints.</p><p>Stay tuned and keep pushing your skills to the next level!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4c0e33882f0d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Day 4 of MyDFIR SOC Analyst Challenge: Setting Up and Configuring Kibana]]></title>
            <link>https://gdbhackerone.medium.com/day-4-of-mydfir-soc-analyst-challenge-setting-up-and-configuring-kibana-0bbd89a1571f?source=rss-62701f453ef2------2</link>
            <guid isPermaLink="false">https://medium.com/p/0bbd89a1571f</guid>
            <category><![CDATA[installa]]></category>
            <category><![CDATA[kibana]]></category>
            <category><![CDATA[configuration]]></category>
            <dc:creator><![CDATA[GDB HackerOne]]></dc:creator>
            <pubDate>Wed, 04 Sep 2024 18:24:53 GMT</pubDate>
            <atom:updated>2024-09-04T18:40:15.091Z</atom:updated>
            <content:encoded><![CDATA[<p>Welcome to Day 4 of the 30-Day MyDFIR SOC Analyst Challenge! Today, we’re diving into Kibana, the powerful visualization tool that works alongside Elasticsearch to help you search, view, and interact with data stored in the Elastic Stack.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*toI7EByBusJ1Q0FxEw1C6Q.png" /><figcaption>KIBANA Instance</figcaption></figure><h3>Step 1: Download and Install Kibana</h3><p>To begin, download Kibana from the official Elastic website:</p><ul><li>Visit <a href="https://www.elastic.co/downloads/kibana">elastic.co/downloads/kibana</a> and grab the latest version.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/726/1*9XflUkPGBevWcFNiLa92HA.png" /></figure><p>Next, we’ll depackage the downloaded file:</p><pre>dpkg -i kibana-8.15.0-amd64.deb</pre><h3>Step 2: Modify the Configuration File</h3><p>We need to configure the Kibana instance to ensure it runs correctly. Open the Kibana configuration file:</p><p>Make the following changes:</p><ul><li>Set the server port to 5601</li><li>Set the server host to your localhost IP</li></ul><pre>nano /etc/kibana/kibana.yml<br><br>server.port: 5601<br>sever.host: localhostIP</pre><h3>Step 3: Enable and Start the Kibana Service</h3><p>Once the configuration is set, reload the system daemon and start the Kibana service:</p><pre>systemctl demon-reload<br>systemctl enable kibana.service<br>systemctl start kibana.service<br>systemctl status kibana.service</pre><pre>cd /usr/share/elasticsearch/bin</pre><h3>Step 4: Generate an Enrollment Token for Kibana</h3><p>To connect Kibana to Elasticsearch, we need an enrollment token:</p><pre>/usr/share/elasticsearch/bin# ./elasticsearch-create-enrollment-token --scope kibana</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*S74STZcokKmRsL8mUgZ42g.png" /></figure><h3>Step 5: Allow Access Through the Firewall</h3><p>To access Kibana from your web portal, you’ll need to allow access through the firewall:</p><pre>ufw allow 5601</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OxJq9XJnYe0-Fp4cfdGUCg.png" /></figure><h3>Step 6: Access Kibana and Use the Enrollment Token</h3><p>Open Kibana in your web browser and enter the enrollment token generated earlier.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/811/1*YeNjZPHYfO5N9Us2QML36w.png" /></figure><h3>Step 7: Generate and Enter the Verification Code</h3><p>To verify Kibana, you’ll need a verification code</p><pre>cd /usr/share/kibana/bin<br>ls<br>./kibana-verificantion-code</pre><p>Enter the code, and then log in using the credentials provided in the “Security Configuration Information”:</p><ul><li><strong>Username:</strong> elastic</li><li><strong>Password:</strong> [Your Password]</li></ul><h3>Step 8: Configure Kibana Encryption Keys</h3><p>Before wrapping up, we need to generate and set up encryption keys for various Kibana features: Once you are logedin we can explore and look more into it but befor we end it here we have one configuration that we need to look into</p><pre>cd /usr/share/kibana/bin#<br>./kibana-encryption-keys generate</pre><p>You’ll get three keys for:</p><ul><li>Encrypted Saved Objects</li><li>Reporting</li><li>Security</li></ul><p>Add these keys to the Kibana keystore:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1012/1*UFO95ax0qJ9ww5BV4PDk4A.png" /></figure><p>then add the encryption saved object</p><pre>./kibana-keystore add xpack.encriptionSavedObjects.encriptionkey</pre><p>add reporting encription key</p><pre>./kibana-keystore add xpack.reporting.encryptionKey</pre><p>add security encription key</p><pre>./kibana-keystore add xpack.security.encryption</pre><h3>Step 9: Restart the Kibana Service</h3><p>Finally, restart the Kibana service to apply all configurations:</p><pre>Systemctl restart kibana.service</pre><p>Once you log back into Kibana, you should no longer see the API Integration error. Your Kibana instance is now up and running with all necessary configurations!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=0bbd89a1571f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Day 3 of MyDFIR: Do Things DFIRINTLY]]></title>
            <link>https://gdbhackerone.medium.com/day-3-of-mydfir-do-things-dfirintly-f31ff585a381?source=rss-62701f453ef2------2</link>
            <guid isPermaLink="false">https://medium.com/p/f31ff585a381</guid>
            <category><![CDATA[virtualization]]></category>
            <category><![CDATA[vm]]></category>
            <category><![CDATA[vmware]]></category>
            <category><![CDATA[elk-stack]]></category>
            <dc:creator><![CDATA[GDB HackerOne]]></dc:creator>
            <pubDate>Tue, 03 Sep 2024 18:18:50 GMT</pubDate>
            <atom:updated>2024-09-07T01:45:02.625Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/496/1*I1SLRGBMxQen-SM7ZanHfA.png" /></figure><p><strong><em>Welcome to Day 3 of the 30-Day MyDFIR SOC Analyst Challenge! Let’s Get Started.</em></strong></p><p>Day 3 of MyDFIR: Spinning Up an Elasticsearch Instance</p><p><em>By 𝓞𝓟 𝓚𝓮𝓿𝓲𝓷 ッ | 3/ 09 / 2024</em></p><p>ToWelcome to Day 3 of the 30-Day MyDFIR SOC Analyst Challenge! If you’re just joining, I highly recommend starting from Day 1 to get the full experience of this hands-on journey toward becoming a proficient SOC analyst. Today, we’re diving into setting up our own Elasticsearch instance, which is a crucial part of the Elastic Stack, commonly used for search, logging, and analytics in cybersecurity.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/794/1*w1HlZ1X5RX-Uzg36xTyTWw.png" /></figure><p>To begin, head over to [Vultr](<a href="https://www.vultr.com/">https://www.vultr.com</a>) and sign up for an account if you haven’t done so already. As a bonus, you can use a $300 credit to get started, which is more than enough to complete this 30-day challenge.</p><p>Once signed in, navigate to the <strong>Products </strong>section on the left-hand side, click on <strong>Network</strong> at the bottom, and select <strong>VPC 2.0</strong>. This is where we’ll create our Virtual Private Cloud (VPC) network.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*C7zKI7hjN2WpcK9l1pRkAw.png" /></figure><p>Creating a Virtual Private Cloud Network</p><ol><li>Add a VPC: Click on Add VPC and select your network location. Ensure all your virtual machines are in the same location as your VPC. For example, if your VPC is in Mumbai, all your VMs should also be in Mumbai to ensure connectivity.<br> <br>2. Configure IP Range: Select Configure IPv4 Range and set your network address, for example, `172.31.0.0/24`. Name your network (e.g., “MyDFIR SOC Challenge”) and click Add Network. You now have your VPC network ready.</li></ol><p>Deploying Your Virtual Machine</p><p>Next, we’ll create our virtual machine:</p><p>1. Deploy New Server: Click on Deploy in the top right corner, select Deploy New Server, and choose your location (same as your VPC location).<br> <br>2. Choose Image: For the Elasticsearch instance, select Ubuntu 22.04 LTS. Choose a server type with at least 4 vCPUs and 16 GB of RAM.</p><p>3. Networking: Disable auto-backups, uncheck IPv6, and select your VPC network created earlier. Note the private IP address assigned (e.g., `172.31.0.3`).</p><p>4. Finalize: Name your server (e.g., “MyDFIR-ELK”), and click Deploy. Wait for the status to change to “Running.”</p><p>Accessing and Configuring Your VM</p><p>After deployment, access your VM via SSH:</p><p>1. SSH Login: Open PowerShell and type `ssh root@&lt;public-ip-address&gt;` (replace with your VM’s public IP).<br> <br>2. Update the System: Once logged in, update the system with the following commands:<br> ```<br> apt-get update &amp;&amp; apt-get upgrade -y<br> ```</p><p>3. Download and Install Elasticsearch: Use `wget` to download Elasticsearch:<br> ```<br> wget <a href="https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-8.1.5-amd64.deb">https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-8.1.5-amd64.deb</a><br> ```<br> Then, install it using:<br> ```<br> dpkg -i elasticsearch-8.1.5-amd64.deb<br> ```</p><p>4. **Secure Configuration:** Make sure to copy and save the auto-generated security credentials provided during installation. If you miss them, you can reset the password using the provided command:<br> ```<br> /usr/share/elasticsearch/bin/elasticsearch-reset-password -u elastic<br> ```</p><p>Adjusting Elasticsearch Configuration</p><p>1. Edit Configuration: Navigate to the configuration file:<br> ```<br> nano /etc/elasticsearch/elasticsearch.yml<br> ```<br> Update the `network.host` to your private IP address (e.g., `172.31.0.3`), ensuring that your Elasticsearch instance is accessible from your SOC analyst workstation.</p><p>2. Start Elasticsearch Service: Enable and start the Elasticsearch service:<br> ```<br> systemctl daemon-reload<br> systemctl enable elasticsearch.service<br> systemctl start elasticsearch.service<br> ```</p><p>3. Firewall Configuration: To protect your VM, configure firewall rules in Vultr, allowing SSH access only from your IP address and limiting access to Elasticsearch to your SOC analyst laptop.</p><p>Conclusion</p><p>Congratulations! You’ve successfully set up your Elasticsearch instance. In the next part of the challenge, we’ll dive into configuring Kibana, which will allow us to interact with Elasticsearch through a powerful web interface.</p><p>Stay tuned for more, and remember to keep exploring and learning. Subscribe for more updates, and let’s continue this journey together.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f31ff585a381" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Day 2 of MyDFIR: Do Things DFIRINTLY]]></title>
            <link>https://gdbhackerone.medium.com/day-2-of-mydfir-do-things-dfirintly-8c9cbfe5d838?source=rss-62701f453ef2------2</link>
            <guid isPermaLink="false">https://medium.com/p/8c9cbfe5d838</guid>
            <category><![CDATA[forensics]]></category>
            <category><![CDATA[elk]]></category>
            <category><![CDATA[soc]]></category>
            <category><![CDATA[dfir]]></category>
            <category><![CDATA[siem]]></category>
            <dc:creator><![CDATA[GDB HackerOne]]></dc:creator>
            <pubDate>Mon, 02 Sep 2024 18:23:10 GMT</pubDate>
            <atom:updated>2024-09-02T18:23:10.592Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Day 2 of the 30-Day MyDFIR SOC Analyst Challenge!</strong></p><p><em>By 𝓞𝓟 𝓚𝓮𝓿𝓲𝓷 ッ | 2 / 09 / 2024</em></p><p>Today, we’re diving into the powerful world of the <strong>Elasticsearch, Logstash, and Kibana (ELK) Stack</strong>. This trio forms the backbone of many SOC environments, enabling you to collect, store, search, analyze, and visualize logs and other data sources efficiently. Let’s break down what ELK is all about, its features, and the installation process.</p><h4>Understanding the ELK Stack</h4><p><strong>Elasticsearch, Logstash, and Kibana</strong> are designed to work together seamlessly, providing a robust platform for data analysis and visualization.</p><ul><li><strong>Elasticsearch</strong> is a distributed, RESTful search and analytics engine. It’s built to handle a wide range of use cases and scales effortlessly by adding nodes to the cluster as your data grows.</li><li><strong>Logstash</strong> is a server-side data processing pipeline that ingests data from multiple sources simultaneously, transforms it, and then sends it to a “stash” like Elasticsearch. Additionally, there are other data collection methods available, such as <strong>Beats</strong> and <strong>Elastic Agents</strong>.</li><li><strong>Kibana</strong> is your window into the Elastic Stack, enabling you to visualize your data with charts, graphs, and other analytics tools. It comes packed with features like Machine Learning, data search capabilities, reporting, alerting, and much more.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*VjfbM9zLVMyaI2D4.png" /></figure><h4>ELK Stack Features</h4><ol><li><strong>Ingest and Enrich</strong>: Collect and enhance data from multiple sources.</li><li><strong>Data Storage</strong>: Efficiently store large volumes of data.</li><li><strong>Search and Analyze</strong>: Quickly search and analyze your data to extract meaningful insights.</li><li><strong>Explore</strong>: Visualize data trends, patterns, and anomalies with ease.</li></ol><h4>Dive into Elasticsearch</h4><p>Elasticsearch is designed for distributed environments, ensuring that your cluster grows with your needs. Simply add another node to scale.</p><h4>Explore Logstash</h4><p>Logstash uses a pipeline to collect, filter, and transport data to Elasticsearch. There are several ways to collect data:</p><ul><li><strong>Beats</strong>: Lightweight data shippers that send data to Logstash or Elasticsearch. There are six types of Beats:</li><li><strong>Filebeat</strong>: Handles log files.</li><li><strong>Metricbeat</strong>: Collects metrics.</li><li><strong>Packetbeat</strong>: Captures network data.</li><li><strong>Winlogbeat</strong>: Processes Windows event logs.</li><li><strong>Auditbeat</strong>: Monitors audit data.</li><li><strong>Heartbeat</strong>: Checks the uptime of services.</li><li><strong>Elastic Agent</strong>: A single agent that simplifies data collection with one-click integration. This is what we’ll be using throughout our 30-day challenge.</li></ul><h4>Move to Kibana</h4><p>Kibana is loaded with features that make it indispensable for SOC analysts:</p><ul><li><strong>Machine Learning (ML)</strong>: Detect anomalies and automate analysis.</li><li><strong>Elastic Maps</strong>: Visualize geospatial data.</li><li><strong>Search Data</strong>: Quickly find the information you need.</li><li><strong>Create Reports</strong>: Generate insightful reports with ease.</li><li><strong>Create Alerts</strong>: Stay informed with custom alerts.</li></ul><h4>Benefits of Using the ELK Stack</h4><p>Here are the top 10 benefits of incorporating ELK into your SOC environment:</p><ol><li>Centralized logging.</li><li>Real-time analysis.</li><li>Scalability.</li><li>Flexibility.</li><li>Community support.</li><li>Cost-effectiveness.</li><li>Extensive plugin ecosystem.</li><li>Enhanced security features.</li><li>Powerful visualizations.</li><li>Comprehensive data ingestion.</li></ol><h4>Resources and What’s Next</h4><p>This is just the beginning! We’ll dive deeper into each component and explore more advanced features as we progress through the challenge. Stay tuned for more exciting developments in the coming days.</p><p><strong>See you in the next challenge as we continue our journey in mastering SOC analysis with the ELK Stack!</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8c9cbfe5d838" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Day 1 of MyDFIR: Do Things DFIRINTLY]]></title>
            <link>https://gdbhackerone.medium.com/day-1-of-mydfir-do-things-dfirintly-75c5d024ac18?source=rss-62701f453ef2------2</link>
            <guid isPermaLink="false">https://medium.com/p/75c5d024ac18</guid>
            <category><![CDATA[mydfir]]></category>
            <category><![CDATA[soc]]></category>
            <category><![CDATA[soc-analyst]]></category>
            <category><![CDATA[digital-forensics]]></category>
            <category><![CDATA[setup]]></category>
            <dc:creator><![CDATA[GDB HackerOne]]></dc:creator>
            <pubDate>Sun, 01 Sep 2024 15:20:53 GMT</pubDate>
            <atom:updated>2024-09-02T18:58:04.175Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*baDJA5zk2U40bZ4WSf7e6A.png" /><figcaption>Do Things DFIRINTLY</figcaption></figure><p><strong>Welcome to Day 1 of the 30-Day MyDFIR SOC Analyst Challenge! Let’s Get Started.</strong></p><p>How To Create a Logical Diagram | Day 1</p><p><em>By 𝓞𝓟 𝓚𝓮𝓿𝓲𝓷 ッ | 1 / 09 / 2024</em></p><p>In today’s challenge, we’re diving into creating a logical diagram, which is an essential step in understanding and visualizing the infrastructure you’ll be working with as a SOC Analyst. The tool of choice for this task is <strong>draw.io</strong>. This platform is highly versatile and perfect for creating clear and detailed network diagrams. Add the 6 servers and label them using text option</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*r1Zw4Xj7MWWm3nLVSIERGA.png" /><figcaption>6 Servers added</figcaption></figure><h4>Step 1: Setting Up Our Servers</h4><p>We’ll begin by creating six traditional servers in draw.io. These servers will form the backbone of our network setup. Here’s a list of the servers we’ll be working with:</p><ol><li><strong>Elasticsearch &amp; Kibana</strong></li><li><strong>Windows Server with RDP Enabled</strong></li><li><strong>Ubuntu Server with SSH Enabled</strong></li><li><strong>Fleet Server</strong></li><li><strong>Ticket Server</strong></li><li><strong>C2 Server</strong></li></ol><p>To add these servers in draw.io, use the <strong>text</strong> option to label each server accordingly. Position them as you see fit for your network layout. It’s important to keep your diagram organized for clarity.</p><h4>Step 2: Re-Arranging the Servers</h4><p>After formatting and re-arranging the servers, your diagram should start taking shape. The key here is to ensure that each server is clearly labeled and properly aligned, making the diagram easy to follow.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/904/1*Z4rlivU_VbVa4LQyGDXwJA.png" /><figcaption>Re-Arranging Server’s</figcaption></figure><h4>Step 3: Adding Network Connections</h4><p>Next, we need to establish the network connections. Add the network lines between the servers, and label them appropriately, along with their respective IP ranges. This will help in understanding how the servers communicate within the network.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/822/1*vzQcNFDaE2WyZ70Ki6z2tg.png" /></figure><h4>Step 4: Incorporating the Internet and SOC Setup</h4><p>Now, let’s expand our diagram by adding the <strong>Internet</strong> and <strong>SOC (Security Operations Center)</strong> setup. Additionally, we’ll introduce an attacker at the other end of the network. Connect these elements to the relevant parts of the network, illustrating how an external attacker might interact with your network setup.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/827/1*4JdzLBWpU7-LD_00P9tybA.png" /></figure><h4>Final Look and Conclusion of Day 1</h4><p>Once all the connections are in place, your logical diagram should provide a clear and comprehensive overview of your setup. This concludes Day 1 of the challenge — congratulations on successfully creating your first logical diagram!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/568/1*YcuCpWlSoqt4LV_C3VUa-w.png" /><figcaption>Complete Setup</figcaption></figure><p>Here’s a summary of the final setup:</p><ul><li><strong>6 Servers</strong> connected and labeled.</li><li><strong>Network connections</strong> with IP ranges.</li><li><strong>Internet and SOC</strong> setup, including an external attacker.</li></ul><p>This diagram will be a crucial reference as we continue to build and analyze our SOC environment throughout the challenge. See you in Day 2!</p><p><strong>Complete Setup: Day 1 — Logical Diagram</strong></p><p>Stay tuned for the next challenge as we continue our journey in mastering SOC analysis.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=75c5d024ac18" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>