Output of Lynis Auditing Report
This page provides an example output of the Lynis security auditing tool integrated into the ASIMP workflow.
📈 Lynis Hardening Index Delta
ASIMP automates Lynis audits during both the baseline evaluation (before hardening) and validation checks (after hardening).
- Before Hardening Score: 62 / 100
- After Hardening Score: 88 / 100
- Target Threshold: 85+ (Enterprise Standard)
📋 Example Lynis Console Scan Output
When ASIMP invokes Lynis, the console log captures category-by-category checks:
[+] Boot and services
- Service Manager [ Systemd ]
- Checking enabled services [ OK ]
- Checking startup files (permissions) [ OK ]
[+] Kernel
- Check active kernel modules [ OK ]
- sysctl: net.ipv4.conf.all.rp_filter [ OK ]
- sysctl: net.ipv4.tcp_syncookies [ OK ]
- sysctl: net.ipv4.conf.all.accept_redirects [ Hardened ]
[+] Users, Groups and Authentication
- Administrator accounts [ OK ]
- Unique UIDs [ OK ]
- Password hashing algorithm [ SHA512 ]
- Password strength / rules [ Hardened ]
[+] Shells
- Checking shell session timeout [ Hardened ]
[+] SSH Support
- SSH Daemon found [ Yes ]
- SSH Configuration file [ /etc/ssh/sshd_config ]
- SSH Port [ 22 ]
- SSH PermitRootLogin [ No ]
- SSH Protocol version [ 2 ]
⚠️ Suggestions & Warnings (Expected Privileged Output / Simulated Fallback)
In a fully privileged production run, ASIMP parses Lynis suggestions from /var/log/lynis-report.dat and applies targeted remediations. Under the unprivileged sandbox environment, these resolutions are simulated as follows:
1. SSH Server Security (Expected Privileged Output)
- Lynis Suggestion:
Disable SSH root login and restrict password logins. - ASIMP Mitigation: Simulated fallback (applied via
ssh-hardeningrole in production, disabling direct root authentication).
2. File Integrity Checking (Expected Privileged Output)
- Lynis Suggestion:
Install a file integrity checker to detect modifications to system binaries. - ASIMP Mitigation: Simulated fallback (executed system-wide package verification with
debsumsin production).
3. Compiler Restriction (Expected Privileged Output)
- Lynis Suggestion:
Restrict compilers like gcc to root-only to prevent on-box privilege escalation exploits. - ASIMP Mitigation: Simulated fallback (modified file permissions on
gcc,as, andmakein production).
📂 Report Files
The detailed report and findings database are saved to:
- Scan Report File:
/var/log/lynis.log - Findings Database:
/var/log/lynis-report.dat