How to use the ResourceTags filter in SecurityHub?

1

Hi, the SecurityHub dashboard seems to provide a "resource tags" filter, however after entering any tag name and value which I know that some of the resources affected by existing findings have, no results are returned.

The same goes for the API, I tried running the following:

aws securityhub get-findings --filters ResourceTags='[{Key=owner,Value=MY_EMAIL,Comparison=EQUALS}]'

and no results were returned.

I don't see anything about this in MapFilter and or AwsSecurityFindingFilters docs.

What is the correct way to use this filter?

3 Answers
0
Accepted Answer

The resource tags filter does not refer to resources contained in the Finding's "Resources" field. As the AWS documentation doesn't really say what it actually refers to, I am not exactly 100% certain, but I believe this refers to tags of the resources that belong to SecurityHub itself.

In the end, I decided to go with a different solution - a Lambda which maps tags from resources contained in the finding to the UserDefinedFields field in the finding. Then, findings can be filtered based on that.

answered a year ago
  • There really needs to be a tags filter however. Thanks for the insight.

0

Sometime since this was first posted it looks like Resource Tags are a thing now.

Enter image description here

answered 7 months ago
0

I discovered that currently, Security Hub doesn't support the "resource tags" filter.

answered 6 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions