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

Bugfix/1621 Improve AWS unused credential issue flagging #1622

Closed
wants to merge 11 commits into from
Closed

Bugfix/1621 Improve AWS unused credential issue flagging #1622

wants to merge 11 commits into from

Conversation

rieck-srlabs
Copy link
Contributor

Description

This PR partly fixes #1621

With the changes, ScoutSuite ignores inactive / disabled credentials for the "Credentials Unused for 90 Days or Greater Are Not Disabled" rule in ScoutSuite. The change does not address point 3 of the issue, namely:

  1. (Active access keys that have recently been used are also highlighted in red, as long as there is another access key that has not been used recently. Note that this problem is not highlighted in the screenshot above)

I don't believe this last point can feasibly be addressed, as the HTML frontend would need to know about the configurable argument to the rule.

Type of change

Select the relevant option(s):

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works (optional)
  • New and existing unit tests pass locally with my changes

rdegraaf-ncc3 and others added 11 commits January 19, 2024 19:33
It seems to work but there are issues with the display; see "TKTK"
comments in .../services.ec2.regions.id.regional_settings.html.

Still needs tests.
ScoutSuite previously did not flag key vaults for which the API returned
enable_soft_delete = null. Such key vaults have neither soft-delete nor
purge protecton enabled and are also not recoverable. The check would
only flag key vaults for which enable_soft_delete = false.
…ot-recoverable

Fixes 'Key Vault Not Recoverable' check
Apparently ScoutSuite makes the implicit assumption that all settings
are associated with resources, rather than directly to the region +
service. So we move the regional EBS settings into a fake resource.
This means that paths now need to include an ID for the "resource".
@rieck-srlabs
Copy link
Contributor Author

Closed due to wrong base branch.

@rieck-srlabs rieck-srlabs deleted the bugfix/1621-improve-aws-unused-credentials branch May 13, 2024 08:20
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

Successfully merging this pull request may close these issues.

AWS Credential Report detail view incorrectly flags disabled credentials
3 participants