AttackForge Enterprise & AttackForge Core
Powered By GitBook
CreateVulnerabilityLibraryIssue
This method can be used for the following functionality: Create a vulnerability in AttackForge internal vulnerability library.

Parameters

The following URL, Headers and Parameters are required for requests to this API endpoint. Where a parameter is optional, it will be indicated. Otherwise treat all parameters as mandatory.

Headers

1
POST /api/ss/library/vulnerability HTTP/1.1
2
Host: demo.attackforge.com
3
X-SSAPI-KEY: APIKey
4
Content-Type: application/json
5
Connection: close
Copied!

Query

title (string)
Title for the vulnerability.
Example:
1
{
2
"title": "..."
3
}
Copied!
severity (number) (optional)
Severity of the vulnerability. Must be a number between 1 to 10.
Example:
1
{
2
"severity": 10
3
}
Copied!
likelihood_of_exploitation (number) (optional)
Likelihood of Exploitation for the vulnerability. Must be a number between 1 to 10.
Example:
1
{
2
"likelihood_of_exploitation": 10
3
}
Copied!
impact_on_confidentiality (string) (optional)
Impact on Confidentiality. Must be one of the following: High, Medium, Low, None
Example:
1
{
2
"impact_on_confidentiality": "High"
3
}
Copied!
impact_on_integrity (string) (optional)
Impact on Integrity. Must be one of the following: High, Medium, Low, None
Example:
1
{
2
"impact_on_integrity": "High"
3
}
Copied!
impact_on_availability (string) (optional)
Impact on Availability. Must be one of the following: High, Medium, Low, None
Example:
1
{
2
"impact_on_availability": "High"
3
}
Copied!
description (string)
Description of the vulnerability.
Example:
1
{
2
"description": "..."
3
}
Copied!
attack_scenario (string)
Attack Scenario for the vulnerability.
Example:
1
{
2
"attack_scenario": "..."
3
}
Copied!
remediation_recommendation (string)
Remediation Recommendation for the vulnerability.
Example:
1
{
2
"remediation_recommendation": "..."
3
}
Copied!
tags (array of strings) (optional)
Tags for the vulnerability.
Example:
1
{
2
"tags": ["...", "...", "..."]
3
}
Copied!
import_to_library (string) (optional)
Import vulnerabilities into the Imported Vulnerabilities Library (default) or Main Vulnerabilities Library. Must be either "Imported Vulnerabilities" or "Main Vulnerabilities".
Example:
1
"import_to_library": "Imported Vulnerabilities"
Copied!
import_source (string) (optional)
Vulnerability source e.g. Nessus, BURP, Custom Tool, etc.
Example:
1
"import_source": "Nessus"
Copied!
import_source_id (string) (optional)
Vulnerability source/plugin id. Unique Id from the source/tool vulnerability is imported from.
Example:
1
"import_source_id": "NessusPlugin123"
Copied!

Example

The following example is a cURL request to create a vulnerability in the library.

Request

Include API Token instead of stars in 'X-SSAPI-KEY: ***************************************' parameter.
1
curl -X POST 'https://demo.attackforge.com/api/ss/library/vulnerability' -H 'Host: demo.attackforge.com' -H 'X-SSAPI-KEY: ***************************************' -H 'Content-Type: application/json' -H 'Connection: close' -d '{
2
"title": "SQL Injection",
3
"severity": 10,
4
"likelihood_of_exploitation": 10,
5
"impact_on_confidentiality": "High",
6
"impact_on_integrity": "High",
7
"impact_on_availability": "High",
8
"description": "Lorem Ipsum...",
9
"attack_scenario": "Lorem Ipsum...",
10
"remediation_recommendation": "Lorem Ipsum...",
11
"tags": ["CWE-89", "Injection"],
12
"import_to_library": "Imported Vulnerabilities",
13
"import_source": "Nessus",
14
"import_source_id": "NessusPlugin123"
15
}'
Copied!

Response

Response contains a vulnerability object.
1
{
2
"vulnerability": {
3
"vulnerability_id": "...",
4
"vulnerability_created": "...",
5
"vulnerability_modified": "...",
6
"vulnerability_title": "...",
7
"vulnerability_severity": 10,
8
"vulnerability_likelihood_of_exploitation": 10,
9
"vulnerability_impact_on_confidentiality": "High",
10
"vulnerability_impact_on_integrity": "High",
11
"vulnerability_impact_on_availability": "High",
12
"vulnerability_description": "...",
13
"vulnerability_attack_scenario": "...",
14
"vulnerability_remediation_recommendation": "...",
15
"vulnerability_tags": ["...","..."]
16
}
17
}
Copied!
Last modified 27d ago