Skip to content

Imperva WAF

Overview

Imperva Web Application Firewall helps you to protect your web applications and your APIs.

This setup guide describes how to forward security events collected on the Imperva WAF platform to SEKOIA.IO.

Benefit from SEKOIA.IO built-in rules and upgrade Imperva WAF with the following detection capabilities out-of-the-box.

SEKOIA.IO x Imperva WAF on ATT&CK Navigator

CVE-2018-11776 Apache Struts2

Apache Struts versions 2.3 to 2.3.34 and 2.5 to 2.5.16 suffer from possible Remote Code Execution when alwaysSelectFullNamespace is true (either by user or a plugin like Convention Plugin) and then: results are used with no namespace and in same time, its upper package have no or wildcard namespace and similar to results, same possibility when using url tag which doesn't have value and action set and in same time, its upper package have no or wildcard namespace.

  • Effort: intermediate
CVE-2018-13379 Fortinet Exploit

Detects the successful exploitation of the Fortinet FortiOS CVE-2018-13379. This CVE is one of the most exploited CVEs since 2018. It is exploited by APT threat actors as well as cybercriminals. The exploitation of this CVE lead an unauthenticated user to get full access to FortiOS system file through SSL VPN via specially crafted HTTP resource requests. The exploit read /dev/cmdb/sslvpn_websession file, that contains login and passwords in (clear/text). An HTTP response status code = 200, means the file was successfully accessed. This vulnerability affects FortiOS 5.6.3 to 5.6.7 and FortiOS 6.0.0 to 6.0.4.

  • Effort: advanced
CVE-2019-0604 SharePoint

Detects the exploitation of the SharePoint vulnerability (CVE-2019-0604)

  • Effort: advanced
CVE-2019-11510 Pulse Secure Exploit

Detects the successful exploitation of the Pulse Secure vulnerability CVE-2019-11510. This CVE is one of the most exploited CVEs since 2019. It is exploited by diverse threat actors, leading sometimes in ransomware deployement. Among these groups: Maze, Conti, Egregor, DoppelPaymer, NetWalker and REvil. But also APT actors such as APT29. The exploitation of this CVE allows a remote, unauthenticated attacker to compromise a vulnerable VPN server. The attacker may be able to gain access to all active users and their plain-text credentials. It may also be possible for the attacker to execute arbitrary commands on each VPN client as it successfully connects to the VPN server. The exploit reads /etc/passwd file to get access to login and passwords in (clear/text). An HTTP response status code = 200, means the file was successfully accessed. This vulnerability affects 8.1R15.1, 8.2 before 8.2R12.1, 8.3 before 8.3R7.1, and 9.0 before 9.0R3.4 products.

  • Effort: elementary
CVE-2019-19781 Citrix Netscaler

Detects CVE-2019-19781 exploitation attempt against Citrix Netscaler, Application Delivery Controller and Citrix Gateway Attack

  • Effort: elementary
CVE-2019-2725 Oracle Weblogic Exploit

Detects the successful exploitation of a deserialization vulnerability in Oracle Weblogic Server, CVE-2019-2725. This vulnerability affects versions 10.X and 12.1.3 of WebLogic that have the components wls9_async_response.war and wls-wsat.war enabled. It is a remote code execution which can be exploited without authentication via HTTP. An HTTP response status code = 202, means the target is vulnerable, the analyst then has to look in depth to check if a webshell has been uploaded or something else has been done.

  • Effort: elementary
CVE-2020-0688 Microsoft Exchange Server Exploit

Detects the exploitation of CVE-2020-0688. The POC exploit a .NET serialization vulnerability in the Exchange Control Panel (ECP) web page. The vulnerability is due to Microsoft Exchange Server not randomizing the keys on a per-installation basis resulting in them using the same validationKey and decryptionKey values. With knowledge of these, values an attacker can craft a special viewstate to use an OS command to be executed by NT_AUTHORITY\SYSTEM using .NET deserialization. To exploit this vulnerability, an attacker needs to leverage the credentials of an account it had already compromised to authenticate to OWA.

  • Effort: elementary
CVE-2020-1147 SharePoint

Detection of SharePoint vulnerability CVE-2020-1147

  • Effort: advanced
CVE-2020-14882 Oracle WebLogic Server

Detects the exploitation of the Oracle WebLogic Server vulnerability (CVE-2020-16952)

  • Effort: advanced
CVE-2020-17530 Apache Struts RCE

Detects the exploitation of the Apache Struts vulnerability (CVE-2020-17530).

  • Effort: intermediate
CVE-2020-5902 F5 BIG-IP Exploitation Attempts

Detects the exploitation attempt of the vulnerability found in F5 BIG-IP and described in CVE-2020-5902

  • Effort: elementary
CVE-2021-20021 SonicWall Unauthenticated Administrator Access

Detects the exploitation of SonicWall Unauthenticated Admin Access.

  • Effort: advanced
CVE-2021-20023 SonicWall Arbitrary File Read

Detects Arbitrary File Read, which can be used with other vulnerabilities as a mean to obtain outputs generated by attackers, or sensitive data.

  • Effort: advanced
CVE-2021-21972 VMware vCenter

The vSphere Client (HTML5) contains a remote code execution vulnerability in a vCenter Server plugin. A malicious actor with network access to port 443 may exploit this issue to execute commands with unrestricted privileges on the underlying operating system that hosts vCenter Server. This affects VMware vCenter Server (7.x before 7.0 U1c, 6.7 before 6.7 U3l and 6.5 before 6.5 U3n) and VMware Cloud Foundation (4.x before 4.2 and 3.x before 3.10.1.2). POST request on the following PATH "/ui/vropspluginui/rest/services/uploadova". If in response body (500) the words it has "uploadFile", that means the vCenter is available to accept files via POST without any restrictions.

  • Effort: intermediate
CVE-2021-21985 VMware vCenter

The vSphere Client (HTML5) contains a remote code execution vulnerability due to lack of input validation in the Virtual SAN Health Check plug-in which is enabled by default in vCenter Server. A malicious actor with network access to port 443 may exploit this issue to execute commands with unrestricted privileges on the underlying operating system that hosts vCenter Server. This affects VMware vCenter Server (7.0 before 7.0 U2b, 6.7 before 6.7 U3n and 6.5 before 6.5 U3p) and VMware Cloud Foundation (4.x before 4.2.1 and 3.x before 3.10.2.1).

  • Effort: intermediate
CVE-2021-22893 Pulse Connect Secure RCE Vulnerability

Detects potential exploitation of the authentication by-pass vulnerability that can allow an unauthenticated user to perform remote arbitrary file execution on the Pulse Connect Secure gateway. It is highly recommended to apply the Pulse Secure mitigations and seach for indicators of compromise on affected servers if you are in doubt over the integrity of your Pulse Connect Secure product.

  • Effort: intermediate
CVE-2021-26855 Exchange SSRF

Detects the exploitation of ProyxLogon vulerability on Exchange servers.

  • Effort: advanced
CVE-2021-34473 ProxyShell Attempt

Detects CVE-2021-34473 ProxyShell attempt against Microsoft Exchange Server, Remote Code Execution Vulnerability.

  • Effort: advanced
CVE-2021-41773 Apache 2.4.49 Path Traversal

Detects successful exploitation of the Apache Path Traversal CVE-2021-41773.

  • Effort: advanced
CVE-2021-43798 Grafana Directory Traversal

Grafana version 8.x has a 0day arbitrary file read (with no fix yet) based on a directory traversal vulnerability

  • Effort: intermediate
Covenant Default HTTP Beaconing

Detects potential Covenant communications through the user-agent and specific urls

  • Effort: intermediate
FoggyWeb HTTP Default GET/POST Requests

Detects GET or POST request pattern observed within the first FoggyWeb campaign detected by Microsoft.

  • Effort: advanced
GitLab CVE-2021-22205

Detects GitLab vulnerability CVE-2021-22205 exploitation success. It allows an attacker to do some remote code execution with user git. The HTTP return code 422 indicates a successfull exploitation.

  • Effort: intermediate
LokiBot Default C2 URL

Detects default C2 URL for trojan LokiBot

  • Effort: elementary
Possible Malicious File Double Extension

Detects request to potential malicious file with double extension

  • Effort: elementary
Potential Bazar Loader User-Agents

Detects potential Bazar loader communications through the user-agent

  • Effort: elementary
Potential Lemon Duck User-Agent

Detects LemonDuck user agent. The format used two sets of alphabetical characters separated by dashes, for example "User-Agent: Lemon-Duck-[A-Z]-[A-Z]".

  • Effort: elementary
Potential LokiBot User-Agent

Detects potential LokiBot communications through the user-agent

  • Effort: intermediate
Privilege Escalation Awesome Scripts (PEAS)

Detect PEAS privileges escalation scripts and binaries

  • Effort: elementary
Raccoon Stealer 2.0 Legitimate Third-Party DLL Download URL

Detects Raccoon Stealer 2.0 malware downloading legitimate third-party DLLs from its C2 server. These legitimate DLLs are used by the information stealer to collect data on the compromised hosts.

  • Effort: elementary
SEKOIA.IO Intelligence Feed

Detect threats based on indicators of compromise (IOCs) collected by SEKOIA's Threat and Detection Research team.

  • Effort: elementary
SharePoint Authenticated SSRF

Detects succesful SSRF from an authenticated SharePoint user.

  • Effort: elementary
Suspicious Download Links From Legitimate Services

Detects users clicking on Google docs links to download suspicious files. This technique was used a lot by Bazar Loader in the past.

  • Effort: elementary
Suspicious URI Used In A Lazarus Campaign

Detects suspicious requests to a specific URI, usually on an .asp page. The website is often compromised.

  • Effort: intermediate
TrevorC2 HTTP Communication

Detects TrevorC2 HTTP communication based on the HTTP request URI and the user-agent.

  • Effort: elementary

Event Categories

The following table lists the data source offered by this integration.

Data Source Description
Web proxy Imperva WAF logs provide information about the connected client and the requested resource
Web logs Imperva WAF logs provide information about the connected client and the requested resource

In details, the following table denotes the type of events produced by this integration.

Name Values
Kind event
Category network
Type ["connection", "access"], ["connection", "allowed"], ["connection", "denied"], ["connection", "error"]

Event Samples

Find below few samples of events and how they are normalized by SEKOIA.IO.

{
    "message": "CEF:0|Incapsula|SIEMintegration|1|1|Normal|0| sourceServiceName=site123.abcd.info siteid=1509732 suid=50005477 requestClientApplication=Mozilla/5.0 (Windows NT 6.1; WOW64; rv:40.0) Gecko/20100101 Firefox/40.0 deviceFacility=mia ccode=IL tag=www.elvis.com cicode=Rehovot cs7=31.8969 cs7Label=latitude cs8=34.8186 cs8Label=longitude Customer=CEFcustomer123 siteTag=my-site-tag start=123456789 request=site123.abcd.info/main.css ref=www.incapsula.com/lama requestmethod=GET cn1=200 app=HTTP deviceExternalID=33411452762204224 in=54 xff=44.44.44.44 cpt=443 src=12.12.12.12 ver=TLSv1.2 ECDHE-RSA-AES128-GCM-SHA256 end=223456789 additionalReqHeaders=[{\"Accept\":\"*/*\"},{\"x-v\":\"1\"},{\"x-fapi-interaction-id\":\"10.10.10.10\"}] additionalResHeaders=[{\"Content-Type\":\"text/html; charset\\=UTF-8\"}]",
    "event": {
        "start": "2009-02-13T23:31:30.000000Z",
        "end": "2040-10-23T01:18:10.000000Z",
        "duration": 100000000.0,
        "kind": "event",
        "category": [
            "network"
        ],
        "type": [
            "connection",
            "access"
        ]
    },
    "user_agent": {
        "original": "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:40.0) Gecko/20100101 Firefox/40.0"
    },
    "client": {
        "geo": {
            "country_iso_code": "IL",
            "city_name": "Rehovot",
            "location": {
                "lat": 31.8969,
                "lon": 34.8186
            }
        }
    },
    "url": {
        "full": "site123.abcd.info/main.css",
        "original": "site123.abcd.info/main.css",
        "path": "site123.abcd.info/main.css"
    },
    "http": {
        "request": {
            "referrer": "www.incapsula.com/lama",
            "method": "GET",
            "bytes": 54,
            "id": "33411452762204224"
        },
        "response": {
            "status_code": 200
        }
    },
    "network": {
        "protocol": "http"
    },
    "source": {
        "port": 443,
        "ip": "12.12.12.12",
        "address": "12.12.12.12"
    },
    "@timestamp": "2009-02-13T23:31:30.000000Z",
    "tls": {
        "version": "1.2",
        "version_protocol": "tls",
        "cipher": "ECDHE-RSA-AES128-GCM-SHA256"
    },
    "imperva": {
        "pop": "mia",
        "request": {
            "headers": [
                {
                    "Accept": "*/*"
                },
                {
                    "x-v": "1"
                },
                {
                    "x-fapi-interaction-id": "10.10.10.10"
                }
            ],
            "x_forwarded_for": "44.44.44.44"
        },
        "response": {
            "headers": [
                {
                    "Content-Type": "text/html; charset\\=UTF-8"
                }
            ]
        }
    },
    "related": {
        "ip": [
            "12.12.12.12"
        ]
    }
}
{
    "message": "CEF:0|Incapsula|SIEMintegration|1|1|Blocked country|-1| fileId=393000630126853202 sourceServiceName=www.test.com siteid=38097258 suid=1928034 requestClientApplication=Mozilla/5.0 (X11; Linux x86_64; rv:99.0) Gecko/20100101 Firefox/99.0 deviceFacility=cdg cs2=true cs2Label=Javascript Support cs3=true cs3Label=CO Support cs1=NA cs1Label=Cap Support cs4=a99e6166-5092-4cce-8fb6-afae61ef7493 cs4Label=VID cs5=438c978a6198632a5439b8bce551a3bc5e29598526d64adcd1c8a12e289a7edd09b13fde8d8fb77e7dfff3e3d29526a3b01fcc9ec47ce2cedf1ab6630a8eab5ffc328c910a566d653fc81ae43248023b662d6a84849da3688453b98caa60947a cs5Label=clappsig dproc=Browser cs6=Webkit Browser cs6Label=clapp ccode=FR cicode=Strasbourg cs7=48.34 cs7Label=latitude cs8=7.4508 cs8Label=longitude Customer=mycustomer@example.org start=1649772598763 request=www.test.com/ requestMethod=GET app=HTTP act=REQ_BAD_PARSE_ERROR deviceExternalId=195557299895996363 cpt=45208 src=1.2.3.4 end=1649772598765",
    "event": {
        "action": "REQ_BAD_PARSE_ERROR",
        "start": "2022-04-12T14:09:58.763000Z",
        "end": "2022-04-12T14:09:58.765000Z",
        "duration": 2.0,
        "kind": "event",
        "category": [
            "network"
        ],
        "type": [
            "connection",
            "error"
        ],
        "reason": "The HTTP request was malformated"
    },
    "user_agent": {
        "original": "Mozilla/5.0 (X11; Linux x86_64; rv:99.0) Gecko/20100101 Firefox/99.0",
        "name": "Webkit Browser"
    },
    "client": {
        "geo": {
            "country_iso_code": "FR",
            "city_name": "Strasbourg",
            "location": {
                "lat": 48.34,
                "lon": 7.4508
            }
        }
    },
    "url": {
        "full": "www.test.com/",
        "original": "www.test.com/",
        "path": "www.test.com/"
    },
    "http": {
        "request": {
            "method": "GET",
            "id": "195557299895996363"
        }
    },
    "network": {
        "protocol": "http"
    },
    "source": {
        "port": 45208,
        "ip": "1.2.3.4",
        "address": "1.2.3.4"
    },
    "@timestamp": "2022-04-12T14:09:58.763000Z",
    "imperva": {
        "pop": "cdg",
        "session": {
            "id": 393000630126853202
        },
        "client": {
            "js_support": true,
            "cookie_support": true,
            "captcha_support": "NA"
        },
        "visitor": {
            "id": "a99e6166-5092-4cce-8fb6-afae61ef7493"
        },
        "user_agent": {
            "type": "Browser"
        }
    },
    "related": {
        "ip": [
            "1.2.3.4"
        ]
    }
}
{
    "message": "CEF:0|Incapsula|SIEMintegration|1|1|Blocked country|-1| fileId=393000630126853202 sourceServiceName=www.test.com siteid=38097258 suid=1928034 requestClientApplication=Mozilla/5.0 (X11; Linux x86_64; rv:99.0) Gecko/20100101 Firefox/99.0 deviceFacility=cdg cs2=true cs2Label=Javascript Support cs3=true cs3Label=CO Support cs1=NA cs1Label=Cap Support cs4=a99e6166-5092-4cce-8fb6-afae61ef7493 cs4Label=VID cs5=438c978a6198632a5439b8bce551a3bc5e29598526d64adcd1c8a12e289a7edd09b13fde8d8fb77e7dfff3e3d29526a3b01fcc9ec47ce2cedf1ab6630a8eab5ffc328c910a566d653fc81ae43248023b662d6a84849da3688453b98caa60947a cs5Label=clappsig dproc=Browser cs6=Webkit Browser cs6Label=clapp ccode=FR cicode=Strasbourg cs7=48.34 cs7Label=latitude cs8=7.4508 cs8Label=longitude Customer=mycustomer@example.org start=1649772598763 request=www.test.com/ requestMethod=GET app=HTTP act=REQ_DOMAIN_BLACKLISTED deviceExternalId=195557299895996363 cpt=45208 src=1.2.3.4 end=1649772598765",
    "event": {
        "action": "REQ_DOMAIN_BLACKLISTED",
        "start": "2022-04-12T14:09:58.763000Z",
        "end": "2022-04-12T14:09:58.765000Z",
        "duration": 2.0,
        "kind": "event",
        "category": [
            "network"
        ],
        "type": [
            "connection",
            "denied"
        ],
        "reason": "The destination was blacklisted"
    },
    "user_agent": {
        "original": "Mozilla/5.0 (X11; Linux x86_64; rv:99.0) Gecko/20100101 Firefox/99.0",
        "name": "Webkit Browser"
    },
    "client": {
        "geo": {
            "country_iso_code": "FR",
            "city_name": "Strasbourg",
            "location": {
                "lat": 48.34,
                "lon": 7.4508
            }
        }
    },
    "url": {
        "full": "www.test.com/",
        "original": "www.test.com/",
        "path": "www.test.com/"
    },
    "http": {
        "request": {
            "method": "GET",
            "id": "195557299895996363"
        }
    },
    "network": {
        "protocol": "http"
    },
    "source": {
        "port": 45208,
        "ip": "1.2.3.4",
        "address": "1.2.3.4"
    },
    "@timestamp": "2022-04-12T14:09:58.763000Z",
    "imperva": {
        "pop": "cdg",
        "session": {
            "id": 393000630126853202
        },
        "client": {
            "js_support": true,
            "cookie_support": true,
            "captcha_support": "NA"
        },
        "visitor": {
            "id": "a99e6166-5092-4cce-8fb6-afae61ef7493"
        },
        "user_agent": {
            "type": "Browser"
        }
    },
    "related": {
        "ip": [
            "1.2.3.4"
        ]
    }
}
{
    "message": "CEF:0|Incapsula|SIEMintegration|1|1|Blocked country|-1| fileId=393000630126853202 sourceServiceName=www.test.com siteid=38097258 suid=1928034 requestClientApplication=Mozilla/5.0 (X11; Linux x86_64; rv:99.0) Gecko/20100101 Firefox/99.0 deviceFacility=cdg cs2=true cs2Label=Javascript Support cs3=true cs3Label=CO Support cs1=NA cs1Label=Cap Support cs4=a99e6166-5092-4cce-8fb6-afae61ef7493 cs4Label=VID cs5=438c978a6198632a5439b8bce551a3bc5e29598526d64adcd1c8a12e289a7edd09b13fde8d8fb77e7dfff3e3d29526a3b01fcc9ec47ce2cedf1ab6630a8eab5ffc328c910a566d653fc81ae43248023b662d6a84849da3688453b98caa60947a cs5Label=clappsig dproc=Browser cs6=Webkit Browser cs6Label=clapp ccode=FR cicode=Strasbourg cs7=48.34 cs7Label=latitude cs8=7.4508 cs8Label=longitude Customer=mycustomer@example.org start=1649772598763 request=www.test.com/ requestMethod=GET app=HTTP act=REQ_BLOCKED_VISITOR deviceExternalId=195557299895996363 cpt=45208 src=1.2.3.4 end=1649772598765",
    "event": {
        "action": "REQ_BLOCKED_VISITOR",
        "start": "2022-04-12T14:09:58.763000Z",
        "end": "2022-04-12T14:09:58.765000Z",
        "duration": 2.0,
        "kind": "event",
        "category": [
            "network"
        ],
        "type": [
            "connection",
            "denied"
        ],
        "reason": "The request was blocked based on WAF settings"
    },
    "user_agent": {
        "original": "Mozilla/5.0 (X11; Linux x86_64; rv:99.0) Gecko/20100101 Firefox/99.0",
        "name": "Webkit Browser"
    },
    "client": {
        "geo": {
            "country_iso_code": "FR",
            "city_name": "Strasbourg",
            "location": {
                "lat": 48.34,
                "lon": 7.4508
            }
        }
    },
    "url": {
        "full": "www.test.com/",
        "original": "www.test.com/",
        "path": "www.test.com/"
    },
    "http": {
        "request": {
            "method": "GET",
            "id": "195557299895996363"
        }
    },
    "network": {
        "protocol": "http"
    },
    "source": {
        "port": 45208,
        "ip": "1.2.3.4",
        "address": "1.2.3.4"
    },
    "@timestamp": "2022-04-12T14:09:58.763000Z",
    "imperva": {
        "pop": "cdg",
        "session": {
            "id": 393000630126853202
        },
        "client": {
            "js_support": true,
            "cookie_support": true,
            "captcha_support": "NA"
        },
        "visitor": {
            "id": "a99e6166-5092-4cce-8fb6-afae61ef7493"
        },
        "user_agent": {
            "type": "Browser"
        }
    },
    "related": {
        "ip": [
            "1.2.3.4"
        ]
    }
}
{
    "message": "CEF:0|Incapsula|SIEMintegration|1|1|Accepted country|-1| fileId=393000630126853202 sourceServiceName=www.test.com siteid=38097258 suid=1928034 requestClientApplication=Mozilla/5.0 (X11; Linux x86_64; rv:99.0) Gecko/20100101 Firefox/99.0 deviceFacility=cdg cs2=true cs2Label=Javascript Support cs3=true cs3Label=CO Support cs1=NA cs1Label=Cap Support cs4=a99e6166-5092-4cce-8fb6-afae61ef7493 cs4Label=VID cs5=438c978a6198632a5439b8bce551a3bc5e29598526d64adcd1c8a12e289a7edd09b13fde8d8fb77e7dfff3e3d29526a3b01fcc9ec47ce2cedf1ab6630a8eab5ffc328c910a566d653fc81ae43248023b662d6a84849da3688453b98caa60947a cs5Label=clappsig dproc=Browser cs6=Webkit Browser cs6Label=clapp ccode=FR cicode=Strasbourg cs7=48.34 cs7Label=latitude cs8=7.4508 cs8Label=longitude Customer=mycustomer@example.org start=1649772598763 request=www.test.com/ requestMethod=GET app=HTTP act=REQ_CACHED_WEBSITE deviceExternalId=195557299895996363 cpt=45208 src=1.2.3.4 end=1649772598765",
    "event": {
        "action": "REQ_CACHED_WEBSITE",
        "start": "2022-04-12T14:09:58.763000Z",
        "end": "2022-04-12T14:09:58.765000Z",
        "duration": 2.0,
        "kind": "event",
        "category": [
            "network"
        ],
        "type": [
            "connection",
            "allowed"
        ]
    },
    "user_agent": {
        "original": "Mozilla/5.0 (X11; Linux x86_64; rv:99.0) Gecko/20100101 Firefox/99.0",
        "name": "Webkit Browser"
    },
    "client": {
        "geo": {
            "country_iso_code": "FR",
            "city_name": "Strasbourg",
            "location": {
                "lat": 48.34,
                "lon": 7.4508
            }
        }
    },
    "url": {
        "full": "www.test.com/",
        "original": "www.test.com/",
        "path": "www.test.com/"
    },
    "http": {
        "request": {
            "method": "GET",
            "id": "195557299895996363"
        }
    },
    "network": {
        "protocol": "http"
    },
    "source": {
        "port": 45208,
        "ip": "1.2.3.4",
        "address": "1.2.3.4"
    },
    "@timestamp": "2022-04-12T14:09:58.763000Z",
    "imperva": {
        "pop": "cdg",
        "session": {
            "id": 393000630126853202
        },
        "client": {
            "js_support": true,
            "cookie_support": true,
            "captcha_support": "NA"
        },
        "visitor": {
            "id": "a99e6166-5092-4cce-8fb6-afae61ef7493"
        },
        "user_agent": {
            "type": "Browser"
        }
    },
    "related": {
        "ip": [
            "1.2.3.4"
        ]
    }
}
{
    "message": "CEF:0|Incapsula|SIEMintegration|1|1|Illegal Resource Access|3| fileid=3412341160002518171 sourceServiceName=site123.abcd.info siteid=1509732 suid=50005477 requestClientApplication=Mozilla/5.0 (Windows NT 6.1; WOW64; rv:40.0) Gecko/20100101 Firefox/40.0 deviceFacility=mia cs2=true cs2Label=Javascript Support cs3=true cs3Label=CO Support ccode=IL tag=www.elvis.com cn1=200 in=54 xff=44.44.44.44 cs1=NOT_SUPPORTED cs1Label=Cap Support cs4=c2e72124-0e8a-4dd8-b13b-3da246af3ab2 cs4Label=VID cs5=de3c633ac428e0678f3aac20cf7f239431e54cbb8a17e8302f53653923305e1835a9cd871db32aa4fc7b8a9463366cc4 cs5Label=clappsig dproc=Browser cs6=Firefox cs6Label=clapp ccode=IL cicode=Rehovot cs7=31.8969 cs7Label=latitude cs8=34.8186 cs8Label=longitude Customer=CEFcustomer123 siteTag=my-site-tag start=123456789 request=site123.abcd.info/ requestMethod=GET qstr=p\\=%2fetc%2fpasswd app=HTTP act=REQ_CHALLENGED_CAPTCHA deviceExternalId=33411452762204224 cpt=443 src=12.12.12.12 ver=TLSv1.2 ECDHE-RSA-AES128-GCM-SHA256 end=223456789 additionalReqHeaders=[{\"Accept\":\"*/*\"},{\"x-v\":\"1\"},{\"x-fapi-interaction-id\":\"10.10.10.10\"}] additionalResHeaders=[{\"Content-Type\":\"text/html; charset\\=UTF-8\"}] filetype=30037,1001, filepermission=2,1, cs9=Block Malicious User,High Risk Resources, cs9Label=Rule name cs11=,,[{\"api_specification_violation_type\":\"INVALID_PARAM_NAME\",\"parameter_name\":\"somename\"}] cs11Label=Rule Additional Info",
    "event": {
        "action": "REQ_CHALLENGED_CAPTCHA",
        "start": "2009-02-13T23:31:30.000000Z",
        "end": "2040-10-23T01:18:10.000000Z",
        "duration": 100000000.0,
        "kind": "event",
        "category": [
            "network"
        ],
        "type": [
            "connection",
            "denied"
        ],
        "reason": "A challenge was submitted to the client"
    },
    "user_agent": {
        "original": "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:40.0) Gecko/20100101 Firefox/40.0",
        "name": "Firefox"
    },
    "client": {
        "geo": {
            "country_iso_code": "IL",
            "city_name": "Rehovot",
            "location": {
                "lat": 31.8969,
                "lon": 34.8186
            }
        }
    },
    "url": {
        "full": "site123.abcd.info/",
        "original": "site123.abcd.info/",
        "query": "p\\=%2fetc%2fpasswd",
        "path": "site123.abcd.info/"
    },
    "http": {
        "request": {
            "method": "GET",
            "bytes": 54,
            "id": "33411452762204224"
        },
        "response": {
            "status_code": 200
        }
    },
    "network": {
        "protocol": "http"
    },
    "source": {
        "port": 443,
        "ip": "12.12.12.12",
        "address": "12.12.12.12"
    },
    "rule": {
        "name": "Block Malicious User,High Risk Resources,"
    },
    "@timestamp": "2009-02-13T23:31:30.000000Z",
    "tls": {
        "version": "1.2",
        "version_protocol": "tls",
        "cipher": "ECDHE-RSA-AES128-GCM-SHA256"
    },
    "imperva": {
        "pop": "mia",
        "request": {
            "headers": [
                {
                    "Accept": "*/*"
                },
                {
                    "x-v": "1"
                },
                {
                    "x-fapi-interaction-id": "10.10.10.10"
                }
            ],
            "x_forwarded_for": "44.44.44.44"
        },
        "response": {
            "headers": [
                {
                    "Content-Type": "text/html; charset\\=UTF-8"
                }
            ]
        },
        "session": {
            "id": 3412341160002518171
        },
        "client": {
            "js_support": true,
            "cookie_support": true,
            "captcha_support": "NOT_SUPPORTED"
        },
        "visitor": {
            "id": "c2e72124-0e8a-4dd8-b13b-3da246af3ab2"
        },
        "user_agent": {
            "type": "Browser"
        },
        "attack": {
            "type": "30037,1001,",
            "id": "2,1,"
        },
        "rule": {
            "additional_info": ",,[{\"api_specification_violation_type\":\"INVALID_PARAM_NAME\",\"parameter_name\":\"somename\"}]",
            "names": [
                "Block Malicious User",
                "High Risk Resources"
            ]
        }
    },
    "related": {
        "ip": [
            "12.12.12.12"
        ]
    }
}
{
    "message": "CEF:0|Incapsula|SIEMintegration|1|1|Accepted country|-1| fileId=393000630126853202 sourceServiceName=www.test.com siteid=38097258 suid=1928034 requestClientApplication=Mozilla/5.0 (X11; Linux x86_64; rv:99.0) Gecko/20100101 Firefox/99.0 deviceFacility=cdg cs2=true cs2Label=Javascript Support cs3=true cs3Label=CO Support cs1=NA cs1Label=Cap Support cs4=a99e6166-5092-4cce-8fb6-afae61ef7493 cs4Label=VID cs5=438c978a6198632a5439b8bce551a3bc5e29598526d64adcd1c8a12e289a7edd09b13fde8d8fb77e7dfff3e3d29526a3b01fcc9ec47ce2cedf1ab6630a8eab5ffc328c910a566d653fc81ae43248023b662d6a84849da3688453b98caa60947a cs5Label=clappsig dproc=Browser cs6=Webkit Browser cs6Label=clapp ccode=FR cicode=Strasbourg cs7=48.34 cs7Label=latitude cs8=7.4508 cs8Label=longitude Customer=mycustomer@example.org start=1649772598763 request=www.test.com/ requestMethod=GET app=HTTP act=REQ_IPV6_NOT_SUPPORTED deviceExternalId=195557299895996363 cpt=45208 src=1.2.3.4 end=1649772598765",
    "event": {
        "action": "REQ_IPV6_NOT_SUPPORTED",
        "start": "2022-04-12T14:09:58.763000Z",
        "end": "2022-04-12T14:09:58.765000Z",
        "duration": 2.0,
        "kind": "event",
        "category": [
            "network"
        ],
        "type": [
            "connection",
            "error"
        ],
        "reason": "The destination doesn't support IPv6 addresses"
    },
    "user_agent": {
        "original": "Mozilla/5.0 (X11; Linux x86_64; rv:99.0) Gecko/20100101 Firefox/99.0",
        "name": "Webkit Browser"
    },
    "client": {
        "geo": {
            "country_iso_code": "FR",
            "city_name": "Strasbourg",
            "location": {
                "lat": 48.34,
                "lon": 7.4508
            }
        }
    },
    "url": {
        "full": "www.test.com/",
        "original": "www.test.com/",
        "path": "www.test.com/"
    },
    "http": {
        "request": {
            "method": "GET",
            "id": "195557299895996363"
        }
    },
    "network": {
        "protocol": "http"
    },
    "source": {
        "port": 45208,
        "ip": "1.2.3.4",
        "address": "1.2.3.4"
    },
    "@timestamp": "2022-04-12T14:09:58.763000Z",
    "imperva": {
        "pop": "cdg",
        "session": {
            "id": 393000630126853202
        },
        "client": {
            "js_support": true,
            "cookie_support": true,
            "captcha_support": "NA"
        },
        "visitor": {
            "id": "a99e6166-5092-4cce-8fb6-afae61ef7493"
        },
        "user_agent": {
            "type": "Browser"
        }
    },
    "related": {
        "ip": [
            "1.2.3.4"
        ]
    }
}
{
    "message": "CEF:0|Incapsula|SIEMintegration|1|1|Accepted country|-1| fileId=393000630126853202 sourceServiceName=www.test.com siteid=38097258 suid=1928034 requestClientApplication=Mozilla/5.0 (X11; Linux x86_64; rv:99.0) Gecko/20100101 Firefox/99.0 deviceFacility=cdg cs2=true cs2Label=Javascript Support cs3=true cs3Label=CO Support cs1=NA cs1Label=Cap Support cs4=a99e6166-5092-4cce-8fb6-afae61ef7493 cs4Label=VID cs5=438c978a6198632a5439b8bce551a3bc5e29598526d64adcd1c8a12e289a7edd09b13fde8d8fb77e7dfff3e3d29526a3b01fcc9ec47ce2cedf1ab6630a8eab5ffc328c910a566d653fc81ae43248023b662d6a84849da3688453b98caa60947a cs5Label=clappsig dproc=Browser cs6=Webkit Browser cs6Label=clapp ccode=FR cicode=Strasbourg cs7=48.34 cs7Label=latitude cs8=7.4508 cs8Label=longitude Customer=mycustomer@example.org start=1649772598763 request=www.test.com/ requestMethod=GET app=HTTP act=REQ_PASSED deviceExternalId=195557299895996363 cpt=45208 src=1.2.3.4 end=1649772598765",
    "event": {
        "action": "REQ_PASSED",
        "start": "2022-04-12T14:09:58.763000Z",
        "end": "2022-04-12T14:09:58.765000Z",
        "duration": 2.0,
        "kind": "event",
        "category": [
            "network"
        ],
        "type": [
            "connection",
            "allowed"
        ]
    },
    "user_agent": {
        "original": "Mozilla/5.0 (X11; Linux x86_64; rv:99.0) Gecko/20100101 Firefox/99.0",
        "name": "Webkit Browser"
    },
    "client": {
        "geo": {
            "country_iso_code": "FR",
            "city_name": "Strasbourg",
            "location": {
                "lat": 48.34,
                "lon": 7.4508
            }
        }
    },
    "url": {
        "full": "www.test.com/",
        "original": "www.test.com/",
        "path": "www.test.com/"
    },
    "http": {
        "request": {
            "method": "GET",
            "id": "195557299895996363"
        }
    },
    "network": {
        "protocol": "http"
    },
    "source": {
        "port": 45208,
        "ip": "1.2.3.4",
        "address": "1.2.3.4"
    },
    "@timestamp": "2022-04-12T14:09:58.763000Z",
    "imperva": {
        "pop": "cdg",
        "session": {
            "id": 393000630126853202
        },
        "client": {
            "js_support": true,
            "cookie_support": true,
            "captcha_support": "NA"
        },
        "visitor": {
            "id": "a99e6166-5092-4cce-8fb6-afae61ef7493"
        },
        "user_agent": {
            "type": "Browser"
        }
    },
    "related": {
        "ip": [
            "1.2.3.4"
        ]
    }
}
{
    "message": "CEF:0|Incapsula|SIEMintegration|1|1|Blocked country|-1| fileId=393000630126853202 sourceServiceName=www.test.com siteid=38097258 suid=1928034 requestClientApplication=Mozilla/5.0 (X11; Linux x86_64; rv:99.0) Gecko/20100101 Firefox/99.0 deviceFacility=cdg cs2=true cs2Label=Javascript Support cs3=true cs3Label=CO Support cs1=NA cs1Label=Cap Support cs4=a99e6166-5092-4cce-8fb6-afae61ef7493 cs4Label=VID cs5=438c978a6198632a5439b8bce551a3bc5e29598526d64adcd1c8a12e289a7edd09b13fde8d8fb77e7dfff3e3d29526a3b01fcc9ec47ce2cedf1ab6630a8eab5ffc328c910a566d653fc81ae43248023b662d6a84849da3688453b98caa60947a cs5Label=clappsig dproc=Browser cs6=Webkit Browser cs6Label=clapp ccode=FR cicode=Strasbourg cs7=48.34 cs7Label=latitude cs8=7.4508 cs8Label=longitude Customer=mycustomer@example.org start=1649772598763 request=www.test.com/ requestMethod=GET app=HTTP act=REQ_UNRESOLVED_SITE_INVALID_CNAME deviceExternalId=195557299895996363 cpt=45208 src=1.2.3.4 end=1649772598765",
    "event": {
        "action": "REQ_UNRESOLVED_SITE_INVALID_CNAME",
        "start": "2022-04-12T14:09:58.763000Z",
        "end": "2022-04-12T14:09:58.765000Z",
        "duration": 2.0,
        "kind": "event",
        "category": [
            "network"
        ],
        "type": [
            "connection",
            "error"
        ],
        "reason": "The proxy failed to resolve the destination"
    },
    "user_agent": {
        "original": "Mozilla/5.0 (X11; Linux x86_64; rv:99.0) Gecko/20100101 Firefox/99.0",
        "name": "Webkit Browser"
    },
    "client": {
        "geo": {
            "country_iso_code": "FR",
            "city_name": "Strasbourg",
            "location": {
                "lat": 48.34,
                "lon": 7.4508
            }
        }
    },
    "url": {
        "full": "www.test.com/",
        "original": "www.test.com/",
        "path": "www.test.com/"
    },
    "http": {
        "request": {
            "method": "GET",
            "id": "195557299895996363"
        }
    },
    "network": {
        "protocol": "http"
    },
    "source": {
        "port": 45208,
        "ip": "1.2.3.4",
        "address": "1.2.3.4"
    },
    "@timestamp": "2022-04-12T14:09:58.763000Z",
    "imperva": {
        "pop": "cdg",
        "session": {
            "id": 393000630126853202
        },
        "client": {
            "js_support": true,
            "cookie_support": true,
            "captcha_support": "NA"
        },
        "visitor": {
            "id": "a99e6166-5092-4cce-8fb6-afae61ef7493"
        },
        "user_agent": {
            "type": "Browser"
        }
    },
    "related": {
        "ip": [
            "1.2.3.4"
        ]
    }
}

Extracted Fields

The following table lists the fields that are extracted, normalized under the ECS format, analyzed and indexed by the parser. It should be noted that infered fields are not listed.

Name Type Description
@timestamp date Date/time when the event originated.
client.geo.city_name keyword City name.
client.geo.country_iso_code keyword Country ISO code.
client.geo.location geo_point Longitude and latitude.
event.action keyword The action captured by the event.
event.category keyword Event category. The second categorization field in the hierarchy.
event.duration long Duration of the event in nanoseconds.
event.end date event.end contains the date when the event ended or when the activity was last observed.
event.kind keyword The kind of the event. The highest categorization field in the hierarchy.
event.reason keyword Reason why this event happened, according to the source
event.start date event.start contains the date when the event started or when the activity was first observed.
event.type keyword Event type. The third categorization field in the hierarchy.
http.request.bytes long Total size in bytes of the request (body and headers).
http.request.id keyword HTTP request ID.
http.request.method keyword HTTP request method.
http.request.referrer keyword Referrer for this HTTP request.
http.response.status_code long HTTP response status code.
imperva.attack.id keyword Imperva attack id.
imperva.attack.type keyword The type of attack.
imperva.client.captcha_support keyword Whether or not the client application supports Captcha.
imperva.client.cookie_support boolean Whether or not the client application supports cookies.
imperva.client.js_support boolean Whether or not the client application supports JavaScript.
imperva.pop keyword The Imperva PoP that handled the request.
imperva.request.headers array Request headers in JSON format, with each field represented as a name-value pair.
imperva.request.x_forwarded_for text The X-Forwarded-For request header.
imperva.response.headers array Response headers in JSON format, with each field represented as a name-value pair.
imperva.rule.additional_info text Additional information on the violation that triggered the rule, in JSON format. Used for API Specification Violation events.
imperva.rule.names array The threat rule name that this request triggered. For example, SQL Injection or Blocked IP (ACL).
imperva.session.id long The unique identification.
imperva.user_agent.type keyword The browser type.
imperva.visitor.id keyword The ID of the visitor.
network.protocol keyword Application protocol name.
rule.name keyword Rule name
source.ip ip IP address of the source.
source.port long Port of the source.
tls.cipher keyword String indicating the cipher used during the current connection.
tls.version keyword Numeric part of the version parsed from the original string.
tls.version_protocol keyword Normalized lowercase protocol name parsed from original string.
url.full wildcard Full unparsed URL.
url.original wildcard Unmodified original url as seen in the event source.
url.query keyword Query string of the request.
user_agent.name keyword Name of the user agent.
user_agent.original keyword Unparsed user_agent string.

Configure

In Imperva interface

In your Imperva control panel, go to Account > Account Management > SIEM Logs > WAF Log Setup. Select Imperva API, CEF format and enable compression. Copy the API ID, the API Key and the Log Server URI.

Then go to SIEM Logs > Websites Logs Level and enable for each website the log level you want to get on SEKOIA.IO.

Create the intake in SEKOIA.IO

Go to the intake page and create a new intake from the format Imperva WAF. Copy the intake key.

Pull events

Go to the playbook page and create a new playbook with the Imperva WAF logs trigger. You can use the existing template to fasten and ease the creation of your playbook. Set up a new module configuration with the information you copied previously. Set up the trigger configuration with the frequency of the pull.

At the end of the playbook, set up the action Push events to intake with a SEKOIA.IO API key and the intake key, from the intake previously created.

Start the playbook and enjoy your events.

Further Readings