mirror of
https://github.com/empayre/fleet.git
synced 2024-11-06 08:55:24 +00:00
Account policy data example query (#8070)
* query for checking for brute force intrusion attempts * Fixing query Co-authored-by: Guillaume Ross <guillaume@fleetdm.com>
This commit is contained in:
parent
2d6bb9f869
commit
3b7926a6b3
@ -1,7 +1,7 @@
|
||||
[
|
||||
{
|
||||
"name": "account_policy_data",
|
||||
"examples": "Query the creation date of user accounts. You could also query the date of the last failed login attempt or password change.\n```\nSELECT strftime('%Y-%m-%d %H:%M:%S',creation_time,'unixepoch') AS creationdate FROM account_policy_data;\n```"
|
||||
"examples": "Query the creation date of user accounts. You could also query the date of the last failed login attempt or password change.\n```\nSELECT strftime('%Y-%m-%d %H:%M:%S',creation_time,'unixepoch') AS creationdate FROM account_policy_data;\n```\n\nSee each user's last password set date and number of failed logins since last successful login to detect any intrusion attempts.\n```\nSELECT u.username u.uid, strftime('%Y-%m-%dT%H:%M:%S', a.password_last_set_time, 'unixepoch') AS password_last_set_time, a.failed_login_count, strftime('%Y-%m-%dT%H:%M:%S', a.failed_login_timestamp, 'unixepoch') AS failed_login_timestamp FROM account_policy_data AS a CROSS JOIN users AS u USING (uid) ORDER BY password_last_set_time ASC;"
|
||||
},
|
||||
{
|
||||
"name": "ad_config",
|
||||
|
Loading…
Reference in New Issue
Block a user