mirror of https://github.com/CISOfy/lynis.git
Added STRG-1842 to check for authorized USB devices
This commit is contained in:
parent
a4a0f8ff5b
commit
7adf2425a6
|
@ -64,7 +64,13 @@
|
|||
Display --indent 2 --text "- Checking usb-storage driver (modprobe config)" --result "DISABLED" --color GREEN
|
||||
AddHP 3 3
|
||||
fi
|
||||
|
||||
#
|
||||
#################################################################################
|
||||
#
|
||||
# Test : STRG-1842
|
||||
# Description : Check USB authorizations
|
||||
Register --test-no STRG-1842 --os Linux --weight L --network NO --description "Check USB authorizations"
|
||||
if [ ${SKIPTEST} -eq 0 ]; then
|
||||
LogText "Test: Checking USB devices authorization to connect to the system"
|
||||
FOUND=0
|
||||
USBDEVICESPATH="/sys/bus/usb/devices/usb"
|
||||
|
@ -84,7 +90,7 @@
|
|||
|
||||
if [ ${FOUND} -eq 1 ]; then
|
||||
LogText "Result: Some USB devices are authorized by default (or temporary) to connect to the system"
|
||||
Display --indent 2 --text "- Checking USB devices authorization" --result "ENABLED" --color RED
|
||||
Display --indent 2 --text "- Checking USB devices authorization" --result "ENABLED" --color YELLOW
|
||||
# To-Be-Added: create documentation and enable the suggestion
|
||||
#ReportSuggestion ${TEST_NO} "Disable USB devices authorization, to prevent unauthorized storage or data theft"
|
||||
AddHP 0 3
|
||||
|
|
Loading…
Reference in New Issue