3.0.0 • Published 5 years ago

@datafire/probely v3.0.0

Weekly downloads
1
License
MIT
Repository
github
Last release
5 years ago

@datafire/probely

Client library for Probely Developers

Installation and Usage

npm install --save @datafire/probely
let probely = require('@datafire/probely').create({
  jwtAuth: ""
});

.then(data => {
  console.log(data);
});

Description

Probely is a Web Vulnerability Scanning suite for Agile Teams. It provides continuous scanning of your Web Applications and lets you efficiently manage the lifecycle of the vulnerabilities found, in a sleek and intuitive web interface API.

Quick-Start

Authentication

To use the API, you first need to create a token (API Key). To create a token, select a target from the drop-down list, go to the "Settings" page, and click on the "Integrations" tab.

Write a name for the API Key. For example, if you want to use the API Key for travis, you could name it "travis". In this example, we chose "example.com_key"

Creating API key

The API key was created successfully:

API key created

On every request, you need to pass this token in the authorization header, like this:

Authorization: JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJqdGkiOiJBRlNJQlp
3elFsMDEiLCJ1c2VybmFtZSI6IkNIZ2tkSUROdzV0NSJ9.90UwiPGS2hlvgOLktFU0LfKuatNKm
mEP79u17VnqT9M

WARNING: Treat this token as a password. With this token, you have the power to fully manage the target.

In the following examples, the token will be named as PROBELY_AUTH_TOKEN.

Scan target

First let's view our target list:

curl https://api.probely.com/targets/ \
  -X GET \
  -H "Content-Type: application/json" \
  -H "Authorization: JWT PROBELY_AUTH_TOKEN"

From the results, we need the target id:

{
   "count":1,
   "page_total":1,
   "page":1,
   "length":10,
   "results":[
      {
         "id":"AxtkqTE0v3E-",
         "name":"test-site",
         "desc":"",
         "url":"https://test-site.example.com",
         "settings":
            "(...)"
         ,
         "stack":
            "(...)"
         ,
         "verified":true,
         "(...)": "(...)"
      }
   ]
}

Now we can send a request to start a scan on target id AxtkqTE0v3E-

curl https://api.probely.com/targets/AxtkqTE0v3E-/scan_now/ \
  -X POST \
  -H "Content-Type: application/json" \
  -H "Authorization: JWT PROBELY_AUTH_TOKEN"

And we get a response saying that the scan is scheduled: the status is queued, and we've got a scan id:

{
   "changed":"2017-08-01T13:37:00.843339Z",
   "started":null,
   "completed":null,
   "mediums":0,
   "changed_by":
    "(...)"
   ,
   "highs":0,
   "status":"queued",
   "id":"S6dOMPn0SnoH",
   "created_by":
    "(...)"
   ,
   "target":
    "(...)"
   ,
   "created":"2017-08-01T13:37:00.843339Z",
   "lows":0
}

Using the scan id S6dOMPn0SnoH, we can pool the scan status:

curl https://api.probely.com/targets/AxtkqTE0v3E-/scans/S6dOMPn0SnoH/ \
  -X GET \
  -H "Content-Type: application/json" \
  -H "Authorization: JWT PROBELY_AUTH_TOKEN"

And we get a response saying that the scan status is now started:

{
   "id":"S6dOMPn0SnoH",
   "changed":"2017-08-01T13:38:12.623650Z",
   "started":null,
   "completed":null,
   "mediums":0,
   "changed_by":
    "(...)"
   ,
   "highs":0,
   "status":"started",
   "created_by":
    "(...)"
   ,
   "target":
    "(...)"
   ,
   "created":"2017-08-01T13:37:00.843339Z",
   "lows":0
}

The possible statuses are:

StatusNameDescription
queuedQueuedThe scan is queued to start
startedStartedThe scan is currently running
under_reviewUnder ReviewThe scan is complete but has some findings under review
completedCompletedThe scan is complete
completed_with_errorsCompleted with errorsThe scan is complete even after getting some error(s)
failedFailedThe scan failed
canceledCanceledThe scan was canceled
cancelingCancelingThe scan is being canceled

During the scan, the keys "lows", "mediums", and "highs" will be updated with the findings, as they are being found.

After we get either the status completed or completed_with_errors, we can view the findings.

Get vulnerabilities

Using the previous scan id S6dOMPn0SnoH, we can get the scan results:

curl https://api.probely.com/targets/AxtkqTE0v3E-/scans/S6dOMPn0SnoH/ \
  -X GET \
  -H "Content-Type: application/json" \
  -H "Authorization: JWT PROBELY_AUTH_TOKEN"

We get a response saying that the scan status is now completed, and that 45 vulnerabilities were found. 14 low, 11 medium and 20 high:

{
   "id":"S6dOMPn0SnoH",
   "target":
    "(...)"
   ,
   "status":"completed",
   "started":"2017-08-01T13:37:12.623650Z",
   "completed":"2017-08-01T14:17:48.559514Z",
   "lows":14,
   "mediums":11,
   "highs":20,
   "created":"2017-08-01T13:37:00.843339Z",
   "created_by":
    "(...)"
   ,
   "changed":"2017-08-01T14:17:48.559514Z",
   "changed_by":
    "(...)"
}

You can now view the results of this scan, or the target findings.

Let's start with the scan results:

curl https://api.probely.com/targets/AxtkqTE0v3E-/findings/?scan=S6dOMPn0SnoH&page=1 \
  -X GET \
  -H "Content-Type: application/json" \
  -H "Authorization: JWT PROBELY_AUTH_TOKEN"
{
   "count":45,
   "page_total":5,
   "page":1,
   "length":10,
   "results":[
      {
         "id":79,
         "target":
          "(...)"
         ,
         "scans":
          "(...)"
         ,
         "labels":
          "(...)"
         ,
         "fix":"To fix an SQL Injection in PHP, you should use Prepared Statements. Prepared Statements can be thought of as a kind of compiled template for the SQL that an application wants to run, that can be customized using variable parameters.\n\nPHP's PDO extension supports Prepared Statements, so that's probably your best option.\n\nIn the example below you can see the use of prepared statements. Variables ```$username``` and ```$hashedPassword``` come from user input.\n\n```\n$stmt = $dbg->prepare(\"SELECT id, name FROM users\n                       WHERE username=? AND password=?\");\n$stmt->bindParam(1, $username);\n$stmt->bindParam(2, $hashedPassword);\nif ($stmt->execute()) {\n\t$user = $stmt->fetch();\n\tif ($user) {\n\t\t$_SESSION['authID'] = $user['id'];\n\t\techo \"Hello \" . $user['name'];\n\t} else {\n\t\techo \"Invalid Login\";\n\t}\n}\n```  \n\nAs an added bonus, if you're executing the same query several times, then it'll be even faster than when you're not using prepared statements. This is because when using prepared statements, the query needs to be parsed (prepared) only once, but can be executed multiple times with the same or different parameters. \n",
         "requests":[
            {
               "request":"(...)",
               "response":"(...)"
            },
            {
               "request":"(...)",
               "response":"(...)"
            }
         ],
         "evidence":null,
         "extra":"",
         "definition":{
            "id":"xnV8PJVmSoLS",
            "name":"SQL Injection",
            "desc":"SQL Injections are the most common form of injections because SQL databases are very popular in dynamic web applications. This vulnerability allows an attacker to tamper existing SQL queries performed by the web application. Depending on the queries, the attacker might be able to access, modify or even destroy data from the database.\n\nSince databases are commonly used to store private data, such as authentication information, personal user data and site content, if an attacker gains access to it, the consequences are typically very severe, ranging from defacement of the web application to users data leakage or loss, or even full control of the web application or database server.",
         },
         "url":"http://test-site.example.com/login.php",
         "path":"login.php",
         "method":"post",
         "parameter":"username",
         "value":"",
         "params":{
            "username":[
               "probely'"
            ],
            "password":[
               "probely"
            ]
         },
         "reporter":
          "(...)"
         ,
         "assignee":null,
         "state":"notfixed",
         "severity":30,
         "last_found":"2017-08-01T14:03:56.207794Z",
         "changed":"2017-08-01T14:03:56.207794Z",
         "changed_by":
          "(...)"
         ,
         "comment":""
      },
      "(...)"
   ]
}

You can also view all the target findings, which will show all the findings that are not yet fixed. \ The structure is similar to the previous result.

curl https://api.probely.com/targets/AxtkqTE0v3E-/findings/ \
  -X GET \
  -H "Content-Type: application/json" \
  -H "Authorization: JWT PROBELY_AUTH_TOKEN"

Get vulnerability details

You can also get details for a particular finding in a target. \ In this example we will get the details for the same finding as in the previous section:

curl https://api.probely.com/targets/AxtkqTE0v3E-/findings/79/ \
  -X GET \
  -H "Content-Type: application/json" \
  -H "Authorization: JWT PROBELY_AUTH_TOKEN"

This will result on the same information, but just for this particular finding:

{
   "id":79,
   "target":
    "(...)"
   ,
   "scans":
    "(...)"
   ,
   "labels":
    "(...)"
   ,
   "fix":"To fix an SQL Injection in PHP, you should use Prepared Statements. Prepared Statements can be thought of as a kind of compiled template for the SQL that an application wants to run, that can be customized using variable parameters.\n\nPHP's PDO extension supports Prepared Statements, so that's probably your best option.\n\nIn the example below you can see the use of prepared statements. Variables ```$username``` and ```$hashedPassword``` come from user input.\n\n```\n$stmt = $dbg->prepare(\"SELECT id, name FROM users\n                       WHERE username=? AND password=?\");\n$stmt->bindParam(1, $username);\n$stmt->bindParam(2, $hashedPassword);\nif ($stmt->execute()) {\n\t$user = $stmt->fetch();\n\tif ($user) {\n\t\t$_SESSION['authID'] = $user['id'];\n\t\techo \"Hello \" . $user['name'];\n\t} else {\n\t\techo \"Invalid Login\";\n\t}\n}\n```  \n\nAs an added bonus, if you're executing the same query several times, then it'll be even faster than when you're not using prepared statements. This is because when using prepared statements, the query needs to be parsed (prepared) only once, but can be executed multiple times with the same or different parameters. \n",
   "requests":[
      {
         "request":"(...)",
         "response":"(...)"
      },
      {
         "request":"(...)",
         "response":"(...)"
      }
   ],
   "evidence":null,
   "extra":"",
   "definition":{
      "id":"xnV8PJVmSoLS",
      "name":"SQL Injection",
      "desc":"SQL Injections are the most common form of injections because SQL databases are very popular in dynamic web applications. This vulnerability allows an attacker to tamper existing SQL queries performed by the web application. Depending on the queries, the attacker might be able to access, modify or even destroy data from the database.\n\nSince databases are commonly used to store private data, such as authentication information, personal user data and site content, if an attacker gains access to it, the consequences are typically very severe, ranging from defacement of the web application to users data leakage or loss, or even full control of the web application or database server.",
   },
   "url":"http://test-site.example.com/login.php",
   "path":"login.php",
   "method":"post",
   "parameter":"username",
   "value":"",
   "params":{
      "username":[
         "probely'"
      ],
      "password":[
         "probely"
      ]
   },
   "reporter":
    "(...)"
   ,
   "assignee":null,
   "state":"notfixed",
   "severity":30,
   "last_found":"2017-08-01T14:03:56.207794Z",
   "changed":"2017-08-01T14:03:56.207794Z",
   "changed_by":
    "(...)"
   ,
   "comment":""
}

Concepts

The short version is that you run scans on targets, and findings are created for any issue that is found. However, there are a few more concepts that must be explained in order to get a complete picture of how Probely works. We will spend the next few sections detailing the most important concepts.

Target

A target defines the scope of a scan, what will and won't be included in the scan plan. This is done by filling a target's site and assets.

The entry point for the web application (and authentication) is setup in the target's site.

In modern web applications, you are probably loading resources from multiple domains. A single page app, for example, will usualy load the page from one domain and make AJAX requests to another. This is what assets are for: they specify what domains our scanner should follow and create requests for.

Site

A URL is probably not the only thing you will need to setup when scannning your application. Does the application have an authenticated area? Does it use basic auth? Does it expect a certain cookie or header? These parameters are all configured in the target's site.

We need to ensure that only allowed web applications are scanned. Therefore, we must verify that you have control of any site you wish to include. This can be done by:

  • Placing a file on a well-known location, on the site's server;
  • Creating specific DNS records.

Asset

An asset is very similar to a site. The difference is that it is a domain instead of a URL. Additionally, an asset has no login or basic auth support. You can still have custom cookies and headers per asset.

As with the site, you will need to prove an asset's ownership. We have added some rules to make your life easier, if you already have verified a site and the domains match, the validation is fast-tracked.

Scans

This is what you're here for. After configuring your target, you will want to run scans against it. You can either start a one off scan, or schedule one for later - recurring or not.

During the scan, we will spider and run several modules to check for security issues, which we call findings. You can check the findings even before a scan ends. If everything goes well, the scan will complete and that is it.

With some findings, our automated processes may have difficulties determining if it is a false positive or a legitimate issue. In these instances, a scan will be marked as under review, and we will further analyze the finding before making a decision. We will only show findings that, for some degree of confidence, are true positives. A finding that we are not sure of will never be displayed.

As much as we try to prevent it, a scan (or a sub-module) can malfunction. If this happens, a scan is marked as:

  • "failed": the problem was irrecoverable;
  • "completed with errors": some module failed but the scan itself completed.

During a scan, we try to determine what frameworks you are using and add this information to the site and asset objects discussed previously.

Findings

The last core concept is the finding, this is a security issue that we have found during our scans. If the same issue is found in a new scan it will not open a new finding but update the previous.

A finding will have a lot of information about the issue. Namely, where it was found, URL, insertion point (e.g. cookie), parameter, and method. Evidence we gathered, and the full request and response that we used. Sugestions of how to go about fixing it. A full description of the vulnerability is also present in the definition property. We also assign a severity and calculate the CVSS score for each.

Besides all this, there are also actions that you can perform on a finding. You can assign it to one user, leave comments for your team or add labels, and reduce or increase the severity.

If you don't plan on fixing the finding and accept the risk, or you think we reported a false positive, you can mark the finding to reflect that.

Actions

account.get

Retrieve account information

probely.account.get(null, context)

Input

This action has no parameters

Output

auth.obtain.post

The received token should be used for authenticated requests by including in the Authorization header as Authorization: JWT <token>.

probely.auth.obtain.post({
  "body": {
    "username": "",
    "password": ""
  }
}, context)

Input

  • input object

Output

auth.refresh.post

Replace token with a new one

probely.auth.refresh.post({
  "body": {}
}, context)

Input

  • input object

Output

auth.revoke.post

Revoke a token

probely.auth.revoke.post({
  "body": {}
}, context)

Input

  • input object

Output

auth.verify.post

Check for the validity of a user token.

probely.auth.verify.post({
  "body": {}
}, context)

Input

  • input object

Output

billing.get

Retrieve billing information

probely.billing.get(null, context)

Input

This action has no parameters

Output

billing.patch

Partial update billing information

probely.billing.patch({
  "body": {
    "country": "",
    "vat_number": "",
    "first_name": "",
    "last_name": "",
    "city": "",
    "address": "",
    "zip": "",
    "email": ""
  }
}, context)

Input

Output

billing.put

Update billing information

probely.billing.put({
  "body": {
    "country": "",
    "vat_number": "",
    "first_name": "",
    "last_name": "",
    "city": "",
    "address": "",
    "zip": "",
    "email": ""
  }
}, context)

Input

Output

billing.actions.post

Action that should be taken to enable the selected targets

probely.billing.actions.post({
  "body": []
}, context)

Input

Output

billing.estimate.post

Estimate costs of updating a subscription

probely.billing.estimate.post({
  "body": {}
}, context)

Input

Output

billing.subscribe.post

Update a subscription

probely.billing.subscribe.post({
  "body": {}
}, context)

Input

Output

check.post

Check validity of password reset token

probely.check.post({
  "body": {
    "token": ""
  }
}, context)

Input

  • input object

Output

  • output object
    • message string: Message

events.get

List account events

probely.events.get(null, context)

Input

This action has no parameters

Output

events.id.get

Retrieve account event

probely.events.id.get({
  "id": ""
}, context)

Input

  • input object
    • id required string: Object Id

Output

frameworks.get

List frameworks

probely.frameworks.get({}, context)

Input

  • input object
    • page integer: Page number within the paginated result set
    • length integer: Number of results to return per page
    • ordering string: Which field to use when ordering the results, prefix with - to invert ordering.
    • search string: Search term

Output

frameworks.id.get

Retrieve framework

probely.frameworks.id.get({
  "id": ""
}, context)

Input

  • input object
    • id required string: Object Id

Output

integrations.get

Integrations available and installed in the account

probely.integrations.get(null, context)

Input

This action has no parameters

Output

integrations.jira_cloud.projects.get

List Jira Projects

probely.integrations.jira_cloud.projects.get(null, context)

Input

This action has no parameters

Output

integrations.jira_cloud.projects.project_id.issue_types.get

Retrieve project issue types

probely.integrations.jira_cloud.projects.project_id.issue_types.get({
  "project_id": ""
}, context)

Input

  • input object
    • project_id required string: Jira Project Id

Output

integrations.jira_cloud.projects.project_id.issue_types.issue_type_id.priorities.get

Retrieve issue priorities

probely.integrations.jira_cloud.projects.project_id.issue_types.issue_type_id.priorities.get({
  "project_id": "",
  "issue_type_id": ""
}, context)

Input

  • input object
    • project_id required string: Jira Project Id
    • issue_type_id required string: Jira issue type id

Output

integrations.jira_cloud.projects.project_id.issue_types.issue_type_id.status.get

Retrieve issue statuses

probely.integrations.jira_cloud.projects.project_id.issue_types.issue_type_id.status.get({
  "project_id": "",
  "issue_type_id": ""
}, context)

Input

  • input object
    • project_id required string: Jira Project Id
    • issue_type_id required string: Jira issue type id

Output

integrations.jira_server.projects.get

List Jira Projects

probely.integrations.jira_server.projects.get(null, context)

Input

This action has no parameters

Output

integrations.jira_server.projects.project_id.issue_types.get

Retrieve project issue types

probely.integrations.jira_server.projects.project_id.issue_types.get({
  "project_id": ""
}, context)

Input

  • input object
    • project_id required string: Jira Project Id

Output

integrations.jira_server.projects.project_id.issue_types.issue_type_id.priorities.get

Retrieve issue priorities

probely.integrations.jira_server.projects.project_id.issue_types.issue_type_id.priorities.get({
  "project_id": "",
  "issue_type_id": ""
}, context)

Input

  • input object
    • project_id required string: Jira Project Id
    • issue_type_id required string: Jira issue type id

Output

integrations.jira_server.projects.project_id.issue_types.issue_type_id.status.get

Retrieve issue statuses

probely.integrations.jira_server.projects.project_id.issue_types.issue_type_id.status.get({
  "project_id": "",
  "issue_type_id": ""
}, context)

Input

  • input object
    • project_id required string: Jira Project Id
    • issue_type_id required string: Jira issue type id

Output

keys.get

List API keys allowed to operate on account

probely.keys.get({}, context)

Input

  • input object
    • page integer: Page number within the paginated result set
    • length integer: Number of results to return per page
    • ordering string: Which field to use when ordering the results, prefix with - to invert ordering.
    • search string: Search term

Output

keys.post

Create account API key

probely.keys.post({
  "body": {}
}, context)

Input

  • input object

Output

keys.id.delete

Delete account API key

probely.keys.id.delete({
  "id": ""
}, context)

Input

  • input object
    • id required string: Object Id

Output

Output schema unknown

keys.id.get

Retrieve account API key

probely.keys.id.get({
  "id": ""
}, context)

Input

  • input object
    • id required string: Object Id

Output

labels.get

List labels

probely.labels.get({}, context)

Input

  • input object
    • page integer: Page number within the paginated result set
    • length integer: Number of results to return per page
    • ordering string: Which field to use when ordering the results, prefix with - to invert ordering.
    • search string: Search term

Output

labels.post

Create label

probely.labels.post({
  "body": {}
}, context)

Input

  • input object

Output

labels.id.delete

Delete label

probely.labels.id.delete({
  "id": ""
}, context)

Input

  • input object
    • id required string: Object Id

Output

Output schema unknown

labels.id.get

Retrieve framework

probely.labels.id.get({
  "id": ""
}, context)

Input

  • input object
    • id required string: Object Id

Output

labels.id.patch

Partial update

probely.labels.id.patch({
  "id": "",
  "body": {}
}, context)

Input

  • input object
    • id required string: Object Id
    • body required Label

Output

labels.id.put

Update label

probely.labels.id.put({
  "id": "",
  "body": {}
}, context)

Input

  • input object
    • id required string: Object Id
    • body required Label

Output

plans.get

Subscription plans

probely.plans.get(null, context)

Input

This action has no parameters

Output

  • output array

profile.get

User data

probely.profile.get({}, context)

Input

  • input object
    • page integer: Page number within the paginated result set
    • length integer: Number of results to return per page
    • ordering string: Which field to use when ordering the results, prefix with - to invert ordering.
    • search string: Search term

Output

profile.change_password.post

Our password policy requires a minimum password length of 10 chars with at least one symbol or number.

probely.profile.change_password.post({
  "body": {
    "current_password": null,
    "password": null,
    "confpassword": null
  }
}, context)

Input

  • input object
    • body required object
      • confpassword required
      • current_password required
      • password required

Output

  • output object
    • message string: Message

reset.post

Send reset password email

probely.reset.post({
  "body": {
    "email": ""
  }
}, context)

Input

  • input object
    • body required object

Output

  • output object
    • message string: Message

setpassword.post

Reset password after asking for a reset (with the token sent by email).

probely.setpassword.post({
  "body": {
    "token": "",
    "password": null,
    "confpassword": null
  }
}, context)

Input

  • input object
    • body required object
      • confpassword required
      • password required
      • token required emailToken

Output

  • output object
    • message string: Message

target_actions.post

Available actions for the selected targets

probely.target_actions.post({
  "body": []
}, context)

Input

Output

targets.get

List targets

probely.targets.get({}, context)

Input

  • input object
    • page integer: Page number within the paginated result set
    • length integer: Number of results to return per page
    • ordering string: Which field to use when ordering the results, prefix with - to invert ordering.
    • search string: Search term

Output

targets.post

Create target

probely.targets.post({}, context)

Input

Output

targets.activate.post

Activate targets

probely.targets.activate.post({
  "body": []
}, context)

Input

Output

targets.all.average_fix_time.get

Average fix time graph data (all targets)

probely.targets.all.average_fix_time.get(null, context)

Input

This action has no parameters

Output

  • output object
    • results object
      • high integer: Average fix time in seconds for high severity findings
      • low integer: Average fix time in seconds for low severity findings
      • medium integer: Average fix time in seconds for medium severity findings

targets.all.needs_attention_pie.get

Targets with open vulnerabilities pie chart data

probely.targets.all.needs_attention_pie.get(null, context)

Input

This action has no parameters

Output

  • output object
    • 0 object: These are arrays, they are being displayed as objects with numerical indexes due to limitations of the framework.
      • 0 string: needing attention
      • 1 integer: Number of targets
      • 2 string: needs_atention
    • 1 object: These are arrays, they are being displayed as objects with numerical indexes due to limitations of the framework.
      • 0 string: no issues found
      • 1 integer: Number of targets
      • 2 string: no_issues_found

targets.all.needs_attention_top.get

Targets with open vulnerabilities

probely.targets.all.needs_attention_top.get(null, context)

Input

This action has no parameters

Output

  • output array
    • items object
      • highs integer: Number of high severity findings
      • id string: Target id
      • lows integer: Number of low severity findings
      • mediums integer: Number of medium severity findings
      • name string: Name
      • url string: Target's site URL

targets.all.risk_trend.get

Risk trend graph data (all targets)

probely.targets.all.risk_trend.get(null, context)

Input

This action has no parameters

Output

  • output array
    • items object
      • 0 string: Date time
      • 1 integer: Risk score

targets.all.scans.get

List scans for all targets

probely.targets.all.scans.get({}, context)

Input

  • input object
    • page integer: Page number within the paginated result set
    • length integer: Number of results to return per page
    • ordering string: Which field to use when ordering the results, prefix with - to invert ordering.
    • search string: Search term
    • started array: Filter by scan start dates
    • status string (values: queued, started, under_review, completed, completed_with_errors, failed, canceled, canceling): Filter by scan statuses

Output

targets.all.scheduledscans.expanded.get

List scheduled scans for all targets expanding recurrence

probely.targets.all.scheduledscans.expanded.get({}, context)

Input

  • input object
    • length integer: Number of results to return per page

Output

  • output object
    • results array: Scheduled scan objects

targets.all.severity_trend.get

Severity trend graph data (all targets)

probely.targets.all.severity_trend.get(null, context)

Input

This action has no parameters

Output

  • output object
    • results object
      • high array
        • items object
          • 0 string: Date time
          • 1 integer: Risk score
      • low array
        • items object
          • 0 string: Date time
          • 1 integer: Risk score
      • medium array
        • items object
          • 0 string: Date time
          • 1 integer: Risk score
    • step number

targets.all.top_vulns.get

Top 5 vulnerabilities (all targets).

probely.targets.all.top_vulns.get(null, context)

Input

This action has no parameters

Output

  • output array
    • items object
      • 0 string: Vulnerability name
      • 1 string: Vulnerability count

targets.archive.post

Archive targets

probely.targets.archive.post({
  "body": []
}, context)

Input

Output

targets.archived.post

List archived targets

probely.targets.archived.post({
  "body": []
}, context)

Input

Output

targets.id.delete

Delete target

probely.targets.id.delete({
  "id": ""
}, context)

Input

  • input object
    • id required string: Object Id

Output

Output schema unknown

targets.id.get

Retrieve target

probely.targets.id.get({
  "id": ""
}, context)

Input

  • input object
    • id required string: Object Id

Output

targets.id.patch

Partial update target

probely.targets.id.patch({
  "id": ""
}, context)

Input

  • input object
    • id required string: Object Id
    • body Target

Output

targets.id.put

Update target

probely.targets.id.put({
  "id": ""
}, context)

Input

  • input object
    • id required string: Object Id
    • body Target

Output

targets.target_id.assets.get

List target's assets

probely.targets.target_id.assets.get({
  "target_id": ""
}, context)

Input

  • input object
    • target_id required string: Target id
    • page integer: Page number within the paginated result set
    • length integer: Number of results to return per page
    • ordering string: Which field to use when ordering the results, prefix with - to invert ordering.
    • search string: Search term

Output

targets.target_id.assets.post

Create new asset

probely.targets.target_id.assets.post({
  "target_id": "",
  "body": {}
}, context)

Input

  • input object
    • target_id required string: Target id
    • body required Asset

Output

targets.target_id.assets.id.delete

Delete asset

probely.targets.target_id.assets.id.delete({
  "target_id": "",
  "id": ""
}, context)

Input

  • input object
    • target_id required string: Target id
    • id required string: Object Id

Output

Output schema unknown

targets.target_id.assets.id.get

Retrieve asset

probely.targets.target_id.assets.id.get({
  "target_id": "",
  "id": ""
}, context)

Input

  • input object
    • target_id required string: Target id
    • id required string: Object Id

Output

targets.target_id.assets.id.patch

Partial update assets

probely.targets.target_id.assets.id.patch({
  "target_id": "",
  "id": "",
  "body": {}
}, context)

Input

  • input object
    • target_id required string: Target id
    • id required string: Object Id
    • body required Asset

Output

targets.target_id.assets.id.put

Update asset

probely.targets.target_id.assets.id.put({
  "target_id": "",
  "id": "",
  "body": {}
}, context)

Input

  • input object
    • target_id required string: Target id
    • id required string: Object Id
    • body required Asset

Output

targets.target_id.assets.id.verify.post

Verify asset ownership

probely.targets.target_id.assets.id.verify.post({
  "target_id": "",
  "id": "",
  "body": {
    "type": ""
  }
}, context)

Input

  • input object
    • target_id required string: Target id
    • id required string: Object Id
    • body required object

Output

  • output object
    • message string: Message

targets.target_id.average_fix_time.get

Average vulnerability trend graph data

probely.targets.target_id.average_fix_time.get({
  "target_id": ""
}, context)

Input

  • input object
    • target_id required string: Target id

Output

  • output object
    • results object
      • high integer: Average fix time in seconds for high severity findings
      • low integer: Average fix time in seconds for low severity findings
      • medium integer: Average fix time in seconds for medium severity findings

targets.target_id.events.get

List target events

probely.targets.target_id.events.get({
  "target_id": ""
}, context)

Input

  • input object
    • target_id required string: Target id

Output

targets.target_id.events.id.get

Retrieve target event

probely.targets.target_id.events.id.get({
  "target_id": "",
  "id": ""
}, context)

Input

  • input object
    • target_id required string: Target id
    • id required string: Object Id

Output

targets.target_id.findings.get

List target findings

probely.targets.target_id.findings.get({
  "target_id": ""
}, context)

Input

  • input object
    • target_id required string: Target id
    • scan array: Filter by scan ids
    • severity string (values: 10, 20, 30): Filter by finding severity
    • state string (values: notfixed, invalid, accepted, fixed): Filter by finding states
    • assignee array: Filter by assignee ids
    • label array: Filter by finding labels
    • page integer: Page number within the paginated result set
    • length integer: Number of results to return per page
    • ordering string: Which field to use when ordering the results, prefix with - to invert ordering.
    • search string: Search term

Output

targets.target_id.findings.bulk.report.post

Finding report

probely.targets.target_id.findings.bulk.report.post({
  "target_id": "",
  "body": {
    "ids": []
  }
}, context)

Input

  • input object

Output

Output schema unknown

targets.target_id.findings.bulk.retest.post

Bulk retest findings

probely.targets.target_id.findings.bulk.retest.post({
  "target_id": "",
  "body": null
}, context)

Input

Output

Output schema unknown

targets.target_id.findings.bulk.update.patch

Bulk update findings

probely.targets.target_id.findings.bulk.update.patch({
  "target_id": "",
  "body": null
}, context)

Input

Output

Output schema unknown

targets.target_id.findings.report.get

Retrieve finding report PDF format

probely.targets.target_id.findings.report.get({
  "target_id": "",
  "token": ""
}, context)

Input

  • input object
    • target_id required string: Target id
    • token required string: Token received from the finding report endpoint.

Output

  • output string

targets.target_id.findings.id.get

Retrieve finding

probely.targets.target_id.findings.id.get({
  "target_id": "",
  "id": ""
}, context)

Input

  • input object
    • target_id required string: Target id
    • id required string: Object Id

Output

targets.target_id.findings.id.patch

Partial update finding

probely.targets.target_id.findings.id.patch({
  "target_id": "",
  "id": "",
  "body": {}
}, context)

Input

  • input object
    • target_id required string: Target id
    • id required string: Object Id
    • body required FindingUpdate

Output

targets.target_id.findings.id.put

Update finding

probely.targets.target_id.findings.id.put({
  "target_id": "",
  "id": "",
  "body": {}
}, context)

Input

  • input object
    • target_id required string: Target id
    • id required string: Object Id
    • body required FindingUpdate

Output

targets.target_id.findings.id.integrations.jira_cloud.get

Retrieve Jira Cloud finding configuration

probely.targets.target_id.findings.id.integrations.jira_cloud.get({
  "target_id": "",
  "id": ""
}, context)

Input

  • input object
    • target_id required string: Target id
    • id required string: Object Id

Output

targets.target_id.findings.id.integrations.jira_cloud.patch

Update Jira Cloud finding configuration

probely.targets.target_id.findings.id.integrations.jira_cloud.patch({
  "target_id": "",
  "id": "",
  "body": {}
}, context)

Input

  • input object
    • target_id required string: Target id
    • id required string: Object Id
    • body required JiraFinding

Output

targets.target_id.findings.id.integrations.jira_cloud.put

Update Jira Cloud finding configuration

probely.targets.target_id.findings.id.integrations.jira_cloud.put({
  "target_id": "",
  "id": "",
  "body": {}
}, context)

Input

  • input object
    • target_id required string: Target id
    • id required string: Object Id
    • body required JiraFinding

Output

targets.target_id.findings.id.integrations.jira_server.get

Retrieve Jira Server finding configuration

probely.targets.target_id.findings.id.integrations.jira_server.get({
  "target_id": "",
  "id": ""
}, context)

Input

  • input object
    • target_id required string: Target id
    • id required string: Object Id

Output

targets.target_id.findings.id.integrations.jira_server.patch

Update Jira Server finding configuration

probely.targets.target_id.findings.id.integrations.jira_server.patch({
  "target_id": "",
  "id": "",
  "body": {}
}, context)

Input

  • input object
    • target_id required string: Target id
    • id required string: Object Id
    • body required JiraFinding

Output

targets.target_id.findings.id.integrations.jira_server.put

Update Jira Server finding configuration

probely.targets.target_id.findings.id.integrations.jira_server.put({
  "target_id": "",
  "id": "",
  "body": {}
}, context)

Input

  • input object
    • target_id required string: Target id
    • id required string: Object Id
    • body required JiraFinding

Output

targets.target_id.findings.id.log.get

Finding activity log.

probely.targets.target_id.findings.id.log.get({
  "target_id": "",
  "id": ""
}, context)

Input

  • input object
    • target_id required string: Target id
    • id required string: Object Id

Output

targets.target_id.findings.id.retest.post

Retest finding

probely.targets.target_id.findings.id.retest.post({
  "target_id": "",
  "id": ""
}, context)

Input

  • input object
    • target_id required string: Target id
    • id required string: Object Id

Output

targets.target_id.integrations.get

Integrations available and installed for the target

probely.targets.target_id.integrations.get({
  "target_id": ""
}, context)

Input

  • input object
    • target_id required string: Target id

Output

targets.target_id.integrations.jira_cloud.get

Retrieve Jira Cloud Target configuration

probely.targets.target_id.integrations.jira_cloud.get({
  "target_id": ""
}, context)

Input

  • input object
    • target_id required string: Target id

Output

targets.target_id.integrations.jira_cloud.patch

Update Jira Cloud target configuration

probely.targets.target_id.integrations.jira_cloud.patch({
  "target_id": "",
  "body": {}
}, context)

Input

  • input object
    • target_id required string: Target id
    • body required JiraScope

Output

targets.target_id.integrations.jira_cloud.put

Update Jira Cloud target configuration

probely.targets.target_id.integrations.jira_cloud.put({
  "target_id": "",
  "body": {}
}, context)

Input

  • input object
    • target_id required string: Target id
    • body required JiraScope

Output

targets.target_id.integrations.jira_server.get

Retrieve Jira Server Target configuration

probely.targets.target_id.integrations.jira_server.get({
  "target_id": ""
}, context)

Input

  • input object
    • target_id required string: Target id

Output

targets.target_id.integrations.jira_server.patch

Update Jira Server target configuration

probely.targets.target_id.integrations.jira_server.patch({
  "target_id": "",
  "body": {}
}, context)

Input

  • input object
    • target_id required string: Target id
    • body required JiraScope

Output

targets.target_id.integrations.jira_server.put

Update Jira Server target configuration

probely.targets.target_id.integrations.jira_server.put({
  "target_id": "",
  "body": {}
}, context)

Input

  • input object
    • target_id required string: Target id
    • body required JiraScope

Output

targets.target_id.integrations.slack.get

Retrieve slack integration data

probely.targets.target_id.integrations.slack.get({
  "target_id": ""
}, context)

Input

  • input object
    • target_id required string: Target id

Output

targets.target_id.integrations.slack.patch

Update slack integration data

probely.targets.target_id.integrations.slack.patch({
  "target_id": "",
  "body": {}
}, context)

Input

  • input object
    • target_id required string: Target id
    • body required Slack

Output

targets.target_id.integrations.slack.put

Update slack integration data

probely.targets.target_id.integrations.slack.put({
  "target_id": "",
  "body": {}
}, context)

Input

  • input object
    • target_id required string: Target id
    • body required Slack

Output

targets.target_id.keys.get

List target specific API keys

probely.targets.target_id.keys.get({
  "target_id": ""
}, context)

Input

  • input object
    • target_id required string: Target id
    • page integer: Page number within the paginated result set
    • length integer: Number of results to return per page
    • ordering string: Which field to use when ordering the results, prefix with - to invert ordering.
    • search string: Search term

Output

targets.target_id.keys.post

Create target API key

probely.targets.target_id.keys.post({
  "target_id": "",
  "body": {}
}, context)

Input

  • input object
    • target_id required string: Target id
    • body required APIKey

Output

targets.target_id.keys.id.delete

Delete target API key

probely.targets.target_id.keys.id.delete({
  "target_id": "",
  "id": ""
}, context)

Input

  • input object
    • target_id required string: Target id
    • id required string: Object Id

Output

Output schema unknown

targets.target_id.keys.id.get

Retrieve target API key

probely.targets.target_id.keys.id.get({
  "target_id": "",
  "id": ""
}, context)

Input

  • input object
    • target_id required string: Target id
    • id required string: Object Id

Output

targets.target_id.risk_trend.get

Risk trend graph data

probely.targets.target_id.risk_trend.get({
  "target_id": ""
}, context)

Input

  • input object
    • target_id required string: Target id

Output

  • output array
    • items object
      • 0 string: Date time
      • 1 integer: Risk score

targets.target_id.scan_now.post

Start a scan on the target

probely.targets.target_id.scan_now.post({
  "target_id": ""
}, context)

Input

  • input object
    • target_id required string: Target id
    • body object
      • scan_profile string (values: safe, normal, full, lightning): Override the target's scan_profile.

Output

targets.target_id.scans.get

List scans

probely.targets.target_id.scans.get({
  "target_id": ""
}, context)

Input

  • input object
    • target_id required string: Target id
    • page integer: Page number within the paginated result set
    • length integer: Number of results to return per page
    • ordering string: Which field to use when ordering the results, prefix with - to invert ordering.
    • search string: Search term
    • started array: Filter by scan start dates
    • status string (values: queued, started, under_review, completed, completed_with_errors, failed, canceled, canceling): Filter by scan statuses

Output

targets.target_id.scans.dates.get

Dates where scans have ocurred

probely.targets.target_id.scans.dates.get({
  "target_id": ""
}, context)

Input

  • input object
    • target_id required string: Target id

Output

  • output array: Dates for which there are scans
    • items string

targets.target_id.scans.retrieve_page.get

Given a date return the page number

probely.targets.target_id.scans.retrieve_page.get({
  "target_id": "",
  "date": ""
}, context)

Input

  • input object
    • target_id required string: Target id
    • length integer: Number of results to return per page
    • date required string: Date

Output

  • output object
    • page integer: Page number

targets.target_id.scans.id.get

Retrieve scan

probely.targets.target_id.scans.id.get({
  "target_id": "",
  "id": ""
}, context)

Input

  • input object
    • target_id required string: Target id
    • id required string: Object Id

Output

targets.target_id.scans.id.cancel.post

Cancel running scan

probely.targets.target_id.scans.id.cancel.post({
  "target_id": "",
  "id": ""
}, context)

Input

  • input object
    • target_id required string: Target id
    • id required string: Object Id

Output

targets.target_id.scans.id.endpoints.get

Scan endpoints file

probely.targets.target_id.scans.id.endpoints.get({
  "target_id": "",
  "id": ""
}, context)

Input

  • input object
    • target_id required string: Target id
    • id required string: Object Id

Output

  • output string

targets.target_id.scans.id.report.get

Scan report PDF, using the report type specified for the target

probely.targets.target_id.scans.id.report.get({
  "target_id": "",
  "id": ""
}, context)

Input

  • input object
    • target_id required string: Target id
    • id required string: Object Id

Output

  • output string

targets.target_id.scans.id.report.default.get

Scan report PDF, using the default report type

probely.targets.target_id.scans.id.report.default.get({
  "target_id": "",
  "id": ""
}, context)

Input

  • input object
    • target_id required string: Target id
    • id required string: Object Id

Output

  • output string

targets.target_id.scans.id.report.owasp.get

Scan report PDF, using the OWASP report type

probely.targets.target_id.scans.id.report.owasp.get({
  "target_id": "",
  "id": ""
}, context)

Input

  • input object
    • target_id required string: Target id
    • id required string: Object Id

Output

  • output string

targets.target_id.scans.id.report.pci.get

Scan report PDF, using the PCI report type

probely.targets.target_id.scans.id.report.pci.get({
  "target_id": "",
  "id": ""
}, context)

Input

  • input object
    • target_id required string: Target id
    • id required string: Object Id

Output

  • output string

targets.target_id.scheduledscans.get

List scheduled scans

probely.targets.target_id.scheduledscans.get({
  "target_id": ""
}, context)

Input

  • input object
    • target_id required string: Target id
    • page integer: Page number within the paginated result set
    • length integer: Number of results to return per page
    • ordering string: Which field to use when ordering the results, prefix with - to invert ordering.
    • search string: Search term

Output

targets.target_id.scheduledscans.post

Create new scheduled scan

probely.targets.target_id.scheduledscans.post({
  "target_id": "",
  "body": {
    "date_time": ""
  }
}, context)

Input

  • input object

Output

targets.target_id.scheduledscans.expanded.get

List scheduled scans expanding recurrence

probely.targets.target_id.scheduledscans.expanded.get({
  "target_id": ""
}, context)

Input

  • input object
    • target_id required string: Target id
    • length integer: Number of results to return per page

Output

  • output object
    • results array: Scheduled scan objects

targets.target_id.scheduledscans.id.delete

Delete

probely.targets.target_id.scheduledscans.id.delete({
  "target_id": "",
  "id": ""
}, context)

Input

  • input object
    • target_id required string: Target id
    • id required string: Object Id

Output

Output schema unknown

targets.target_id.scheduledscans.id.get

Retrieve a scheduled scan

probely.targets.target_id.scheduledscans.id.get({
  "target_id": "",
  "id": ""
}, context)

Input

  • input object
    • target_id required string: Target id
    • id required string: Object Id

Output

targets.target_id.scheduledscans.id.patch

Partial update

probely.targets.target_id.scheduledscans.id.patch({
  "target_id": "",
  "id": "",
  "body": {
    "date_time": ""
  }
}, context)

Input

  • input object
    • target_id required string: Target id
    • id required string: Object Id
    • body required object

Output

targets.target_id.scheduledscans.id.put

Update a scheduled scan

probely.targets.target_id.scheduledscans.id.put({
  "target_id": "",
  "id": "",
  "body": {
    "date_time": ""
  }
}, context)

Input

  • input object
    • target_id required string: Target id
    • id required string: Object Id
    • body required object

Output

targets.target_id.severity_trend.get

Severity trend graph data.

probely.targets.target_id.severity_trend.get({
  "target_id": ""
}, context)

Input

  • input object
    • target_id required string: Target id

Output

  • output object
    • results object
      • high array
        • items object
          • 0 string: Date time
          • 1 integer: Risk score
      • low array
        • items object
          • 0 string: Date time
          • 1 integer: Risk score
      • medium array
        • items object
          • 0 string: Date time
          • 1 integer: Risk score
    • step number

targets.target_id.site.get

Retrieve target's site

probely.targets.target_id.site.get({
  "target_id": ""
}, context)

Input

  • input object
    • target_id required string: Target id

Output

targets.target_id.site.patch

Note that the URL can only be set once.

probely.targets.target_id.site.patch({
  "target_id": "",
  "body": {}
}, context)

Input

  • input object
    • target_id required string: Target id
    • body required Site

Output

targets.target_id.site.put

Note that the URL can only be set once.

probely.targets.target_id.site.put({
  "target_id": "",
  "body": {}
}, context)

Input

  • input object
    • target_id required string: Target id
    • body required Site

Output

targets.target_id.site.verify.post

Verify site ownership

probely.targets.target_id.site.verify.post({
  "target_id": "",
  "body": {
    "type": ""
  }
}, context)

Input

  • input object
    • target_id required string: Target id
    • body required object

Output

  • output object
    • message string: Message

targets.target_id.top_vulns.get

Top 5 vulnerabilities

probely.targets.target_id.top_vulns.get({
  "target_id": ""
}, context)

Input

  • input object
    • target_id required string: Target id

Output

  • output array
    • items object
      • 0 string: Vulnerability name
      • 1 string: Vulnerability count

targets.target_id.webhooks.get

List target webhooks

probely.targets.target_id.webhooks.get({
  "target_id": ""
}, context)

Input

  • input object
    • target_id required string: Target id

Output

targets.target_id.webhooks.post

Create new target webhook

probely.targets.target_id.webhooks.post({
  "target_id": "",
  "body": {
    "url": ""
  }
}, context)

Input

  • input object
    • target_id required string: Target id
    • body required Webhook

Output

targets.target_id.webhooks.id.delete

Delete target webhook

probely.targets.target_id.webhooks.id.delete({
  "target_id": "",
  "id": ""
}, context)

Input

  • input object
    • target_id required string: Target id
    • id required string: Object Id

Output

Output schema unknown

targets.target_id.webhooks.id.get

Retrieve target webhook

probely.targets.target_id.webhooks.id.get({
  "target_id": "",
  "id": ""
}, context)

Input

  • input object
    • target_id required string: Target id
    • id required string: Object Id

Output

targets.target_id.webhooks.id.patch

Partial update target webhook

probely.targets.target_id.webhooks.id.patch({
  "target_id": "",
  "id": "",
  "body": {
    "url": ""
  }
}, context)

Input

  • input object
    • target_id required string: Target id
    • id required string: Object Id
    • body required Webhook

Output

targets.target_id.webhooks.id.put

Update target webhook

probely.targets.target_id.webhooks.id.put({
  "target_id": "",
  "id": "",
  "body": {
    "url": ""
  }
}, context)

Input

  • input object
    • target_id required string: Target id
    • id required string: Object Id
    • body required Webhook

Output

users.get

List users

probely.users.get({}, context)

Input

  • input object
    • page integer: Page number within the pa