Skip to main content

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

  1. Initialize Snapshot Create a snapshot of the current directory state and store metadata in the database:

    vgls integrity-init <directory>
    

    Alt Text

  2. Scan and Compare Scan the directory and compare results with the last snapshot:

    vgls integrity-scan <directory>
    

    Alt Text

  3. Update the Database Update the database with the current state of the directory:

    vgls integrity-update <directory>
    

Alt Text

  1. 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. Alt Text

⚙️ 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
  1. Initialization (init)

    • Scans a directory and stores metadata (file path, hash, size, permissions, etc.) in a SQLite database.
  2. Scanning and Comparison (scan)

    • Scans the directory again and compares the current state with the stored metadata.
    • Outputs new, modified, and deleted files.
  3. 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:

  1. Clone the repository:

    git clone https://github.com/ivpel/vigilant-scanner.git
    
  2. Navigate to the project directory:

    cd vigilant-scanner
    
  3. Install dependencies:

    pip install -r requirements.txt
    # or for development
    pip install -e ".[dev]"
    
  4. 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

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

vigilant_scanner-1.0.2.tar.gz (403.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

vigilant_scanner-1.0.2-py3-none-any.whl (24.8 kB view details)

Uploaded Python 3

File details

Details for the file vigilant_scanner-1.0.2.tar.gz.

File metadata

  • Download URL: vigilant_scanner-1.0.2.tar.gz
  • Upload date:
  • Size: 403.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.12

File hashes

Hashes for vigilant_scanner-1.0.2.tar.gz
Algorithm Hash digest
SHA256 7c6a27ff733654e55a75d206331550925a2b67ef37d04a9767dcf2d35f2d0bb2
MD5 2a95223ff856b5dac0f3b7b598fae0b7
BLAKE2b-256 d31c9f14be02bbc168ffe5d0abb73cfd37837915572822efc9c6d99e5ce71a56

See more details on using hashes here.

File details

Details for the file vigilant_scanner-1.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for vigilant_scanner-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 dd8473cd4b18818fbc457a8e564bc69bc9dcbd64c842228ae8e591fdfd4c8f3e
MD5 62c64906b53466f340704bf8fc3fe11a
BLAKE2b-256 66091fe8dff0386645e0b2756e3a93f279b6085433ac25a8dc31a1de0d73cb73

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page