SecurityHub_ListFinding_Response #3888
Unanswered
niraj-ranjan-comprinno
asked this question in
Q&A
Replies: 4 comments
According to the API Reference, "productFields" can contain up to 50 key-value pairs. So the presence of StandardsControlArn is not guaranteed for every finding on the list. |
0 replies
|
Ok, If that case then how to find productFields => StandardsControlArn for security hub finding. |
0 replies
|
I don't have expertise in Security Hub, so, again, I need to refer to their documentation. According to the Security Hub User Guide, StandardsControlArn is removed if you turn on consolidated control findings. |
0 replies
|
I'll move this to the Github Discussion tab, since these are usage questions. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Describe the bug
SecurityHubClient awsSecurityHubAsyncClientBuilder = SecurityHubClient.builder()
.credentialsProvider(new AWSStaticCredentialsProvider(credentials)).region(Helper.getRegion(regionName))
.build();
awsSecurityHubAsyncClientBuilder.getFindings(getFindingsRequest.build())
Above api gives list of security hub findings.
In any element of array,
there is a field called productFields -> StandardsControlArn
And now this field is not coming.
Expected Behavior
In list findings response,
Field called productFields -> StandardsControlArn value must present.
So that, We can find how many findings are passed/failed for a particular standard control.
Current Behavior
In list findings response,
Field called productFields -> StandardsControlArn value is not present.
Reproduction Steps
SecurityHubClient awsSecurityHubAsyncClientBuilder = SecurityHubClient.builder()
.credentialsProvider(new AWSStaticCredentialsProvider(credentials)).region(Region.AP_EAST_1)
.build();
List awsSecurityFinding = awsSecurityHubAsyncClientBuilder.getFindings(GetFindingsRequest.builder().build()).findings()
This will give you list of findings.
You can check any one of item from the above reponse.
Possible Solution
No response
Additional Information/Context
No response
AWS Java SDK version used
2.17.271
JDK version used
OpenJDK Runtime Environment Corretto-17.0.2.8.1 (build 17.0.2+8-LTS)
Operating System and version
Mac
All reactions