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.

답변함 일 년 전
  • 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달 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠