- Access exclusive content
- Connect with peers
- Share your expertise
- Find support resources
08-05-2020 10:33 PM - last edited on 09-02-2020 10:46 AM by CHopson
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
08-06-2020 03:00 PM
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.
08-06-2020 03:00 PM
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.
08-06-2020 05:38 PM
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.
08-12-2022 10:39 AM
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
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!