Contrast Security

App · 21 actions

Read Contrast Security applications, vulnerabilities, servers and libraries, and change vulnerabilities' status, severity, notes and tags.

Actions

ActionWhat it does
Add application tagPut a tag on an application.
Add vulnerability noteAdd a note to a vulnerability.
Add vulnerability tagPut a tag on a vulnerability.
Delete vulnerability noteDelete a note from a vulnerability.
Get applicationRead an application, with its scores and vulnerability counts.
Get vulnerabilityRead a vulnerability, with its application, servers, request and notes.
Get vulnerability recommendationRead how to fix a vulnerability, with its CWE and OWASP references.
List application librariesList the open-source libraries an application uses.
List application tagsList the tags on an application.
List applicationsList the organization's applications, optionally by name, tag or language.
List librariesList the open-source libraries in the organization's applications.
List organizationsList the Contrast organizations the connected user belongs to.
List serversList the servers running Contrast agents.
List usersList the organization's users.
List vulnerabilitiesList the organization's vulnerabilities, optionally of one application or by severity, status, tag or when they were seen.
List vulnerability notesList the notes on a vulnerability.
List vulnerability tagsList the tags on a vulnerability.
Remove application tagTake a tag off an application.
Remove vulnerability tagTake a tag off a vulnerability.
Update vulnerability severityChange a vulnerability's severity.
Update vulnerability statusChange a vulnerability's status, with a note.

Add application tag

Put a tag on an application.

Inputs

Applicationapplication_idtextRequired
The application.
TagtagtextRequired
The tag.

Outputs

dataobject
The response from Contrast Security.
Example output
{
  "data": {
    "messages": [
      "example"
    ],
    "success": true
  }
}

Add vulnerability note

Add a note to a vulnerability.

Inputs

Applicationapplication_idtextRequired
The application.
Vulnerability IDvulnerability_idtextRequired
The vulnerability's ID (its uuid, such as ABCD-1234-EFGH-5678).
NotenotetextRequired
The note.

Outputs

dataobject
The response from Contrast Security.
Example output
{
  "data": {
    "note": {
      "creation": 1,
      "creator": "example",
      "deletable": true,
      "id": "example",
      "last_modification": 1,
      "last_updater": "example",
      "note": "example"
    },
    "success": true
  }
}

Add vulnerability tag

Put a tag on a vulnerability.

Inputs

Vulnerability IDvulnerability_idtextRequired
The vulnerability's ID (its uuid, such as ABCD-1234-EFGH-5678).
TagtagtextRequired
The tag.

Outputs

dataobject
The response from Contrast Security.
Example output
{
  "data": {
    "messages": [
      "example"
    ],
    "success": true
  }
}

Delete vulnerability note

Delete a note from a vulnerability.

Inputs

Applicationapplication_idtextRequired
The application.
Vulnerability IDvulnerability_idtextRequired
The vulnerability's ID (its uuid, such as ABCD-1234-EFGH-5678).
Note IDnote_idtextRequired
The note's ID.

Outputs

dataobject
The response from Contrast Security.
Example output
{
  "data": {
    "messages": [
      "example"
    ],
    "success": true
  }
}

Get application

Read an application, with its scores and vulnerability counts.

Inputs

Applicationapplication_idtextRequired
The application.

Outputs

dataobject
The response from Contrast Security.
Example output
{
  "data": {
    "application": {
      "appArchived": true,
      "appContext": "example",
      "appDisplayName": "example",
      "appId": "example",
      "appLanguage": "example",
      "appName": "example",
      "importance": "example",
      "lastSeen": 1,
      "parentAppId": "example",
      "scores": {},
      "status": "example",
      "trace_breakdown": {}
    },
    "success": true
  }
}

Get vulnerability

Read a vulnerability, with its application, servers, request and notes.

Inputs

Vulnerability IDvulnerability_idtextRequired
The vulnerability's ID (its uuid, such as ABCD-1234-EFGH-5678).

Outputs

dataobject
The response from Contrast Security.
Example output
{
  "data": {
    "success": true,
    "trace": {
      "application": {
        "app_id": "example",
        "name": "example"
      },
      "category": "example",
      "closed_time": 1,
      "confidence": "example",
      "first_time_seen": 1,
      "impact": "example",
      "language": "example",
      "last_time_seen": 1,
      "likelihood": "example",
      "request": {},
      "rule_name": "example",
      "rule_title": "example",
      "servers": [
        {}
      ],
      "severity": "example",
      "severity_label": "example",
      "status": "example",
      "sub_status": "example",
      "tags": [
        "example"
      ],
      "title": "example",
      "total_notes": 1,
      "uuid": "example",
      "visible": true
    }
  }
}

Get vulnerability recommendation

Read how to fix a vulnerability, with its CWE and OWASP references.

Inputs

Vulnerability IDvulnerability_idtextRequired
The vulnerability's ID (its uuid, such as ABCD-1234-EFGH-5678).

Outputs

dataobject
The response from Contrast Security.
Example output
{
  "data": {
    "custom_recommendation": {},
    "cwe": "example",
    "owasp": "example",
    "recommendation": {},
    "rule_references": {},
    "success": true
  }
}

List application libraries

List the open-source libraries an application uses.

Inputs

Applicationapplication_idtextRequired
The application.
Quick filterquick_filtertext
Only vulnerable, policy-violating or high-risk libraries.One of: ALL, VULNERABLE, VIOLATION, HIGH_RISK (High risk), PRIVATE, PUBLIC.
Limitlimitnumber
Most records to return.From 1 to 50.
Offsetoffsetnumber
Records to skip before the first one returned.At least 0.

Outputs

dataobject
The response from Contrast Security.
Example output
{
  "data": {
    "count": 1,
    "libraries": [
      {
        "app_language": "example",
        "apps": [
          {}
        ],
        "file_name": "example",
        "grade": "example",
        "group": "example",
        "hash": "example",
        "high_vulnerabilities": 1,
        "latest_version": "example",
        "licenses": [
          "example"
        ],
        "months_outdated": 1,
        "total_vulnerabilities": 1,
        "version": "example",
        "vulns": [
          {}
        ]
      }
    ],
    "success": true
  }
}

List application tags

List the tags on an application.

Inputs

Applicationapplication_idtextRequired
The application.

Outputs

dataobject
The response from Contrast Security.
Example output
{
  "data": {
    "success": true,
    "tags": [
      "example"
    ]
  }
}

List applications

List the organization's applications, optionally by name, tag or language.

Inputs

Filter textfilter_texttext
Part of the application name.
Tagstagslist
Only applications with these tags.
Languageslanguageslist
Only applications in these languages.One or more of: JAVA, DOTNET, DOTNET_CORE (Dotnet core), NODE, PYTHON, RUBY, GO, PHP.
Include archivedinclude_archivedtrue/false
Include archived applications.
Sortsorttext
Order of the applications.One of: appName, -appName, appImportance, -appImportance.
Limitlimitnumber
Most records to return.From 1 to 500.
Offsetoffsetnumber
Records to skip before the first one returned.At least 0.

Outputs

dataobject
The response from Contrast Security.
Example output
{
  "data": {
    "applications": [
      {
        "app_id": "example",
        "archived": true,
        "assess": true,
        "created": 1,
        "defend": true,
        "first_seen": 1,
        "importance": 1,
        "importance_description": "example",
        "language": "example",
        "last_seen": 1,
        "name": "example",
        "path": "example",
        "scores": {},
        "short_name": "example",
        "status": "example",
        "tags": [
          "example"
        ],
        "techs": [
          "example"
        ],
        "trace_breakdown": {}
      }
    ],
    "count": 1,
    "success": true
  }
}

List libraries

List the open-source libraries in the organization's applications.

Inputs

Searchqtext
Text to search for.
Quick filterquick_filtertext
Only vulnerable, policy-violating or high-risk libraries.One of: ALL, VULNERABLE, VIOLATION, HIGH_RISK (High risk), PRIVATE, PUBLIC.
Applicationsapplication_idslist
Only libraries of these applications.
Sortsorttext
Order of the libraries.One of: fileName, -fileName, score, -score.
Limitlimitnumber
Most records to return.From 1 to 50.
Offsetoffsetnumber
Records to skip before the first one returned.At least 0.

Outputs

dataobject
The response from Contrast Security.
Example output
{
  "data": {
    "count": 1,
    "libraries": [
      {
        "app_language": "example",
        "apps": [
          {}
        ],
        "file_name": "example",
        "grade": "example",
        "group": "example",
        "hash": "example",
        "high_vulnerabilities": 1,
        "latest_version": "example",
        "licenses": [
          "example"
        ],
        "months_outdated": 1,
        "total_vulnerabilities": 1,
        "version": "example",
        "vulns": [
          {}
        ]
      }
    ],
    "success": true
  }
}

List organizations

List the Contrast organizations the connected user belongs to.

Inputs

None.

Outputs

dataobject
The response from Contrast Security.
Example output
{
  "data": {
    "organizations": [
      {
        "date_format": "example",
        "name": "example",
        "organization_uuid": "example",
        "timezone": "example"
      }
    ],
    "success": true
  }
}

List servers

List the servers running Contrast agents.

Inputs

Searchqtext
Part of a server's name, hostname or path.
Applicationsapplication_idslist
Only servers running these applications.
Quick filterquick_filtertext
Only online, offline, protected, unprotected or out-of-date servers.One of: ALL, ONLINE, OFFLINE, PROTECTED, UNPROTECTED, OUT_OF_DATE (Out of date).
Sortsorttext
Order of the servers.One of: serverName, -serverName, lastActivity, -lastActivity.
Limitlimitnumber
Most records to return.From 1 to 500.
Offsetoffsetnumber
Records to skip before the first one returned.At least 0.

Outputs

dataobject
The response from Contrast Security.
Example output
{
  "data": {
    "count": 1,
    "servers": [
      {
        "agent_version": "example",
        "assess": true,
        "defend": true,
        "environment": "example",
        "first_activity": 1,
        "hostname": "example",
        "language": "example",
        "last_activity": 1,
        "last_startup": 1,
        "name": "example",
        "num_apps": 1,
        "out_of_date": true,
        "path": "example",
        "server_id": 1
      }
    ],
    "success": true
  }
}

List users

List the organization's users.

Inputs

Searchqtext
Part of a user's email or name.
Limitlimitnumber
Most records to return.From 1 to 500.
Offsetoffsetnumber
Records to skip before the first one returned.At least 0.

Outputs

dataobject
The response from Contrast Security.
Example output
{
  "data": {
    "count": 1,
    "success": true,
    "users": [
      {
        "api_only": true,
        "email": "example",
        "enabled": true,
        "first_name": "example",
        "groups": [
          {}
        ],
        "last_name": "example",
        "role": {},
        "status_description": "example",
        "user_uid": "example"
      }
    ]
  }
}

List vulnerabilities

List the organization's vulnerabilities, optionally of one application or by severity, status, tag or when they were seen.

Inputs

Applicationapplication_idtext
The application.
Severitiesseveritieslist
Only these severities.One or more of: CRITICAL, HIGH, MEDIUM, LOW, NOTE.
Statusstatuslist
Only these statuses.One or more of: Reported, Suspicious, Confirmed, NotAProblem, Remediated, Fixed.
Filter textfilter_texttext
Text to search for.
Tagstagslist
Only vulnerabilities with these tags.
Environmentsenvironmentslist
Only vulnerabilities seen in these environments.One or more of: DEVELOPMENT, QA, PRODUCTION.
Start datestart_datedate and time
Only vulnerabilities seen at or after this time.
End dateend_datedate and time
Only vulnerabilities seen at or before this time.
Timestamp filtertimestamp_filtertext
Whether the times are when each was first or last seen.One of: FIRST, LAST.
Sortsorttext
Order of the vulnerabilities.One of: -lastTimeSeen, lastTimeSeen, -severity, severity, status, title.
Limitlimitnumber
Most records to return.From 1 to 500.
Offsetoffsetnumber
Records to skip before the first one returned.At least 0.

Outputs

dataobject
The response from Contrast Security.
Example output
{
  "data": {
    "count": 1,
    "success": true,
    "traces": [
      {
        "application": {
          "app_id": "example",
          "name": "example"
        },
        "category": "example",
        "closed_time": 1,
        "confidence": "example",
        "first_time_seen": 1,
        "impact": "example",
        "language": "example",
        "last_time_seen": 1,
        "likelihood": "example",
        "request": {},
        "rule_name": "example",
        "rule_title": "example",
        "servers": [
          {}
        ],
        "severity": "example",
        "severity_label": "example",
        "status": "example",
        "sub_status": "example",
        "tags": [
          "example"
        ],
        "title": "example",
        "total_notes": 1,
        "uuid": "example",
        "visible": true
      }
    ]
  }
}

List vulnerability notes

List the notes on a vulnerability.

Inputs

Applicationapplication_idtextRequired
The application.
Vulnerability IDvulnerability_idtextRequired
The vulnerability's ID (its uuid, such as ABCD-1234-EFGH-5678).

Outputs

dataobject
The response from Contrast Security.
Example output
{
  "data": {
    "notes": [
      {
        "creation": 1,
        "creator": "example",
        "deletable": true,
        "id": "example",
        "last_modification": 1,
        "last_updater": "example",
        "note": "example"
      }
    ],
    "success": true
  }
}

List vulnerability tags

List the tags on a vulnerability.

Inputs

Vulnerability IDvulnerability_idtextRequired
The vulnerability's ID (its uuid, such as ABCD-1234-EFGH-5678).

Outputs

dataobject
The response from Contrast Security.
Example output
{
  "data": {
    "success": true,
    "tags": [
      "example"
    ]
  }
}

Remove application tag

Take a tag off an application.

Inputs

Applicationapplication_idtextRequired
The application.
TagtagtextRequired
The tag.

Outputs

dataobject
The response from Contrast Security.
Example output
{
  "data": {
    "success": true,
    "tags": [
      "example"
    ]
  }
}

Remove vulnerability tag

Take a tag off a vulnerability.

Inputs

Vulnerability IDvulnerability_idtextRequired
The vulnerability's ID (its uuid, such as ABCD-1234-EFGH-5678).
TagtagtextRequired
The tag.

Outputs

dataobject
The response from Contrast Security.
Example output
{
  "data": {
    "success": true,
    "tags": [
      "example"
    ]
  }
}

Update vulnerability severity

Change a vulnerability's severity.

Inputs

Vulnerability IDvulnerability_idtextRequired
The vulnerability's ID (its uuid, such as ABCD-1234-EFGH-5678).
SeverityseveritytextRequired
The new severity.One of: CRITICAL, HIGH, MEDIUM, LOW, NOTE.
Overrideoverridetrue/false
Also give this severity to the rule's other vulnerabilities.

Outputs

dataobject
The response from Contrast Security.
Example output
{
  "data": {
    "messages": [
      "example"
    ],
    "success": true
  }
}

Update vulnerability status

Change a vulnerability's status, with a note. Not a Problem needs a reason.

Inputs

Vulnerability IDvulnerability_idtextRequired
The vulnerability's ID (its uuid, such as ABCD-1234-EFGH-5678).
StatusstatustextRequired
The new status.One of: Reported, Suspicious, Confirmed, NotAProblem, Remediated, Fixed.
Reasonreasontext
Why it is not a problem. Only for Not a Problem.One of: Attack is defended by an external control, False Positive, Goes through an internal security control, URL is only accessible by trusted power users, Other.
Notenotetext
A note explaining the change.

Outputs

dataobject
The response from Contrast Security.
Example output
{
  "data": {
    "messages": [
      "example"
    ],
    "success": true
  }
}

On this page