nccgroup / ScoutSuite

Multi-Cloud Security Auditing Tool

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Enhancement - Add date to the report file name and at the top of the html report

yiskaneto opened this issue · comments

Is your feature request related to a problem? Please describe.

I'd like to get the current date (year-month-day-hour-minute) as part of the name of the aws-<account-id.html file, currently if we run the report again the program will detect that a file with the previous name exists and will ask the user if we want to override the existing report, it's way more convenient to instruct the program to generate a report with the current date, this way we can have multiple reports to later review.

Also, it would be super useful to add the current date (UTC) to the right side or below the "Provider Name - Account ID" section in the html report, for example:

Provider Name - Account ID (Report date: Mon, 03 Jun 2024 20:20:17 GMT)

Describe the solution you'd like

This is possible by adjusting the loadAccountId function found on ScoutSuite/output/data/inc-scoutsuite/scoutsuite.js and the get_report_name function found on ScoutSuite/providers/aws/provider.py

I have opened the following PR to address this:

Additional context

This will greatly help when using ScoutSuite in a given pipeline that potentially runs this every n days.