Exclude Vulnerability

Exclude one or more CVEs from Saner VM results for a given scope and duration.

This covers CVEs in Saner VM. To exclude a patch or an application from Saner PM instead, use Exclude Patch/Asset; the two share one endpoint but take different item types and reason values.

Excludes a vulnerability from remediation and visibility based on the specified scope. This API allows administrators to create exclusion policies for vulnerabilities (CVEs) when visibility or remediation is not required, not applicable, risk accepted or temporarily deferred. Exclusions can be applied at the account, group, or device level. Exclusions are enforced for the defined duration and automatically removed once the exclusion period expires.

KeyMeaningMandatoryData Type
account_nameName of the account where the exclusion policy is appliedYesstring
policy_nameName of the exclusion policyYesstring
item_typeType of vulnerability identifier (e.g., CVE)Yesstring
itemsList of vulnerability identifiers to excludeYesarray
daysNumber of days the exclusion remains activeYesstring
reasonReason for exclusion (e.g., RISK_ACCEPTED, NOT_APPLICABLE, DEFERRED)Yesstring
descDescription of the exclusion policyNostring
commentsAdditional comments related to the exclusion policyNostring
scopeTypeScope level where exclusion applies (account, group, or device)Yesstring
selectedScopeItemsList of specific scope items (such as group names or device identifiers)Yesarray
module_typeModule type where exclusion applies (e.g., VM)Yesstring
Python SDK code

Install:

pip install secpod-saner-sdk

Call this endpoint:

from saner.cvem import CvemClient

client = CvemClient(
    api_key="<YOUR_API_KEY>",
    accountid="<YOUR_ACCOUNT_ID>",
    base_url="https://saner.secpod.com"
)

response=client.Vulnerability.exclude(
    account_name="Default",
    policy_name="policy001",
    item_type="CVE",
    items=["CVE-2023-5167","CVE-2022-351"],
    scopeType="group",
    selectedScopeItems=["debian12"],
    module_type="VM",
    days="1",
    reason="NA"
    )

print(response)
client.close()

Requires Python 3.9 or later.

Query Params
string
required

Account name used to identify the User

Body Params
request
object
Responses

Language
Credentials
Header
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json