<?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 Osama Elghazaly on Medium]]></title>
        <description><![CDATA[Stories by Osama Elghazaly on Medium]]></description>
        <link>https://medium.com/@osamaelghazaly?source=rss-b8d27939d578------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*Cf-I36q-CpI-XcL3</url>
            <title>Stories by Osama Elghazaly on Medium</title>
            <link>https://medium.com/@osamaelghazaly?source=rss-b8d27939d578------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 03:00:22 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@osamaelghazaly/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[Protecting against AI Agents in your Microsoft managed environment]]></title>
            <link>https://medium.com/@osamaelghazaly/protecting-against-ai-agents-in-your-microsoft-managed-environment-587e256881b1?source=rss-b8d27939d578------2</link>
            <guid isPermaLink="false">https://medium.com/p/587e256881b1</guid>
            <category><![CDATA[microsoft-defender]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[cloud-security]]></category>
            <dc:creator><![CDATA[Osama Elghazaly]]></dc:creator>
            <pubDate>Sun, 04 Oct 2026 09:28:09 GMT</pubDate>
            <atom:updated>2026-10-04T09:28:09.644Z</atom:updated>
            <content:encoded><![CDATA[<p>AI agents attack path is becoming the go-to method for attackers nowadays, where it has proved its effectiveness to avoid EDR/AV and CASB solutions detections.</p><p>In this article, I will be explaining some methods to help your environment protect against these threats and gain some level of visibility.</p><h4>Defender for Cloud Apps</h4><p>Defender for Cloud Apps is considered as Microsoft’s CASB solution where it sits between the user and the cloud application. The user interactions are mostly recorded in the activity log tab in DefenderXDR.</p><p>We will be creating a new “App Discovery Policy” in the Cloud Apps tab as below</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*C2MI4KZ3njGHZOcSf_GSrw.png" /></figure><p>Inside the “App Discovery Policy” we will be filtering for the “Generative AI” category, then selecting “Tag App as unsanctioned” as the action to take.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dTw7Q7Nn3yp667cG_B6dSg.png" /></figure><p>Note</p><p>Its required that the below options to be enabled in-order for the unsanctioned to take action</p><p>1- Enforce App Access for Microsoft Defender for Endpoint ( settings → Cloud Apps → Microsoft Defender for Endpoint → Confirm Enforce App Access box is checked)</p><p>2- Block Custom Network Indicators option is enabled</p><h4>DefenderXDR Security for AI</h4><p>Microsoft released a new feature for Defender for Endpoint where it centralized guardrails that monitor and control risky AI agent interactions in real time across A365.</p><p>These rules help security teams detect and manage suspicious user requests, agent responses, and tool actions, ensuring safer and more reliable experiences across all agents.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rBDsaVpu861NYKo48KEu2g.png" /></figure><p>One policy is enabled by default on audit mode, so its advised to create new policy on block mode to utilize this capability.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*332-6t32B0otFffMkxBGkQ.png" /></figure><h4>Detection Use Cases</h4><p>In this part I will be sharing a custom built KQL that detects suspicious clicks to ChatGPT or ClaudeAI artifcats. Please feel free to add more domains or common artifacts URLs.</p><blockquote>let sus_emails = <br>UrlClickEvents<br>| where Workload == “Email”<br>| where Url has_any (<br> “claude.ai/share/”, “claude.ai/artifact/”, “claude.ai/code/artifact/”, “claude.site/artifacts/”,<br> “chatgpt.com/share/”, “chat.openai.com/share/”, “chatgpt.com/canvas/shared/”, “chatgpt.com/g/”<br> )<br>| summarize by NetworkMessageId;<br>EmailEvents<br>| where IsFirstContact == true<br>| join kind=inner sus_emails on NetworkMessageId</blockquote><p>In summary of the above, this serves as a second layer, assuming that AI domains have been blocked in your perimeter firewalls. Ensure to follow Microsoft documentations to utilize your security solution’s full potential.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=587e256881b1" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[ClickFix attacks and how to detect them]]></title>
            <link>https://medium.com/@osamaelghazaly/clickfix-attacks-and-how-to-detect-them-4f0d551cddb4?source=rss-b8d27939d578------2</link>
            <guid isPermaLink="false">https://medium.com/p/4f0d551cddb4</guid>
            <category><![CDATA[detection-engineering]]></category>
            <category><![CDATA[phishing]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[clickfix]]></category>
            <dc:creator><![CDATA[Osama Elghazaly]]></dc:creator>
            <pubDate>Fri, 04 Sep 2026 05:10:47 GMT</pubDate>
            <atom:updated>2026-09-04T05:10:47.542Z</atom:updated>
            <content:encoded><![CDATA[<p>There is no doubt that phising techniques are getting more convincing each day. Attackers have developed a technique known as ClickFix to trick users into delievering their malicious payload directly on the user’s device. Thus, enabling the users as an intermediary between the attacker and their payload, while eliminating any chance of payload not being deleiverd.</p><p>ClickFix comes with three other variants (referenced from Huntress blog):</p><ul><li>FileFix</li><li>DownloadFix</li><li>TerminalFix</li></ul><p>This blog is to showcase KQL detection rules that attempts to catch any activity related to ClickFix with its variants:</p><ul><li><strong>ClickFix via DeviceProcessEvents</strong></li><li><strong>ClickFix via Registry Artifacts</strong></li><li><strong>FileFix via Device Process Events</strong></li><li><strong>FileFix via Registry Artifacts</strong></li><li><strong>DownloadFix via Device Process Events</strong></li></ul><p>To understand more about the techniques, please visit this Huntress blog <a href="https://www.huntress.com/blog/dont-sweat-clickfix-techniques">https://www.huntress.com/blog/dont-sweat-clickfix-techniques</a>.</p><p><strong>ClickFix via DeviceProcessEvents</strong></p><p>Detects ClickFix-style social engineering attacks where a user is tricked into pasting and running a malicious command via the Windows “Run” dialog or similar. Flags process activity where conhost.exe is spawned directly by explorer.exe, a pattern uncommon in normal user behavior but typical when a victim pastes a command into Win+R and executes it.</p><pre>//ClickFix Detection From Device Porcess Events<br>DeviceProcessEvents<br>| where InitiatingProcessFileName contains (&quot;conhost&quot;)<br>| where InitiatingProcessParentFileName contains &quot;explorer&quot;</pre><p><strong>ClickFix via Registry Artifacts</strong></p><p>Detects ClickFix attacks by inspecting the RunMRU registry key (which stores recent Run-dialog history) for entries initiated by explorer.exe containing suspicious indicators — such as scripting utilities, remote-access keywords, or URLs/domains commonly used in ClickFix lure pages. Excludes known internal/benign entries (e.g., &lt;your company’s domain&gt;).</p><pre>//ClickFix Detection From Device Registry Events<br>DeviceRegistryEvents<br>| where InitiatingProcessFileName contains &quot;explorer&quot;<br>| where RegistryKey contains &quot;RunMRU&quot;<br>| where RegistryValueData has_any (&quot;.com&quot;,&quot;conhost&quot;,&quot;headless&quot;,&quot;curl&quot;,&quot;.net&quot;, &quot;.xyz&quot;,&quot;.top&quot;,&quot;mshta&quot;,&quot;http&quot;,&quot;hxxp&quot;)<br>| where RegistryValueData !contains &lt;your company&#39;s domain&gt;</pre><p><strong>FileFix via Device Process Events</strong></p><p>Detects FileFix attacks, a ClickFix variant where victims are lured into pasting malicious commands via a fake file-explorer prompt from a browser. Looks for LOLBins (PowerShell, mshta, certutil, etc.) launched by a browser process, with command-line arguments indicating hidden execution, encoded commands, or remote download/execution behavior</p><p>This detection was referenced from <strong>Steven Lim’s</strong> original KQL but adjusted further (<a href="https://detections.ai/rules/5f43e097-457f-4a8e-8a07-b00edc2c5b85">https://detections.ai/rules/5f43e097-457f-4a8e-8a07-b00edc2c5b85</a>)</p><pre>//Possible FileFix detected via DeviceProcessEvents<br>let MonitoredCommands = dynamic([&quot;powershell&quot;, &quot;pwsh&quot;, &quot;regsvr32&quot;, &quot;bitsadmin&quot;, &quot;certutil&quot;, &quot;mshta&quot;]);<br>let ParentProcessList = dynamic([&quot;chrome&quot;, &quot;msedge&quot;, &quot;firefox&quot;, &quot;brave&quot;, &quot;explorer&quot;]);<br>DeviceProcessEvents<br>| where FileName has_any(MonitoredCommands)<br>| where InitiatingProcessFileName has_any(ParentProcessList)<br>| where ProcessCommandLine has_any(&quot;-NoP&quot;, &quot;-W Hidden&quot;, &quot;DownloadString&quot;, &quot;Invoke-WebRequest&quot;, &quot;IEX&quot;, &quot;/c&quot;, &quot;/k&quot;, &quot;http&quot;, &quot;hxxp&quot;, &quot;iex&quot;, &quot;enc&quot;, &quot;-EncodedCommand&quot;)<br>| project TimeGenerated, DeviceName, FileName, ProcessCommandLine, InitiatingProcessFileName, InitiatingProcessCommandLine, AccountName</pre><p><strong>FileFix via Registry Artifacts</strong></p><p>Alternative detection for FileFix using the TypedPaths registry key (which records paths typed into Explorer’s address bar). Flags entries created by a browser process containing suspicious command-line indicators (download, execution, obfuscation keywords). Excludes known benign entries.</p><pre>//Possible FileFix detected via Registry Artifacts<br>let ParentProcessList = dynamic([&quot;chrome&quot;, &quot;msedge&quot;, &quot;firefox&quot;, &quot;brave&quot;,&quot;explorer&quot;]);<br>DeviceRegistryEvents<br>| where InitiatingProcessFileName has_any (ParentProcessList)<br>| where RegistryKey contains &quot;TypedPaths&quot;<br>| where RegistryValueData has_any (&quot;-NoP&quot;, &quot;-W Hidden&quot;, &quot;DownloadString&quot;, &quot;Invoke-WebRequest&quot;, &quot;IEX&quot;, &quot;/c&quot;, &quot;/k&quot;, &quot;http&quot;, &quot;hxxp&quot;, &quot;iex&quot;, &quot;enc&quot;, &quot;-EncodedCommand&quot;)<br>| where RegistryValueData !contains &lt;your company&#39;s domain&gt;</pre><p><strong>DownloadFix via Device Process Events</strong></p><p>Detects a “DownloadFix” pattern where a browser process spawns cmd.exe to execute a .cmd batch file — a technique used to disguise malicious script execution as a routine file download/open action.</p><pre>// DownloadFix Detection From Device Process Events<br>let BrowserList = dynamic([&quot;chrome&quot;, &quot;msedge&quot;, &quot;firefox&quot;, &quot;brave&quot;]);<br>DeviceProcessEvents<br>| where InitiatingProcessFileName has_any (BrowserList)<br>| where FileName contains &quot;cmd&quot;<br>| where ProcessCommandLine has_any (&quot;.cmd&quot;)</pre><p>Should you see any adjustments needed to the above use cases, kindly leave a comment so I can get back to you.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4f0d551cddb4" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Detecting Device Code Phishing]]></title>
            <link>https://medium.com/@osamaelghazaly/detecting-device-code-phishing-a3d7014db8ba?source=rss-b8d27939d578------2</link>
            <guid isPermaLink="false">https://medium.com/p/a3d7014db8ba</guid>
            <category><![CDATA[phishing]]></category>
            <category><![CDATA[device-code-phishing]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <dc:creator><![CDATA[Osama Elghazaly]]></dc:creator>
            <pubDate>Wed, 26 Aug 2026 13:01:45 GMT</pubDate>
            <atom:updated>2026-08-26T13:01:45.149Z</atom:updated>
            <content:encoded><![CDATA[<p>In this blog I’m sharing a custom made KQL detection for Device Code Phishing after a recent security incidents occurred with one of our managed environments.</p><p>A user received an email that was classified as “phish” due to a phishing URL within the email. The URL carries out the typical device code phishing technique.</p><p>The user unfortunately carried out all steps requested by the threat actor, and two anonymous user workstations appeared within the user’s EntraID devices page.</p><p>The sequence of events noted here is as below:</p><ul><li>User receives an email</li><li>The email contains at least one URL</li><li>The email/URL is classified as phish</li><li>The user clicks on the URL</li><li>Within 5 minutes, a new device is registered under the user’s name</li></ul><p>Based on the above logic, the below KQL was developed</p><pre>// Device registrations that happened recently<br>let DeviceRegistrations =<br>    AuditLogs<br>    | where TimeGenerated &gt;= ago(1h)<br>    | where OperationName in (&quot;Register device&quot;, &quot;Add device&quot;)<br>    | extend UPN = tostring(parse_json(tostring(InitiatedBy.user)).userPrincipalName)<br>    | extend RecipientObjectId = tostring(parse_json(tostring(InitiatedBy.user)).id)<br>    | extend sourceIP = tostring(parse_json(tostring(InitiatedBy.user)).ipAddress)<br>    | extend addedDevice = tostring(TargetResources[0].displayName)<br>    | project<br>        UPN,<br>        RecipientObjectId,<br>        sourceIP,<br>        addedDevice,<br>        TimeAdded = TimeGenerated;<br>// Email metadata<br>// DO NOT restrict this by TimeGenerated as the email might have been received long time ago<br>let EmailEventsWithURLs =<br>    EmailEvents<br>    | where UrlCount &gt; 0<br>    | project<br>        NetworkMessageId,<br>        RecipientEmailAddress,<br>        RecipientObjectId,<br>        SenderFromAddress,<br>        Subject,<br>        SenderIPv4;<br>// URL clicks that happened recently<br>let EmailUrlClicks =<br>    UrlClickEvents<br>    | where TimeGenerated &gt;= ago(1h)<br>    | join kind=inner EmailEventsWithURLs on NetworkMessageId<br>    | project<br>        ClickTime = TimeGenerated,<br>        NetworkMessageId,<br>        RecipientEmailAddress,<br>        RecipientObjectId,<br>        SenderFromAddress,<br>        Subject,<br>        SenderIPv4;<br>// Device registration within 5 minutes after URL click<br>EmailUrlClicks<br>| join kind=inner DeviceRegistrations on RecipientObjectId<br>| where TimeAdded &gt;= ClickTime<br>| where TimeAdded &lt;= ClickTime + 5m<br>| project<br>    ClickTime,<br>    TimeAdded,<br>    TimeDifference = TimeAdded - ClickTime,<br>    User = RecipientEmailAddress,<br>    UserID = RecipientObjectId,<br>    MaliciousComputerAdded = addedDevice,<br>    DeviceRegistrationIP = sourceIP,<br>    SuspiciousEmailSender = SenderFromAddress,<br>    SuspiciousEmailSenderIPAddress = SenderIPv4,<br>    EmailSubject = Subject,<br>    NetworkMessageId<br>| order by ClickTime desc</pre><p>The above rule can be scheduled with the below details</p><p>Title: Device Code Phishing through phishing email<br>Mitre: T1566.002 — Spearphishing Link<br>Schedule: run every hour<br>Data lookup: for past one hour<br>Event grouping: group all events into a single alert.</p><p>In summary of the above, I hope this detection rule benefits your environment and works as required.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a3d7014db8ba" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Phishing using HTML and CSS]]></title>
            <link>https://medium.com/@osamaelghazaly/phishing-using-html-and-css-ab9bfa0286d8?source=rss-b8d27939d578------2</link>
            <guid isPermaLink="false">https://medium.com/p/ab9bfa0286d8</guid>
            <category><![CDATA[phishing]]></category>
            <category><![CDATA[threat-hunting]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <dc:creator><![CDATA[Osama Elghazaly]]></dc:creator>
            <pubDate>Fri, 07 Aug 2026 19:52:58 GMT</pubDate>
            <atom:updated>2026-08-07T19:52:58.757Z</atom:updated>
            <content:encoded><![CDATA[<p>Attackers are constantly coming up with methods making their emails appear as legitimate as possible for end users. During my SOC shift, I observed a user requesting for an email to be released.</p><p>Upon first look, I was able to see a file attachment for the user to download as below</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/969/1*Wcqzhngn9n1lw3f2jTRGow.png" /></figure><p>But when I inspected the quarantine reason, it was noted as “Web Reputation”, meaning that a URL was detected as malicious in the email.</p><p>When the mouse is hovered over the file attachment, a URL appears. This means that the attacker somehow was able to draw a file attachment box with a ZIP file icon inside it along with the file size.</p><p>For a normal user, this is not suspicious and the user would click on it. Thus, being directed to the attacker’s website.</p><p>I viewed the email as raw source and discovered that the attacker utilised HTML and CSS to draw the box and draw inside it a ZIP file icon.</p><p>To hunt for this technique in our enviornment, I created a YARA rule that checks if a file contains the below elements</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/488/1*tjH3QI4-7rMopN3zKQ27BA.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ab9bfa0286d8" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[MS Sentinel Logic App for Impossible Travel alerts]]></title>
            <link>https://medium.com/@osamaelghazaly/ms-sentinel-logic-app-for-impossible-travel-alerts-2587c7036f7e?source=rss-b8d27939d578------2</link>
            <guid isPermaLink="false">https://medium.com/p/2587c7036f7e</guid>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[automation]]></category>
            <category><![CDATA[azure-logic-apps]]></category>
            <category><![CDATA[microsoft-sentinel]]></category>
            <dc:creator><![CDATA[Osama Elghazaly]]></dc:creator>
            <pubDate>Fri, 03 Jul 2026 07:18:37 GMT</pubDate>
            <atom:updated>2026-07-03T07:18:37.706Z</atom:updated>
            <content:encoded><![CDATA[<p>Impossible travel is an incident where a user sign ins from two locations where the time difference indicates that the user could not have traveled from location 1 and location 2 logically. Microsoft Defender for Cloud Apps provides this logic as an anomaly based detection. It takes 7 days to build a baseline for user login typical locations and VPN usage.</p><p>Across our 4 clients that are utilizing Defender for Cloud Apps detection, almost all the impossible travel alerts are resolved to be false positive. The main cause is that Defender for Cloud Apps considers the below tables for detection, while other use cases created by independent authors only consider SigninLogs:</p><ul><li>SigninLogs</li><li>CloudAppEvents</li></ul><p>The most common false positive cases are as below:</p><ul><li>User sign ins from workstation then sign ins from personal phone using VPN</li><li>User sign ins from workstation then sign ins from personal phone which results in non-interactive sign ins from Microsoft data center locations</li><li>User sign ins from workstation then turns on VPN</li><li>User utilizes company VPN for log in while on annual leave</li></ul><p>So I have developed a Sentinel Logic App that carries out typical analyst tasks to automatically handle the impossible travel alerts.</p><p>The Logic App obtains the below information from <strong>ipqualityscore </strong>free API. You can choose any other APIs (e.g., AbuseIPDB, VirusTotal).</p><ul><li>IP address 1 and IP address 2 malicious score</li><li>Is IP address 1 VPN ?</li><li>Is IP address 2 VPN ?</li></ul><p>Logic App steps:</p><p><strong>1- Extract fields from incident description</strong></p><p>The description typicall is shown as below</p><blockquote>The user Ronaldo, Cristiano(cristiano@portugal.com) was involved in an impossible travel incident. The user connected from two countries within 61 minutes, from these IP addresses: Hong Kong SAR (192.168.1.1) and China (192.168.2.2). If any of these IP addresses are used by the organization for VPN connections and do not necessarily represent a physical location, we recommend categorizing them as VPN in the IP Address range page in Microsoft Defender for Cloud Apps portal to avoid false alerts.</blockquote><p>Now we need to extract below fields using the <strong>compose </strong>action item:</p><ul><li>User full name → Cristiano Ronaldo</li><li>User email → cristiano@portugal.com</li><li>IP address 1 → 192.168.1.1</li><li>Country 1 → Hong Kong</li><li>IP address 2 → 192.168.2.2</li><li>Country 2 → China</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*358LZZFeRwZCIrgnOB19gQ.png" /><figcaption>Compose for extracting user full name</figcaption></figure><p>By following the same logic above, we can extract the necessarily fields</p><p><strong>2- Enrich IP addresses 1 and 2 using ipqualityscore API</strong></p><p>After extracting the IPs, we will enrich them through ipqualityscore API to obtain VPN and malicious score information</p><p>An action item named “HTTP” will be used. Here, we will define our API request with our API key as below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jnVdyoPYcd14GNAUS8CBbw.png" /><figcaption>HTTP GET request to API</figcaption></figure><p>Next step is to parse the response returned by the API GET request by defining a schema. Fortunately enough, Logic Apps allows us to provide a sample response and it will automatically produce a schema. Thus, mapping the response to usable variable names</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pq8C_bhd6lTasQ0QCXFq9g.png" /><figcaption>Sample payload option in bottom right</figcaption></figure><p><strong>3- Defining variables</strong></p><p>The below variables are created to save results needed to display later:</p><ul><li>Malicious score → Gets incremented every time threat is recorded</li><li>isVpn → Was the IP utilized as VPN ?</li><li>isIpSharedByOthers → Do other employees sign in using this IP in last 30 days ? This can indicate company VPN IP</li><li>isSignInMalicious → Based on the result returned by <strong>ipqualityscore</strong></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oxv6GLrbc3VrXjUJnwcZVw.png" /><figcaption>Variables initiated</figcaption></figure><p>Now, that we have extracted incident details, enriched our IPs and defined our variables , we can proceed to the analysis steps that is typically done by an analyst handling the alert.</p><p><strong>4- Analysis steps</strong></p><p>We firstly check for VPN usage. If an IP is not considered as VPN, the malicious score will be incremented by a score of 9.</p><p>This uses the value returned by <strong>ipqualityscore</strong> API</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CvTlIl4CU_gXApBWrC3Aog.png" /></figure><p>Next we check if the IPs were malicious. The condition action item checks the field titled “fraud_score” returned by API if greater than 40</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hiONctlnA3z8VltqkEnX3w.png" /></figure><p>Next, we need to check if the user signed in from workstation then used a mobile phone and resulted in an impossible travel incident. Mobile phones usually are involved in several non-interactive sign ins through Microsoft data centers.</p><p>The time is set to last 24 hours, and the query used is as below</p><blockquote>union <br>(SigninLogs<br>| where UserDisplayName == “”<br>| extend AccountDisplayName = UserDisplayName<br>| where IPAddress in (“”, “”)<br>| where UserAgent &lt;&gt; “Windows-AzureAD-Authentication-Provider/1.0”<br>| extend Source = “SigninLogs”),<br>(CloudAppEvents<br>| where AccountDisplayName == “”<br>| where IPAddress in (“”, “”)<br>| extend Source = “CloudAppEvents”)<br>| extend DeviceType =<br> case(<br> UserAgent has_any (“Android”,”iOS”), “Mobile”,<br> UserAgent has_any (“Windows”,”MacOS”,”Linux”,”windows10&quot;,”windows11&quot;), “Workstation”,<br> “Other”<br> )<br>| summarize Sources = make_set(Source) by AccountDisplayName, DeviceType<br>| summarize <br> DevicesInBothSources = sumif(1, Sources has “SigninLogs” and Sources has “CloudAppEvents”),<br> DevicesInSigninLogsOnly = sumif(1, Sources has “SigninLogs” and Sources !has “CloudAppEvents”),<br> DevicesInCloudAppEventsOnly = sumif(1, Sources !has “SigninLogs” and Sources has “CloudAppEvents”)<br> by AccountDisplayName<br>| extend SameDeviceInBothSources = iff(DevicesInBothSources &gt; 0, “Yes”, “No”)<br>| project AccountDisplayName, SameDeviceInBothSources, DevicesInBothSources, DevicesInSigninLogsOnly, DevicesInCloudAppEventsOnly<br>| project SameDeviceInBothSources</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*N6Ia2Esav_jUvX_QCokBNw.png" /></figure><p>A compose is used to extract the result returned, since KQL queries return results in an array form, so the compose extracts output in a string format that can be referenced later.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/854/1*K5XE0zN7ub-ubHIh7GMitg.png" /><figcaption>Compose action to extract KQL result</figcaption></figure><p>Moreover, we need to check if there are any employees utilizing any of these IPs.</p><p>The query for this will check last 30 days as below</p><blockquote>union <br>(SigninLogs<br>| where IPAddress == “”<br>| extend Source = “SigninLogs”),<br>(CloudAppEvents<br>| where IPAddress == “”<br>| where isnotnull(AccountObjectId) <br>| extend Source = “CloudAppEvents”)<br>| summarize OtherUsersCount = dcount(UserDisplayName)<br>| extend OtherUsersUsedIP = iff(OtherUsersCount &gt; 1,”Yes”,”No”)<br>| project OtherUsersUsedIP</blockquote><p>A compose action will be deployed again to extract the KQL results.</p><p>If the IP is not used by other employees in the last 30 days, then the malicious score will be incremented as below</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/910/1*cRIy6kmmeuGOAzmq7DX0dQ.png" /></figure><p>Please note that the above query is run for IP address 1 then run again in a new action item for IP address 2</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/554/1*_GROTM9gBwPM2Ol7NpsMNg.png" /></figure><p>The above steps will be repeated exactly the same for the below checks</p><ul><li>Sign ins by source user from Country 1 last 30 days</li><li>Sign ins by source user from Country 2 last 30 days</li><li>Sign ins from source user using IP 1 last 30 days</li><li>Sign ins from source user using IP 2 last 30 days</li><li>Same user agent used ?</li></ul><p>So the flow is running query → extracting results using compose action item → using condition item to decide whether to increment malicious score variable or not</p><p>Query for “Sign ins by source user from Country 1 last 30 days” and “Sign ins by source user from Country 2 last 30 days”</p><blockquote>union <br>(SigninLogs<br>| where UserDisplayName == “”<br>| extend Source = “SigninLogs”),<br>(CloudAppEvents<br>| where AccountDisplayName == “”<br>| extend Source = “CloudAppEvents”)<br>| extend location = geo_info_from_ip_address(IPAddress)<br>| extend country = tostring(location.country)<br>| where country contains “”<br>| summarize AttemptCount = count()<br>| extend Attempts = iff(AttemptCount &gt;= 3, “Yes”, “No”)<br>| project Attempts</blockquote><p>Query for “Sign ins from source user using IP 1 last 30 days” and “Sign ins from source user using IP 2 last 30 days”</p><blockquote>union <br>(SigninLogs<br>| where UserDisplayName == “”<br>| extend Source = “SigninLogs”),<br>(CloudAppEvents<br>| where AccountDisplayName == “”<br>| extend Source = “CloudAppEvents”)<br>| where IPAddress == “”<br>| summarize AttemptCount = count(), Sources = make_set(Source)<br>| extend IPPresent = iff(AttemptCount &gt; 2, “Yes”, “No”)<br>| project IPPresent</blockquote><p>Query for “Same user agent used”</p><blockquote>let signInAttempts =<br>union <br>(SigninLogs<br>| where UserDisplayName == “”<br>| where IPAddress in (‘’, ‘’)<br>| where UserAgent &lt;&gt; “Windows-AzureAD-Authentication-Provider/1.0”<br>| extend AccountDisplayName = UserDisplayName<br>| extend Source = “SigninLogs”),<br>(CloudAppEvents<br>| where AccountDisplayName == “”<br>| where IPAddress in (‘’, ‘’)<br>| extend Source = “CloudAppEvents”)<br>| extend NormalizedDeviceType =<br> case(<br> UserAgent has “Android”, “Android”,<br> UserAgent has “iOS”, “iOS”,<br> UserAgent has “Windows”, “Windows”,<br> UserAgent has “MacOS”, “MacOS”,<br> UserAgent has “Linux”, “Linux”,<br> “Other”<br> );<br>signInAttempts<br>| where NormalizedDeviceType &lt;&gt; “Other”<br>| summarize <br> SourceCount = dcount(Source),<br> UniqueDevices = make_set(NormalizedDeviceType),<br> ExactUserAgentCount = dcount(UserAgent),<br> Sources = make_set(Source),<br> AllUserAgents = make_set(UserAgent)<br> by AccountDisplayName<br>| extend SameDeviceUsed = <br> case(<br> SourceCount == 1 and Sources has “SigninLogs” and ExactUserAgentCount == 1, “Yes — Same exact UserAgent in SigninLogs”,<br> array_length(UniqueDevices) == 1, “Yes — Same device type across sources”,<br> “No”<br> )<br>| project SameDeviceUsed</blockquote><p><strong>5- Assess malicious score value</strong></p><p>Now that we have done our checks, our malicious score variable (defined in step 3) should be incremented. The threshold I am currently using is &gt;60. This can vary from environment to environment and quality of checks being run by the Logic App.</p><p>If the malicious score is greater than 60, then proceed to step number 6, if not, the incident will be closed as a FP with the below comment</p><blockquote><strong>Playbook analysis score</strong>: /100<br><strong>Action taken</strong>: Incident should be closed as FP with appropriate comment<br><strong>Verdict</strong>: likely false positive</blockquote><blockquote><strong>Findings<br></strong>Different user agents ? <br>Sign in from computer and phone ?</blockquote><blockquote><strong><em>First IP</em> </strong><br>VPN used: <br>Malicious score: <br>Used by other employees ? <br>IP seen in last 30 days for user ? <br>Country seen in last 30 days for user ?</blockquote><blockquote><strong><em>Second IP</em> </strong><br>VPN used: <br>Malicious score: <br>Used by other employees ? <br>IP seen in last 30 days for user ? <br>Country seen in last 30 days for user ?</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*44zZBUpAm3miikbQMUNLUw.png" /><figcaption>Screenshot of comment added to a FP impossible travel alert</figcaption></figure><p>6- Taking actions for a True Positive incident</p><p>If the malicious score is &gt;60, the impossible travel is considered as malicious.</p><p>In this specific client environment, we are instructed to send users an impossible travel forum where they must select an option from below</p><ul><li>Yes, this was me → Close incident as FP</li><li>No, this was not me → Password is reset</li><li>No user reply → Time out in one hour and perform password reset</li></ul><p>Currently, no action is being taken in our environment and we are monitoring the accuracy of logic app so email notifications are being sent instead of actions taken as below</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*20PD-eIGOOomLPpPzt8UvQ.png" /></figure><p>The approval email sent to the user should be concise and user-friendly</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_LUhF29VRiP6Ti8eYXtYaw.png" /><figcaption>Template example for user notification</figcaption></figure><p>If you require the HTML code or other resources, feel free to reach out.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2587c7036f7e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Why you should listen to your SOC team]]></title>
            <link>https://medium.com/@osamaelghazaly/why-you-should-listen-to-your-soc-team-c7007133b914?source=rss-b8d27939d578------2</link>
            <guid isPermaLink="false">https://medium.com/p/c7007133b914</guid>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[cyber-security-awareness]]></category>
            <category><![CDATA[information-security]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <dc:creator><![CDATA[Osama Elghazaly]]></dc:creator>
            <pubDate>Fri, 29 May 2026 13:06:24 GMT</pubDate>
            <atom:updated>2026-05-29T13:06:24.617Z</atom:updated>
            <content:encoded><![CDATA[<p>Often in organizations there is a type of person or group of people that do not trust the SOC/security team’s observations and recommendations. They are more than often the web development team followed closely by the IT and infrastructure teams.</p><p>I am writing this article based on two real world experiences that I personally faced.</p><p>Firstly, we received an alert in our SIEM solution where a malicious web request was executed against a web app (as a back-end resource behind Azure WAF). After investigation, we noticed that the WAF mode was on “Detection” and all requests that exceeded WAF anomaly threshold were not blocked, only detected.</p><p>We reported the issue to the infrastructure team while providing logs as evidence, but they insisted on their opinion that the listener set for the web application was on “prevention” mode, they would even go to the extent of ignoring our emails. From SOC side, we have documented our findings and did our job, it was clear that the infrastructure team did not follow our recommendations.</p><p>After a while, we escalated the situation and the infrastructure team requested to check with us (SOC team) in an online meeting to prove us wrong. We ended up showing them that the listener for the web application is set to “detection” mode.</p><p>This issue took around one (1) year to be resolved. Following up, we have noticed other web applications on “detection mode”, but this time the infrastructure team directly implemented our recommendations without questioning.</p><p>Secondly, another instance where we discovered the API documentation meant for testing and developing operations, was publicly exposed. Anyone with access to tools such as DirBuster or even online sites such as DnsDumpster, could easily find the API documentation from the original company domain.</p><p>The documentation showed the below information:</p><ul><li>A count of 10 APIs</li><li>Name of each API</li><li>Input fields names</li><li>Input fields data types</li><li>Send/edit/delete data to live production DBs :)</li><li>Ability to test the APIs</li></ul><p>This clearly opens the door for injection based attacks. The below observations were recorded based on logs we received in the SIEM solution:</p><ul><li><strong>Sample suspicious payloads attempted</strong>:</li><li>waitfor delay x:x:x</li><li>ASCII(SUBSTR(…))</li><li>CONVERT()</li><li><strong>Techniques observed</strong> :</li><li>Famous malicious payloads from Github repositories</li><li><em>UNION SELECT injection</em></li><li><em>Boolean based injection</em></li><li><em>Time-based injection</em></li><li><em>Error-based injection</em></li><li>Usage of ASCII to obfuscate code and bypass detection</li><li>Usage of URL encoding to obfuscate code and bypass detection</li></ul><p>An incident report was sent to the application team to take down the front-end documentation of their API page with no response for about 6 months. The only email SOC received was that the application team could not do anything regarding this situation.</p><p>We could tell that their ego was hindering their decision and ability to fix their mistake. Incidents kept occurring where attackers would specifically launch attacks originating from this public documentation page that is connected to the production DB.</p><p>After a while, miraculously the application team decided to re-deploy the API again without the public front-end. This email was sent from the application team to the infrastructure team while SOC were in the CC as their ego prevented them from directly addressing the SOC team and confirming that an issue existed and our recommendation should’ve been followed early on.</p><p>In summary of the above, other departments must understand that security teams are not there to hinder their work or disrupt their operations, we do our best to ensure business continuity while reducing attack surface and vulnerabilities. This is a very common issue in corporate environments where technical teams consider it a personal attack against their work, but from security team’s POV, this is another day of work and we could not care less.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c7007133b914" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Investigating a real-life BEC attack]]></title>
            <link>https://medium.com/@osamaelghazaly/investigating-a-real-life-bec-attack-5a2d22135624?source=rss-b8d27939d578------2</link>
            <guid isPermaLink="false">https://medium.com/p/5a2d22135624</guid>
            <category><![CDATA[compromise]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[email]]></category>
            <dc:creator><![CDATA[Osama Elghazaly]]></dc:creator>
            <pubDate>Fri, 10 Apr 2026 17:29:32 GMT</pubDate>
            <atom:updated>2026-04-10T17:29:32.260Z</atom:updated>
            <content:encoded><![CDATA[<p>The incident happened between two financial entities where party A wanted to withdraw a certain amount of money in millions from party B. Before the day of the transfer, party B calls party A inquiring about an email they received about party A bank details and the money should be transferred to new bank details instead. Party A denied sending an email and immediately stopped the transaction process.</p><p>Upon investigation, it was revealed that a new domain was created one after the email requesting the transaction was sent, impersonating party A domain, with just one letter difference.</p><p>SOC team was alerted, and root cause analysis was started. I initially informed both parties that this is a typical BEC and the attacker was sitting in the compromised mailbox for a while and decided to inject their self when they see a big amount of money. I proceeded with an action plan regarding BEC incidents, to be able to determine the source of the compromise, whether its party A or party B.</p><p>An incident response plan was prepared and I requested from both parties to retrieve logs based on the below points, and this will determine the source of the attack.</p><ul><li>Check for emails received from sender IP/domain/address in the last 30 days for all users involved in the conversation</li><li>Preform password reset for all users involved in the email conversation</li><li>Logout out of all active sessions for users involved in the conversation</li><li>Perform malware scan on all devices involved in the conversation</li><li>Check all phishing emails received by users involved in conversation in the last 30 days</li><li>Check for O365 sign ins from un-managed devices for the users involved in the conversation</li><li>Check for O365 sign ins from countries outside country X for the users involved in the conversation</li><li>Check for impossible travel alerts in the last 60 days</li><li>Check for newly configured forwarding rules on the mailboxes</li></ul><p>The above points unfortunately could not reveal any suspicious activity in both parties.</p><p>Then I remembered an older case I was working on with a colleague where they viewed email audit logs. So I prepared a Splunk query to identify the below points:</p><ul><li>Access from an unexpected country</li><li>Access from unusual IP</li><li>Access outside business hours</li><li>Suspicious client string used</li></ul><p>The SPL query utilized was as below:</p><p>index=office365 “MailItemsAccessed”<br>| spath “Folders{}.FolderItems{}.Subject”<br>| search “Folders{}.FolderItems{}.Subject”= {email subject}<br>| iplocation ClientIPAddress<br>| table CreationTime, MailboxOwnerUPN, Country, ClientIPAddress, ClientInfoString</p><p>Party B revealed a malicious email read from an unusual IP occurred multiple times. This meant that the compromise was from party B side and the attacker has been sitting in the mailbox waiting for a valuable email.</p><p>The below points were then requested from party B to determine blast radius in both parties:</p><ul><li>Share the source IP so we can scan party A environment as an industry IOC</li><li>All IOCs (e.g., malicious URL user clicked, malicious file hash user downloaded, or email subject) must be shared to scan in party A environment</li><li>Party B should ensure no other sign ins have occurred from this IP or its subnet to any other users in their environment</li><li>Reveal the user agent used in accessing the email or attempting to sign in as an IOC.</li></ul><p>Initial point of entry has not been identified yet.It is most likely through a phishing email, where a use clicked on a link and credentials or session was hijacked. I don&#39;t have further access to party B environment so I was not able to identify the initial point of access</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5a2d22135624" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Avoiding reporting false positive impossible travel alerts]]></title>
            <link>https://medium.com/@osamaelghazaly/avoiding-reporting-false-positive-impossible-travel-alerts-41f3bcb58a17?source=rss-b8d27939d578------2</link>
            <guid isPermaLink="false">https://medium.com/p/41f3bcb58a17</guid>
            <category><![CDATA[soc]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <dc:creator><![CDATA[Osama Elghazaly]]></dc:creator>
            <pubDate>Sat, 21 Mar 2026 15:54:20 GMT</pubDate>
            <atom:updated>2026-03-21T16:01:41.025Z</atom:updated>
            <content:encoded><![CDATA[<p>This article is written for L1/L2 SOC analysts who struggle or tend to take aggressive actions on any impossible travel alerts being triaged. Such actions can ruin the user experience VS cyber security balance since the user will have to reset their password and sign in across several platforms on multiple devices.</p><p>From my work as a SOC analyst and designing playbooks for automated investigations, below list summarizes the most important points to look out for when triaging an impossible travel alert:</p><ul><li>Verify if account is shared or not</li><li>Verify if the sign in attempt is interactive or non-interactive</li><li>Examine device EntraID “Join Type” status</li><li>User agent comparison</li><li>Check if user is part of any VPN group from EntraID</li><li>Check if the source IP belongs to vendors such as “FortiNet” or “PaloAlto”</li><li>Check if the source IP appears in other users’ sign-ins</li><li>Check if this user has been reported before</li></ul><h4>Verify if account is shared or not</h4><p>Organizations usually create shared accounts for use across team members. The team members might be located geographically far from each other resulting in sign ins from different countries across a short period of time.</p><h4>Verify if the sign in attempt is interactive or non-interactive</h4><p>Interactive sign-ins require direct user input and originate from the user’s actual location. Non-interactive sign-ins happen silently in the background (token refreshes, OAuth flows) and may appear from remote or unexpected countries due to Microsoft’s globally distributed infrastructure.</p><h4>Examine device EntraID “Join Type” status</h4><p>If the sign in logs are showing that the user is signing in from distant locations but the device join type is showing as “AD Joined”, this means that the user has initiated both sign in attempts, possibly while using a VPN.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JByyzmDFX700uWJZ8CbV4g.png" /><figcaption>EntraID showing device as AD Joined</figcaption></figure><h4>User agent comparison</h4><p>If a suspicious sign-in occurs shortly after a legitimate one, comparing the <strong>User Agent strings</strong> of both events can reveal whether the same device was used — a mismatch in browser, OS, or client version within a tight timeframe is a strong indicator of credential compromise or session hijacking rather than a benign anomaly.</p><h4>Check if user is part of any VPN group from EntraID</h4><p>Organizations usually create VPN groups and assign users that have VPN access to them. These lists can be excluded from impossible travel rules, but in case your organization does not exclude them, one should verify the user involved in the incident belongs to this group or not. Since this will explain the distant sign in attempts in a short time.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3_ln5N_tWktniy--2CMPqw.png" /><figcaption>VPN groups in a production environment</figcaption></figure><h4>Check if the source IP belongs to vendors such as “FortiNet” or “PaloAlto”</h4><p>Such vendors offer VPN service to organizations and will more than often show up in impossible travel alerts with their IP as the second location of the sign in attempt. This can be verified quickly by utilizing tools like AbuseIPDB and VirusTotal, which is faster than checking the publicly registered information associated with the IP (e.g., WHOIS record)</p><h4>Check if the source IP appears in other users’ sign-ins</h4><p>If the same source IP appears across multiple users in your tenant and carries a clean reputation, it’s likely a shared VPN exit node — many users routing through the same provider will naturally produce this pattern. This is a strong false positive indicator, as attackers rarely share their infrastructure across unrelated accounts.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KqtEsEiC_QYr6Rzh3drXzw.png" /></figure><h4>Check if this user has been reported before</h4><p>Check the user’s prior alert history in your case management or SIEM — if they’ve previously confirmed signing in from the same country, the current alert is likely a recurring false positive and doesn’t require escalation or re-reporting to the client.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=41f3bcb58a17" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[M365 Honeypot Account]]></title>
            <link>https://medium.com/@osamaelghazaly/m365-honeypot-account-040ccf8ee413?source=rss-b8d27939d578------2</link>
            <guid isPermaLink="false">https://medium.com/p/040ccf8ee413</guid>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[soc]]></category>
            <category><![CDATA[honeypot]]></category>
            <dc:creator><![CDATA[Osama Elghazaly]]></dc:creator>
            <pubDate>Sun, 08 Mar 2026 00:18:41 GMT</pubDate>
            <atom:updated>2026-03-08T00:25:22.753Z</atom:updated>
            <content:encoded><![CDATA[<p>Due to the uprising of Social Engineering attacks (e.g., spam &amp; phish emails, O365 account takeover) where security controls lack detecting 100% of attacks, I encourage the creation of a dummy O365 account with a common username to trick threat actors into carrying out suspicious actions against it.</p><p>Upon detection of any actions, the source IP/sender domain involved is added to an appropriate block-list.</p><p>Honeypot accounts are a proven method used across the industry to detect malicious activity that bypasses automated controls.</p><p>Benefits of honeypot/dummy M365 account:</p><ul><li>Detect spam senders</li><li>Detect phish senders</li><li>Detect sign in brute force attempts from malicious IPs</li></ul><p>Requirements for the honeypot M365 accounts:</p><ul><li>Common email address</li><li>Active mailbox</li><li>Very complex password and MFA configured (since it will be a constant target for attackers)</li><li>Monthly password rotation setup</li><li>Unprivileged</li><li>Isolated as below:</li></ul><blockquote>Can’t send/receive emails to/from internal users</blockquote><blockquote>Zero or limited visibility on internal users</blockquote><ul><li>Setup alerts to trigger whenever one of the below is detected:</li></ul><blockquote>Sign in attempt</blockquote><blockquote>Email received</blockquote><p>Suggested email addresses:</p><ul><li>hr@[company-domain]</li><li>ceo@[company-domain]</li><li>finance@[company-domain]</li><li>helpdesk@[company-domain]</li><li>operations@[company-domain]</li></ul><p>Expected workflow:</p><ul><li>Threat actor uses a .txt containing most common email addresses for companies</li><li>Threat actor decides to target one of the honeypot M365 accounts in the form of a sign in attempt or spam/phish email sent</li><li>SOC team adds the involved entity (sender address or source IP) to the block list after assessing the situation</li></ul><p>Expected outcomes:</p><ul><li>Reduction in malicious login attempts</li><li>Faster identification of phishing infrastructure</li><li>Improved block-lists</li><li>Basic threat intelligence</li></ul><p>In summary of the above, this acts as an extra defense point where traditional security controls fail to detect complex attachments or heavily obfuscated URLs in targeted email campaigns or brute-force attempts against vulnerable M365 accounts.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=040ccf8ee413" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[TCM PNPT personal experience]]></title>
            <link>https://medium.com/@osamaelghazaly/tcm-pnpt-personal-experience-a92fed2aefbb?source=rss-b8d27939d578------2</link>
            <guid isPermaLink="false">https://medium.com/p/a92fed2aefbb</guid>
            <category><![CDATA[hacking]]></category>
            <category><![CDATA[red-team]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <dc:creator><![CDATA[Osama Elghazaly]]></dc:creator>
            <pubDate>Sun, 15 Feb 2026 17:26:48 GMT</pubDate>
            <atom:updated>2026-02-16T12:05:29.160Z</atom:updated>
            <content:encoded><![CDATA[<p>I am going to keep this post short and minimal as TCM PNPT has been around for a while now with several articles published about it. My current experience is working as an MSSP cybersecurity analyst for about 2 years with several certifications including TCM PJPT.</p><p>I was attracted by TCM as a certification vendor due to their exams resembling real world scenarios with no filler content. Its true that their presence in the ME region is niche, but the value they offer was worth it for me and my personal growth.</p><p>Their PNPT exam was heavily built around PJPT, more specifically, the PEH section with every attack used in the certification driven from the course content with little tweaks here and there. During a period of 3 months, I was able to fully (not really, I had to revisit the course contents during the exam) prepare for the exam which took me about 5 days to complete, 2 days for the report writing, and a 15 minute debrief with TCM staff. You will be facing real world problems that require you thinking out of the box and avoid treating it like a CTF. These concepts include but not limited to pivoting, common misconfigurations in AD environments, weak password policies, OSINT investigations, and incorrect practices by AD administrators.</p><p>I was able to utilize PJPT and PNPT for internal projects with clients to assess their security posture and how well can their security controls detect and respond an attacker that has gained initial foothold. The assessment was heavily built around both exam structures with of course, multiple external resources and online tutorial by well published red teamers.</p><p>As a summary of the above, if I would go back in time, I would still proceed with this certification and advise people with interest in penetration testing to attempt PNPT as it tests their ability to think logically as they do in real life penetration tests.</p><p>Finally, moving forward, PNPT is a solid foundation for certifications such as OSCP and CRTP (or at least from my prespective).</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a92fed2aefbb" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>