mirror of
https://github.com/chainguard-dev/osquery-defense-kit
synced 2025-01-10 15:49:31 +00:00
Add teams exception
This commit is contained in:
parent
3713701e76
commit
2adfcec1ae
@ -21,81 +21,84 @@ FROM
|
|||||||
-- NOTE: Everything after this is shared with process_events/unexpected-executable-directory-events
|
-- NOTE: Everything after this is shared with process_events/unexpected-executable-directory-events
|
||||||
WHERE
|
WHERE
|
||||||
dirname NOT IN (
|
dirname NOT IN (
|
||||||
'/bin',
|
"/bin",
|
||||||
'/Library/DropboxHelperTools/Dropbox_u501',
|
"/Library/DropboxHelperTools/Dropbox_u501",
|
||||||
'/Library/Google/GoogleSoftwareUpdate/GoogleSoftwareUpdate.bundle/Contents/Helpers/GoogleSoftwareUpdateAgent.app/Contents/MacOS',
|
"/Library/Google/GoogleSoftwareUpdate/GoogleSoftwareUpdate.bundle/Contents/Helpers/GoogleSoftwareUpdateAgent.app/Contents/MacOS",
|
||||||
'/Library/Printers/DYMO/Utilities',
|
"/Library/Printers/DYMO/Utilities",
|
||||||
'/Library/PrivilegedHelperTools',
|
"/Library/PrivilegedHelperTools",
|
||||||
'/sbin',
|
"/usr/share/teams/resources/app.asar.unpacked/node_modules/slimcore/bin",
|
||||||
'/usr/bin',
|
"/sbin",
|
||||||
'/usr/lib',
|
"/usr/bin",
|
||||||
'/usr/lib/bluetooth',
|
"/usr/lib",
|
||||||
'/usr/lib/cups/notifier',
|
"/usr/lib/bluetooth",
|
||||||
'/usr/lib/evolution-data-server',
|
"/usr/lib/cups/notifier",
|
||||||
'/usr/lib/firefox',
|
"/usr/share/teams",
|
||||||
'/usr/lib/fwupd',
|
"/usr/lib/evolution-data-server",
|
||||||
'/usr/lib/ibus',
|
"/usr/lib/firefox",
|
||||||
'/usr/lib/libreoffice/program',
|
"/usr/lib/fwupd",
|
||||||
'/usr/lib/polkit-1',
|
"/usr/lib/ibus",
|
||||||
'/usr/lib/slack',
|
"/usr/lib/libreoffice/program",
|
||||||
'/usr/lib/snapd',
|
"/usr/lib/polkit-1",
|
||||||
'/usr/lib/systemd',
|
"/usr/lib/slack",
|
||||||
'/usr/lib/telepathy',
|
"/usr/lib/snapd",
|
||||||
'/usr/lib/udisks2',
|
"/usr/lib/systemd",
|
||||||
'/usr/lib/xorg',
|
"/usr/lib/telepathy",
|
||||||
'/usr/lib64/firefox',
|
"/usr/lib/udisks2",
|
||||||
'/usr/libexec',
|
"/usr/lib/xorg",
|
||||||
'/usr/libexec/ApplicationFirewall',
|
"/usr/lib64/firefox",
|
||||||
'/usr/libexec/rosetta',
|
|
||||||
'/usr/sbin',
|
"/usr/libexec",
|
||||||
'/usr/share/code'
|
"/usr/libexec/ApplicationFirewall",
|
||||||
|
"/usr/libexec/rosetta",
|
||||||
|
"/usr/sbin",
|
||||||
|
"/usr/share/code"
|
||||||
)
|
)
|
||||||
AND dirname NOT LIKE '/Applications/%.app/%'
|
AND dirname NOT LIKE "/Applications/%.app/%"
|
||||||
AND dirname NOT LIKE '/home/%'
|
AND dirname NOT LIKE "/home/%"
|
||||||
AND dirname NOT LIKE '/Library/Apple/System/Library%'
|
AND dirname NOT LIKE "/Library/Apple/System/Library%"
|
||||||
AND dirname NOT LIKE '/Library/Application Support/%/Contents/MacOS'
|
AND dirname NOT LIKE "/Library/Application Support/%/Contents/MacOS"
|
||||||
AND dirname NOT LIKE '/Library/Audio/Plug-Ins/%/Contents/MacOS'
|
AND dirname NOT LIKE "/Library/Audio/Plug-Ins/%/Contents/MacOS"
|
||||||
AND dirname NOT LIKE '/Library/CoreMediaIO/Plug-Ins/%'
|
AND dirname NOT LIKE "/Library/CoreMediaIO/Plug-Ins/%"
|
||||||
AND dirname NOT LIKE '/Library/Developer/%'
|
AND dirname NOT LIKE "/Library/Developer/%"
|
||||||
AND dirname NOT LIKE '/Library/Internet Plug-Ins/%/Contents/MacOS'
|
AND dirname NOT LIKE "/Library/Internet Plug-Ins/%/Contents/MacOS"
|
||||||
AND dirname NOT LIKE '/Library/Java/JavaVirtualMachines/%'
|
AND dirname NOT LIKE "/Library/Java/JavaVirtualMachines/%"
|
||||||
AND dirname NOT LIKE '/Library/SystemExtensions/%'
|
AND dirname NOT LIKE "/Library/SystemExtensions/%"
|
||||||
AND dirname NOT LIKE '/nix/store/%'
|
AND dirname NOT LIKE "/nix/store/%"
|
||||||
AND dirname NOT LIKE '/opt/%'
|
AND dirname NOT LIKE "/opt/%"
|
||||||
AND dirname NOT LIKE '/private/tmp/nix-build-%'
|
AND dirname NOT LIKE "/private/tmp/nix-build-%"
|
||||||
AND dirname NOT LIKE '/private/var/db/com.apple.xpc.roleaccountd.staging/%.xpc/Contents/MacOS'
|
AND dirname NOT LIKE "/private/var/db/com.apple.xpc.roleaccountd.staging/%.xpc/Contents/MacOS"
|
||||||
AND dirname NOT LIKE '/private/var/folders/%/bin'
|
AND dirname NOT LIKE "/private/var/folders/%/bin"
|
||||||
AND dirname NOT LIKE '/private/var/folders/%/Contents/%'
|
AND dirname NOT LIKE "/private/var/folders/%/Contents/%"
|
||||||
AND dirname NOT LIKE '/private/var/folders/%/go-build%'
|
AND dirname NOT LIKE "/private/var/folders/%/go-build%"
|
||||||
AND dirname NOT LIKE '/private/tmp/go-build%/exe'
|
AND dirname NOT LIKE "/private/tmp/go-build%/exe"
|
||||||
AND dirname NOT LIKE '/private/var/folders/%/GoLand'
|
AND dirname NOT LIKE "/private/var/folders/%/GoLand"
|
||||||
AND dirname NOT LIKE '/snap/%'
|
AND dirname NOT LIKE "/snap/%"
|
||||||
AND dirname NOT LIKE '/System/%'
|
AND dirname NOT LIKE "/System/%"
|
||||||
AND dirname NOT LIKE '/tmp/%/bin'
|
AND dirname NOT LIKE "/tmp/%/bin"
|
||||||
AND dirname NOT LIKE '/tmp/go-build%'
|
AND dirname NOT LIKE "/tmp/go-build%"
|
||||||
AND dirname NOT LIKE '/Users/%'
|
AND dirname NOT LIKE "/Users/%"
|
||||||
AND dirname NOT LIKE '/usr/lib/%'
|
AND dirname NOT LIKE "/usr/lib/%"
|
||||||
AND dirname NOT LIKE '/usr/lib64/%'
|
AND dirname NOT LIKE "/usr/lib64/%"
|
||||||
AND dirname NOT LIKE '/usr/libexec/%'
|
AND dirname NOT LIKE "/usr/libexec/%"
|
||||||
AND dirname NOT LIKE '/Library/%/%.bundle/Contents/Helpers'
|
AND dirname NOT LIKE "/Library/%/%.bundle/Contents/Helpers"
|
||||||
AND dirname NOT LIKE "/Library/%/sbin" -- Nessus
|
AND dirname NOT LIKE "/Library/%/sbin" -- Nessus
|
||||||
AND dirname NOT LIKE '/Library/%/Resources/%/Contents/MacOS'
|
AND dirname NOT LIKE "/Library/%/Resources/%/Contents/MacOS"
|
||||||
AND dirname NOT LIKE '/Library/Application Support/Adobe/%'
|
AND dirname NOT LIKE "/Library/Application Support/Adobe/%"
|
||||||
AND dirname NOT LIKE '/Library/Developer/CommandLineTools/Library/%'
|
AND dirname NOT LIKE "/Library/Developer/CommandLineTools/Library/%"
|
||||||
AND dirname NOT LIKE '/usr/local/%'
|
AND dirname NOT LIKE "/usr/local/%"
|
||||||
AND p.path NOT IN (
|
AND p.path NOT IN (
|
||||||
'/usr/libexec/AssetCache/AssetCache',
|
"/usr/libexec/AssetCache/AssetCache",
|
||||||
'/Library/PrivilegedHelperTools/com.adobe.acc.installer.v2',
|
"/Library/PrivilegedHelperTools/com.adobe.acc.installer.v2",
|
||||||
'/Library/PrivilegedHelperTools/com.adobe.ARMDC.Communicator',
|
"/Library/PrivilegedHelperTools/com.adobe.ARMDC.Communicator",
|
||||||
'/Library/PrivilegedHelperTools/com.adobe.ARMDC.SMJobBlessHelper',
|
"/Library/PrivilegedHelperTools/com.adobe.ARMDC.SMJobBlessHelper",
|
||||||
'/Library/PrivilegedHelperTools/com.docker.vmnetd',
|
"/Library/PrivilegedHelperTools/com.docker.vmnetd",
|
||||||
'/Library/PrivilegedHelperTools/com.macpaw.CleanMyMac4.Agent',
|
"/Library/PrivilegedHelperTools/com.macpaw.CleanMyMac4.Agent",
|
||||||
'/Library/PrivilegedHelperTools/keybase.Helper',
|
"/Library/PrivilegedHelperTools/keybase.Helper",
|
||||||
'/usr/lib/firefox/firefox',
|
"/usr/lib/firefox/firefox",
|
||||||
'/usr/lib64/firefox/firefox'
|
"/usr/lib64/firefox/firefox"
|
||||||
)
|
)
|
||||||
AND NOT (
|
AND NOT (
|
||||||
dirname = ''
|
dirname = ""
|
||||||
AND p.name LIKE "runc%"
|
AND p.name LIKE "runc%"
|
||||||
) -- Pulumi executables are often executed from $TMPDIR
|
) -- Pulumi executables are often executed from $TMPDIR
|
||||||
AND NOT (
|
AND NOT (
|
||||||
|
Loading…
Reference in New Issue
Block a user