How rishabhukas/logvault works
LogVault is an educational Flask simulator for detecting edits and deletions in security logs using SHA-256 fingerprints committed to a local hash chain. Its main workflow is synthetic event generation, log-and-block recording, then verification of log contents and chain links. The API also supports attacker simulations, reset, and a narrated demo; README documents dashboard capabilities, though its templates and static assets are absent from the provided tree. Relationships shown here are supported by the README or excerpts; unsampled dashboard wiring is omitted.
Main entry points: app.py Flask API · blockchain.py Hash-chain engine · database.py Security logs · ids_simulator.py IDS event simulator
Components 9
Event generation
- IDS event simulator
ids_simulator.py
Integrity processing
- Log recording
app.py - Integrity verifier
app.py - Hash-chain engine
blockchain.py
Local persistence
- Security logs
database.py - Blockchain records
database.py - Activity feed
database.py
Flask application
- Flask API
app.py
Other components
- Operator
Connections 13
- Operator → Flask API: requests
README.md - Flask API → IDS event simulator: generates events
app.py - Flask API → Log recording: records events
app.py - Log recording → Hash-chain engine: hashes and appends
app.py - Log recording → Security logs: stores logs
app.py - Hash-chain engine → Blockchain records: reads and writes
blockchain.py - Flask API → Integrity verifier: runs verification
app.py - Integrity verifier → Security logs: reads logs
app.py - Integrity verifier → Blockchain records: reads block records
app.py - Integrity verifier → Hash-chain engine: validates chain
app.py - Flask API → Activity feed: records activity
app.py - Flask API → Security logs: simulates log edits
app.py - Flask API → Blockchain records: simulates chain edits
app.py