Skip to content

Host-based file integrity monitor in C/C++ with logs, HTML reports, and colored terminal output.

License

Notifications You must be signed in to change notification settings

Voltsparx/Sentinel-C

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

3 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Sentinel-C πŸ›‘οΈ

Author: Voltsparx
Language: C/C++
Repo: https://github.com/voltsparx/Sentinel-C

Sentinel-C is a Host-Based File Integrity Monitor (HIDS).
It scans directories, detects NEW, MODIFIED, or DELETED files, logs events, and generates HTML reports for easy auditing.


⚠️ Ethical Use & Disclaimer

  • This tool is designed for ethical security monitoring of systems and directories you own or have permission to monitor.
  • Do not use it to tamper with, spy on, or attack systems you do not own.
  • The author is not responsible for misuse.

πŸ› οΈ Installation

Linux / macOS:

  1. Clone the repo:
git clone https://github.com/voltsparx/Sentinel-C.git
cd Sentinel-C
  1. Build with CMake:
mkdir build
cd build
cmake ..
cmake --build .
  1. Run from build folder:
./sentinel-c help

Optional: Copy to PATH for global CLI:

sudo cp sentinel-c /usr/local/bin/

Windows (CMD / PowerShell):

  1. Clone the repo:
git clone https://github.com/voltsparx/Sentinel-C.git
cd Sentinel-C
  1. Build:
mkdir build
cd build
cmake ..
cmake --build .
  1. Run executable:
sentinel-c.exe help

πŸ“ Project Structure

Sentinel-C/
β”œβ”€β”€ src/                # C++ source and headers
β”œβ”€β”€ CMakeLists.txt
β”œβ”€β”€ README.md
β”œβ”€β”€ .gitignore
β”œβ”€β”€ reports/            # HTML reports stored here
└── data/               # Baseline & log files stored here

Folders reports/ and data/ are automatically created if missing.
.sentinel.log is saved in data/.
HTML reports are saved in reports/.


⚑ Usage

Show help

sentinel-c help

Initialize baseline

sentinel-c init <directory>

Scan directory and compare to baseline

sentinel-c scan <directory>

Monitor continuously every N seconds

sentinel-c monitor <directory> [interval_seconds]

Example:

./sentinel-c init .
./sentinel-c scan .
./sentinel-c monitor . 10
  • init creates the baseline
  • scan compares current files to baseline
  • monitor scans repeatedly and updates logs & HTML reports

🟒 Output

  • Colored terminal messages:

    • Green β†’ NEW files
    • Yellow β†’ MODIFIED files
    • Red β†’ DELETED files
  • Logs: data/.sentinel.log

  • HTML report: reports/sentinel_report_.html


⭐ Contribution

  • Feel free to fork and add features
  • Please respect ethical guidelines

πŸ“„ License

This project is released under the MIT License.

About

Host-based file integrity monitor in C/C++ with logs, HTML reports, and colored terminal output.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published