<?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 Dhruv on Medium]]></title>
        <description><![CDATA[Stories by Dhruv on Medium]]></description>
        <link>https://medium.com/@gamingdsk75?source=rss-e5632296ab55------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*ilLkCX9WD4Wsy0ja</url>
            <title>Stories by Dhruv on Medium</title>
            <link>https://medium.com/@gamingdsk75?source=rss-e5632296ab55------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 22:16:17 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@gamingdsk75/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[Analyzing the Colonial Pipeline Ransomware Attack Through the Cyber Kill Chain]]></title>
            <link>https://medium.com/@gamingdsk75/analyzing-the-colonial-pipeline-ransomware-attack-through-the-cyber-kill-chain-68e708b0d3ed?source=rss-e5632296ab55------2</link>
            <guid isPermaLink="false">https://medium.com/p/68e708b0d3ed</guid>
            <category><![CDATA[information-security]]></category>
            <category><![CDATA[incident-response]]></category>
            <category><![CDATA[ransomeware]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[critical-infrastructure]]></category>
            <dc:creator><![CDATA[Dhruv]]></dc:creator>
            <pubDate>Fri, 21 Aug 2026 18:07:11 GMT</pubDate>
            <atom:updated>2026-08-21T18:07:11.805Z</atom:updated>
            <content:encoded><![CDATA[<p>On May 7, 2021, the largest fuel pipeline in the US shut down. Not because of a hurricane, not because of a mechanical failure — but because of a single missing security control.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*c7UTy5xB_vlB6ZDA34k_Xg.png" /></figure><p><strong>Table of Contents</strong></p><p><strong>1.</strong> <strong>Introduction</strong></p><p><strong>2.</strong> <strong>Colonial Pipeline Overview</strong></p><p><strong>3.</strong> <strong>The May 2021 Attack</strong></p><p><strong>4.</strong> <strong>Why the Attack Was Significant</strong></p><p><strong>5.</strong> <strong>Cyber Kill Chain</strong></p><p><strong>6.</strong> <strong>Complete Attack Chain</strong></p><p><strong>7.</strong> <strong>Conclusion</strong></p><p><strong>Introduction</strong></p><p>On May 7, 2021, the largest fuel pipeline system in the United States was forced to shut down. A ransomware attack on Colonial Pipeline would trigger fuel shortages across 17 states, panic buying, and a federal emergency declaration. How did a single compromised credential bring a critical infrastructure operator to its knees?</p><p><strong>What was Colonial Pipeline?</strong></p><p><strong>Colonial Pipeline</strong> is a major U.S. fuel pipeline operator. Its pipeline network transports refined petroleum products, including <strong>gasoline, diesel, and jet fuel</strong>, from the U.S. Gulf Coast toward markets across the eastern United States.</p><p>Because of the amount of fuel transported through this network, Colonial Pipeline is considered an important part of U.S. critical infrastructure. An interruption to its operations can therefore affect fuel distribution far beyond the company’s own IT systems.</p><p><strong>What happened in May 2021?</strong></p><p>In <strong>May 2021</strong>, Colonial Pipeline suffered a ransomware attack associated with the <strong>DarkSide</strong> ransomware operation. After gaining access to Colonial Pipeline’s network, the attackers deployed DarkSide ransomware against the company’s IT environment.</p><p>Colonial Pipeline responded by <strong>disconnecting certain operational technology (OT) systems</strong> as a precaution. CISA and the FBI reported that, at the time of their advisory, there were <strong>no indications that the attackers had moved laterally into the OT environment</strong>.</p><p>The shutdown resulted in a significant interruption to fuel distribution and became one of the most widely discussed ransomware incidents involving critical infrastructure.</p><p><strong>Why was the attack significant?</strong></p><p>The Colonial Pipeline incident demonstrated that a ransomware attack does not necessarily need to directly compromise industrial control systems to create <strong>real-world operational consequences</strong>.</p><p>The attackers initially targeted the company’s <strong>IT network</strong>, but the resulting incident led the organization to take precautionary action affecting pipeline operations. This shows the potential connection between:</p><p><strong>IT compromise → business disruption → critical infrastructure impact</strong></p><p>The incident also highlighted the importance of securing <strong>remote access</strong>, protecting credentials, implementing <strong>multi-factor authentication (MFA)</strong>, and maintaining strong separation between IT and OT environments. CISA and the FBI specifically recommended MFA for remote access to IT and OT networks following the incident.</p><p><strong>Cyber Kill Chain Breakdown</strong></p><p><strong>Understanding the Cyber Kill Chain</strong></p><p>The <strong>Cyber Kill Chain</strong>, developed by Lockheed Martin, is a framework that describes the different stages of a cyberattack. It helps security professionals understand how attackers progress from gathering information about a target to achieving their final objective.</p><p><strong>The seven stages are:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/1*z5aWLVW2Iz6aQvxBll7KDg.jpeg" /><figcaption><strong>Cyber Kill Chain</strong></figcaption></figure><p>In the following sections, the Colonial Pipeline ransomware attack is analyzed through each of these stages to understand how the attack progressed and where defenders could potentially have detected or disrupted it.</p><p>For Colonial Pipeline, we can use this framework to examine how the DarkSide operation progressed from obtaining access to ultimately causing disruption.</p><p><strong>Important:</strong> Not every traditional Kill Chain phase can be established with the same level of certainty from publicly available evidence. Therefore, in the article we should clearly separate <strong>confirmed facts</strong> from reasonable analysis rather than presenting assumptions as facts.</p><p><strong>Phase 1: Reconnaissance</strong></p><p><strong>Reconnaissance is the information-gathering stage of a cyberattack. Attackers collect information about their target to identify potential weaknesses and entry points.</strong></p><p>The attackers first needed to identify a way to gain access to Colonial Pipeline’s environment.</p><p>Public reporting indicates that the attackers used a <strong>compromised VPN account</strong> for initial access. The broader DarkSide advisory from CISA and the FBI notes that the group had previously used methods including compromised remote-access accounts and other externally accessible services</p><p><strong>This phase underscores a critical security lesson:</strong></p><p><strong>An organization’s attack surface includes not only vulnerable software, but also its identities, credentials, and remote-access infrastructure.</strong></p><p><strong>Phase 2: Weaponization</strong></p><p><strong>Weaponization is the stage where attackers prepare the tools, malware, or payload that will be used against the target.</strong></p><p>DarkSide operated as a <strong>ransomware-as-a-service (RaaS)</strong> operation, where developers created the ransomware and recruited <strong>affiliates</strong> to deploy it in exchange for a share of the ransom payments. The Colonial Pipeline attack was carried out by a DarkSide affiliate.The weaponization stage therefore involved preparing the ransomware and the infrastructure necessary to conduct the attack.</p><p>CISA and the FBI reported that DarkSide ransomware was designed to <strong>encrypt data</strong> and that the attackers also used data theft as an additional extortion mechanism. The advisory also notes that DarkSide actors had been observed using <strong>Cobalt Strike for command and control</strong>.</p><p><strong>Phase 3: Delivery</strong></p><p><strong>Delivery is the stage where the attacker gains a way to introduce the attack into the target environment.</strong></p><p>The attackers needed a way to deliver their attack into Colonial Pipeline’s environment.</p><p>This is an important distinction because ransomware attacks don’t always begin with someone clicking a malicious file.</p><p><strong>Phase 4: Exploitation</strong></p><p><strong>Exploitation occurs when attackers take advantage of a weakness to gain access or execute malicious activity.</strong></p><p>The attackers abused the compromised account to gain access to Colonial Pipeline’s network.</p><p>It is important to clarify: this was <strong>not</strong> an MFA bypass attack. According to CISA’s advisory, the compromised VPN account <strong>did not have MFA enabled at all</strong>. This is fundamentally different from an attacker defeating an active MFA control. If MFA had been enforced, the single compromised password alone would not have been sufficient for initial access.This distinction matters: <strong>bypassing MFA</strong> means defeating an MFA mechanism that is actually enabled. That is different from gaining access through an account that does not require MFA.</p><p><strong>Phase 5: Installation</strong></p><p><strong>Installation is the stage where attackers establish their malicious tools or payloads on compromised systems.</strong></p><p>After gaining initial access, the attackers deployed <strong>DarkSide ransomware</strong> against Colonial Pipeline’s IT network.</p><p>The ransomware encrypted Colonial Pipeline’s business-critical data, instantly freezing operations across the company’s financial and administrative systems.At this stage, defenders could potentially look for suspicious activity such as:</p><ul><li>Unexpected execution of ransomware</li><li>Large-scale file encryption</li><li>Abnormal administrative activity</li><li>Unusual access to multiple systems</li><li>Attempts to disable security controls</li><li>Unusual network connections</li></ul><p><strong>Phase 6: Command &amp; Control</strong></p><p><strong>Command and Control (C2) is the stage where compromised systems communicate with attacker-controlled infrastructure.</strong></p><p>For DarkSide operations more broadly, CISA and the FBI reported the use of <strong>Tor for C2</strong> and also observed the use of <strong>Cobalt Strike</strong> for C2.</p><p>C2 infrastructure can therefore become an important source of <strong>Indicators of Compromise (IOCs)</strong> for defenders.</p><p><strong>Phase 7: Actions on Objectives</strong></p><p><strong>What are Actions on Objectives?</strong></p><p>This is the final stage of the Cyber Kill Chain.</p><p>At this point, the attackers attempt to achieve the main purpose of the attack.</p><p>This was the final stage of the attack.</p><p>The attackers deployed ransomware to <strong>encrypt data</strong>, while the incident also involved data theft and extortion.</p><p>Colonial Pipeline then took precautionary action by disconnecting certain OT systems, contributing to the interruption of pipeline operations. CISA and the FBI stated that they had no indication at that time that the threat actors had moved laterally into the OT environment.</p><p>The attackers’ ultimate objective was therefore not simply to “infect computers.”</p><p>It was to create enough disruption and leverage to <strong>pressure the victim into paying a ransom</strong>.</p><p><strong>The complete attack chain</strong></p><p>you can see the incident like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*st3XR9Evs-dDOWSxHhHGRQ.png" /><figcaption>How a single compromised credential without MFA triggered fuel shortages across 17 states</figcaption></figure><p>This is exactly where the <strong>Cyber Kill Chain</strong> becomes useful: instead of looking at ransomware as a single event, we can break the incident into multiple opportunities where defenders could potentially <strong>detect, disrupt, or prevent the attack</strong>.</p><p><strong>Conclusion</strong></p><p>The Colonial Pipeline ransomware attack serves as a powerful case study in how modern cyber threats can cascade from IT systems to real-world infrastructure impacts. By analyzing the attack through the Cyber Kill Chain lens, we can identify multiple potential intervention points where the attack could have been detected or prevented:</p><ul><li><strong>Reconnaissance Phase:</strong> The exposed VPN account could have been identified through continuous credential monitoring</li><li><strong>Exploitation Phase:</strong> MFA would have blocked the initial access attempt</li><li><strong>Installation Phase:</strong> Endpoint detection systems could have flagged ransomware deployment</li><li><strong>Command &amp; Control Phase:</strong> Network monitoring could have detected unusual outbound connections</li></ul><p><strong>Conclusion</strong></p><p>Ultimately, the Colonial Pipeline incident underscores that cybersecurity is not just about technology — it’s about understanding how attackers think, identifying your organization’s most critical vulnerabilities, and implementing layered defenses that protect against the most likely attack vectors. The $4.4 million ransom payment may have restored operations temporarily, but the real cost of this incident — in reputation, lost trust, and regulatory scrutiny — continues to be felt. (The FBI’s subsequent recovery of approximately $2.3 million of the ransom demonstrates the value of immediate reporting and law enforcement coordination.)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=68e708b0d3ed" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Investigate Suspicious Windows Activity Using Event Viewer]]></title>
            <link>https://medium.com/@gamingdsk75/how-to-investigate-suspicious-windows-activity-using-event-viewer-2248a2fb5ccc?source=rss-e5632296ab55------2</link>
            <guid isPermaLink="false">https://medium.com/p/2248a2fb5ccc</guid>
            <category><![CDATA[soc-analyst]]></category>
            <category><![CDATA[windows]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[blue-team]]></category>
            <category><![CDATA[incident-response]]></category>
            <dc:creator><![CDATA[Dhruv]]></dc:creator>
            <pubDate>Fri, 14 Aug 2026 18:56:27 GMT</pubDate>
            <atom:updated>2026-08-14T18:56:27.784Z</atom:updated>
            <content:encoded><![CDATA[<p>A beginner-friendly guide to investigating failed logons, successful logons, user activity, and suspicious events using Windows Event Viewer.</p><p><strong>Table of Contents</strong></p><p>1. Introduction</p><p>2. What Is Windows Event Viewer?</p><p>3. Understanding Windows Event Logs</p><p>4. Initial Preparation: Setting Up Enhanced Logging</p><p>5. Scenario: Investigating Failed Logon Attempts</p><p>6. Scenario: Investigating Successful Logons</p><p>7. Investigating User and Account Activity</p><p>8. How a SOC Analyst Uses Event Logs</p><p>9. Windows Event IDs Quick Reference</p><p>10. Final Investigation Checklist</p><p>11. Conclusion</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Uef5ez2M718hpROI6NP07w.png" /></figure><h3><strong>1. Introduction</strong></h3><p>When something suspicious happens on a Windows computer, the first place a SOC analyst looks is the event logs. Windows records almost everything — logons, process starts, account changes — in a digital diary called Event Viewer.</p><p>Windows systems generate a large amount of event data during normal operation. Activities such as user logons, failed authentication attempts, account changes, and system events can be recorded in Windows Event Logs. For a SOC analyst, these logs can provide valuable evidence when investigating a security alert.</p><p>Instead of guessing what happened on a system, an analyst can examine event records to identify <strong>who performed an action, when it happened, and what activity was recorded</strong>.</p><p>In this article, I will demonstrate how to investigate common Windows activities using <strong>Windows Event Viewer</strong>. Rather than only discussing the theory, I created a small lab environment and generated test activities such as failed logon attempts and successful logons, then investigated the resulting events.</p><p>The goal is to understand how a SOC analyst can use Windows Event Logs to investigate suspicious activity and build a clearer picture of what happened on a Windows system.</p><p><strong>Note:</strong> All activities and screenshots used in this article were generated and investigated in my own lab environment for learning purposes.</p><p><strong>2. What Is Windows Event Viewer?</strong></p><p><strong>2.1 Windows Event Viewer</strong> is a built-in Windows tool used to view logs generated by the operating system, applications, and other Windows components.</p><p>These logs record information about events that occur on a system.</p><p>For example:</p><ul><li>A user logs in</li><li>A logon attempt fails</li><li>An application encounters an error</li><li>A service starts or stops</li></ul><p>Event Viewer allows us to examine these events and filter them to focus on specific activity.</p><p>You can open Event Viewer by pressing:</p><p><strong>Win + R</strong></p><p>Then typing:</p><p><strong>eventvwr.msc</strong></p><p>After opening Event Viewer, you will see different categories of logs in the left panel.</p><p>For security investigations, one of the most important locations is:</p><p><strong>Event Viewer</strong></p><p><strong>└ Windows Logs</strong></p><p><strong>└- Security</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*-cGRSjGBswtm07xDVxDASQ.png" /><figcaption><em>Event Viewer — Navigating to the Security log</em></figcaption></figure><p>The Security log contains events related to authentication, logons, account activity, and other security-relevant actions.</p><p>For a SOC analyst, Event Viewer can help answer an important question:</p><p><strong>What happened on this Windows system, and what evidence was recorded?</strong></p><p><strong>2.2 Event ID Categories for Beginners</strong></p><p>To make investigation easier, Event IDs can be grouped by category:</p><p><strong>Logon Events:</strong></p><p>- 4624 = Successful logon</p><p>- 4625 = Failed logon</p><p>- 4672 = Admin privileges assigned</p><p><strong>Account Changes:</strong></p><p>- 4720 = New user created</p><p>- 4726 = User deleted</p><h3><strong>3. Understanding Windows Event Logs</strong></h3><p>Windows organizes events into different logs. Each log focuses on a different type of system activity.</p><p>The main logs visible under <strong>Windows Logs</strong> include:</p><p><strong>3.1 Application</strong></p><p>The <strong>Application</strong> log contains events generated by applications and software running on the system.</p><p>These events may include:</p><ul><li>Application errors</li><li>Application crashes</li><li>Warnings</li><li>Other application-related information</li></ul><p>An analyst might investigate this log when a suspicious or important application behaves unexpectedly.</p><p><strong>3.2 Security</strong></p><p>The <strong>Security</strong> log is one of the most important logs for security investigations.</p><p>It can contain events related to:</p><ul><li>Successful logons</li><li>Failed logon attempts</li><li>Account changes</li><li>Process creation, when auditing is enabled</li><li>Other audited security activity</li></ul><p>Some Event IDs that we will investigate in this article include:</p><p>4624 → Successful logon</p><p>4625 → Failed logon</p><p>The Security log will be the main focus of several practical scenarios in this article.</p><p><strong>3.3 Setup</strong></p><p>The <strong>Setup</strong> log contains events related to Windows installation and setup-related activities.</p><p>This can be useful when investigating system installation, updates, or configuration-related events.</p><p><strong>3.4 System</strong></p><p>The <strong>System</strong> log contains events generated by Windows system components and services.</p><p>Examples include:</p><ul><li>Service activity</li><li>Driver events</li><li>System errors</li><li>Hardware-related events</li></ul><p>This log can provide useful context when investigating system problems or suspicious service activity.</p><p><strong>3.5 Forwarded Events</strong></p><p>The <strong>Forwarded Events</strong> log can contain events collected from other computers and forwarded to the current system.</p><p>In larger environments, this can be useful for centralized event collection and monitoring.</p><p><strong>3.6 Why Event Logs Matter to a SOC Analyst</strong></p><p>A Windows system can generate thousands of events. Looking through every event manually would be inefficient.</p><p>Instead, a SOC analyst usually starts with a question or alert and then filters for relevant evidence.</p><h3>4. <strong>Initial Preparation: Setting Up Enhanced Logging</strong></h3><p>Before starting the practical investigation, I configured additional logging in my lab environment.</p><p>Some events may not contain enough detail by default. For example, process creation events can become more useful when command-line information is included.</p><p>For this lab, I prepared logging for:</p><ul><li>Command-line information in process creation events</li><li>Process creation auditing</li><li>PowerShell Script Block Logging</li></ul><p>The next section will show how I configured each of these before generating activity for the investigation.</p><p><strong>4.1 Enable Command-Line Auditing</strong></p><p>Command-line information can provide additional context when investigating a process.</p><p>For example, seeing only:</p><p>powershell.exe</p><p>tells us that PowerShell was executed.</p><p>However, additional command-line information can help show <strong>how the process was launched and which arguments or commands were used</strong>.</p><p><strong>Steps</strong></p><ol><li><strong>Press Win + R.</strong></li><li><strong>Type: gpedit.msc</strong></li><li>Navigate to:</li></ol><p>Computer Configuration</p><p>→ Administrative Templates</p><p>→ System</p><p>→ Audit Process Creation</p><ol><li>Open:</li></ol><p><strong>Include command line in process creation events</strong></p><p>Select<strong>: Enabled</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1001/1*LyTcrFAjt1GzHA5z7m1KpQ.png" /><figcaption><em>Group Policy Editor — Audit Process Creation</em></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/996/1*zb6lP3YxmGsA5HxrnXfQBw.png" /><figcaption><em>Enabling Process Creation Auditing</em></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/803/1*78NISAT9kceTW_F3NdYrAQ.png" /><figcaption><em>Enabling Command Line Auditing</em></figcaption></figure><p><strong>4.2 Enable PowerShell Script Block Logging</strong></p><p>PowerShell is commonly used for legitimate administration, but it is also important from a security monitoring perspective.</p><p>PowerShell Script Block Logging provides additional visibility into PowerShell script activity.</p><p><strong>Steps</strong></p><p>Open <strong>Administrative Templates</strong> as shown previously</p><p>→ Administrative Templates</p><p>→ Windows Components</p><p>→ Windows PowerShell</p><ol><li>Open:</li></ol><p>Turn on PowerShell Script Block Logging</p><ol><li>Select:</li></ol><p>Enabled</p><ol><li>Click <strong>Apply</strong> and <strong>OK</strong>.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*1aRnqmGQ4cKce4frfvAy9w.png" /><figcaption><em>Group Policy Editor — Windows PowerShell</em></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/809/1*DkUVPSH9LEdEdev8Qe5ESA.png" /><figcaption><em>Enabling PowerShell Script Block Logging</em></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Z4nAl00KbOcS8xyD-uBgcA.png" /><figcaption><em>PowerShell Script Block Logging configured</em></figcaption></figure><p>At this point, the lab preparation is complete.</p><p>The next step is where the practical investigation begins:</p><h3><strong>5. Scenario: Investigating Failed Logon Attempts</strong></h3><p>Failed logon attempts are important to investigate because repeated authentication failures can sometimes indicate:</p><ul><li>A user entering the wrong password</li><li>An account using outdated credentials</li><li>A misconfigured application or service</li><li>A potential password-guessing attempt</li></ul><p>However, <strong>a failed logon event alone does not automatically mean malicious activity</strong>. An analyst needs to examine the event details and surrounding activity.</p><p><strong>5.1 Generating Failed Logon Activity</strong></p><p>For this lab, I intentionally generated several failed logon attempts on my own Windows system.</p><p><strong>What to do</strong></p><ol><li>Note the current time.</li><li>Press:</li></ol><p><strong>Win + L</strong></p><ol><li>Enter an incorrect password <strong>3 times</strong>.</li><li>Then enter the correct password and log in.</li></ol><p>This will give us multiple failed logon events followed by a successful logon, which we can later compare.</p><p><strong>5.2 Finding the Failed Logon Events</strong></p><p>After logging in, open Event Viewer:</p><p><strong>Win + R</strong></p><p>Enter: <strong>eventvwr.msc</strong></p><p>Then navigate to:</p><p>Event Viewer</p><p>└── Windows Logs</p><p>└── Security</p><p>Click <strong>Filter Current Log…</strong> from the right-side Actions panel.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OJTu6pbIhCAPGWyCw1680g.png" /><figcaption><em>Filter Current Log in Event Viewer</em></figcaption></figure><p>In the <strong>Event IDs</strong> field, enter:</p><p>4625</p><p>Then click <strong>OK</strong>.</p><p>You should now see the failed logon events generated during the lab.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/649/1*qusXwd513IwAmGVSe81DVQ.png" /><figcaption><em>Failed logon events (4625) in Security log</em></figcaption></figure><p><strong>5.3 Analyzing Event ID 4625</strong></p><p>Click on one of the failed logon events.</p><p>You should see a message similar to:</p><p><strong>An account failed to log on.</strong></p><p>Event ID 4625 records a failed logon attempt.</p><p>When investigating the event, look for these fields:</p><p><strong>Account For Which Logon Failed</strong></p><p>Look for:</p><p>Account Name</p><p>Account Domain</p><p>This tells you which account was involved in the failed authentication attempt.</p><p><strong>Logon Type</strong></p><p>Look for:</p><p>Logon Type</p><p>This helps identify <strong>how the logon attempt occurred</strong>.</p><p>In our local lab, you will likely see:</p><p>Logon Type: 2</p><p>Logon Type 2 represents an <strong>interactive logon</strong>, meaning the logon attempt occurred directly at the Windows sign-in interface.</p><p><strong>Failure Information</strong></p><p>Look for:</p><p>Failure Reason</p><p>Status</p><p>Sub Status</p><p>These fields provide additional context about why the authentication attempt failed.</p><p>For example, your previous event showed:</p><p>Failure Reason: Unknown user name or bad password</p><p>Status: 0xC000006D</p><p>Sub Status: 0xC000006A</p><p>In this case, the event indicates that the authentication attempt was unsuccessful because of invalid credentials.</p><p><strong>Network Information</strong></p><p>Also check:</p><p>Workstation Name</p><p>Source Network Address</p><p>Source Port</p><p>These fields can provide useful context, especially when investigating authentication attempts originating from another system.</p><p>Since this activity was performed locally, the Source Network Address may show 127.0.0.1 (localhost) or the system’s own IP address, rather than a remote source.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*vqIOB1KuyMBnK0FvkuFLzA.png" /><figcaption><em>Analyzing Event ID 4625 details</em></figcaption></figure><p><strong>What Did I Observe?</strong></p><p>During the investigation, I filtered the Windows Security log for Event ID 4625 and identified the failed authentication attempts generated in my lab. By examining the event details, I could identify the account involved, the type of logon attempt, the reason for failure, and the time at which the event occurred.</p><p>The repeated failed events demonstrated how Windows records authentication failures and how Event Viewer can be used to filter and investigate this activity.</p><p><strong>SOC Analyst Perspective</strong></p><p>A SOC analyst would not investigate Event ID 4625 in isolation.</p><p>For example, multiple failed logons within a short period could be investigated by asking:</p><ul><li>How many failed attempts occurred?</li><li>Which account was targeted?</li><li>Did the attempts come from the same source?</li><li>What was the logon type?</li><li>Was there a successful logon shortly afterward?</li></ul><p>This last question is important because our next scenario will compare the failed logon attempts with a <strong>successful logon event, Event ID 4624</strong>.</p><h3><strong>6. Scenario: Investigating Successful Logons</strong></h3><p>After investigating failed logon attempts, the next step is to check whether a logon was eventually successful.</p><p>This is important because a series of failed logons followed by a successful logon may provide useful context during an investigation.</p><p>A successful Windows logon is commonly recorded as:</p><p>Event ID: 4624</p><p>However, a successful logon event <strong>does not automatically mean suspicious activity</strong>. Windows generates many legitimate 4624 events, so an analyst needs to examine the details and surrounding activity.</p><p><strong>6.1 Generating a Successful Logon Event</strong></p><p>For this lab, I generated a successful interactive logon after the failed logon attempts.</p><p>Perform the same steps as in the <strong>Failed Logon Activity</strong> section but now</p><p>In the <strong>Event IDs</strong> field, enter:</p><p>4624</p><p>Then click <strong>OK</strong>.</p><p>Open Logon log.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CW8NYiToxU6xh-Kan6bYJg.png" /><figcaption><em>Filtering for successful logon events (4624)</em></figcaption></figure><p><strong>6.2 Analyzing Event ID 4624</strong></p><p>Select the Event ID 4624 that matches the time of your successful logon.</p><p>You should see a message similar to:</p><p><strong>An account was successfully logged on.</strong></p><p>When investigating the event, focus on the following fields.</p><p><strong>Account Information</strong></p><p>Look for:</p><p>Account Name</p><p>Account Domain</p><p>Security ID</p><p>These fields help identify the account involved in the successful logon.</p><p><strong>Logon Type</strong></p><p>Also check:</p><p>Logon Type</p><p>For a logon directly at the Windows sign-in screen, you will typically look for:</p><p>Logon Type: 2</p><p>This represents an <strong>interactive logon</strong>.</p><p>Other logon types may represent different kinds of authentication activity, so the logon type is important when interpreting Event ID 4624.</p><p><strong>Logon ID</strong></p><p>You may also see:</p><p>Logon ID</p><p>This value can be useful when correlating related events from the same logon session.</p><p>For example, an analyst may use it as one piece of information when connecting authentication events with other activity.</p><p><strong>Network Information</strong></p><p>Depending on the event, you may also see information such as:</p><p>Workstation Name</p><p>Source Network Address</p><p>Source Port</p><p>These details can be especially useful when investigating remote authentication activity.</p><p>Since our test is being performed locally, the event details may not look like a remote logon from another machine.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*KyCdgYu67GI1SLNKDPGMdg.png" /><figcaption><em>Analyzing Event ID 4624 details</em></figcaption></figure><p><strong>6.3 Comparing Failed and Successful Logons</strong></p><p>Now we can compare the two events generated during the lab.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/789/1*m2YwDdPfOXFLAVsB3svTNg.png" /></figure><p><strong>SOC Analyst Perspective</strong></p><p>A successful logon should always be interpreted with context.</p><p>For example, an analyst investigating multiple failed logons may ask:</p><ul><li>Did a successful logon occur afterward?</li><li>Was it for the same account?</li><li>Did it occur shortly after the failed attempts?</li><li>Was the logon type expected?</li><li>Did the source information change?</li><li>Was there unusual activity after the successful logon?</li></ul><p>A sequence like this does <strong>not automatically prove malicious activity</strong>. In our lab, the failed attempts and successful logon were intentionally generated. In a real investigation, an analyst would need additional evidence before determining whether the activity was suspicious.</p><h3><strong>7. Investigating User and Account Activity</strong></h3><p>User and account activity is important during a Windows security investigation.</p><p>An analyst may need to investigate questions such as:</p><ul><li>Was a new user account created?</li><li>Which account was created?</li><li>Was an existing account modified?</li><li>Was an account deleted?</li><li>Who performed the action?</li><li>When did the activity occur?</li></ul><p>Windows can record account-management events in the <strong>Security</strong> log when the relevant auditing is enabled.</p><p>For this lab, we will create a temporary test account, investigate the generated events, and then remove the account.</p><p><strong>Note:</strong> All activity in this section should be performed only in your own lab or an authorized system.</p><p><strong>7.1 Preparing Account Management Auditing</strong></p><p>Before generating the activity, let’s <strong>make</strong> sure Windows is auditing user account changes.</p><p><strong>Step 1: Open Local Security Policy</strong></p><p>Press:</p><p><strong>Win + R</strong></p><p>Type:</p><p><strong>secpol.msc</strong></p><p>Then navigate to:</p><p><strong>Security Settings</strong></p><p><strong>→ Advanced Audit Policy Configuration</strong></p><p><strong>→ System Audit Policies</strong></p><p><strong>→ Account Management</strong></p><p>Look for:</p><p><strong>Audit User Account Management</strong></p><p>Open it and enable:</p><p><strong>Success</strong></p><p>You can also enable <strong>Failure</strong> if you want to capture unsuccessful account-management attempts.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/764/1*lOjSse0sqH6diCM_CguKZA.png" /><figcaption><em>Local Security Policy — Audit User Account Management</em></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/465/1*TJqo7zuAJOhUfT4K4UnXOA.png" /><figcaption><em>Enabling Account Management Auditing</em></figcaption></figure><p><strong>7.2 Creating a Test Account</strong></p><p>To generate account creation events, I created a temporary local user account:</p><p><strong>Steps:</strong></p><ol><li>Open Command Prompt as Administrator</li><li>Run:</li></ol><p><strong>net user SOC_Test Password123 /add</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/770/1*kDNySpr3ha6eiI5IRhq9-g.png" /><figcaption><em>Creating test account with net user command</em></figcaption></figure><p><strong>7.3 Investigating the Account Creation Event</strong></p><p>After creating the SOC_Test account, I opened <strong>Event Viewer</strong> and navigated to:</p><p>Event Viewer</p><p>└── Windows Logs</p><p>└── Security</p><p>I then located <strong>Event ID 4720[use “filter current log” and enter “Event ID=4720&quot; here as shown previously]</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/900/1*1yqKYVruoWoi3KhW8VQWrw.png" /><figcaption><em>Account creation event (4720) in Security log</em></figcaption></figure><p>The event message states:</p><p><strong>A user account was created.</strong></p><p><strong>Key Findings</strong></p><p>From the event, we can identify two important sections.</p><p><strong>Subject</strong></p><p>Account Name: DHRUV</p><p>Account Domain: DESKTOP-H7U51A</p><p>The <strong>Subject</strong> section identifies the account that performed the action.</p><p>In this lab, the account DHRUV created the new user account.</p><p><strong>New Account</strong></p><p>Account Name: SOC_Test</p><p>Account Domain: DESKTOP-H7U51A</p><p>The <strong>New Account</strong> section identifies the account that was created.</p><p>In this case:</p><p>SOC_Test</p><p>was the newly created local user account.</p><p>The event also shows:</p><p>Event ID: 4720</p><p>Task Category: User Account Management</p><p>Keywords: Audit Success</p><p>This confirms that Windows successfully recorded the account creation activity.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/735/1*UkCB8n3AfRnD0vAFx1FvNA.png" /><figcaption><em>Analyzing Event ID 4720 details</em></figcaption></figure><p><strong>7.4 Investigating the Created Account</strong></p><p>Now let’s verify that the account exists.</p><p>Open Command Prompt and run:</p><p>net user SOC_Test</p><p>This displays information about the test account.</p><p>You can inspect details such as:</p><ul><li>Account name</li><li>Account status</li><li>Password settings</li><li>Local group memberships</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/663/1*BVrInrr5VeJi_YR4bCI7eA.png" /><figcaption><em>Verifying the created user account</em></figcaption></figure><p><strong>7.5 Generating Additional Account Activity</strong></p><p>To make this section more practical, we can also modify or delete the test account.</p><p>For example, you can delete the account:</p><p>net user SOC_Test /delete</p><p>After running the command, return to Event Viewer and filter for:</p><p>4726</p><p>Event ID 4726 records that a <strong>user account was deleted</strong>.</p><p>Select the event and check:</p><ul><li>Which account performed the deletion</li><li>Which account was deleted</li><li>The timestamp of the event</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*JKnzihLa7fVzsszXGKhzhQ.png" /><figcaption><em>Account deletion event (4726) in Security log</em></figcaption></figure><p><strong>What Did I Observe?</strong></p><p>During this investigation, I created a temporary local user account and examined the related account-management events in the Windows Security log. Event ID 4720 recorded the account creation activity, while Event ID 4726 recorded the deletion of the test account.</p><p>By examining these events, I could identify the account involved in the action, the account that was created or deleted, and the time at which the activity occurred. This demonstrated how account-management events can help an analyst build a timeline of changes made to a Windows system.</p><h3><strong>8. How a SOC Analyst Uses Event Logs</strong></h3><p>Windows Event Logs are most useful when they are analyzed as part of an investigation rather than as isolated events.</p><p>For example, a SOC analyst may receive an alert about multiple failed logon attempts. Instead of looking only at one Event ID 4625 event, the analyst can investigate the surrounding activity.</p><p>In this lab, I first generated failed logon attempts and investigated “Event ID 4625”. I then compared those events with a successful logon recorded as “Event ID 4624”. Finally, I created and deleted a test user account and investigated the related account-management events.</p><p>This demonstrates an important part of SOC analysis: individual events provide information, but correlating multiple events can provide a clearer picture of what happened on a system.</p><p><strong>9. Windows Event IDs Quick Reference</strong></p><p>The following Event IDs were used during the practical investigation:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LnS4MSXA7P8swPzZDaahIg.png" /></figure><h3><strong>10. Final Investigation Checklist</strong></h3><p><strong>The 10 Essential Questions:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rQLF6p8_WFOVuaFwaHsYcA.png" /></figure><h3><strong>11. Conclusion</strong></h3><p>Windows Event Viewer is a useful starting point for investigating activity on a Windows system. By filtering and analyzing relevant events, an analyst can identify authentication attempts, successful logons, and changes to user accounts.</p><p>In this lab, I generated several Windows activities and investigated the events they produced. This included failed logon attempts using <strong>Event ID 4625</strong>, successful logons using <strong>Event ID 4624</strong>, user account creation using <strong>Event ID 4720</strong>, and user account deletion using <strong>Event ID 4726</strong>.</p><p>The main lesson from this investigation is that a single event does not always provide the complete story. By examining timestamps, account information, logon details, and related events, a SOC analyst can build a clearer timeline of activity.</p><p>This was a beginner-level investigation, but it demonstrates an important SOC skill: <strong>using logs as evidence to understand what happened on a system.</strong></p><p><strong>The goal is not simply to memorize Event IDs, but to understand how events can be connected to investigate real activity.</strong></p><p>Thank you</p><p>Dhruv</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2248a2fb5ccc" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Linux Commands Every SOC Analyst Must Know]]></title>
            <link>https://medium.com/@gamingdsk75/linux-commands-every-soc-analyst-must-know-80ae7bda8db7?source=rss-e5632296ab55------2</link>
            <guid isPermaLink="false">https://medium.com/p/80ae7bda8db7</guid>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[soc]]></category>
            <category><![CDATA[incident-response]]></category>
            <category><![CDATA[linux]]></category>
            <category><![CDATA[threat-hunting]]></category>
            <dc:creator><![CDATA[Dhruv]]></dc:creator>
            <pubDate>Sat, 08 Aug 2026 19:53:33 GMT</pubDate>
            <atom:updated>2026-08-08T19:59:06.822Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>A practical Linux command cheat sheet for SOC analysts, incident responders, and cybersecurity investigators — with real investigation scenarios.</strong></p><p><strong>INTRODUCTION</strong></p><p>Linux is everywhere in cybersecurity. From web servers and cloud infrastructure to security tools and SIEM environments, SOC analysts frequently encounter Linux systems during investigations.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YCoIxnYtOzOrEc7MEDRMVA.png" /></figure><p>You don’t need to memorize hundreds of Linux commands to become a good SOC analyst. However, knowing the right commands can help you quickly investigate users, processes, network connections, files, and logs when responding to a security alert.</p><p>In this cheat sheet, I’ll cover the Linux commands I consider most useful for SOC analysis, along with practical examples of how they can be used during security investigations.</p><p><strong>Note:</strong> The examples in this article are intended for use on systems you own or are authorized to investigate.</p><p>For a SOC analyst, these commands matter because during an investigation you may need to locate suspicious files, inspect directories, check hidden files, and identify recently modified artifacts.</p><p><strong>Table of Contents</strong></p><ol><li><strong>Navigation &amp; Filesystem</strong> — Move around, list files, inspect directories</li><li><strong>Searching &amp; Log Analysis</strong> — Find threats in logs with grep</li><li><strong>Users &amp; Privileges</strong> — Investigate users and privileges</li><li><strong>Processes &amp; Services</strong> — Investigate running processes and services</li><li><strong>Network &amp; Web Utilities</strong> — Investigate network and web activity</li><li><strong>Scheduled Tasks</strong> — Find potential persistence mechanisms</li><li><strong>Package &amp; System Management</strong> — Understand software and package management</li><li><strong>Text Editing</strong> — Review configuration and script files</li><li><strong>Important Linux Locations</strong> — Know key directories</li><li><strong>Permissions &amp; Ownership</strong> — Understand file permissions</li><li><strong>SOC Investigation Scenarios</strong> — Apply the commands to real investigations</li></ol><p><strong>1. Navigation &amp; Filesystem</strong></p><p>These commands help a SOC analyst navigate the Linux filesystem and investigate files and directories.</p><p><strong>1. pwd :Identify Your Current Location</strong></p><p>The pwd command stands for <strong>Print Working Directory</strong>. It shows the directory you are currently working in.</p><p><strong>Command:</strong></p><p>pwd</p><p><strong>Example output:</strong></p><p>/home/analyst</p><p><strong>Think as SOC</strong></p><p>Before investigating files or directories, you should know your current location in the filesystem. This helps prevent confusion when working with relative paths.</p><p><strong>2. ls :List Files and Directories</strong></p><p>The ls command displays files and directories in the current location.</p><p><strong>Command:</strong></p><p>ls</p><p>For a more detailed listing:</p><p>ls -la</p><p><strong>Example output:</strong></p><p>-rw-r — r — 1 analyst analyst 523 Aug 8 10:20 notes.txt</p><p>-rwxr-xr-x 1 analyst analyst 1842 Aug 8 10:22 script.sh</p><p>drwxr-xr-x 2 analyst analyst 4096 Aug 8 10:15 logs</p><p><strong>Think as SOC</strong></p><p>A detailed listing can provide useful information about files, including permissions, ownership, and file names. It can help you spot unexpected files or scripts during an investigation.</p><p><strong>3. cd :Navigate the Filesystem</strong></p><p>The cd command stands for <strong>Change Directory</strong>. It is used to move between directories.</p><p><strong>Command:</strong></p><p>cd /var/log</p><p>To return to your home directory:</p><p>cd ~</p><p>To move up one directory:</p><p>cd ..</p><p><strong>Think as SOC</strong></p><p>SOC analysts frequently move between directories while investigating logs, configuration files, user files, and other system artifacts.</p><p>For example:</p><p>cd /var/log</p><p>Then:</p><p>ls</p><p><strong>4. touch :Create an Empty File</strong></p><p>The touch command can create a new empty file when the specified file does not already exist.</p><p><strong>Command:</strong></p><p>touch newnote</p><p><strong>Example:</strong></p><p>ls</p><p>You may then see:</p><p>newnote</p><p><strong>Think as SOC</strong></p><p>touch itself is primarily a filesystem command rather than an investigation command. Understanding it is still useful when analyzing file activity, timestamps, and filesystem changes.</p><p><strong>5. file :Identify a File Type</strong></p><p>The file command determines the type of a file.</p><p><strong>Command:</strong></p><p>file user</p><p><strong>Example output:</strong></p><p>user: ASCII text</p><p><strong>Think as SOC</strong></p><p>File extensions can sometimes be misleading. The file command can help you determine what type of data a file actually contains before investigating it further.</p><p><strong>6. mv :Move or Rename Files</strong></p><p>The mv command is used to move a file or directory or rename it.</p><p><strong>Command:</strong></p><p>mv myfile myfolder</p><p><strong>Example:</strong></p><p>mv suspicious.sh /tmp/</p><p><strong>Think as SOC</strong></p><p>Understanding mv is useful when analyzing filesystem activity. During an investigation, unexpected movement or renaming of files may be relevant evidence and should be investigated in context.</p><p><strong>7. cat :Display File Contents</strong></p><p>The cat command displays the contents of a file.</p><p><strong>Command:</strong></p><p>cat file.txt</p><p>For example:</p><p>cat /etc/hosts</p><p><strong>Think as SOC</strong></p><p>cat is useful for quickly examining small text files, configuration files, and other text-based artifacts during an investigation.</p><p><strong>8. head — View the Beginning of a File</strong></p><p>The head command shows the <strong>first lines</strong> of a file.</p><p><strong>Command:</strong></p><p>head /var/log/auth.log</p><p>Show the first 20 lines:</p><p>head -n 20 /var/log/auth.log</p><p><strong>Think as SOC</strong></p><p>Useful for quickly checking the beginning of a log file without opening the entire file.</p><p><strong>9. tail — View the End of a File</strong></p><p>The tail command shows the <strong>last lines</strong> of a file.</p><p><strong>Command:</strong></p><p>tail /var/log/auth.log</p><p>Show the last 50 lines:</p><p>tail -n 50 /var/log/auth.log</p><p>You can also monitor new log entries in real time:</p><p>tail -f /var/log/auth.log</p><p><strong>Think as SOC</strong></p><p>tail -f is especially useful during a live investigation because you can <strong>watch new log entries appear as they are written</strong>.</p><p>the difference:</p><p>cat<strong>Entire file — — </strong>Show everything</p><p>head<strong>Beginning</strong> of file — — Show first lines</p><p>tail<strong>End</strong> of file — — Show last lines</p><p><strong>2. Searching &amp; Log Analysis</strong></p><p>After learning how to navigate the filesystem and inspect files, the next step is finding <strong>specific information inside files and logs</strong>.</p><p><strong>10. grep :Search Text in Files</strong></p><p>The grep command searches for a specific pattern or text inside a file.</p><p><strong>Command:</strong></p><p>grep “Failed password” /var/log/auth.log</p><p><strong>Example output:</strong></p><p>Failed password for invalid user admin from 192.168.1.50</p><p>Failed password for root from 192.168.1.50</p><p><strong>Think as SOC</strong></p><p>grep is extremely useful for searching large log files for specific events, usernames, IP addresses, errors, or suspicious activity.</p><p>For example:</p><p>grep “192.168.1.50” /var/log/auth.log</p><p>can help you find authentication events associated with a particular IP address.</p><p><strong>11. egrep :Search Using Extended Patterns</strong></p><p>The egrep command searches text using extended regular expressions.</p><p><strong>Command:</strong></p><p>egrep “error|failed|denied” /var/log/auth.log</p><p>This searches for entries containing error, failed, or denied.</p><p><strong>Think as SOC</strong></p><p>It can be useful when you want to search for multiple patterns in a log rather than performing separate searches for each keyword.</p><p><strong>Note:</strong> Modern Linux systems generally provide the same functionality through grep -E.</p><p><strong>12. &gt; :Redirect Output</strong></p><p>The &gt; symbol is used to <strong>save the output of a command into a file</strong>.</p><p>If the file already has something inside it, &gt; will <strong>replace it</strong>.</p><p><strong>Command:</strong></p><p>echo “investigation started” &gt; notes.txt</p><p><strong>Take the text investigation started and save it inside notes.txt.</strong></p><p><strong>Example:</strong></p><p>cat notes.txt</p><p>Output:</p><p>investigation started</p><p><strong>Think as SOC</strong></p><p>A SOC analyst can use &gt; to <strong>save investigation results into a file</strong>.</p><p>For example:</p><p>grep “Failed password” /var/log/auth.log &gt; failed_logins.txt</p><p>Search for Failed password in the authentication log and save the results in failed_logins.txt</p><p>&gt; <strong>basically means overwrite</strong> when the target file already exists.</p><p><strong>13. &gt;&gt; :Append Output</strong></p><p>The &gt;&gt; operator adds output to the end of an existing file instead of overwriting its contents.</p><p><strong>Command:</strong></p><p>echo “second investigation note” &gt;&gt; notes.txt</p><p><strong>Example:</strong></p><p>cat notes.txt</p><p>Output:</p><p>investigation started</p><p>second investigation note</p><p><strong>Think as SOC</strong></p><p>This can be useful when maintaining investigation notes or continuously adding results to a file without removing previously collected information.</p><p><strong>3. Users &amp; Privileges</strong></p><p>These commands help you understand <strong>which user account is being used and how user privileges can change</strong>. This is useful when investigating suspicious account activity or determining whether an action was performed with elevated privileges.</p><p><strong>14. su :Switch User</strong></p><p>The su command stands for <strong>Switch User</strong>. It allows you to switch from the current user to another user account.</p><p><strong>Command:</strong></p><p>su user2</p><p>You will normally be asked to enter the password for the target account.</p><p><strong>Example:</strong></p><p>su user2</p><p>After successfully switching users, commands you run will execute as user2.</p><p><strong>Think as SOC</strong></p><p>During an investigation, understanding user switching is important because an attacker who gains access to a low-privileged account may attempt to switch to another account with greater privileges.</p><p>You should investigate unexpected user-switching activity in the context of authentication and system logs.</p><p><strong>4. Processes &amp; Services</strong></p><p>Processes and services are important parts of a Linux system. During a security investigation, a SOC analyst may need to determine <strong>what is running, which services are active, and whether unexpected processes are present</strong>.</p><p><strong>15. ps :View Running Processes</strong></p><p>The ps command displays information about processes currently running on the system.</p><p><strong>Command:</strong></p><p>ps</p><p>A more detailed process listing can be obtained with:</p><p>ps aux</p><p>You can also search for a specific process ID:</p><p>ps aux -q 639</p><p><strong>Example output:</strong></p><p>USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND</p><p>root 1 0.0 0.1 16784 10240 ? Ss 10:20 0:01 /sbin/init</p><p>analyst 639 0.2 0.5 12345 4567 pts/0 S+ 10:25 0:02 ./script.sh</p><p><strong>Think as SOC</strong></p><p>ps is useful during process investigations. You can look for:</p><ul><li>Unexpected processes</li><li>Suspicious scripts</li><li>Processes running under unusual users</li><li>Processes with unusual parent/child relationships</li></ul><p>Don’t automatically assume an unfamiliar process is malicious. Investigate it further and establish whether it is expected on that system.</p><p><strong>16. systemctl : Manage and Inspect Services</strong></p><p>The systemctl command is used to interact with services managed by systemd.</p><p>For example, you can stop a service with:</p><p><strong>Command:</strong></p><p>systemctl stop myservice</p><p>A service can also be enabled to start automatically:</p><p>systemctl enable myservice</p><p><strong>Think as SOC</strong></p><p>Services are important during investigations because malicious software may attempt to establish persistence by running as a system service.</p><p>Unexpected or recently enabled services should be investigated alongside other evidence.</p><p><strong>17. fg :Bring a Background Process to the Foreground</strong></p><p>The fg command brings a background job back to the foreground of the terminal.</p><p><strong>Command:</strong></p><p>fg</p><p><strong>Think as SOC</strong></p><p>fg is mainly a shell job-control command rather than a dedicated security investigation command. Understanding it helps you manage processes while performing investigations from a Linux terminal.</p><p><strong>18. SIGTERM :Request a Process to Terminate</strong></p><p>SIGTERM is a Linux process signal used to request that a process terminate gracefully.</p><p><strong>Signal:</strong></p><p>SIGTERM</p><p><strong>Think as SOC</strong></p><p>Understanding process signals is useful when responding to suspicious processes. SIGTERM requests a process to stop cleanly, allowing the application an opportunity to perform cleanup.</p><p><strong>Important:</strong> SIGTERM is a <strong>signal</strong>, not a command.</p><p><strong>5. Network &amp; Web Utilities</strong></p><p>Network-related commands are particularly useful to SOC analysts because they can provide information about <strong>network communication, remote connections, and web activity</strong>.</p><p><strong>19. curl :Transfer Data from a URL</strong></p><p>The curl command can be used to communicate with web servers and transfer data over supported network protocols.</p><p><strong>Command:</strong></p><p>curl <a href="http://10.10.201.198:8000/.flag.txt">http://10.10.201.198:8000/.flag.txt</a></p><p><strong>Example:</strong></p><p>CTF{example}</p><p><strong>Think as SOC</strong></p><p>curl can be useful when investigating web services or testing how a system communicates with a remote server.</p><p>During an investigation, be careful when accessing unknown URLs because retrieving content can potentially interact with an attacker-controlled system.</p><p><strong>20. wget :Download Files from the Web</strong></p><p>The wget command is commonly used to retrieve files from remote servers.</p><p><strong>Command:</strong></p><p>wget <a href="http://example.com/file.txt">http://example.com/file.txt</a></p><p><strong>Example:</strong></p><p>Saving to: ‘file.txt’</p><p><strong>Think as SOC</strong></p><p>wget can be relevant when investigating systems that may have downloaded files from the internet.</p><p>For example, if you discover a suspicious script or binary on a compromised system, investigating how and when it was downloaded can help establish the timeline of an incident.</p><p><strong>21. python3 :Run Python or Start a Simple HTTP Server</strong></p><p>python3 can be used to execute Python programs. It can also provide a simple HTTP server through Python’s built-in module.</p><p><strong>Command:</strong></p><p>python3 -m http.server</p><p>By default, this starts a simple HTTP server that can serve files from the current directory.</p><p><strong>Think as SOC</strong></p><p>During an investigation, an unexpected Python HTTP server may be worth investigating, especially if it is running from an unusual directory or on a system where such a service is not normally expected.</p><p><strong>6. Scheduled Tasks</strong></p><p>Linux systems can automatically execute commands at scheduled times. These scheduled tasks can be legitimate, but they can also become relevant during a security investigation because attackers may use scheduled execution for persistence.</p><p><strong>22. crontab :Manage Scheduled Tasks</strong></p><p>The crontab command is used to manage scheduled cron jobs for users.</p><p><strong>Command:</strong></p><p>crontab -l</p><p>This displays the current user’s scheduled cron jobs.</p><p><strong>Example output:</strong></p><p>@reboot /home/analyst/script.sh</p><p><strong>Think as SOC</strong></p><p>When investigating persistence, checking scheduled tasks can help identify commands or scripts that are configured to execute automatically.</p><p>Pay particular attention to:</p><ul><li>Unexpected scripts</li><li>Commands running from unusual directories</li><li>Unknown programs</li><li>Recently added scheduled tasks</li></ul><p><strong>23. @reboot :Run a Cron Job at System Startup</strong></p><p>@reboot is a cron scheduling directive that causes a command to run when the system starts.</p><p><strong>Example:</strong></p><p>@reboot /home/analyst/script.sh</p><p><strong>Think as SOC</strong></p><p>An unexpected @reboot entry can be an important persistence indicator. If you find one during an investigation, examine the referenced script and determine whether the scheduled task is legitimate.</p><p><strong>Important:</strong> @reboot is a <strong>cron directive</strong>, not a command.</p><p><strong>7. Package &amp; System Management</strong></p><p>These commands are used to install, remove, configure, or manage software and repositories on Linux systems.</p><p><strong>24. apt-get :Manage Packages</strong></p><p>apt-get is a command-line package management tool used on Debian-based Linux systems.</p><p><strong>Command:</strong></p><p>sudo apt-get update</p><p>To install a package:</p><p>sudo apt-get install package-name</p><p><strong>Think as SOC</strong></p><p>Package-management activity can provide useful context during an investigation. Unexpected package installations or repository changes may require investigation, particularly on systems where software changes are tightly controlled.</p><p><strong>25. apt :Manage Packages</strong></p><p>apt is another command-line interface for managing packages on Debian-based systems.</p><p><strong>Command:</strong></p><p>sudo apt update</p><p>To remove a package:</p><p>sudo apt autoremove package-name</p><p><strong>Think as SOC</strong></p><p>Unexpected package installations or removals can be useful evidence when reconstructing what happened on a Linux system.</p><p><strong>26. apt-key :Manage Package Repository Keys</strong></p><p>apt-key is associated with managing authentication keys used by APT repositories.</p><p><strong>Command:</strong></p><p>apt-key</p><p><strong>Think as SOC</strong></p><p>Repository configuration and signing keys can become relevant during investigations involving unexpected software sources or package installations.</p><p><strong>27. sudo :Execute Commands with Elevated Privileges</strong></p><p>The sudo command allows an authorized user to execute a command with elevated privileges.</p><p><strong>Command:</strong></p><p>sudo apt-get update</p><p><strong>Think as SOC</strong></p><p>sudo activity is particularly important during investigations because it can indicate that a user executed commands with elevated privileges.</p><p>When investigating suspicious activity, examine <strong>who used elevated privileges, what command was executed, and when it happened</strong>.</p><p><strong>28. tee :Write Output to a File</strong></p><p>The <strong>tee</strong> command reads input and writes it to a file while also allowing the output to continue through the command pipeline.</p><p><strong>Command:</strong></p><p>echo “example” | tee file.txt</p><p><strong>Example output:</strong></p><p>example</p><p><strong>Think as SOC</strong></p><p>tee can appear in system configuration and package-management commands. During an investigation, understanding it helps you interpret commands that modify files while displaying their output.</p><p><strong>29. rm :Remove Files or Directories</strong></p><p>The rm command is used to remove files.</p><p><strong>Command:</strong></p><p>rm file.txt</p><p><strong>Example:</strong></p><p>rm /tmp/suspicious.txt</p><p><strong>Think as SOC</strong></p><p>Unexpected file deletion can be relevant during an incident investigation. Attackers may attempt to remove files or artifacts after performing malicious activity.</p><p>However, the presence of rm alone does <strong>not</strong> prove malicious activity; legitimate administrators also delete files.</p><p><strong>30. add-apt-repository :Add or Remove Software Repositories</strong></p><p>The add-apt-repository command is used to manage APT software repositories.</p><p><strong>Command:</strong></p><p>add-apt-repository — remove ppa:PPA_Name/ppa</p><p><strong>Think as SOC</strong></p><p>Unexpected repository additions can be important during investigations because they can introduce software from sources that are not normally trusted or approved.</p><p><strong>8. Text Editing</strong></p><p><strong>31. vim :Edit Text Files</strong></p><p>vim is a terminal-based text editor.</p><p><strong>Command:</strong></p><p>vim newfile</p><p><strong>Think as SOC</strong></p><p>During investigations, you may encounter configuration files, scripts, or other text-based artifacts that need to be reviewed or edited.</p><p>When investigating evidence, however, prefer <strong>read-only inspection first</strong> and avoid modifying original evidence unnecessarily.</p><p><strong>9. Important Linux Locations</strong></p><p>Linux has several directories that are particularly useful to understand during security investigations.</p><p><strong>32. /var/log :System and Application Logs</strong></p><p>/var/log contains many Linux system and application log files.</p><p><strong>Example:</strong></p><p>ls -la /var/log</p><p><strong>Think as SOC</strong></p><p>Logs are one of the most important sources of evidence during an investigation. They can contain authentication events, application activity, system events, and other information useful for reconstructing what happened.</p><p><strong>33. /tmp :Temporary Files</strong></p><p>/tmp is commonly used for temporary files.</p><p><strong>Example:</strong></p><p>ls -la /tmp</p><p><strong>Think as SOC</strong></p><p>Unexpected scripts, executables, or archives found in /tmp may deserve investigation, especially if they were recently created or have unusual permissions.</p><p>Again, files in /tmp are <strong>not automatically malicious</strong>. Many legitimate applications use this directory.</p><p><strong>34. /root :Root User’s Home Directory</strong></p><p>/root is the home directory of the root user.</p><p><strong>Example:</strong></p><p>ls -la /root</p><p><strong>Think as SOC</strong></p><p>During an authorized investigation, examining /root can provide information about files and configurations associated with the root account. Access may require elevated privileges.</p><p><strong>10. Permissions &amp; Ownership</strong></p><p><strong>35. chmod — Change File Permissions</strong></p><p>The chmod command is used to <strong>change the permissions of a file or directory</strong>.</p><p><strong>Command:</strong></p><p>chmod +x script.sh</p><p>This gives script.sh <strong>execute permission</strong>.</p><p>You can also use numbers to set permissions:</p><p>chmod 755 script.sh</p><p><strong>Think as SOC</strong></p><p>File permissions are important during security investigations. If you find a suspicious script with execute permission, you can investigate <strong>who owns it, when it was modified, and how it got there</strong>.</p><p><strong>11. SOC Investigation Scenarios</strong></p><p>Now we can combine the commands instead of treating them as isolated Linux commands.</p><p><strong>Scenario 1 :Investigating Suspicious Login Activity</strong></p><p><strong>The Alert:</strong> Your SIEM triggers a high-severity alert: <em>“Multiple failed login attempts followed by successful authentication from unusual IP user ‘admin’ on web-server-03.”</em></p><p><strong>Your Mindset:</strong><em>”Is this a brute force attack that succeeded, or a legitimate user who forgot their password? I need to determine if the account is compromised.”</em></p><p><strong>Step 1: Establish What’s Normal</strong></p><p>Before you investigate a potential threat, you need to know what “normal” looks like on this system.</p><p><strong>bash</strong></p><p><strong># Check who’s currently logged in</strong></p><p>who</p><p><strong># Get more detail — login times, idle time, originating IP</strong></p><p>w</p><p><strong># See recent login history (including failed attempts)</strong></p><p>last -n 20</p><p><strong># Check for sudo usage (privilege escalation attempts)</strong></p><p>grep “sudo” /var/log/auth.log | tail -20</p><p><strong>Step 2: Investigate the Specific Account</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/761/1*Klcco0Tmw0TbhnuENm07Iw.png" /></figure><p><strong>What to look for:</strong></p><ul><li>Historical commands that don’t match the user’s normal role</li><li>Downloads of unknown files (wget, curl)</li><li>Attempts to modify system files or permissions</li><li>Connections to external Ips</li></ul><p><strong>Step 3: Correlate with Network Activity</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/711/1*_ucxnUTMP5GZrQpkSWv6aw.png" /></figure><p><strong>What to look for:</strong></p><ul><li>Outbound connections to unknown external IPs</li><li>Reverse shells (connections to high ports like 4444, 1337)</li><li>SSH connections to other internal hosts (lateral movement)</li></ul><p><strong>Step 4: Investigate Logs in Context</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/777/1*bLP4aYzHORpfZghast55yg.png" /></figure><p><strong>What to look for:</strong></p><ul><li>Failed logins followed by a success from the same IP</li><li>Attempts to change password or elevate privileges</li><li>Unusual patterns (e.g., 50 failed attempts in 2 minutes)</li></ul><p><strong>Step 5: Collect Forensic Artifacts</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/967/1*9Q9C9vI70bdSe25U0sYzdw.png" /></figure><p><strong>Escalation Criteria</strong></p><p><strong>Escalate to Incident Response if you find:</strong></p><ul><li>Successful login from the suspicious IP after multiple failures</li><li>Unusual commands in .bash_history (wget, curl to unknown domains)</li><li>Outbound connections to external IPs from this user</li><li>Attempts to change passwords or modify /etc/passwd</li><li>Sudo usage to run suspicious commands</li></ul><p><strong>False Positive Indicators (likely legitimate):</strong></p><ul><li>User has a history of similar login times</li><li>The “suspicious” IP is a known VPN or corporate proxy</li><li>Only 1–2 failed attempts (could be a typo)</li><li>User confirmed they were working at that time</li></ul><p><strong>Conclusion</strong><br> You don’t need to memorize 500 Linux commands to be a great SOC analyst.</p><p>You need to know the right 30 — and exactly when to use them.</p><p>Thank you</p><p>Dhruv</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=80ae7bda8db7" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Understanding the OSI Model with Wireshark]]></title>
            <link>https://medium.com/@gamingdsk75/understanding-the-osi-model-with-wireshark-a8411296839d?source=rss-e5632296ab55------2</link>
            <guid isPermaLink="false">https://medium.com/p/a8411296839d</guid>
            <category><![CDATA[osi-model-explained]]></category>
            <category><![CDATA[wireshark]]></category>
            <category><![CDATA[networking]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[network-security]]></category>
            <dc:creator><![CDATA[Dhruv]]></dc:creator>
            <pubDate>Thu, 06 Aug 2026 17:55:06 GMT</pubDate>
            <atom:updated>2026-08-06T17:55:06.160Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/736/1*UpoVpfeMlZwPOuyjL7JOZA.jpeg" /></figure><p><strong>INTRODUCTION</strong></p><p>If you’re starting your journey in networking or cybersecurity, one of the first concepts you’ll encounter is the OSI (Open Systems Interconnection) Model. So, OSI(OPEN SYSTEM INTERCONNECTION) Model is very important topic and you cannot go further without understanding How the OSI Model works and what are the roles of each layer in it. At first,</p><p>it looks like just another diagram with seven layers that students memorize for exams. However, once you begin analyzing real network traffic with tools like Wireshark, you realize that the OSI model is much more than a theoretical concept — it provides a structured way to understand how data travels across a network.</p><p>Imagine typing <a href="https://www.google.com/"><strong>https://www.google.com</strong></a> into your browser and pressing <strong>Enter</strong>. Within a fraction of a second, your device performs several operations behind the scenes. It translates the domain name into an IP address, establishes a reliable connection, encrypts the communication, routes packets through multiple networks, and finally displays the webpage on your screen.</p><p>Although these processes seem to happen instantly, they involve multiple protocols working together across different layers of the networking stack. The OSI model helps us organize and understand these responsibilities by dividing network communication into seven logical layers.</p><p>In this article, we’ll go beyond the textbook explanation. Instead of only discussing the theory, we’ll analyze <strong>real network packets captured with Wireshark </strong>to see how each layer contributes to a simple task like opening a website. By end of this guide, you will understand not only what each OSI layer does but also how to identify its activity in actual network traffic.</p><p><strong>What is the OSI Model?</strong></p><p>The <strong>OSI (Open Systems Interconnection) Model</strong> is a conceptual framework developed by the <strong>International Organization for Standardization (ISO)</strong> to standardize how different computer systems communicate over a network.</p><p>Rather than treating communication as a single process, the OSI model divides it into <strong>seven distinct layers</strong>, with each layer performing a specific set of tasks. Every layer communicates only with the layer directly above and below it, creating a modular architecture that simplifies network design, troubleshooting, and protocol development.</p><p>Think of it like shipping a package:</p><ul><li>You write a letter.</li><li>You place it in an envelope.</li><li>The courier sorts it.</li><li>A truck transports it.</li><li>The local delivery agent delivers it.</li><li>The recipient opens the envelope and reads the letter.</li></ul><p>Each step has a different responsibility, but together they ensure the package reaches its destination. Network communication works in a similar way — each OSI layer has a dedicated role that contributes to successful data transmission.</p><p><strong>OSI Model Diagram</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/936/1*bJHitdzL6IcMRkIvj9cMVA.png" /></figure><p>Each layer adds its own information before passing the data to the next lower layer. This process is called <strong>encapsulation</strong> and this process(encapsulation) is happening when the data sending. And when receiving data, On the receiving device, this information is removed layer by layer in the reverse process, called <strong>decapsulation</strong>.</p><p><strong>Why Should You Learn the OSI Model?</strong></p><p>Whether you’re an aspiring network engineer, cybersecurity enthusiast, or IT professional, understanding the <strong>OSI (Open Systems Interconnection) Model</strong> is one of the most valuable skills you can develop. Although modern networks primarily use the TCP/IP model, the OSI model remains the standard framework for understanding how network communication works.</p><p><strong>Learning the OSI model provides several practical benefits:</strong></p><p>· <strong>Essential for Cybersecurity:</strong> Security professionals analyze attacks at different layers of the OSI model. Understanding these layers helps identify vulnerabilities, inspect packets, and investigate suspicious network activity using tools like <strong>Wireshark</strong>.</p><p>· <strong>Builds a Strong Foundation:</strong> Many networking technologies and protocols — including Ethernet, IP, TCP, UDP, HTTP, HTTPS, and DNS — can be understood more easily when viewed through the OSI model.</p><p>· <strong>Useful for Certifications and Interviews:</strong> The OSI model is a fundamental topic in networking and cybersecurity certifications such as CCNA, Network+, and Security+, and it is also a common interview topic for technical roles.</p><p>The best way to understand the OSI model isn’t by memorizing the names of the seven layers — it’s by observing how they work together during real network communication. In the following sections, we’ll capture and analyze actual network traffic using <strong>Wireshark</strong> to see each layer in action.</p><p>Now that we understand the purpose of the OSI model, let’s explore each of its seven layers and see how they appear in a real Wireshark packet capture.</p><p><strong>Understanding Each Layer of the OSI Model Using Wireshark</strong></p><p>The OSI model becomes much easier to understand when you observe real network traffic instead of memorizing definitions. To demonstrate how each layer works, I captured network traffic using <strong>Wireshark</strong> while opening <a href="https://www.google.com/"><strong>https://www.google.com</strong></a> in a web browser.</p><p>Let’s explore each layer one by one.</p><p><strong>Layer 7 — Application Layer</strong></p><p>The <strong>Application Layer</strong> is the closest layer to the user. It provides network services that applications such as web browsers, email clients, and messaging applications use to communicate over the internet.</p><p>When I typed <a href="https://www.google.com/"><strong>https://www.google.com</strong></a> into my browser, the first step was to resolve the domain name into an IP address. This was achieved using the <strong>DNS (Domain Name System)</strong> protocol, which operates at the Application Layer.</p><p><strong>Wireshark Filter: DNS</strong></p><p><strong>What I Observed</strong></p><p>After applying the `<strong>dns.qry.name == “www.google.com&quot;</strong>` filter, I observed a DNS query requesting the IP address of **www.google.com**. A few milliseconds later, the DNS server replied with the corresponding IP address, allowing the browser to continue establishing the connection.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*w6oZ6o-PFDrVLc5qSDvMSg.png" /><figcaption>Figure 1: DNS query resolving “www.google.com” into an IP address.</figcaption></figure><p><strong>Key Observations:</strong></p><p>· DNS converts domain name into the IP address.</p><p>· Without DNS, users would need to remember IP addresses instead of domain names</p><p>· It operates at the application layer.</p><p><strong>Layer 6 –Presentation Layer</strong></p><p>The <strong>Presentation Layer</strong> is responsible for <strong>data formatting, encryption, decryption, and compression</strong>. Its primary purpose is to ensure that data sent by one device can be correctly interpreted by another while protecting sensitive information during transmission.</p><p>When I visited <a href="https://www.google.com/"><strong>https://www.google.com</strong></a>, the browser established a <strong>TLS (Transport Layer Security)</strong> connection before exchanging any encrypted data. This process ensures that all communication between my browser and Google’s server remains private and secure.</p><p>Although, TLS is commonly <strong>associated with the Presentation Layer</strong> in the OSI model because it provides encryption and decryption services.</p><p><strong>Wireshark Filter: TLS</strong></p><p><strong>What I Observed</strong></p><p>After applying the ‘<strong>tls’</strong> filter, I observed multiple <strong>TLS handshake</strong> packets exchanged between my computer and Google’s server. During this handshake, both the client and the server negotiate the TLS version, select the encryption algorithms, verify the server’s digital certificate, and generate shared session keys for secure communication.</p><p>Once the handshake is complete, all subsequent communication is encrypted, protecting sensitive information such as passwords, cookies, and personal data from unauthorized access.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RtdVujjXPgsy3YA6pW-_Rg.png" /><figcaption><strong>Figure 2: TLS handshake establishing a secure encrypted connection between the client and Google’s server.</strong></figcaption></figure><p><strong>Key Observations:</strong></p><p>· TLS encrypts communication between the client and the server.</p><p>· The <strong>Client Hello</strong> initiates the secure connection.</p><p>· The <strong>Server Hello</strong> responds with the chosen security parameters.</p><p>· After the handshake, the data is transmitted in encrypted form.</p><p><strong>Layer 5 –Session Layer</strong></p><p>The <strong>Session Layer</strong> is responsible for <strong>establishing, managing, and terminating communication sessions</strong> between two devices. It ensures that both the client and the server maintain an active conversation while data is being exchanged and gracefully close the session once communication is complete.</p><p>Unlike some other OSI layers, the Session Layer is <strong>not directly represented by a dedicated protocol in Wireshark</strong>. Instead, its functionality is often provided by protocols such as <strong>TLS</strong> and by the application itself.</p><p>In this packet capture, the TLS handshake establishes a secure session between my browser and Google’s server. Once the session is successfully created, both devices can exchange encrypted data until the communication ends.</p><p><strong>Wireshark Filter: TLS</strong></p><p><strong>What I Observed</strong></p><p>While analyzing the TLS packets, I observed that after the <strong>Client Hello</strong> and <strong>Server Hello</strong> messages, the client and the server established a secure session. Once this session was active, all subsequent communication appeared as encrypted <strong>Application Data</strong>, indicating that the session remained active throughout the exchange.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SN8WX387YFPGNBdyv9KcZA.png" /><figcaption><strong>Figure 3:</strong> A secure communication session established between the client and the server after the TLS handshake.</figcaption></figure><p><strong>Key Observations:</strong></p><p>· The Session Layer establishes and maintains communication between two devices.</p><p>· It keeps the session active while data is exchanged.</p><p>· The session is terminated when communication is complete.</p><p>· In modern networks, Session Layer functionality is commonly implemented through protocols such as TLS.</p><p><strong>Layer 4 –Transport Layer</strong></p><p>The <strong>Transport Layer</strong> is responsible for providing reliable end-to-end communication between devices. It ensures that data is delivered accurately, in the correct order, and without loss. The two most common protocols at this layer are <strong>TCP (Transmission Control Protocol)</strong> and <strong>UDP (User Datagram Protocol)</strong>.</p><p>When I accessed <a href="https://www.google.com/"><strong>https://www.google.com</strong></a>, the browser first established a <strong>TCP connection</strong> with the server before any encrypted data was exchanged. This connection was created using the <strong>TCP Three-Way Handshake</strong>, which verifies that both the client and the server are ready to communicate.</p><p><strong>Wireshark Filter: TCP</strong></p><p>Wireshark Display Filter <strong>tcp.flags.syn == 1</strong></p><p><strong>What I Observed</strong></p><p>After applying the tcp filter, I identified the packets involved in the <strong>TCP Three-Way Handshake</strong>. The process begins with the client sending a <strong>SYN</strong> packet to request a connection. The server replies with a <strong>SYN, ACK</strong> packet to acknowledge the request and indicate that it is ready to communicate. Finally, the client sends an <strong>ACK</strong> packet, completing the handshake and establishing a reliable connection.</p><p>Once the handshake was complete, the browser began exchanging application data over the established TCP connection.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oxqoLPXjo4MtC6ldmSKSjg.png" /><figcaption><strong>Figure 4:</strong> TCP Three-Way Handshake showing the connection establishment between the client and the server.</figcaption></figure><p><strong>Key Observations</strong></p><ul><li>TCP provides <strong>reliable</strong> communication between two devices.</li><li>The connection begins with a <strong>Three-Way Handshake</strong>:</li></ul><ol><li><strong>SYN</strong> — Client requests a connection.</li><li><strong>SYN, ACK</strong> — Server acknowledges the request.</li><li><strong>ACK</strong> — Client confirms the connection.</li></ol><ul><li>After the handshake, data can be exchanged reliably.</li></ul><p><strong>Layer 3– Network Layer</strong></p><p>The <strong>Network Layer</strong> is responsible for <strong>logical addressing and routing</strong>. It determines how data travels from the source device to the destination device, even if they are located on different networks. The primary protocol operating at this layer is the <strong>Internet Protocol (IP)</strong>.</p><p>Every device connected to a network is assigned an <strong>IP address</strong>. When a packet is sent, the Network Layer adds the <strong>source IP address</strong> and <strong>destination IP address</strong>, enabling routers to forward the packet toward its destination.</p><p><strong>Wireshark Filter: ipv6</strong></p><p>Wireshark Display Filter <strong>ip || ipv6</strong></p><p><strong>What I Observed</strong></p><p>After selecting a TCP packet in Wireshark, I expanded the <strong>Internet Protocol Version 4</strong> section in the Packet Details pane. The packet contained the following information:</p><ul><li><strong>Source IP Address:</strong> 192.168.1.5 (my computer)</li><li><strong>Destination IP Address:</strong> 192.168.179.135 (the destination device)</li></ul><p>These IP addresses identify the sender and receiver of the packet, allowing routers to forward the packet across the network until it reaches its destination.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Qc9Zc3GVWTcA4ZeY4VDVPw.png" /><figcaption><strong>Figure 5:</strong> IPv4 header showing the source and destination IP addresses used for routing packets across the network.</figcaption></figure><p><strong>Key Observations</strong></p><ul><li>Every packet contains a <strong>source</strong> and <strong>destination</strong> IP address.</li><li>The Network Layer is responsible for <strong>logical addressing</strong> and <strong>routing</strong>.</li><li>Routers examine the destination IP address to determine where to forward the packet.</li><li>Both <strong>IPv4</strong> and <strong>IPv6</strong> operate at the Network Layer.</li></ul><p><strong>Layer 2–Data Link Layer</strong></p><p>The <strong>Data Link Layer</strong> is responsible for <strong>node-to-node communication</strong> within the same local network. It packages data into <strong>frames</strong> and uses <strong>MAC (Media Access Control) addresses</strong> to ensure that the frame is delivered to the correct device on the local network.</p><p>Unlike the Network Layer, which uses IP addresses for communication across different networks, the Data Link Layer uses <strong>physical MAC addresses</strong> to identify devices on the same network segment.</p><p><strong>Wireshark Filter: eth</strong></p><p><strong>What I Observed</strong></p><p>After selecting a packet in Wireshark, I expanded the <strong>Ethernet II</strong> section in the Packet Details pane. The frame contained both the <strong>Source MAC Address</strong> and the <strong>Destination MAC Address</strong>, along with the <strong>Type</strong> field indicating that the payload carried an IPv4 packet.</p><p>In my capture, the Ethernet frame contained:</p><ul><li><strong>Source MAC Address:</strong> 00:2e:2d:10:1a:61</li><li><strong>Destination MAC Address:</strong> c0:2e:5f:b6:1c:11</li><li><strong>Type:</strong> IPv4 (0x0800)</li></ul><p>These MAC addresses identify the sender and receiver within the local network, while the <strong>Type</strong> field tells the receiving device that the payload is an IPv4 packet.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oasOaZRAfF4fWsjjX8FV2w.png" /><figcaption><strong>Figure 6:</strong> Ethernet II frame showing the source MAC address, destination MAC address, and frame type.</figcaption></figure><p><strong>Key Observations</strong></p><ul><li>The Data Link Layer uses <strong>MAC addresses</strong> for communication within the local network.</li><li>Data is transmitted as <strong>Ethernet frames</strong>.</li><li>Each frame contains a <strong>Source MAC Address</strong> and a <strong>Destination MAC Address</strong>.</li><li>The <strong>Type</strong> field identifies the protocol carried inside the frame (for example, IPv4 or IPv6).</li></ul><p><strong>Layer 1– Physical Layer</strong></p><p>The <strong>Physical Layer</strong> is the lowest layer of the OSI model. It is responsible for transmitting raw bits (0s and 1s) between devices through a physical medium such as <strong>Ethernet cables, fiber-optic cables, or wireless radio signals (Wi-Fi)</strong>.</p><p>This layer defines the electrical signals, voltage levels, cable specifications, connectors, radio frequencies, and data transmission rates required for communication. Unlike the upper layers, the Physical Layer does not interpret the data — it simply transmits and receives bits.</p><p><strong>Wireshark and the Physical Layer</strong></p><p>Unlike the other OSI layers, the Physical Layer <strong>cannot be directly observed in Wireshark</strong>. Wireshark captures packets only <strong>after the network interface card (NIC)</strong> has received the physical signals and converted them into Ethernet frames.</p><p>For this reason, there is no dedicated Wireshark filter or packet field that represents the Physical Layer.</p><p><strong>Note:</strong> The absence of Physical Layer information in Wireshark does not mean it is unimportant. Without the Physical Layer, no data would ever reach Wireshark for analysis.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/505/1*zSVnunDsNJ4eVMUBY0tA1Q.png" /><figcaption>basic Network Diagram</figcaption></figure><p><strong>Key Observations</strong></p><ul><li>The Physical Layer transmits raw bits (0s and 1s).</li><li>It uses physical media such as Ethernet, fiber optics, or Wi-Fi.</li><li>It defines electrical, optical, and radio signal transmission.</li><li>Wireshark cannot capture the Physical Layer because it analyzes packets only after they have been received by the network interface.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/931/1*26RlzZUODeARr1kMU-vIbg.png" /></figure><p><strong>Conclusion</strong></p><p>The OSI Model is more than just a theoretical framework — it’s a practical tool for understanding how data travels across a network. By analyzing real packet captures in Wireshark, I was able to observe how different protocols correspond to the various OSI layers, from DNS requests at the Application Layer to Ethernet frames at the Data Link Layer.</p><p>Although some layers, such as the <strong>Session Layer</strong> and <strong>Physical Layer</strong>, cannot be directly observed in Wireshark, understanding their roles helps build a complete picture of network communication.</p><p>For anyone starting a career in networking or cybersecurity, learning the OSI model is an essential first step. Instead of memorizing the seven layers, I found that analyzing real network traffic made the concepts much easier to understand and remember.</p><p>Thankyou</p><p>Dhruv</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a8411296839d" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>