Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Virus scan #1108

Open
dan-klasson opened this issue Dec 31, 2024 · 0 comments
Open

Virus scan #1108

dan-klasson opened this issue Dec 31, 2024 · 0 comments

Comments

@dan-klasson
Copy link

dan-klasson commented Dec 31, 2024

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"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant