mirror of
https://github.com/CISOfy/lynis.git
synced 2025-07-27 07:44:14 +02:00
[DBS-1880] Detection for redis
This commit is contained in:
parent
4f578b7d71
commit
37763dcf4f
@ -27,6 +27,7 @@ release can be specified as additional argument.
|
|||||||
|
|
||||||
Tests
|
Tests
|
||||||
------
|
------
|
||||||
|
* DBS-1880 - Initial support for Redis server
|
||||||
* PHP-2374 - Changed text and cleanups
|
* PHP-2374 - Changed text and cleanups
|
||||||
* PHP-2376 - Log result to log file instead of report
|
* PHP-2376 - Log result to log file instead of report
|
||||||
|
|
||||||
|
@ -86,6 +86,7 @@ DBS-1826:test:security:databases::Checking active PostgreSQL processes:
|
|||||||
DBS-1840:test:security:databases::Checking active Oracle processes:
|
DBS-1840:test:security:databases::Checking active Oracle processes:
|
||||||
#DBS-1842:test:security:databases::Checking Oracle home paths:
|
#DBS-1842:test:security:databases::Checking Oracle home paths:
|
||||||
DBS-1860:test:security:databases::Checking active DB2 instances:
|
DBS-1860:test:security:databases::Checking active DB2 instances:
|
||||||
|
DBS-1880:test:security:databases::Checking active Redis processes:
|
||||||
FINT-4310:test:security:file_integrity::AFICK availability:
|
FINT-4310:test:security:file_integrity::AFICK availability:
|
||||||
FINT-4314:test:security:file_integrity::AIDE availability:
|
FINT-4314:test:security:file_integrity::AIDE availability:
|
||||||
FINT-4315:test:security:file_integrity::Check AIDE configuration file:
|
FINT-4315:test:security:file_integrity::Check AIDE configuration file:
|
||||||
|
@ -75,6 +75,7 @@ unset LANG
|
|||||||
CUSTOM_URL_APPEND=""
|
CUSTOM_URL_APPEND=""
|
||||||
CUSTOM_URL_PREPEND=""
|
CUSTOM_URL_PREPEND=""
|
||||||
CUSTOM_URL_PROTOCOL=""
|
CUSTOM_URL_PROTOCOL=""
|
||||||
|
DATABASE_ENGINE_RUNNING=0
|
||||||
DB2_RUNNING=0
|
DB2_RUNNING=0
|
||||||
DEVELOPER_MODE=0
|
DEVELOPER_MODE=0
|
||||||
DISCOVERED_BINARIES=""
|
DISCOVERED_BINARIES=""
|
||||||
@ -150,6 +151,7 @@ unset LANG
|
|||||||
PRIVILEGED=0
|
PRIVILEGED=0
|
||||||
PROFILEVALUE=""
|
PROFILEVALUE=""
|
||||||
PSBINARY="ps"
|
PSBINARY="ps"
|
||||||
|
REDIS_RUNNING=0
|
||||||
REMOTE_LOGGING_ENABLED=0
|
REMOTE_LOGGING_ENABLED=0
|
||||||
RKHUNTERBINARY=""
|
RKHUNTERBINARY=""
|
||||||
RPMBINARY=""
|
RPMBINARY=""
|
||||||
|
@ -43,6 +43,7 @@
|
|||||||
Display --indent 2 --text "- MySQL process status" --result "${STATUS_FOUND}" --color GREEN
|
Display --indent 2 --text "- MySQL process status" --result "${STATUS_FOUND}" --color GREEN
|
||||||
LogText "Result: MySQL is active"
|
LogText "Result: MySQL is active"
|
||||||
MYSQL_RUNNING=1
|
MYSQL_RUNNING=1
|
||||||
|
DATABASE_ENGINE_RUNNING=1
|
||||||
Report "mysql_running=${MYSQL_RUNNING}"
|
Report "mysql_running=${MYSQL_RUNNING}"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
@ -97,6 +98,7 @@
|
|||||||
Display --indent 2 --text "- PostgreSQL processes status" --result "${STATUS_FOUND}" --color GREEN
|
Display --indent 2 --text "- PostgreSQL processes status" --result "${STATUS_FOUND}" --color GREEN
|
||||||
LogText "Result: PostgreSQL is active"
|
LogText "Result: PostgreSQL is active"
|
||||||
POSTGRESQL_RUNNING=1
|
POSTGRESQL_RUNNING=1
|
||||||
|
DATABASE_ENGINE_RUNNING=1
|
||||||
Report "postgresql_running=${POSTGRESQL_RUNNING}"
|
Report "postgresql_running=${POSTGRESQL_RUNNING}"
|
||||||
else
|
else
|
||||||
if [ ${DEBUG} -eq 1 ]; then Display --indent 2 --text "- PostgreSQL processes status" --result "${STATUS_NOT_FOUND}" --color WHITE --debug; fi
|
if [ ${DEBUG} -eq 1 ]; then Display --indent 2 --text "- PostgreSQL processes status" --result "${STATUS_NOT_FOUND}" --color WHITE --debug; fi
|
||||||
@ -126,6 +128,7 @@
|
|||||||
Display --indent 2 --text "- Oracle processes status" --result "${STATUS_FOUND}" --color GREEN
|
Display --indent 2 --text "- Oracle processes status" --result "${STATUS_FOUND}" --color GREEN
|
||||||
LogText "Result: Oracle is active"
|
LogText "Result: Oracle is active"
|
||||||
ORACLE_RUNNING=1
|
ORACLE_RUNNING=1
|
||||||
|
DATABASE_ENGINE_RUNNING=1
|
||||||
Report "oracle_running=${ORACLE_RUNNING}"
|
Report "oracle_running=${ORACLE_RUNNING}"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
@ -151,6 +154,7 @@
|
|||||||
Display --indent 2 --text "- DB2 instance running" --result "${STATUS_FOUND}" --color GREEN
|
Display --indent 2 --text "- DB2 instance running" --result "${STATUS_FOUND}" --color GREEN
|
||||||
LogText "Result: At least one DB2 instance is running"
|
LogText "Result: At least one DB2 instance is running"
|
||||||
DB2_RUNNING=1
|
DB2_RUNNING=1
|
||||||
|
DATABASE_ENGINE_RUNNING=1
|
||||||
Report "db2_running=${DB2_RUNNING}"
|
Report "db2_running=${DB2_RUNNING}"
|
||||||
else
|
else
|
||||||
if [ ${DEBUG} -eq 1 ]; then Display --indent 2 --text "- DB2 instance running" --result "${STATUS_NOT_FOUND}" --color WHITE --debug; fi
|
if [ ${DEBUG} -eq 1 ]; then Display --indent 2 --text "- DB2 instance running" --result "${STATUS_NOT_FOUND}" --color WHITE --debug; fi
|
||||||
@ -159,6 +163,30 @@
|
|||||||
fi
|
fi
|
||||||
#
|
#
|
||||||
#################################################################################
|
#################################################################################
|
||||||
|
#
|
||||||
|
# Test : DBS-1880
|
||||||
|
# Description : Determine if redis is running
|
||||||
|
Register --test-no DBS-1880 --weight L --network NO --category security --description "Check for active Redis server"
|
||||||
|
if [ ${SKIPTEST} -eq 0 ]; then
|
||||||
|
if IsRunning redis-server; then
|
||||||
|
Display --indent 2 --text "- Redis (server) status" --result "${STATUS_FOUND}" --color GREEN
|
||||||
|
LogText "Result: Redit is running"
|
||||||
|
REDIS_RUNNING=1
|
||||||
|
DATABASE_ENGINE_RUNNING=1
|
||||||
|
Report "redis_running=${redis_RUNNING}"
|
||||||
|
else
|
||||||
|
if [ ${DEBUG} -eq 1 ]; then Display --indent 2 --text "- Redis (server) status" --result "${STATUS_NOT_FOUND}" --color WHITE --debug; fi
|
||||||
|
LogText "Result: No Redis processes are running"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
#
|
||||||
|
#################################################################################
|
||||||
|
#
|
||||||
|
if [ ${DATABASE_ENGINE_RUNNING} -eq 0 ]; then
|
||||||
|
Display --indent 4 --text "No database engines found"
|
||||||
|
fi
|
||||||
|
#
|
||||||
|
#################################################################################
|
||||||
#
|
#
|
||||||
|
|
||||||
WaitForKeyPress
|
WaitForKeyPress
|
||||||
|
Loading…
x
Reference in New Issue
Block a user