Skip to content
Eya Ammari, back to top
Back to the portfolio

Internship project, RAM Security

CIS Auditor

A web app and a command-line tool that audit Windows and Linux machines against rules based on the CIS Benchmarks, locally or remotely, then score, compare and report every audit.

The problem

Checking a machine’s security settings by hand against the CIS Benchmarks means going through dozens of settings one by one, on every machine. CIS Auditor runs those checks automatically, on the machine itself or remotely, and turns the results into a score, a comparison over time and a report a manager can read.

What it does

  • Flask web interface and a Click command-line tool that share the same audit engine and storage.
  • Three roles: an administrator manages accounts, a technician runs audits, the CIO reads reports and history.
  • Local checks through system commands, files, the Windows registry and running processes; remote checks over SSH, WinRM or an HTTP API.
  • Each check compares the real value with the expected one and gives pass or fail, a severity and a recommendation.
  • A global score and a score per category, side-by-side comparison of two audits, and HTML or PDF reports.
  • Audit history in SQLite, or PostgreSQL when a database URL is set.
  • An assistant that answers questions from the imported CIS Benchmark PDFs, with keyword and semantic search, running locally with Ollama.

Key decisions

  1. 01

    One engine, two ways in

    The Flask web interface and the Click command-line tool call the same audit engine and the same storage, so a rule is written once and runs from both.

  2. 02

    Seven collectors, one rule set

    Checks read system commands, files, the Windows registry and running processes locally, or go over SSH, WinRM or HTTP, so the same 165 rules cover the machine itself and remote servers.

  3. 03

    Results a manager can read

    Each failed check carries a severity and a recommendation, and audits roll up into a global score, a score per category, a side-by-side comparison and an HTML or PDF report.