GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - Logihertz-Systems-OPC-Pvt-Ltd/lh-log-sentry: High-throughput SIEM log anomaly and intrusion detection engine parsing Linux auditd, auth.log, and syslog streams for SSH brute-force, privilege escalation, and lateral movement indicators.

BranchesTags
Open more actions menu

Latest commit

 

History

5 Commits
5 Commits

Folders and files

NameName
Last commit message
Last commit date
.github
.github
 
 
docs
docs
 
 
packaging
packaging
 
 
src/lh_log_sentry
src/lh_log_sentry
 
 
tests
tests
 
 
.gitignore
.gitignore
 
 
CHANGELOG.md
CHANGELOG.md
 
 
CODE_OF_CONDUCT.md
CODE_OF_CONDUCT.md
 
 
CONTRIBUTING.md
CONTRIBUTING.md
 
 
LICENSE
LICENSE
 
 
NOTICE
NOTICE
 
 
README.md
README.md
 
 
SECURITY.md
SECURITY.md
 
 
SPEC.md
SPEC.md
 
 
lh-log-sentry.code-workspace
lh-log-sentry.code-workspace
 
 
pyproject.toml
pyproject.toml
 
 
uv.lock
uv.lock
 
 

Repository files navigation

lh-log-sentry

CI Python 3.11+ Code style: ruff Security: bandit License: Apache-2.0

An enterprise siem telemetry & intrusion log analyzer developed by Logihertz Systems (OPC) Private Limited.

Parses Linux auth.log, syslog, Nginx/Apache access logs, and JSON audit streams to detect SSH brute-force campaigns, sudo privilege escalations, log tampering/truncation gaps, and suspicious command execution.


Key Features

  • Velocity & Threshold Analysis: Employs sliding-window rate tracking to identify SSH brute-force login attacks and web credential stuffing bursts.
  • Privilege Escalation Detection: Audits sudo command logs for unauthorized sudoer commands, root shell escapes, and failed su attempts.
  • Off-Hours & Impossible Travel Anomaly: Flags suspicious logins occurring outside normal operational windows or from geographically distant IPs.
  • Web Attack Pattern Matching: Detects directory traversal (../), SQL injection, and XSS patterns in web access logs.
  • Multi-Format Reporting: Outputs rich terminal tables, machine-readable JSON, and OASIS SARIF v2.1.0.

Core Detection Rules

Rule ID Severity Description
LH-SSH-001 HIGH Rapid SSH authentication failure burst (brute-force velocity anomaly)
LH-AUTH-002 CRITICAL Unauthorized privilege escalation attempt (sudoers violation, su failure)
LH-AUTH-003 HIGH Off-hours root login or impossible travel velocity anomaly
LH-WEB-001 HIGH Directory and path traversal attack pattern in web server logs
LH-WEB-002 HIGH Web injection attack detected (SQLi, XSS, or OS command injection)
LH-WEB-003 HIGH Web credential stuffing velocity burst (rapid 401/403 response spike)
LH-LOG-001 MEDIUM Missing or truncated audit log timestamp entries
LH-LOG-002 HIGH High-frequency 404 scanning probe targeting sensitive administrative paths
LH-LOG-003 MEDIUM User-Agent spoofing or known offensive security scanner fingerprint
LH-LOG-004 LOW Unrecognized log record structure or unparsed syslog facility

Installation

Using uv (Recommended)

# Clone the repository
git clone https://github.com/Logihertz-Systems-OPC-Pvt-Ltd/lh-log-sentry.git
cd lh-log-sentry

# Create virtual environment and install in editable mode with development tools
uv venv
source .venv/bin/activate
uv pip install -e ".[dev]"

Using standard pip

pip install -e .

CLI Usage

The primary executable entrypoint is lh-sentry (also accessible via lh-sentry).

# Analyze Linux auth.log for SSH brute-force attacks
lh-sentry analyze /var/log/auth.log

# Analyze Nginx web access logs
lh-sentry analyze /var/log/nginx/access.log --format json

# Simulate brute-force telemetry for testing
lh-sentry simulate --scenario brute-force

# Export findings to OASIS SARIF v2.1.0
lh-sentry analyze /var/log/auth.log --format sarif --output sentry.sarif

Exit Codes

Exit Code Meaning
0 All audits and security checks passed; no policy violations detected.
1 One or more security findings, policy violations, or compliance failures detected.
2 Execution error (invalid arguments, missing input files, malformed syntax).

Documentation

Comprehensive enterprise documentation is available in the docs/ directory and repository root:

  • Architecture & Design: Zero-daemon clean-room architecture, module responsibilities, domain models, and 0–100 risk score calculation formula.
  • Security Rules Reference: Exhaustive catalog of all 10 detection rules with threat models, severities, and remediation guides.
  • CLI Usage Guide: Complete command-line manual, flags, exit codes, CI/CD SARIF upload workflows, and JSON pipelines.
  • Test & Verification Declaration: Audited test inventory, AST security verification, SAST audit results, and per-module code coverage metrics.
  • Changelog: Semantic release history and detailed changelog entries.
  • Contributing Guidelines: Developer setup, coding standards, line length, typing, and PR requirements.
  • Security Policy: Vulnerability disclosure procedure, reporting email, and 48-hour response SLA.
  • Legal Notice & Attributions: Apache-2.0 Section 4 legal notice, trademark reservations, and third-party software attributions.

Development & Testing

Run all project linters, security audits, and test suites:

# Run code style and lint checks
uv run ruff check src/ tests/

# Run static application security testing (SAST)
uv run bandit -r src/

# Run unit and integration tests with coverage
uv run pytest

License

This project is licensed under the Apache-2.0 License - see the LICENSE and NOTICE files for details.

Developed with precision by Logihertz Systems (OPC) Private Limited (logihertzsystems).
Created, architected, and engineered by Sameer Tawade (Creator, Founder, Director & Whole and Sole Developer — [email protected]).

About

High-throughput SIEM log anomaly and intrusion detection engine parsing Linux auditd, auth.log, and syslog streams for SSH brute-force, privilege escalation, and lateral movement indicators.

www.logihertz.com

Topics

apache-2-0auditdcybersecuritydevsecopsdfirintrusion-detectionlog-analysislogihertzpythonsarifsiemstruct-osthreat-huntingzero-dependency

Resources

Readme
Apache-2.0 license

Code of conduct

Code of conduct

Contributing

Contributing

Security policy

Security policy
Activity
Custom properties

Stars

0 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.