enixera-sec-bot-mcp
# Enixera-Sec-Bot
> **Standalone Defensive AI Server Security Agent** — 12,000+ MITRE ATT&CK Detection Rules · Postman-Style Encrypted SSH Env Vault · Real-Time SOC Console · REA Artifact Triage · Bring Your Own DB (BYODB)
[](LICENSE)
[](https://www.python.org/)
[](./docs/index.html)
**Enixera-Sec-Bot** is a standalone, read-only-by-default AI server security CLI, Real-Time SOC Operations Console, and Stdio MCP Server built for engineers and AI agents. Connect your **own database** (SQLite out of the box, PostgreSQL/Supabase, REST/NoSQL HTTP API, or Alert Webhooks) with zero vendor lock-in.
## Highlights
- **100% Standalone & Bring Your Own DB (BYODB):** Works immediately with local SQLite (`ENIXERA_DB_BACKEND=sqlite`), or connect PostgreSQL/Supabase (`migrations/001_init_postgres.sql`), any HTTP/NoSQL REST store (`ENIXERA_DB_HTTP_URL`), or Slack/Discord/Telegram alert webhooks (`ENIXERA_ALERT_WEBHOOK_URL`).
- **MITRE ATT&CK Detection Rules Engine:** Ingest open-source Sigma, Elastic, Splunk, Anvilogic Forge, Sublime, and Panther rule catalogs into a sub-millisecond SQLite FTS5 index with 6 server-defense profiles.
- **Postman-Style Encrypted Server / SSH / Env Vault:** Manage named servers (Host, SSH Port, User, SSH Key or Password encrypted at rest with Fernet AES-128), custom `{{VARIABLE}}` rows, and standard Postman v2 Environment JSON import/export (redacted by default).
- **Read-Only Host & Remote Collectors:** Inspect local listening sockets, firewall status, and config hygiene, or deploy zero-dependency Bash (`collectors/collect_linux.sh`) & PowerShell (`collectors/collect_windows.ps1`) collectors to remote VPS/Docker/Nginx/Windows servers.
- **Real-Time SOC Console & Log Watcher:** Live 2-second `psutil` CPU/RAM/Disk/Network/TCP sparklines + streaming MITRE-mapped log alerts over Server-Sent Events (`/api/stream`).
- **REA (`morluto/rea`) Static Artifact Triage:** Inspect suspicious binaries, JavaScript/Electron apps, archives, and .NET assemblies safely without executing untrusted payloads.
- **Agent-Native MCP Server:** 10-tool Stdio JSON-RPC 2.0 MCP Server (`enixera-sec-bot-mcp`) + portable `SKILL.md`.
## Quickstart
```bash
# 1. Install standalone package (with SSH, Fernet encryption & live telemetry extras)
pip install -e ".[ssh]"
# 2. Copy environment template & choose your database backend
cp .env.example .env
# 3. Verify CLI & run a safe read-only host audit
enixera-sec-bot --version
enixera-sec-bot audit host
# 4. Launch the Real-Time SOC Console (http://127.0.0.1:4788)
enixera-sec-bot dashboard --port 4788
```
## Documentation Website (`github.io`)
The interactive Dioxus-style documentation portal lives in [`docs/`](./docs/index.html) and ships with `.github/workflows/pages.yml` ready for **GitHub Pages**:
1. Push this repository to GitHub (`main` branch).
2. Open **Settings → Pages → Build and deployment → Source: GitHub Actions**.
3. GitHub automatically publishes your documentation site at `https://<your-org>.github.io/Enixera-Sec-Bot/`.
Preview docs locally:
```bash
python -m http.server 4173 --directory docs
# Open http://127.0.0.1:4173
```
## Responsible Defensive Use
Enixera-Sec-Bot is strictly for lawful defensive security operations, auditing, and hardening of servers and artifacts you own or are explicitly authorized to inspect. Built-in static secret checks are heuristic-only and do not replace dedicated secret scanners (`gitleaks`, `trufflehog`).
TDQS
Scored across 10 tools
Most tools target clearly distinct operations: catalog stats, FTS search, coverage matrix, host audit, log hunting, binary triage, environment listing, SSH connectivity, and DB health. The only mild overlaps are secbot_audit_host vs secbot_analyze_snapshot (live host vs offline JSON snapshot, clarified by descriptions) and secbot_env_list vs secbot_ssh_test (both environment-scoped, but one lists and one tests connectivity). An agent should be able to select correctly.
All names share the secbot_ prefix and snake_case, so the family is recognizable. However, the verb_noun pattern is inconsistent: search_rules, audit_host, scan_logs, ssh_test put the verb first, while catalog_stats, env_list, and db_status are noun-first, which is a visible but minor deviation.
Ten tools is a well-scoped size for a security analysis suite covering cataloging, posture auditing, triage, and infrastructure checks. Each tool maps to a distinct workflow step with no filler entries.
Coverage is broad on the analysis side, but lifecycle gaps exist: the rules catalog supports only stats/search/coverage with no way to fetch a full rule by ID or add/import rules, and the EnvVault supports listing and SSH testing but no create/update/delete of environments. db_status is read-only with no repair or migration operations, leaving several dead ends.