Inspector list_findings return empty findingArns
See original GitHub issueboto3: 1.9.221
When executing:
inspector = boto3.client('inspector',os.environ['AWS_DEFAULT_REGION'])
inspector.list_findings(assessmentRunArns=["arn:aws:inspector:XXXXX"])
The resulting findingArns are empty ({‘findingArns’: []}), although there are 12 findings in that run. I initially thought it could be a permission issue or something, but I’ve ran that with another assessment run, which has 96 findings, and the return is of 12 findings (still wrong).
I’ve then executed the same search with aws inspector list-findings --assessment-run-arns arn:aws:inspector:XXXXX
and the correct amount of findings were returned for both assessments.
One important piece of information is that one of this assessment run (12) is being executed toward a Windows Server 2016 with 2 rules exclusions (which aren’t supported) - CIS and Best practices.
Please let me know if you need further information.
Issue Analytics
- State:
- Created 4 years ago
- Comments:6 (1 by maintainers)
Top Results From Across the Web
ListFindings - Amazon Inspector - AWS Documentation
The following data is returned in JSON format by the service. findingArns. A list of ARNs that specifies the findings returned by the...
Read more >Inspector — Boto3 Docs 1.26.32 documentation - AWS
Amazon Inspector enables you to analyze the behavior of your AWS resources and to identify potential security issues. For more information, see Amazon ......
Read more >Amazon Inspector Findings | Trend Micro
Ensure that Amazon Inspector Findings are analyzed and resolved. ... aws inspector list-findings --region us-east-1. 02 The command output should return a ...
Read more >inspector - Go Packages
Package inspector provides the API client, operations, and parameter ... New returns an initialized Client based on the functional options.
Read more >Class: AWS.Inspector
the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
So I managed to find a workaround over it:
It seems like the pagination is the issue. Not sure if it’s a boto3 issue or an Inspector’s API. Anyhow, that’s still a bug, since the findings should predict that.
Working .Thanks