Skip to content

Decision Engine & MCP Analyst

The Decision Engine combines automated threshold policy rules with an MCP-powered AI Security Analyst running through opencode.


Two-Threshold Policy & Advisory Safeguards

Section titled “Two-Threshold Policy & Advisory Safeguards”

SSH authentication events evaluated by the ML engine produce a threat probability score $S \in [0.0, 1.0]$:

Threat Score S
0.0 -------------- T1 (0.55) ------------ T2 (0.70) ------------ 1.0
ALLOW ALERT RECOMMEND BLOCK
(Normal Traffic) (Telegram Alert) (Human Confirmation)

The lureguard_mcp server exposes dedicated tools to opencode rather than relying on raw shell commands:

Threat Intelligence Enrichment (get_ip_context)

Section titled “Threat Intelligence Enrichment (get_ip_context)”

When investigating an IP address, the analyst enriches the target using external APIs:

  • VirusTotal API: Checks domain reputation, malicious detection count, and passive DNS records.
  • AbuseIPDB API: Fetches IP abuse confidence scores, country origin, and reported attack categories.

Enroll remote Linux servers directly over SSH. The tool installs the Wazuh agent, configures ossec.conf, connects to the manager IP, and verifies system posture.

The analyst generates comprehensive incident reports:

  • Format: Markdown & publication-ready PDF documents generated via WeasyPrint.
  • Visualizations: Auto-generated PNG attack timeline charts.
  • Storage: Saved locally to the reports/ folder (never modified during updates).
  • Delivery: Optional automatic delivery to Telegram channels.

opencode supports convenient slash commands mapped directly to security workflows:

Slash Command Skill File Workflow Description
/triage skills/triage.md Triage alert clusters from the last 2 to 24 hours
/investigate skills/investigate.md Conduct a deep investigation on a host or IP
/onboard skills/onboard-host.md Enroll and protect a new Linux VM over SSH
/posture skills/posture.md Fetch or trigger a 6-pillar posture security scan
/report skills/report.md Compile markdown/PDF incident reports with charts
/update skills/update.md Check for and safely apply system updates