Lynis: Difference between revisions
From James's Wiki
No edit summary |
No edit summary |
||
Line 16: | Line 16: | ||
after creating custom profile for raspberry pi | after creating custom profile for raspberry pi | ||
sudo lynis audit system --profile custom.prf | 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 | |||
references: | |||
https://packages.cisofy.com/community/#debian-ubuntu | https://packages.cisofy.com/community/#debian-ubuntu |
Revision as of 16:06, 18 February 2018
00 03 * * 7 sudo /home/ractive/lynis/lynis audit system --cronjob
00 04 * * 7 mutt -s "Sserver Lynis Report" ractive74@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
references:
https://packages.cisofy.com/community/#debian-ubuntu