Skip to content
This repository has been archived by the owner on Dec 4, 2018. It is now read-only.

Commit

Permalink
Fix issue #194 :: check for ArnLike conditions
Browse files Browse the repository at this point in the history
  • Loading branch information
l01cd3v committed Nov 16, 2017
1 parent 8756a21 commit 2123375
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion AWSScout2/rules/data/findings/sns-topic-world-policy.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,21 @@
[ "sns.regions.id.topics.id.Policy.Statement.id.", "withoutKey", "Condition" ],
[ "sns.regions.id.topics.id.Policy.Statement.id.Condition.", "withoutKey", "StringEquals" ],
[ "and",
[ "sns.regions.id.topics.id.Policy.Statement.id.Condition.StringEquals.", "withoutKey", "sns:SourceArn" ],
[ "sns.regions.id.topics.id.Policy.Statement.id.Condition.StringEquals.", "withoutKey", "aws:SourceArn" ],
[ "sns.regions.id.topics.id.Policy.Statement.id.Condition.StringEquals.", "withoutKey", "aws:SourceOwner" ],
[ "sns.regions.id.topics.id.Policy.Statement.id.Condition.StringEquals.", "withoutKey", "AWS:SourceArn" ],
[ "sns.regions.id.topics.id.Policy.Statement.id.Condition.StringEquals.", "withoutKey", "AWS:SourceOwner" ]
]
],
[ "or",
[ "sns.regions.id.topics.id.Policy.Statement.id.", "withoutKey", "Condition" ],
[ "sns.regions.id.topics.id.Policy.Statement.id.Condition.", "withoutKey", "ArnLike" ],
[ "and",
[ "sns.regions.id.topics.id.Policy.Statement.id.Condition.ArnLike.", "withoutKey", "aws:SourceArn" ],
[ "sns.regions.id.topics.id.Policy.Statement.id.Condition.ArnLike.", "withoutKey", "aws:SourceOwner" ],
[ "sns.regions.id.topics.id.Policy.Statement.id.Condition.ArnLike.", "withoutKey", "AWS:SourceArn" ],
[ "sns.regions.id.topics.id.Policy.Statement.id.Condition.ArnLike.", "withoutKey", "AWS:SourceOwner" ]
]
]
]
}

0 comments on commit 2123375

Please sign in to comment.