tenable / pyTenable

Python Library for interfacing into Tenable's platform APIs
https://pytenable.readthedocs.io
MIT License
354 stars 173 forks source link

PyTenable Not Retrieving WAS Results #289

Closed pdreeves closed 3 years ago

pdreeves commented 3 years ago

Describe the bug After March 1st, PyTenable is unable to retrieve WAS results from Tenable.io.

To Reproduce Steps to reproduce the behavior:

  1. Create Tenable.io object tio = TenableIO(access_key="123", secret_key="123")
  2. List scans tio.scans.list(last_modified = since27days)
  3. Oberve that WAS results are not present, but network vuln and asset discovery scans are.

Expected behavior WAS results be listed in the response to the tio.scans.list call.

System Information (please complete the following information):

d0n601 commented 3 years ago

Tenable changed their API for WAS scans some months ago. This is also the reason that once you cut over to the new user interface, the old UI becomes archive only (the old UI hit the old API endpoints).

To get WAS scan results the endpoint is now https://cloud.tenable.com/was/v2/scans, see docs here.

Basically, I don't think PyTenable is updated to support interacting with WAS scans (launching, configuring, retrieving, etc).

levwais commented 3 years ago

@pdreeves - is the suggestion by @d0n601 fix your issue? can I close this issue? if not, can you please add more details if this still happens? thanks.

pdreeves commented 3 years ago

@levwais Yes, that worked and we updated our Lambda function to use the new API. If you want to close this issue that's fine. I just wanted to report that PyTenable was unable to retrieve WAS results. Thank you!

SteveMcGrath commented 3 years ago

pyTenable was written to interface to the old v1 endpoints, which have been depricated. It's on our roadmap to support v2

SteveMcGrath commented 3 years ago

Duplicate of #310