Skip to main content

Anteumbra — Web Perimeter Threat Intelligence. Passive detection, semi-active response, attacker profiling.

Project description

Anteumbra

Anteumbra

Version Python Platform License Tests

Lightweight Web Perimeter Security — Passive Detection · Semi-Active Response · File-Level Forensics

"Anteumbra is an annular eclipse observatory at the web perimeter. Every ray that tries to pierce the boundary is recorded, measured, and traced back to its source. Disguised threats reveal themselves in their own blazing intensity."

中文文档 | PyPI | Issues


Anteumbra (formerly Trident) is a production-grade web perimeter threat intelligence system for Linux and Windows. It monitors file system changes in real time, detects WebShells using an embedded YARA rule engine, profiles attacker behavior, and provides a web-based management dashboard — all without inline blocking. Think of it as a security observatory at the boundary layer.

Key capabilities:

  • Real-time file monitoring — Linux Inotify / Windows ReadDirectoryChangesW adaptive switching
  • Manual scanner — Active directory scanning with SSE real-time progress, scan history, printable reports
  • YARA rule engine — 18+ rule files covering PHP, ASP, JSP, ASPX, Godzilla, Behinder; hot-reload supported
  • Threat profiling — Attacker behavior clustering via UA/time-bucket, IP pool merging, decay engine
  • File similarity clustering — ssdeep/TLSH/SimHash hash engine with 0.80 threshold grouping
  • IP block ledger — Audit trail for all block/unblock operations, inline note editing, JSON/CSV export
  • Bidirectional linking — Profile ↔ Records ↔ Quarantine cross-navigation, attack chain timeline
  • Log heuristic engine — Behavior-level detection: brute force, scanner, error storm, tool signature, suspicious path
  • Memory shell detection — Java/ASP.NET reference tools + access log tracer for WebShell origin correlation
  • Batch operations — Cross-page multi-select for Records/Quarantine with batch quarantine/restore/delete
  • SIEM export — CEF/JSON Lines/Syslog formats with file rotation and real-time UDP streaming
  • Plugin system — Config-driven plugin manager with lifecycle, event dispatch, 4 WAF adapters
  • Dual storage — JSON + SQLite (WAL mode, FK constraints, indexed) with configurable backend switching
  • WAL transaction logs — Async batch writes with auto rotation, minimal data loss under file locking
  • Smart alerting — Exponential backoff with adaptive thresholds to reduce false positives
  • Web dashboard — Dark theme terminal-style interface, SSE real-time log stream, HTMX-driven, SPA navigation
  • Enterprise security — CSRF protection, IP whitelist, Scrypt password hashing, static JS auth guard
  • Production deployment — PyPI install, Docker multi-stage build, Gunicorn multi-worker, systemd service
  • Comprehensive test suite — ~340 tests: 88 unit + 94 E2E backend + 34 E2E UI (Playwright) + 1 WAF proxy

Quick Start

pip install anteumbra
anteumbra install ./anteumbra-instance
cd ./anteumbra-instance
anteumbra config wizard
anteumbra config validate
anteumbra run

Then open http://127.0.0.1:8080/admin. Default username is admin; password is printed by anteumbra install or regenerated by anteumbra config wizard when you enter a new password.

Install anteumbra[yara] to enable compiled YARA rule validation and scanning, or anteumbra[full] for YARA plus optional similarity hash engines.

Source Install

Use source install only for development, testing, or local code changes. It still creates runtime instances through the same anteumbra install command:

git clone https://github.com/SxyLao1/Anteumbra.git
cd Anteumbra
pip install -e ".[dev]"
anteumbra install ./dev-instance --force
cd ./dev-instance
anteumbra config wizard
anteumbra run
python -m pytest tests/core/ -v

Windows

git clone https://github.com/SxyLao1/Anteumbra.git
cd Anteumbra
.\run_tests.bat

Docker

docker build -t anteumbra .
docker run -d -p 8080:8080 -v $(pwd)/data:/app/data -v $(pwd)/config.toml:/app/config.toml anteumbra

Docker Compose:

services:
  anteumbra:
    build: .
    ports: ["8080:8080"]
    volumes:
      - ./data:/app/data
      - ./config.toml:/app/config.toml
    restart: unless-stopped

The Docker image includes all three hash engines (ssdeep + py-tlsh + yara-python) compiled and active for Linux.

Architecture

src/anteumbra/
├── domain/               # Domain layer: entities + ports (Plugin, Repository, Detector, Notifier, EventSource)
├── application/          # Application layer: PluginManager (lifecycle, event dispatch)
├── infrastructure/       # Infrastructure: persistence (JSON/SQLite), detection, monitoring, config, utils
└── interfaces/           # Interfaces: Flask blueprints, templates, static assets

Architecture follows Domain-Driven Design with four separated layers. Event-driven architecture (EDA) covers 85%+ of the data flow via implicit event bus (PluginManager with emit/dispatch semantics). SQLite storage layer features foreign key constraints (ON DELETE SET NULL) and 13 indexed columns.

Ecosystem & Related Projects

Anteumbra is designed to complement these excellent open-source tools:

Memory Shell Detection:

WAF / Log Analysis:

Hashing & Similarity:

Tools

The tools/ directory includes:

  • WAF Proxy (tools/waf_proxy/) — Lightweight HTTP reverse proxy with built-in WAF rules (SQLi, XSS, traversal, webshell upload, command injection). Generates attack events in JSON Lines format for the threat profiling engine. Useful for testing and development.
python tools/waf_proxy/waf_proxy.py            # :8081 → :80
python tools/waf_proxy/waf_proxy.py 8081 8080  # custom ports

Migration from Trident

Anteumbra is the successor to Trident (v1.9.5). If you were using Trident:

# 1. Uninstall Trident
cd Trident
.\uninstall.bat      # Windows
# bash uninstall.sh  # Linux

# 2. Install Anteumbra
pip install anteumbra
anteumbra install /path/to/Anteumbra

# 3. Copy your config and data
cp /path/to/Trident/config.toml /path/to/Anteumbra/
cp -r /path/to/Trident/data/ /path/to/Anteumbra/

Your config.toml and data/ directory are compatible.

License

MIT License. Free for production, academic research, and personal use.

Third-party tools bundled in tools/ retain their original licenses.


Anteumbra v1.0.22 — MIT License

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

anteumbra-1.0.22.tar.gz (395.0 kB view details)

Uploaded Source

Built Distribution

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

anteumbra-1.0.22-py3-none-any.whl (482.4 kB view details)

Uploaded Python 3

File details

Details for the file anteumbra-1.0.22.tar.gz.

File metadata

  • Download URL: anteumbra-1.0.22.tar.gz
  • Upload date:
  • Size: 395.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for anteumbra-1.0.22.tar.gz
Algorithm Hash digest
SHA256 e8faf761aaefd82333e6348a3125bfaf658415d72b93322038c397b8a9c8770f
MD5 3df79198badfe1490110c7c41e35db93
BLAKE2b-256 e404d8540f0102c500119aeb31b6b2409c3d0c2faa8f748a3d5e30f316de7170

See more details on using hashes here.

Provenance

The following attestation bundles were made for anteumbra-1.0.22.tar.gz:

Publisher: publish.yml on SxyLao1/Anteumbra

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file anteumbra-1.0.22-py3-none-any.whl.

File metadata

  • Download URL: anteumbra-1.0.22-py3-none-any.whl
  • Upload date:
  • Size: 482.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for anteumbra-1.0.22-py3-none-any.whl
Algorithm Hash digest
SHA256 a6abd635ac80370cbfc0f45a05191f96e1571f7a1dd9b17e9945ecb0911bcecf
MD5 32b7d5bb5056e6b677d1824f44bc5569
BLAKE2b-256 a8b95b0ae225cb7d154f97832d64247c949aa2fc7b4e7bb3e2c8faec549a46af

See more details on using hashes here.

Provenance

The following attestation bundles were made for anteumbra-1.0.22-py3-none-any.whl:

Publisher: publish.yml on SxyLao1/Anteumbra

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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