Performance tuning, mark some Linux queries as 'extra'
This commit is contained in:
parent
9342485881
commit
3447f95d9e
8
Makefile
8
Makefile
|
@ -9,16 +9,16 @@ out/osqtool-$(ARCH)-$(OSQTOOL_VERSION):
|
|||
mv out/osqtool out/osqtool-$(ARCH)-$(OSQTOOL_VERSION)
|
||||
|
||||
out/detection.conf: out/osqtool-$(ARCH)-$(OSQTOOL_VERSION) $(wildcard detection/*.sql)
|
||||
./out/osqtool-$(ARCH)-$(OSQTOOL_VERSION) --max-query-duration=8s --verify -output out/detection.conf pack detection
|
||||
./out/osqtool-$(ARCH)-$(OSQTOOL_VERSION) --max-query-duration=8s --verify --exclude-tags=disabled,disabled-privacy,extra --output out/detection.conf pack detection
|
||||
|
||||
out/policy.conf: out/osqtool-$(ARCH)-$(OSQTOOL_VERSION) $(wildcard policy/*.sql)
|
||||
./out/osqtool-$(ARCH)-$(OSQTOOL_VERSION) --max-query-duration=8s --verify --output out/policy.conf pack policy/
|
||||
./out/osqtool-$(ARCH)-$(OSQTOOL_VERSION) --max-query-duration=8s --exclude-tags=disabled,disabled-privacy,extra o --verify --output out/policy.conf pack policy/
|
||||
|
||||
out/vulnerabilities.conf: out/osqtool-$(ARCH)-$(OSQTOOL_VERSION) $(wildcard vulnerabilities/*.sql)
|
||||
./out/osqtool-$(ARCH)-$(OSQTOOL_VERSION) --max-query-duration=8s --output out/vulnerabilities.conf pack vulnerabilities/
|
||||
./out/osqtool-$(ARCH)-$(OSQTOOL_VERSION) --max-query-duration=8s --exclude-tags=disabled,disabled-privacy,extra --output out/vulnerabilities.conf pack vulnerabilities/
|
||||
|
||||
out/incident-response.conf: out/osqtool-$(ARCH)-$(OSQTOOL_VERSION) $(wildcard incident_response/*.sql)
|
||||
./out/osqtool-$(ARCH)-$(OSQTOOL_VERSION) --max-query-duration=8s --exclude-tags=disabled,disabled-privacy --output out/incident-response.conf pack incident_response/
|
||||
./out/osqtool-$(ARCH)-$(OSQTOOL_VERSION) --max-query-duration=8s --exclude-tags=disabled,disabled-privacy,extra --output out/incident-response.conf pack incident_response/
|
||||
|
||||
out/osquery.conf:
|
||||
cat osquery.conf | sed s/"out\/"/""/g > out/osquery.conf
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
-- *https://attack.mitre.org/techniques/T1095/ (C2: Non-Application Layer Protocol)
|
||||
--
|
||||
-- interval: 300
|
||||
-- tags: transient events net
|
||||
-- tags: transient events net extra
|
||||
SELECT
|
||||
se.*,
|
||||
p.path,
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
-- references:
|
||||
-- *https://attack.mitre.org/techniques/T1095/ (C2: Non-Application Layer Protocol)
|
||||
--
|
||||
-- tags: transient state net often
|
||||
-- tags: transient state net extra
|
||||
SELECT
|
||||
pop.pid AS p0_pid,
|
||||
pop.socket,
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
-- references:
|
||||
-- * https://attack.mitre.org/techniques/T1071/ (C&C, Application Layer Protocol)
|
||||
--
|
||||
-- tags: transient state net
|
||||
-- tags: transient state net extra
|
||||
-- interval: 601
|
||||
-- platform: posix
|
||||
SELECT
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
-- references:
|
||||
-- * https://attack.mitre.org/techniques/T1564/001/ (Hide Artifacts: Hidden Files and Directories)
|
||||
--
|
||||
-- tags: transient
|
||||
-- tags: transient extra
|
||||
-- platform: linux
|
||||
-- interval: 600
|
||||
SELECT
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
-- false positives:
|
||||
-- * possible, but none known
|
||||
--
|
||||
-- tags: transient process events
|
||||
-- tags: transient process events extra
|
||||
-- platform: linux
|
||||
-- interval: 600
|
||||
SELECT -- Child
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
-- Currently running UPX executable
|
||||
--
|
||||
-- tags: persistent
|
||||
-- interval: 3600
|
||||
-- interval: 7199
|
||||
-- platform: posix
|
||||
SELECT
|
||||
yara.*,
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
-- Recently downloaded UPX file
|
||||
-- tags: volume filesystem seldom
|
||||
SELECT
|
||||
file.path,
|
||||
file.size,
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
-- Recently downloaded UPX file
|
||||
-- tags: volume filesystem seldom
|
||||
SELECT
|
||||
file.path,
|
||||
file.size,
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
-- Recently downloaded cryptexec program
|
||||
-- tags: volume filesystem seldom
|
||||
SELECT
|
||||
file.path,
|
||||
file.size,
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
-- Recently downloaded Stealer
|
||||
-- tags: volume filesystem seldom
|
||||
SELECT
|
||||
file.path,
|
||||
file.size,
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
-- Recently downloaded UPX file
|
||||
-- tags: volume filesystem seldom
|
||||
SELECT
|
||||
file.path,
|
||||
file.size,
|
||||
|
|
Loading…
Reference in New Issue