Webhooks
  • 11 Sep 2023
  • 2 Minutes to read
  • Dark
    Light
  • PDF

Webhooks

  • Dark
    Light
  • PDF

Article summary

About this Article
This article provides all information about Webhooks including how to add, list, modify and delete Webhooks.


CMS provides an opportunity to configure Rest APIs to receive notifications of VSP detected incidents. Webhooks provide an ability to integrate with any existing system to trigger macro-protection actions.


Add Webhook

  1. Navigate to Administration > Webhooks in the left navigation pane. Click ADD WEBHOOK
  2. The table below provides descriptions about various parameters. Provide the information and click TEST to verify the configurations
    ParameterDescription
    EnableOn – Webhook is added and enabled to receive incidents notification
    Off – Webhook is added, but will not receive the incidents notification
    NameName of the Webhook
    DescriptionA short description of the Webhook
    Webhook URLRest API URL to be configured. (Currently POST and GET methods are supported)
    Content TypeCurrently the only supported format is JSON
    Incident Filter

    The webhook can be configured for all incidents or specific incidents based on

    • Severity – Threats, Attacks or notifications
    • Application – Select the required Applications
    • Host – Select the required Hosts
    • Category – Web Attack, Fileless Attack, Authentication Failures, File Integrity Failures
    • Type – Vulnerability types 
    • Action – Protection Action is triggered or not
    Authentication

    Provide the authentication information of the API

    • None – No authentication
    • Basic – Only username and password required
    • API Key – Provide the token
    HTTP HeadersKey – Select the key from the drop-down
    Value – Provide the corresponding value
    Multiple Key-Value pairs can be added
    BodyProvide the JSON format expected by the API. Utilize the parameters listed on the page      
  3. Click SAVE

 

Webhooks List on CMS

  1. Navigate to Administration > Webhooks in the left navigation pane. All the configured Webhooks along with their URLs are displayed
  2. The webhooks can be enabled or disabled as required
  3. Click Activity to view the Activity of a particular Webhook
  4. Click Clone to clone a particular Webhook


Export/Import Host Webhooks

  1. Webhooks can be imported or exported with .virsec extension 
  2. This feature can be used during the scenario below:
    1. When VSP protection is extended to a different environment (Example: Pre-production to Production environment)
  3. Ensure that import/export operations are carried out in the same VSP version. Import/export feature is compatible across various patches in the same major release (Example:  VSP 2.9.x)


View Webhooks Activity on CMS

  1. On the Webhooks page, click WEBHOOKS ACTIVITY
  2. A list of all the activities are displayed with the Status (Success/Failure), Event ID, Webhook Name, Request URL, Request Time and Response Time
  3. A click on one event displays more information about it
  4. The displayed activity list can be filtered based on the Webhook Name, Status OR Time Range 


Modify Webhook

  1. On the Webhooks page, click Edit under action of Webhook which requires modification
  2. Modify as required. Click SAVE


Delete Webhook

  1. On the Webhooks page, click Delete under action of Webhook to be deleted
  2. Click YES on the confirmation screen

Was this article helpful?

What's Next