mirror of
https://github.com/fleetdm/fleet
synced 2026-05-23 17:08:53 +00:00
Adding password policy query to the default library (#6641)
* Adding password policy query to the default library Adding a built-in policy to check the minimum password length on macOS using the recently released password_policy table. * Addding osquery minimum version + adding query to constants.ts
This commit is contained in:
parent
2514b610b4
commit
7559988000
2 changed files with 23 additions and 0 deletions
|
|
@ -737,3 +737,15 @@ spec:
|
|||
tags: compliance, inventory, hardware
|
||||
platform: darwin
|
||||
contributors: erikng
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: policy
|
||||
spec:
|
||||
name: Password requires 10 or more characters (macOS)
|
||||
query: SELECT 1 FROM (SELECT cast(lengthtxt as integer(2)) minlength FROM (SELECT SUBSTRING(length, 1, 2) AS lengthtxt FROM (SELECT policy_description, policy_identifier, split(policy_content, '{', 1) AS length FROM password_policy WHERE policy_identifier LIKE '%minLength')) WHERE minlength >= 10);
|
||||
description: "Checks that the password policy requires at least 10 characters. Requires osquery 5.4.0 or newer."
|
||||
resolution: "Contact your IT administrator to ensure your Mac is receiving configuration profiles for password length."
|
||||
platforms: macOS
|
||||
tags: compliance, hardening, built-in
|
||||
platform: darwin
|
||||
contributors: GuillaumeRoss
|
||||
|
|
|
|||
|
|
@ -170,6 +170,17 @@ export const DEFAULT_POLICIES = [
|
|||
"Ask your IT administrator to enable the Interactive Logon: Machine inactivity limit setting with a value of 1800 seconds or lower.",
|
||||
platform: "windows",
|
||||
},
|
||||
{
|
||||
key: 16,
|
||||
query:
|
||||
"SELECT 1 FROM (SELECT cast(lengthtxt as integer(2)) minlength FROM (SELECT SUBSTRING(length, 1, 2) AS lengthtxt FROM (SELECT policy_description, policy_identifier, split(policy_content, '{', 1) AS length FROM password_policy WHERE policy_identifier LIKE '%minLength')) WHERE minlength >= 10);",
|
||||
name: "Password requires 10 or more characters (macOS)",
|
||||
description:
|
||||
"Checks that the password policy requires at least 10 characters. Requires osquery 5.4.0 or newer.",
|
||||
resolution:
|
||||
"Contact your IT administrator to ensure your Mac is receiving configuration profiles for password length.",
|
||||
platform: "darwin",
|
||||
},
|
||||
] as IPolicyNew[];
|
||||
|
||||
export const FREQUENCY_DROPDOWN_OPTIONS = [
|
||||
|
|
|
|||
Loading…
Reference in a new issue