Skip to content

Virus scan #1108

@dan-klasson

Description

@dan-klasson

It doesn't seem to have an option to scan for vulnerable files. According to AWS docs:

Step 2: Send the File for Scanning
To send the file for scanning, you will need to:

Specify the headers. This should include content type and the authentication token. Content types can be multipart/form-data or a binary stream.
Get the file as your language dictates.
HTTP POST the file and headers <baseURL> + /api/Scan.
headers = {"Prefer": "respond-async", "Content-Type": form.content_type, 'Authorization': 'Bearer ' + accessToken}
r = session.post("https://<baseURL to load balancer or friendly URL>/api/Scan", headers=headers, data=form, timeout=4000)
This will return the following response:

{
    "dateScanned": "2021-07-02T07:04:18.8896831Z",
    "detectedInfections": [],
    "errorMessage": null,
    "result": "Clean"
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions