-
Notifications
You must be signed in to change notification settings - Fork 471
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Multiple updates to queries (#25891)
Co-authored-by: Harrison Ravazzolo <[email protected]>
- Loading branch information
1 parent
3c8033f
commit 212979d
Showing
22 changed files
with
76 additions
and
116 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
7 changes: 0 additions & 7 deletions
7
it-and-security/lib/all/queries/collect-fleetd-update-channels.yml
This file was deleted.
Oops, something went wrong.
15 changes: 15 additions & 0 deletions
15
it-and-security/lib/all/queries/collect-known-vulnerable-chrome-extensions.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
- name: Detect known vunerable Chrome extensions | ||
description: "Detects if any device enrolled in Fleet has a known vulnerable Chrome extension installed. More info here: https://www.extensiontotal.com/cyberhaven-incident-live" | ||
query: | ||
SELECT | ||
u.username, ce.name, ce.description, ce.version, ce.identifier | ||
FROM | ||
users u CROSS JOIN chrome_extensions ce USING (uid) | ||
WHERE | ||
ce.identifier IN | ||
("nnpnnpemnckcfdebeekibpiijlicmpom", "kkodiihpgodmdankclfibbiphjkfdenh", "oaikpkmjciadfpddlpjjdapglcihgdle", "dpggmcodlahmljkhlmpgpdcffdaoccni", "acmfnomgphggonodopogfbmkneepfgnh", "mnhffkhmpnefgklngfmlndmkimimbphc", "cedgndijpacnfbdggppddacngjfdkaca", "bbdnohkpnbkdkmnkddobeafboooinpla", "egmennebgadmncfjafcemlecimkepcle", "bibjgkidgpfbblifamdlkdlhgihmfohh", "befflofjcniongenjmbkgkoljhgliihe", "pkgciiiancapdlpcbppfkmeaieppikkk", "llimhhconnjiflfimocjggfjdlmlhblm", "oeiomhmbaapihbilkfkhmlajkeegnjhe", "pajkjnmeojmbapicmbpliphjmcekeaac", "ndlbedplllcgconngcnfmkadhokfaaln", "epdjhgbipjpbbhoccdeipghoihibnfja", "cplhlgabfijoiabgkigdafklbhhdkahj", "jiofmdifioeejeilfkpegipdjiopiekl", "hihblcmlaaademjlakdpicchbjnnnkbo", "ekpkdmohpdnebfedjjfklhpefgpgaaji", "epikoohpebngmakjinphfiagogjcnddm", "miglaibdlgminlepgeifekifakochlka", "eanofdhdfbcalhflpbdipkjjkoimeeod", "ogbhbgkiojdollpjbhbamafmedkeockb", "bgejafhieobnfpjlpcjjggoboebonfcg", "igbodamhgjohafcenbcljfegbipdfjpk", "mbindhfolmpijhodmgkloeeppmkhpmhc", "hodiladlefdpcbemnbbcpclbmknkiaem", "lbneaaedflankmgmfbmaplggbmjjmbae", "eaijffijbobmnonfhilihbejadplhddo", "hmiaoahjllhfgebflooeeefeiafpkfde"); | ||
interval: 3600 # Every 1 hour | ||
observer_can_run: true | ||
automations_enabled: true | ||
logging: differential | ||
platform: darwin,linux,windows |
12 changes: 0 additions & 12 deletions
12
it-and-security/lib/all/queries/collect-vs-code-extensions.yml
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,9 @@ | ||
apiVersion: v1 | ||
kind: query | ||
spec: | ||
name: All debian hosts | ||
- name: All debian hosts | ||
automations_enabled: false | ||
description: Collects all debian-based hosts. | ||
discard_data: false | ||
interval: 300 | ||
logging: snapshot | ||
observer_can_run: true | ||
platform: linux | ||
query: SELECT * FROM os_version WHERE platform_like = 'debian'; | ||
platform: "darwin" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,9 @@ | ||
apiVersion: v1 | ||
kind: query | ||
spec: | ||
name: All rpm hosts | ||
- name: All rhel-based (rpm) hosts | ||
automations_enabled: false | ||
description: Collects all rhel-based hosts. | ||
discard_data: false | ||
interval: 300 | ||
logging: snapshot | ||
observer_can_run: true | ||
platform: linux | ||
query: SELECT * FROM os_version WHERE platform_like = 'rhel'; | ||
platform: "darwin" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
- name: macOS - 1Password up to date | ||
query: SELECT 1 WHERE NOT EXISTS (SELECT 1 FROM apps WHERE name = '1Password.app') OR EXISTS (SELECT 1 FROM apps WHERE name = '1Password.app' AND version_compare(bundle_short_version, '8.10.58') >= 0); | ||
critical: false | ||
description: The host may have an outdated version of 1Password, potentially risking security vulnerabilities or compatibility issues. | ||
resolution: Check for updates using 1Password's built-in update functionality. You can also delete 1Password if you are no longer using it. | ||
platform: darwin |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
- name: macOS - Firefox up to date | ||
query: SELECT 1 WHERE NOT EXISTS (SELECT 1 FROM apps WHERE name = 'Firefox.app') OR EXISTS (SELECT 1 FROM apps WHERE name = 'Firefox.app' AND version_compare(bundle_short_version, '134.0.2') >= 0); | ||
critical: false | ||
description: The host may have an outdated or non-existent version of Firefox, potentially risking security vulnerabilities or compatibility issues. | ||
resolution: Download the latest version from self-service or check for updates using Firefox's built-in update functionality. | ||
description: The host may have an outdated version of Firefox, potentially risking security vulnerabilities or compatibility issues. | ||
resolution: Download the latest version from self-service or check for updates using Firefox's built-in update functionality. You can also delete Firefox if you are no longer using it. | ||
platform: darwin |
This file was deleted.
Oops, something went wrong.
14 changes: 0 additions & 14 deletions
14
it-and-security/lib/macos/queries/collect-failed-login-attempts.yml
This file was deleted.
Oops, something went wrong.
5 changes: 0 additions & 5 deletions
5
it-and-security/lib/macos/queries/collect-software-permissions-system.yml
This file was deleted.
Oops, something went wrong.
5 changes: 0 additions & 5 deletions
5
it-and-security/lib/macos/queries/collect-software-permissions-user.yml
This file was deleted.
Oops, something went wrong.
9 changes: 9 additions & 0 deletions
9
it-and-security/lib/macos/queries/detect-apple-intelligence.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
- name: Detect if Apple Intelligence is enabled | ||
automations_enabled: true | ||
description: Detects if Apple Intelligence has been enabled. | ||
discard_data: false | ||
interval: 300 | ||
logging: snapshot | ||
observer_can_run: true | ||
platform: "darwin" | ||
query: SELECT * FROM plist WHERE path LIKE '/Users/%/Library/Preferences/com.apple.CloudSubscriptionFeatures.optIn.plist'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,9 @@ | ||
apiVersion: v1 | ||
kind: query | ||
spec: | ||
name: All ARM hosts | ||
- name: All ARM hosts | ||
automations_enabled: false | ||
description: Collects all ARM-based hosts. | ||
discard_data: false | ||
interval: 300 | ||
logging: snapshot | ||
observer_can_run: true | ||
platform: windows | ||
query: SELECT * FROM os_version WHERE arch LIKE 'ARM%'; | ||
platform: "windows" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,9 @@ | ||
apiVersion: v1 | ||
kind: query | ||
spec: | ||
name: All ARM hosts | ||
- name: All x86 hosts | ||
automations_enabled: false | ||
description: Collects all x86-based hosts. | ||
discard_data: false | ||
interval: 300 | ||
logging: snapshot | ||
observer_can_run: true | ||
platform: windows | ||
query: SELECT * FROM os_version WHERE arch NOT LIKE 'ARM%'; | ||
platform: "windows" | ||
|
11 changes: 0 additions & 11 deletions
11
it-and-security/lib/windows/queries/collect-windows-defender.yml
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
url: https://downloads.slack-edge.com/desktop-releases/windows/x64/4.41.105/SlackSetup.exe | ||
self_service: true | ||
pre_install_query: | ||
path: ../queries/all-x86-hosts.yml | ||
|
||
labels_include_any: | ||
- "x86-based Windows hosts" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
url: https://zoom.us/client/6.3.0.52884/ZoomInstallerFull.exe?archType=winarm64 | ||
self-service: true | ||
pre_install_query: | ||
path: ../queries/all-arm-hosts.yml | ||
|
||
labels_include_any: | ||
- "ARM-based Windows hosts" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
url: https://zoom.us/client/6.3.0.52884/ZoomInstallerFull.exe?archType=x64 | ||
self-service: true | ||
pre_install_query: | ||
path: ../queries/all-x86-hosts.yml | ||
labels_include_any: | ||
- "x86-based Windows hosts" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters