mirror of
https://github.com/CISOfy/lynis.git
synced 2025-07-31 01:34:23 +02:00
Update tests_file_integrity
This commit is contained in:
parent
cb73eed69b
commit
617ede8686
@ -246,6 +246,24 @@
|
|||||||
Display --indent 6 --text "- Directory/File watches" --result DISABLED --color YELLOW
|
Display --indent 6 --text "- Directory/File watches" --result DISABLED --color YELLOW
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
#################################################################################
|
||||||
|
#
|
||||||
|
# Test : FINT-4351
|
||||||
|
# Description : Check if osquery system integrity tool is running
|
||||||
|
Register --test-no FINT-4351 --weight L --network NO --description "osqueryd syscheck daemon running"
|
||||||
|
if [ ${SKIPTEST} -eq 0 ]; then
|
||||||
|
LogText "Test: Checking if osqueryd syscheck daemon is running"
|
||||||
|
IsRunning osqueryd
|
||||||
|
if [ ${RUNNING} -eq 1 ]; then
|
||||||
|
LogText "Result: syscheck (osquery) installed"
|
||||||
|
FILE_INT_TOOL="osquery"
|
||||||
|
FILE_INT_TOOL_FOUND=1
|
||||||
|
Display --indent 4 --text "- osquery (syscheck)" --result FOUND --color GREEN
|
||||||
|
else
|
||||||
|
LogText "Result: syscheck (osquery) not installed"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
#
|
#
|
||||||
#################################################################################
|
#################################################################################
|
||||||
#
|
#
|
||||||
@ -266,25 +284,7 @@
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
#
|
#
|
||||||
#################################################################################
|
|
||||||
#
|
|
||||||
# Test : FINT-4351
|
|
||||||
# Description : Check if osquery system integrity tool is running
|
|
||||||
Register --test-no FINT-4351 --weight L --network NO --description "osqueryd syscheck daemon running"
|
|
||||||
if [ ${SKIPTEST} -eq 0 ]; then
|
|
||||||
LogText "Test: Checking if osqueryd syscheck daemon is running"
|
|
||||||
IsRunning osqueryd
|
|
||||||
if [ ${RUNNING} -eq 1 ]; then
|
|
||||||
LogText "Result: syscheck (osquery) installed"
|
|
||||||
FILE_INT_TOOL="osquery"
|
|
||||||
FILE_INT_TOOL_FOUND=1
|
|
||||||
Display --indent 4 --text "- osquery (syscheck)" --result FOUND --color GREEN
|
|
||||||
else
|
|
||||||
LogText "Result: syscheck (osquery) not installed"
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
#
|
|
||||||
#################################################################################
|
|
||||||
|
|
||||||
Report "file_integrity_tool=${FILE_INT_TOOL}"
|
Report "file_integrity_tool=${FILE_INT_TOOL}"
|
||||||
Report "file_integrity_tool_installed=${FILE_INT_TOOL_FOUND}"
|
Report "file_integrity_tool_installed=${FILE_INT_TOOL_FOUND}"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user