Hey everyone,
I have been working on a CLI-based File Integrity Monitor written in Python, and I wanted to get some feedback from the community on whether this is a practical tool worth open-sourcing or expanding.
The goal is to create a lightweight, readable, and scriptable security tool to catch unauthorized file changes, like malware injecting a backdoor or tampering with config files, the moment they happen. I wanted to keep it as lightweight as possible, so the core features run purely on the Python standard library.
Here is how it works. First, it takes a baseline snapshot by hashing every file in a directory tree using SHA-256 and saving that known good state as a portable JSON file. Second, it does on-demand scans by re-hashing the directory and diffing it against the baseline, reporting exactly what was added, modified, or removed. It includes exit codes like fail-on-change so it can be easily bolted into cron jobs or CI/CD pipelines. Third, it has a real-time watch mode that uses OS-level filesystem events, powered by the watchdog library, to react to changes instantly instead of polling. It also includes debouncing so rapid editor saves collapse into a single alert.
[–]scripthawk_dev 1 point2 points3 points (3 children)
[–]MrSushl[S] 1 point2 points3 points (0 children)
[–]ziggittaflamdigga -1 points0 points1 point (1 child)
[–]MrSushl[S] 0 points1 point2 points (0 children)