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回答
0
承認された回答

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.

回答済み 1年前
  • 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

回答済み 7ヶ月前
0

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

回答済み 7ヶ月前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ