<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: IPS http custom sig in Network Security</title>
    <link>https://community.cisco.com/t5/network-security/ips-http-custom-sig/m-p/1152839#M77875</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To answer your first question, you could create a service-http signature on header-regex of:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;^X-Client-IP:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(with perhaps [0-9]+\x2e[0-9]+\x2e[0-9]+\x2e[0-9] for IPv4 addresses).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As for the changing IP addresses, I don't know of any way to handle that within the regex. However, if the X-Client-IP address is within a certain range (ie, class C/B), you could include that in the regex above).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You might be able to do a suitable alert with event management software, however, I don't know of any way of doing exactly what you want with a single signature (though I may be wrong and it may be possible).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have some questions which may help with writing a suitable signature though:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How different is the IP addresses used in X-Client-IP? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have you tested if the CDM passes on the clients X-Client-IP header (if specified), or if it replaces the header completely (or possibly inserts an additional header).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the client's X-Client-IP header is honoured, then the client might be inserting random IP addresses to try and trick software using X-Client-IP.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 26 Jan 2009 23:49:26 GMT</pubDate>
    <dc:creator>andrgrif</dc:creator>
    <dc:date>2009-01-26T23:49:26Z</dc:date>
    <item>
      <title>IPS http custom sig</title>
      <link>https://community.cisco.com/t5/network-security/ips-http-custom-sig/m-p/1152838#M77874</link>
      <description>&lt;P&gt;I'm not sure if this is possible, but I have a situation where I'm trying to identify an attacker who is constantly screen scraping my website.  The challenge is that the attacker's traffic is first sent to a CDM so the source IP is modified before it gets to me.  The CDM inserts a response header (X-Client-IP) into the HTTP request containg the the source address of the attacker.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;attacker &amp;lt;-&amp;gt; CDM &amp;lt;-&amp;gt; my web server&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How would I (or is it even possible) create a custom sig to look at the incoming response header "X-Client-IP" to identify 20 hits from the same attacker in 1 minute?  The attackers address could change at any time, so I can't hard code his IP in the signature's "request regex" variable.  I need the system to keep track of all incoming request headers and identify anyone who trips the 20 hit limit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;</description>
      <pubDate>Sun, 10 Mar 2019 11:28:25 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-security/ips-http-custom-sig/m-p/1152838#M77874</guid>
      <dc:creator>steadj</dc:creator>
      <dc:date>2019-03-10T11:28:25Z</dc:date>
    </item>
    <item>
      <title>Re: IPS http custom sig</title>
      <link>https://community.cisco.com/t5/network-security/ips-http-custom-sig/m-p/1152839#M77875</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To answer your first question, you could create a service-http signature on header-regex of:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;^X-Client-IP:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(with perhaps [0-9]+\x2e[0-9]+\x2e[0-9]+\x2e[0-9] for IPv4 addresses).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As for the changing IP addresses, I don't know of any way to handle that within the regex. However, if the X-Client-IP address is within a certain range (ie, class C/B), you could include that in the regex above).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You might be able to do a suitable alert with event management software, however, I don't know of any way of doing exactly what you want with a single signature (though I may be wrong and it may be possible).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have some questions which may help with writing a suitable signature though:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How different is the IP addresses used in X-Client-IP? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have you tested if the CDM passes on the clients X-Client-IP header (if specified), or if it replaces the header completely (or possibly inserts an additional header).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the client's X-Client-IP header is honoured, then the client might be inserting random IP addresses to try and trick software using X-Client-IP.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Jan 2009 23:49:26 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-security/ips-http-custom-sig/m-p/1152839#M77875</guid>
      <dc:creator>andrgrif</dc:creator>
      <dc:date>2009-01-26T23:49:26Z</dc:date>
    </item>
  </channel>
</rss>

