ASIMP :: Security Platform
ANSIBLE SYSTEM INTEGRITY MANAGEMENT PLATFORM // baselines & hardening
MODE:


About ASIMP

ASIMP is an automated framework built with Ansible to assess host compliance, configure OS parameters, secure SSH, and verify integrity.

Output of Lynis Auditing Report

Ansible >= 9.0.0 OpenSCAP: CIS L2 Lynis: Enabled debsums: Enabled

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-hardening role 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 debsums in 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, and make in 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