What is the reason for the RQL filter of get-account-password-policy API?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements

What is the reason for the RQL filter of get-account-password-policy API?

L1 Bithead

In most RQLs of policies that use the "get-account-password-policy" API, "isDefaultPolicy is true" is checked, but there is no "isDefaultPolicy" in AWSCLI Docs.

 

Why is isDefaultPolicy checked?

 

Sample Default Policy List

1) AWS IAM password policy allows password reuse

config where cloud.type = 'aws' and api.name='aws-iam-get-account-password-policy' AND json.rule='isDefaultPolicy is true or passwordReusePrevention equals null or passwordReusePrevention !isType Integer or passwordReusePrevention < 1'

 

2) AWS IAM password policy does not expire in 90 days

config where api.name='aws-iam-get-account-password-policy' AND json.rule='isDefaultPolicy is true or maxPasswordAge !isType Integer or $.maxPasswordAge > 90 or maxPasswordAge equals 0'

 

AWSCLI Docs

https://docs.aws.amazon.com/cli/latest/reference/iam/get-account-password-policy.html

1 accepted solution

Accepted Solutions

L0 Member

@KRyu 

 

When querying the API in AWS, if no policy has been defined, no resource is returned, thus we must account for when no policy is defined. The Prisma Cloud platform is a resource centric utility, so we can't check for proper configuration when the resource doesn't even exist. So we create a default value for any account that doesn't have a defined password policy, isDefaultValue is our placeholder/identifier for that circumstance.

View solution in original post

3 REPLIES 3

L0 Member

@KRyu 

 

When querying the API in AWS, if no policy has been defined, no resource is returned, thus we must account for when no policy is defined. The Prisma Cloud platform is a resource centric utility, so we can't check for proper configuration when the resource doesn't even exist. So we create a default value for any account that doesn't have a defined password policy, isDefaultValue is our placeholder/identifier for that circumstance.

Thanks for your detailed answer.

 

If so, is there a separate API that can use "isDefaultPolicy" as a JSON condition?

I searched Prisma Cloud Docs, but couldn't find an explanation.

L4 Transporter

Greetings KRyu,

 

I hope that this note finds you well! I know that it has been a while since you had posted this question but I wanted to see if you still potentially needed any help. Thank you for your time and I hope that you have a good remainder of your day.

 

Kind Regards,

J. Avery King

J. Avery King | Prisma Cloud | Customer Success Engineer
  • 1 accepted solution
  • 4221 Views
  • 3 replies
  • 0 Likes
Like what you see?

Show your appreciation!

Click Like if a post is helpful to you or if you just want to show your support.

Click Accept as Solution to acknowledge that the answer to your question has been provided.

The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!

These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the LIVEcommunity as a whole!

The LIVEcommunity thanks you for your participation!