============================================================================== 20220225 08:03:45.073 - INFO - + START SUITE: Lynis [ ] ============================================================================== 20220225 08:03:45.221 - INFO - +- START SUITE: Lynis.Lynis [ ] ============================================================================== 20220225 08:03:45.222 - INFO - +-- START SETUP: BuiltIn.Run Keywords [ Open Connection And Log In | Install Lynis ] 20220225 08:03:45.223 - INFO - +--- START KW: Open Connection And Log In [ ] 20220225 08:03:45.224 - INFO - +---- START KW: SSHLibrary.Open Connection [ ${HOST} ] 20220225 08:03:45.225 - INFO - +---- END KW: SSHLibrary.Open Connection (1) 20220225 08:03:45.225 - INFO - +---- START KW: BuiltIn.Run Keyword If [ '${SSH_KEYFILE}' != 'None' | Login With Public Key | ${USERNAME} | ${SSH_KEYFILE} | ELSE IF | '${PASSWORD}' != 'None' | Login | ${USERNAME} | ${PASSWORD} | ELSE | FAIL ] 20220225 08:03:45.226 - INFO - +----- START KW: SSHLibrary.Login With Public Key [ ${USERNAME} | ${SSH_KEYFILE} ] 20220225 08:03:45.228 - INFO - Logging into '10.11.21.160:22' as 'root'. 20220225 08:03:45.262 - DEBUG - Adding ssh-ed25519 host key for 10.11.21.160: b'0b033f8dab9fb7406c1751da28f36479' 20220225 08:03:45.283 - DEBUG - Trying discovered key b'cbab8d8d5bf89c6b759c26204a5ae720' in /root/.ssh/id_rsa 20220225 08:03:45.312 - DEBUG - [chan 0] Max packet in: 32768 bytes 20220225 08:03:46.365 - INFO - Read output: Last login: Thu Feb 24 23:44:03 2022 from 10.11.19.89 [root@euchring1 ~]# 20220225 08:03:46.366 - INFO - +----- END KW: SSHLibrary.Login With Public Key (1140) 20220225 08:03:46.366 - INFO - +---- END KW: BuiltIn.Run Keyword If (1141) 20220225 08:03:46.367 - INFO - +--- END KW: Open Connection And Log In (1144) 20220225 08:03:46.367 - INFO - +--- START KW: Install Lynis [ ] 20220225 08:03:46.367 - INFO - +---- START KW: SSHLibrary.Put File [ /opt/akraino/lynis-remote.tar.gz ] 20220225 08:03:46.368 - DEBUG - [chan 1] Max packet in: 32768 bytes 20220225 08:03:46.394 - INFO - [chan 1] Opened sftp connection (server version 3) 20220225 08:03:46.394 - DEBUG - [chan 1] normalize(b'.') 20220225 08:03:46.395 - DEBUG - [chan 1] stat(b'/root/') 20220225 08:03:46.396 - DEBUG - [chan 1] stat(b'/') 20220225 08:03:46.397 - DEBUG - [chan 1] stat(b'/root') 20220225 08:03:46.398 - DEBUG - [chan 1] stat(b'/root') 20220225 08:03:46.399 - DEBUG - [chan 1] stat(b'/root//lynis-remote.tar.gz') 20220225 08:03:46.400 - DEBUG - [chan 1] open(b'/root//lynis-remote.tar.gz', 'wb') 20220225 08:03:46.401 - DEBUG - [chan 1] open(b'/root//lynis-remote.tar.gz', 'wb') -> 00000000 20220225 08:03:46.401 - DEBUG - [chan 1] chmod(b'/root//lynis-remote.tar.gz', 484) 20220225 08:03:47.490 - DEBUG - [chan 1] close(00000000) 20220225 08:03:47.491 - INFO - '/opt/akraino/lynis-remote.tar.gz' -> '/root//lynis-remote.tar.gz' 20220225 08:03:47.492 - INFO - +---- END KW: SSHLibrary.Put File (1125) 20220225 08:03:47.493 - INFO - +---- START KW: SSHLibrary.Execute Command [ tar xzf lynis-remote.tar.gz && sudo chown -R 0:0 lynis ] 20220225 08:03:47.493 - INFO - Executing command 'tar xzf lynis-remote.tar.gz && sudo chown -R 0:0 lynis'. 20220225 08:03:47.494 - DEBUG - [chan 2] Max packet in: 32768 bytes 20220225 08:03:47.629 - DEBUG - [chan 2] EOF sent (2) 20220225 08:03:47.630 - INFO - Command exited with return code 0. 20220225 08:03:47.630 - INFO - +---- END KW: SSHLibrary.Execute Command (138) 20220225 08:03:47.631 - INFO - +--- END KW: Install Lynis (1264) 20220225 08:03:47.631 - INFO - +-- END SETUP: BuiltIn.Run Keywords (2409) ------------------------------------------------------------------------------ 20220225 08:03:47.632 - INFO - +-- START TEST: Run Lynis Audit System [ ] ------------------------------------------------------------------------------ 20220225 08:03:47.633 - INFO - +--- START KW: BuiltIn.Set Variable [ ${OUTPUT DIR}${/}${FULL_SUITE}.${TEST NAME.replace(' ','_')}.log ] 20220225 08:03:47.634 - INFO - ${log} = /opt/akraino/results/os/lynis/Lynis.Lynis.Run_Lynis_Audit_System.log 20220225 08:03:47.634 - INFO - +--- END KW: BuiltIn.Set Variable (1) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 20220225 08:03:47.636 - INFO - +--- START KW: SSHLibrary.Execute Command [ cd lynis && sudo ./lynis audit system --quick | return_rc=True ] 20220225 08:03:47.637 - INFO - Executing command 'cd lynis && sudo ./lynis audit system --quick'. 20220225 08:03:47.637 - DEBUG - [chan 3] Max packet in: 32768 bytes 20220225 08:04:49.593 - DEBUG - [chan 3] EOF sent (3) 20220225 08:04:49.594 - INFO - Command exited with return code 0. 20220225 08:04:49.595 - INFO - ${stdout} = [ Lynis 3.0.1 ] ################################################################################ Lynis comes with ABSOLUTELY NO WARRANTY. This is free software, and you are welcome to... 20220225 08:04:49.595 - INFO - ${rc} = 0 20220225 08:04:49.595 - INFO - +--- END KW: SSHLibrary.Execute Command (61959) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 20220225 08:04:49.596 - INFO - +--- START KW: OperatingSystem.Append To File [ ${log} | ${stdout}${\n} ] 20220225 08:04:49.598 - INFO - Appended to file '/opt/akraino/results/os/lynis/Lynis.Lynis.Run_Lynis_Audit_System.log'. 20220225 08:04:49.598 - INFO - +--- END KW: OperatingSystem.Append To File (2) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 20220225 08:04:49.598 - INFO - +--- START KW: BuiltIn.Should Be Equal As Integers [ ${rc} | 0 ] 20220225 08:04:49.599 - INFO - Argument types are: 20220225 08:04:49.599 - INFO - +--- END KW: BuiltIn.Should Be Equal As Integers (1) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 20220225 08:04:49.599 - INFO - +--- START KW: BuiltIn.Evaluate [ "Great, no warnings" in """${stdout}""" ] 20220225 08:04:49.600 - INFO - ${status} = True 20220225 08:04:49.600 - INFO - +--- END KW: BuiltIn.Evaluate (1) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 20220225 08:04:49.601 - INFO - +--- START KW: BuiltIn.Run Keyword If [ '${status}' == 'False' | FAIL | Warnings discovered | non-critical ] 20220225 08:04:49.601 - INFO - +--- END KW: BuiltIn.Run Keyword If (1) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 20220225 08:04:49.602 - INFO - +--- START TEARDOWN: Download Logs [ ] 20220225 08:04:49.602 - INFO - +---- START KW: SSHLibrary.Execute Command [ chmod +r /var/log/lynis.log | sudo=True ] 20220225 08:04:49.603 - INFO - Executing command 'sudo chmod +r /var/log/lynis.log'. 20220225 08:04:49.603 - DEBUG - [chan 4] Max packet in: 32768 bytes 20220225 08:04:49.691 - INFO - Command exited with return code 0. 20220225 08:04:49.692 - INFO - +---- END KW: SSHLibrary.Execute Command (90) 20220225 08:04:49.692 - INFO - +---- START KW: SSHLibrary.Get File [ /var/log/lynis.log | ${OUTPUT DIR}/lynis.log ] 20220225 08:04:49.693 - DEBUG - [chan 1] stat(b'/var/log/lynis.log') 20220225 08:04:49.733 - DEBUG - [chan 1] stat(b'/var/log/lynis.log') 20220225 08:04:49.734 - DEBUG - [chan 1] open(b'/var/log/lynis.log', 'rb') 20220225 08:04:49.734 - DEBUG - [chan 1] open(b'/var/log/lynis.log', 'rb') -> 00000000 20220225 08:04:49.745 - DEBUG - [chan 1] close(00000000) 20220225 08:04:49.747 - INFO - '/var/log/lynis.log' -> '/opt/akraino/results/os/lynis/lynis.log' 20220225 08:04:49.747 - INFO - +---- END KW: SSHLibrary.Get File (55) 20220225 08:04:49.747 - INFO - +---- START KW: SSHLibrary.Execute Command [ rm /var/log/lynis.log | sudo=True ] 20220225 08:04:49.748 - INFO - Executing command 'sudo rm /var/log/lynis.log'. 20220225 08:04:49.748 - DEBUG - [chan 5] Max packet in: 32768 bytes 20220225 08:04:49.802 - INFO - Command exited with return code 0. 20220225 08:04:49.803 - INFO - +---- END KW: SSHLibrary.Execute Command (56) 20220225 08:04:49.803 - INFO - +---- START KW: SSHLibrary.Execute Command [ chmod +r /var/log/lynis-report.dat | sudo=True ] 20220225 08:04:49.803 - INFO - Executing command 'sudo chmod +r /var/log/lynis-report.dat'. 20220225 08:04:49.804 - DEBUG - [chan 6] Max packet in: 32768 bytes 20220225 08:04:49.898 - INFO - Command exited with return code 0. 20220225 08:04:49.899 - INFO - +---- END KW: SSHLibrary.Execute Command (96) 20220225 08:04:49.899 - INFO - +---- START KW: SSHLibrary.Get File [ /var/log/lynis-report.dat | ${OUTPUT DIR}/lynis-report.dat ] 20220225 08:04:49.900 - DEBUG - [chan 1] stat(b'/var/log/lynis-report.dat') 20220225 08:04:49.936 - DEBUG - [chan 1] stat(b'/var/log/lynis-report.dat') 20220225 08:04:49.937 - DEBUG - [chan 1] open(b'/var/log/lynis-report.dat', 'rb') 20220225 08:04:49.938 - DEBUG - [chan 1] open(b'/var/log/lynis-report.dat', 'rb') -> 00000000 20220225 08:04:49.942 - DEBUG - [chan 1] close(00000000) 20220225 08:04:49.943 - INFO - '/var/log/lynis-report.dat' -> '/opt/akraino/results/os/lynis/lynis-report.dat' 20220225 08:04:49.943 - INFO - +---- END KW: SSHLibrary.Get File (44) 20220225 08:04:49.944 - INFO - +---- START KW: SSHLibrary.Execute Command [ rm /var/log/lynis-report.dat | sudo=True ] 20220225 08:04:49.944 - INFO - Executing command 'sudo rm /var/log/lynis-report.dat'. 20220225 08:04:49.944 - DEBUG - [chan 7] Max packet in: 32768 bytes 20220225 08:04:49.998 - INFO - Command exited with return code 0. 20220225 08:04:49.999 - INFO - +---- END KW: SSHLibrary.Execute Command (55) 20220225 08:04:49.999 - INFO - +--- END TEARDOWN: Download Logs (397) ------------------------------------------------------------------------------ 20220225 08:04:50.000 - INFO - +-- END TEST: Run Lynis Audit System (62368) ------------------------------------------------------------------------------ 20220225 08:04:50.001 - INFO - +-- START TEARDOWN: BuiltIn.Run Keywords [ Uninstall Lynis | Close All Connections ] 20220225 08:04:50.002 - INFO - +--- START KW: Uninstall Lynis [ ] 20220225 08:04:50.003 - INFO - +---- START KW: SSHLibrary.Execute Command [ rm lynis-remote.tar.gz ] 20220225 08:04:50.003 - INFO - Executing command 'rm lynis-remote.tar.gz'. 20220225 08:04:50.003 - DEBUG - [chan 8] Max packet in: 32768 bytes 20220225 08:04:50.059 - INFO - Command exited with return code 0. 20220225 08:04:50.059 - INFO - +---- END KW: SSHLibrary.Execute Command (57) 20220225 08:04:50.060 - INFO - +---- START KW: SSHLibrary.Execute Command [ rm -rf ~/lynis /var/log/lynis.log /var/log/lynis-report.dat | sudo=True ] 20220225 08:04:50.060 - INFO - Executing command 'sudo rm -rf ~/lynis /var/log/lynis.log /var/log/lynis-report.dat'. 20220225 08:04:50.061 - DEBUG - [chan 9] Max packet in: 32768 bytes 20220225 08:04:50.163 - INFO - Command exited with return code 0. 20220225 08:04:50.164 - INFO - +---- END KW: SSHLibrary.Execute Command (104) 20220225 08:04:50.165 - INFO - +--- END KW: Uninstall Lynis (162) 20220225 08:04:50.165 - INFO - +--- START KW: SSHLibrary.Close All Connections [ ] 20220225 08:04:50.166 - DEBUG - [chan 1] EOF sent (1) 20220225 08:04:50.167 - DEBUG - [chan 0] EOF sent (0) 20220225 08:04:50.167 - INFO - +--- END KW: SSHLibrary.Close All Connections (2) 20220225 08:04:50.168 - INFO - +-- END TEARDOWN: BuiltIn.Run Keywords (167) ============================================================================== 20220225 08:04:50.169 - INFO - +- END SUITE: Lynis.Lynis (65095) ============================================================================== 20220225 08:04:50.173 - INFO - + END SUITE: Lynis (65135) ==============================================================================