<?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 Pradyumnapandav on Medium]]></title>
        <description><![CDATA[Stories by Pradyumnapandav on Medium]]></description>
        <link>https://medium.com/@pradyumna24pandav?source=rss-20585576a424------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*hayjKjcOvB_F1vsi</url>
            <title>Stories by Pradyumnapandav on Medium</title>
            <link>https://medium.com/@pradyumna24pandav?source=rss-20585576a424------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 12:33:15 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@pradyumna24pandav/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[Understanding ModSecurity and OWASP Core Rule Set (CRS): A Beginner’s Guide]]></title>
            <link>https://medium.com/@pradyumna24pandav/understanding-modsecurity-and-owasp-core-rule-set-crs-a-beginners-guide-78a57dc8df58?source=rss-20585576a424------2</link>
            <guid isPermaLink="false">https://medium.com/p/78a57dc8df58</guid>
            <dc:creator><![CDATA[Pradyumnapandav]]></dc:creator>
            <pubDate>Mon, 20 Jul 2026 12:02:04 GMT</pubDate>
            <atom:updated>2026-07-20T12:02:04.825Z</atom:updated>
            <content:encoded><![CDATA[<p>Modern web applications are constantly targeted by attacks such as SQL Injection (SQLi), Cross-Site Scripting (XSS), Remote Code Execution (RCE), and Local File Inclusion (LFI). While developers work to secure applications by writing safe code, organizations often deploy an additional layer of protection known as a <strong>Web Application Firewall (WAF)</strong>. One of the most widely used open-source WAFs is <strong>ModSecurity</strong>, which, when combined with the <strong>OWASP Core Rule Set (CRS)</strong>, provides robust protection against common web attacks.</p><figure><img alt="a Web Application Firewall (WAF)" src="https://cdn-images-1.medium.com/max/280/1*73MJUfTVEStoQCotGzOhsQ.png" /><figcaption>A Web Application Firewall (WAF</figcaption></figure><h3><strong>What is ModSecurity?</strong></h3><p><strong>ModSecurity</strong> is an <strong>open-source Web Application Firewall (WAF)</strong> that protects web applications by monitoring, detecting, and preventing malicious HTTP/HTTPS requests before they reach the web server or application. It acts as a security layer between the client and the web application, inspecting every incoming and outgoing request for potential attacks.</p><p>Unlike traditional network firewalls that filter traffic based on IP addresses and ports, ModSecurity analyzes the <strong>contents of HTTP requests</strong>, including URLs, query parameters, headers, cookies, POST data, and file uploads. It uses predefined or custom security rules to identify malicious patterns such as SQL Injection (SQLi), Cross-Site Scripting (XSS), Command Injection, Local File Inclusion (LFI), Remote File Inclusion (RFI), and other web-based attacks.</p><p>When integrated with the Apache web server, ModSecurity intercepts each HTTP request before it reaches the web application. Based on the configured rules, it can:</p><ul><li><strong>Allow</strong> legitimate requests.</li><li><strong>Log</strong> suspicious requests for further analysis (DetectionOnly mode).</li><li><strong>Block</strong> malicious requests by returning an HTTP <strong>403 Forbidden</strong> response (Blocking mode).</li></ul><p>ModSecurity itself is only the <strong>inspection engine</strong> and does not contain attack detection rules by default. To detect common web vulnerabilities effectively, it is commonly used with the <strong>OWASP Core Rule Set (CRS)</strong>, which provides thousands of community-maintained rules for identifying known attack patterns.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*suPH_kNC5nZUXBrM1u1u7w.png" /><figcaption>How ModSecurity Works</figcaption></figure><h3>Key Features of ModSecurity</h3><ul><li>Open-source Web Application Firewall (WAF)</li><li>Integrates with Apache, Nginx, and IIS</li><li>Inspects all HTTP and HTTPS requests</li><li>Detects SQL Injection, XSS, LFI, RFI, Command Injection, and more</li><li>Supports custom security rules</li><li>Works with the OWASP Core Rule Set (CRS)</li><li>Provides detailed audit logging for security analysis</li><li>Can operate in <strong>DetectionOnly</strong> or <strong>Blocking</strong> mode</li></ul><h3><strong>What is the OWASP Core Rule Set (CRS)?</strong></h3><p>The <strong>OWASP Core Rule Set (CRS)</strong> is a <strong>free, open-source collection of security rules</strong> developed by the <strong>Open Worldwide Application Security Project (OWASP)</strong> for Web Application Firewalls (WAFs) such as ModSecurity. It provides a comprehensive set of predefined rules that detect and protect against common web application attacks, including <strong>SQL Injection (SQLi), Cross-Site Scripting (XSS), Local File Inclusion (LFI), Remote File Inclusion (RFI), Command Injection, Path Traversal, and HTTP protocol violations</strong>.</p><p>The OWASP CRS works together with ModSecurity, where <strong>ModSecurity acts as the inspection engine,</strong> and the <strong>CRS supplies the security rules</strong> used to identify malicious requests. When an incoming HTTP request matches one or more CRS rules, the WAF can either log the event (DetectionOnly mode) or block the request (Blocking mode). Because the OWASP community regularly updates it, the CRS provides reliable and up-to-date protection against a wide range of web application threats.</p><h3>Key Features of OWASP CRS</h3><ul><li>Open-source and community-maintained security rule set.</li><li>Detects common web attacks, including SQLi, XSS, LFI, RFI, and Command Injection.</li><li>Integrates seamlessly with ModSecurity and other compatible WAFs.</li><li>Supports anomaly scoring to evaluate the severity of requests.</li><li>Regularly updated to address emerging web security threats.</li></ul><h3>Simple Analogy</h3><p>Think of <strong>ModSecurity</strong> as a <strong>security guard</strong> and the <strong>OWASP CRS</strong> as the <strong>rulebook</strong> the guard follows.</p><ul><li><strong>ModSecurity</strong> → Inspects every incoming request.</li><li><strong>OWASP CRS</strong> → Provides the rules to determine whether the request is malicious.</li><li><strong>Result</strong> → The request is <strong>allowed</strong>, <strong>logged</strong>, or <strong>blocked</strong> based on the rule evaluation.</li></ul><p>In short, <strong>OWASP CRS is the intelligence behind ModSecurity</strong>, enabling it to recognize and defend against known web application attacks.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=78a57dc8df58" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>