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 réponses
0
Réponse acceptée

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.

répondu il y a un an
  • 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

répondu il y a 7 mois
0

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

répondu il y a 7 mois

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions