Lynis: Difference between revisions
From James's Wiki
No edit summary |
No edit summary |
||
(5 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
00 03 * * 7 sudo /home/ | 00 03 * * 7 sudo /home/username/lynis/lynis audit system --cronjob<br> | ||
00 04 * * 7 mutt -s "Sserver Lynis Report" | 00 04 * * 7 mutt -s "Sserver Lynis Report" someone@gmail.com < /var/log/lynis-report.dat | ||
for a rpi setup: | |||
https://ownyourbits.com/2017/12/23/security-audit-your-arm-board-with-lynis/ | |||
sudo wget -O - https://packages.cisofy.com/keys/cisofy-software-public.key | sudo apt-key add - | |||
echo "deb https://packages.cisofy.com/community/lynis/deb/ stable main" | sudo tee /etc/apt/sources.list.d/cisofy-lynis.list | |||
sudo apt install lynis | |||
sudo lynis show version | |||
after creating custom profile for raspberry pi | |||
sudo lynis audit system --profile custom.prf | |||
to dump the output into a text file: | |||
sudo lynis audit system --no-colors --profile custom.prf > lynisreport.txt | |||
email the report: | |||
mail -s 'Subject-Here' you@cyberciti.biz < input.file | |||
references: | |||
https://packages.cisofy.com/community/#debian-ubuntu |
Latest revision as of 22:34, 6 June 2021
00 03 * * 7 sudo /home/username/lynis/lynis audit system --cronjob
00 04 * * 7 mutt -s "Sserver Lynis Report" someone@gmail.com < /var/log/lynis-report.dat
for a rpi setup:
https://ownyourbits.com/2017/12/23/security-audit-your-arm-board-with-lynis/
sudo wget -O - https://packages.cisofy.com/keys/cisofy-software-public.key | sudo apt-key add -
echo "deb https://packages.cisofy.com/community/lynis/deb/ stable main" | sudo tee /etc/apt/sources.list.d/cisofy-lynis.list
sudo apt install lynis
sudo lynis show version
after creating custom profile for raspberry pi
sudo lynis audit system --profile custom.prf
to dump the output into a text file:
sudo lynis audit system --no-colors --profile custom.prf > lynisreport.txt
email the report: mail -s 'Subject-Here' you@cyberciti.biz < input.file
references: https://packages.cisofy.com/community/#debian-ubuntu