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

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

Open
yiskaneto opened this issue Jun 3, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@yiskaneto
Copy link

yiskaneto commented Jun 3, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant