inspec / inspec-aws

InSpec AWS Resource Pack https://www.inspec.io/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

BUG report in aws_iam_inline_policy

Rohit1509 opened this issue · comments

Describe the problem

There is a bug for 'aws_iam_inline_policy' resource where it is giving some false positives. We have this inline policy:
image (30)

The 'has_statement' check is returning 'true' even when there is no policy statement matching that.

Possible Solution

Fix bug in the resource pack where 'has_statement' function is defined and data is parsed