Skip to content

Adding batch_update_findings functionality to AWS SecurityHub integration - #3948

Open
danielperez660 wants to merge 22 commits into
rapid7:aws_securityhub-2.1.0-releasefrom
danielperez660:SecurityHubArchiveFindings
Open

Adding batch_update_findings functionality to AWS SecurityHub integration#3948
danielperez660 wants to merge 22 commits into
rapid7:aws_securityhub-2.1.0-releasefrom
danielperez660:SecurityHubArchiveFindings

Conversation

@danielperez660

Copy link
Copy Markdown

🧩 Type of Change

  • Feature
  • Bug fix
  • Other

🧠 Background & Motivation

We can only read from Security Hub whereas to fully integrate with it, we should also be able to write to it. To do this, I have integrated the boto3 functionality of batch_update_findings - which will allow users to write and close findings directly from Rapid7 rather than having to do this manually or rolling out their own keystore/auth in python connections, which is the current requirement.

✨ What Changed

Added a new action to the aws_securityhub plugin to allow updating of securityhub findings.

🧪 Testing

Testing has been done manually to confirm that the findings IDs which are passed to the Rapid7 connection are updated where needed
image
image
image

@danielperez660
danielperez660 requested a review from a team as a code owner June 11, 2026 14:57
@snyk-io

snyk-io Bot commented Jun 11, 2026

Copy link
Copy Markdown

Snyk checks have passed. No issues have been found so far.

Status Scan Engine Critical High Medium Low Total (0)
Open Source Security 0 0 0 0 0 issues
Licenses 0 0 0 0 0 issues

💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse.

@danielperez660 danielperez660 changed the title Adding batch_update_findings functionality to SecurityHub integration Adding batch_update_findings functionality to AWS SecurityHub integration Jun 12, 2026
@danielperez660

Copy link
Copy Markdown
Author

Hey @ewilson-r7 are you, or anyone in your team free to look into this?
Thank you very much!

@ewilson-r7
ewilson-r7 changed the base branch from master to aws_securityhub-2.1.0-release June 15, 2026 15:30

@ewilson-r7 ewilson-r7 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey @danielperez660, thanks for putting this together — the feature fills a real gap and the approach is solid. I've left inline comments on the specific areas that need attention before we can merge.

Summary

Category Count
🔴 Critical (must fix) 3
🟡 Moderate (should fix) 5
🟢 Minor (nice to fix) 3

Biggest concerns: the falsy-value filter bug, missing error handling, empty unit tests, and several spec YAML issues.

Comment thread plugins/aws_securityhub/unit_test/test_batch_update_findings.py Outdated
Comment thread plugins/aws_securityhub/unit_test/test_get_findings.py Outdated
Comment thread plugins/aws_securityhub/plugin.spec.yaml Outdated
Comment thread plugins/aws_securityhub/plugin.spec.yaml Outdated
Comment thread plugins/aws_securityhub/plugin.spec.yaml Outdated
Comment thread plugins/aws_securityhub/plugin.spec.yaml
Comment thread plugins/aws_securityhub/icon_aws_securityhub/actions/__init__.py
danielperez660 and others added 2 commits June 16, 2026 09:10
…ch_update_findings/action.py


applying better naming standards for dictionary comprehension

Co-authored-by: Eric Wilson <74607561+ewilson-r7@users.noreply.github.com>
@danielperez660
danielperez660 force-pushed the SecurityHubArchiveFindings branch from ef48fc4 to 440f1ac Compare June 16, 2026 08:35
Daniel Perez Cascon and others added 2 commits June 16, 2026 10:38
Updating title

Co-authored-by: Eric Wilson <74607561+ewilson-r7@users.noreply.github.com>
@danielperez660 danielperez660 changed the title Adding batch_update_findings functionality to AWS SecurityHub integration Draft: Adding batch_update_findings functionality to AWS SecurityHub integration Jun 16, 2026
@danielperez660 danielperez660 changed the title Draft: Adding batch_update_findings functionality to AWS SecurityHub integration Adding batch_update_findings functionality to AWS SecurityHub integration Jun 16, 2026
@danielperez660

Copy link
Copy Markdown
Author

@ewilson-r7 I think that's all of the issues addressed

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.

2 participants