A CLI tool for monitoring file integrity, detecting changes, analyzing logs and identifying potential security threats.
Project description
VGLS/Vigilant Scanner
vgls is a Python-based CLI tool for monitoring file integrity, detecting changes, analyzing logs and identifying potential security threats.
🚀 Features
- System Integrity Monitoring: Detect changes in file content, metadata, and structure. Monitor directories for unauthorized or suspicious changes (permissions, owner, etc).
- Log Analysis (In Progress): Analyze logs for security threats and anomalies.
🛠 Installation
pip install vigilant-scanner
📋 Usage
-
Initialize Snapshot Create a snapshot of the current directory state and store metadata in the database:
vgls integrity-init <directory>
-
Scan and Compare Scan the directory and compare results with the last snapshot:
vgls integrity-scan <directory>
-
Update the Database Update the database with the current state of the directory:
vgls update <directory>
- Log analysis
Analyse all logs (all files with .log extension) in provided directory on matching with malicious patterns.
vgls log-scan <directory>
Work is still in progress. Mostly working on malicious signature collection that will be used here.
⚙️ How It Works
# Create database with the current state of a target directory
vgls integrity-init /var/www
# Perform a scan to detect changes
vgls integrity-scan /var/www
# Update the database after legitimate changes are made (deploy was conducted etc.)
vgls integrity-update /var/www
-
Initialization (
init)- Scans a directory and stores metadata (file path, hash, size, permissions, etc.) in a SQLite database.
-
Scanning and Comparison (
scan)- Scans the directory again and compares the current state with the stored metadata.
- Outputs new, modified, and deleted files.
-
Updating the Database (
update)- Updates the database to reflect the latest directory state.
- Inserts new files, updates modified files, and removes deleted files.
📋 Requirements
- Python 3.10+
🛠 Development
To contribute or run the tool locally:
-
Clone the repository:
git clone https://github.com/ivpel/vigilant-scanner.git
-
Navigate to the project directory:
cd vigilant-scanner
-
Install dependencies:
pip install -r requirements.txt
-
Run tests:
pytest
📜 License
This project is licensed under the GNU General Public License v3 or later (GPLv3+). See the LICENSE file for details.
💬 Support
If you encounter any issues, feel free to open a ticket on the GitHub Bug Tracker.
🔗 Links
- Homepage: Vigilant Scanner on GitHub
- Bug Tracker: Report Issues
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file vigilant_scanner-1.0.1.tar.gz.
File metadata
- Download URL: vigilant_scanner-1.0.1.tar.gz
- Upload date:
- Size: 403.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d4072a9b0aebfdcac3561e9891734dc369debe2d32e690255913de50c93ca018
|
|
| MD5 |
84b715fd5ae9675296c06089ad4dcc10
|
|
| BLAKE2b-256 |
c35d285bd99970c4d117491e2b06b9e8f9bdbbca5514280097e6aee5f73c5c3b
|
File details
Details for the file vigilant_scanner-1.0.1-py3-none-any.whl.
File metadata
- Download URL: vigilant_scanner-1.0.1-py3-none-any.whl
- Upload date:
- Size: 24.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d2f007c821581b93b1d044eb7fbf8c174adad865d519075fcb31e5015a7a86de
|
|
| MD5 |
78945bfbb9b4fff1bcc04fc8c1ed39fc
|
|
| BLAKE2b-256 |
0a3196ea251c4e46fd4c8354f9fe7a3d7e6b4ad293f1f02f943dbe264e24d3e1
|