Skip to content

SecurityHub_ListFinding_Response #3886

@niraj-ranjan-comprinno

Description

@niraj-ranjan-comprinno

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    guidanceQuestion that needs advice or information.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions