How to Send Email Notifications for Each Critical Vulnerability Found in Resource

JFrog Security User Guide

ft:sourceType
Ftml

This use case describes how to configure Xray Policies and Watches to trigger an email notification for a resource that contains a Critical vulnerability.

Step 2: Define a Security Policy for Critical Vulnerabilities

๐Ÿ“ŒGoal: Create a policy to trigger email notifications for each Critical vulnerability found in a resource.

  1. Navigate to Application > Xray > Watches & Policies.
  2. Click New Policy, enter a name, and select Security as the type.
  3. Configure the rule:
    1. Enter a rule name.
    2. Select the CVEs rule type.
    3. Set the Minimal Severity to Critical.
    4. Select the Notify Email action and enter a valid email address.
  4. Apply on Scope. Attach the Policy to a Watch.
  5. Save the policy.

Step 3: Test Email Notification (Build with Critical Vulnerability)

Goal: Ensure that email notifications are sent when a build contains a Critical vulnerability.

Scenario : Vulnerable Build in CI/CD ( Notified)

A Jenkins pipeline attempts to build an application using a vulnerable package

Expected Result:

  • A violation is created for the build due to the Critical vulnerability.
  • The email recipient receives an email notification.

Step 4: Review & Address the Violation

Goal: Investigate and resolve the issue.

  1. Click on the link in the email that will direct you to the violated resource in Xray > Scans List.
  2. Go to the violations tab and review the violation.
  3. Take action:
    • Upgrade the package to a secure version.
    • Create an Ignore Rule on the violation if deemed a false positive.