Vulnerability Created

Getting Started

This page will help you with subscribing to the vulnerability-created event.

This event can be used for the following:

  • Get details for all new vulnerabilities created on projects, for which you have access to;

Prerequisites

In order to subscribe to this event, you must have:

  • Access to the vulnerability-created event (see My Events to confirm).

  • A working client (see Setting Up Your Client for details).

  • Valid API Key (see Authentication for your key).

  • Network access to your AttackForge Enterprise tenant.

Subscribing To Event

  • NodeJS

  • Python

  • .NET

  • Java

  • Go

NodeJS

NodeJS Prerequisites

In order to subscribe to this event using the NodeJS client, you must have:

  • NodeJS v10+ installed

  • NPM installed

  • A working NodeJS client (see Setting Up Your Client for details).

Client configuration

Open a terminal and navigate to the client directory.

From the client directory, run following command, substituting variables below with your configuration details:

An example is included below for reference:

If your client is successfully subscribed to this event, you should see similar output in your terminal:

Your client is now working and you will see new events output to the terminal as they are pushed from AttackForge.

You can now work on your integration code to start actioning these events. Open index.js with a text editor - the file is located in your client directory. Your code will replace the following section within this file:

Python

Python Prerequisites

In order to subscribe to this event using the Python client, you must have:

  • Python3 installed

  • PIP installed

  • A working Python client (see Setting Up Your Client for details).

Client configuration

Open a terminal and navigate to the client directory.

From the client directory, run following command, substituting variables below with your configuration details:

An example is included below for reference:

If your client is successfully subscribed to the events, you should see similar output in your terminal:

Your client is now working and you will see new events output to the terminal as they are pushed from AttackForge.

You can now work on your integration code to start actioning these events. Open main.py with a text editor - the file is located in your client directory. Your code will replace the following section within this file:

.NET

.NET Prerequisites

In order to subscribe to this event using the .NET client, you must have:

  • .NET 5.0 SDK installed

Client configuration

Open a terminal and navigate to the client directory.

From the client directory, run following command, substituting variables below with your configuration details:

An example is included below for reference:

If your client is successfully subscribed to the events, you should see similar output in your terminal:

Your client is now working and you will see new events output to the terminal as they are pushed from AttackForge.

You can now work on your integration code to start actioning these events. Open Program.cs with a text editor from your client directory. Your code will replace the following section within this file:

Java

Java Prerequisites

In order to subscribe to this event using the Java client, you must have:

  • OpenJDK 11 installed

  • Maven installed

  • A working Java client (see Setting Up Your Client for details).

Client configuration

Open a terminal and navigate to the client directory.

From the client directory, run following command, substituting variables below with your configuration details:

An example is included below for reference:

If your client is successfully subscribed to the events, you should see similar output in your terminal:

Your client is now working and you will see new events output to the terminal as they are pushed from AttackForge.

You can now work on your integration code to start actioning these events. Open ./src/main/java/com/attackforge/App.java with a text editor from your client directory. Your code will replace the following section within this file:

Go

Go Prerequisites

In order to subscribe to this event using the Go client, you must have:

  • Go installed

  • A working Go client (see Setting Up Your Client for details).

Client configuration

Open a terminal and navigate to the client directory.

From the client directory, run following command, substituting variables below with your configuration details:

An example is included below for reference:

If your client is successfully subscribed to this event, you should see similar output in your terminal:

Your client is now working and you will see new events output to the terminal as they are pushed from AttackForge.

You can now work on your integration code to start actioning these events. Open main.go with a text editor from your client directory. Your code will replace the following section within this file:

Example Response

The event emitted will include the following information:

Last updated

Check YouTube for more tutorials: https://youtube.com/@attackforge