You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While looking at the source code for some of the auditors, I noticed that advanced_policy_elements.py mentions:
AWS documentation discourages the use of NotPrincipal, NotAction and
NotResource, particularly with Allow. These constructs, by default, grant
permissions, then Deny the ones explicitly listed. Instead, use an explicit
Resource, Action or Principal in your Allow list.
I expected to therefore see rules to detect all 3. However, I found 2 rules only:
one for NotPrincipal
one for NotResource
and couldn't find anything related to NotAction. This was confirmed when looking at the configuration of these included in config_override.yaml which only contains sections for NotPrincipal and NotResource:
NOTPRINCIPAL_WITH_ALLOW:
title: NotPrincipal used with Allow effectdescription: NotPrincipal with Allow automatically grants the permission to all principals, except the ones specified.severity: MEDIUMgroup: CUSTOMNOTRESOURCE_WITH_ALLOW:
title: NotResource used with Allow effectdescription: NotResource with Allow automatically grants the Principal all services and resources that are not explicitly listedseverity: MEDIUMgroup: CUSTOM
Is there a specific reason that there is no rule for NotAction? Am I missing something? Thanks.
The text was updated successfully, but these errors were encountered:
I think NotAction would be a useful check since it implicitly grants permissions to all actions not listed in the NotAction statement. I just didn't get around to implementing it :)
Hi,
While looking at the source code for some of the auditors, I noticed that advanced_policy_elements.py mentions:
I expected to therefore see rules to detect all 3. However, I found 2 rules only:
NotPrincipal
NotResource
and couldn't find anything related to
NotAction
. This was confirmed when looking at the configuration of these included in config_override.yaml which only contains sections forNotPrincipal
andNotResource
:Is there a specific reason that there is no rule for
NotAction
? Am I missing something? Thanks.The text was updated successfully, but these errors were encountered: