Skip to content

twagentneo v0.1.0

Choose a tag to compare

@github-actions github-actions released this 22 Oct 07:22
· 22 commits to main since this release

twagentneo v0.1.0 - Next-Generation AI Security & Monitoring Agent

We are proud to announce the first official release of twagentneo (v0.1.0)!
twagentneo is a lightweight, high-performance, cross-platform security and monitoring agent designed specifically for TWSNMP NEO (as well as FC/FK), running natively on Linux, macOS, and Windows.


🚀 Key Highlights & Features (English)

1. Pure Go Single Binary (CGO_ENABLED=0)

  • Zero External Dependencies: Distributed as a 100% statically linked single executable without requiring external C runtime libraries.
  • Cross-Platform Support: Ready to deploy on Linux (amd64/arm64), macOS (Apple Silicon/Intel), and Windows (x64/ARM64).

2. Two-Tier Hybrid Security Auditing (Sigma × tensai)

  • Tier 1 (Sub-millisecond Ultra-Fast Filtering): Curated Sigma security rules are directly embedded in the binary via embed.FS. The agent automatically compiles only the rules relevant to the host OS on boot, filtering thousands of log lines per second with sub-millisecond latency.
  • Tier 2 (Intelligent Local AI Triage): Powered by the Go-native LLM engine tensai running locally on-device. Evaluates suspicious candidate events with context sliding windows (up to 20 lines), suppresses false-positive noise, calculates risk scores (0–100), maps incidents to MITRE ATT&CK, and generates actionable remediation advisories.

3. Comprehensive Telemetry & Threat Collectors

  • Host Resource Monitoring: Native retrieval of CPU, Memory, Disk, and Load Average metrics with immediate threshold alerting.
  • Network State & Destination Tracking: Monitors interface states, snoops local ARP caches for rogue devices, and tracks active outbound TCP connection destinations.
  • File Integrity Monitoring (FIM): Recursive path tracking via fsnotify and OS-native kernel notification APIs. Computes SHA-256 diffs upon file modifications.
  • OS Security Log Tailer: Automatically follows Linux (/var/log/{auth.log,secure,syslog}), macOS (/var/log/{install.log,system.log}), Windows Security Event Logs, and custom application log paths.

4. Multi-Protocol Exporters

  • MQTT: Real-time event streaming partitioned by topic ({prefix}/{agent_id}/{resource,network,arp,tcp,fim,alert,heartbeat}).
  • Syslog: Standard RFC 5424 / RFC 3164 structured syslog forwarding via UDP/TCP.
  • SNMP TRAP: Enterprise MIB support (TWAGENT-NEO-MIB.txt, OID .1.3.6.1.4.1.17862.3) across SNMPv2c and SNMPv3 (SHA256 Auth / AES128 Priv).

5. Built-in Self-Updating CLI

  • Run twagentneo update to check and upgrade directly from GitHub Releases.
  • Smart detection for Homebrew installations and container environments.

🇯🇵 主な機能ハイライト (日本語)

1. Pure Go 静的シングルバイナリ (CGO_ENABLED=0)

  • 外部依存ゼロ: C ライブラリへの依存が一切なく、単一の実行ファイルを配置するだけで即座に稼働します。
  • マルチプラットフォーム対応: Linux (amd64/arm64)、macOS (Apple Silicon/Intel)、Windows (x64/ARM64) をフルサポート。

2. 2段階ハイブリッド脅威監査 (Sigma × tensai)

  • 第1層 (ミリ秒単位の超高速フィルタ): 厳選された Sigma セキュリティルールをバイナリ内蔵(embed.FS)。起動時に OS に適したルールのみをメモリ上にインデックス化し、大量のログから疑わしいイベントのみをミリ秒単位で高速抽出。
  • 第2層 (ローカル LLM インテリジェントトリアージ): 端末ローカルで動作する組み込み LLM tensai が、検知前後のログ文脈(最大20行)を踏まえて自律評価。誤検知(False Positive)の排除、脅威度スコアリング(0〜100)、MITRE ATT&CK へのマッピング、および日本語での推奨初動対処手順(アドバイザリ)を付与。

3. 多彩なテレメトリ & 脅威収集機能

  • ホストリソース監視: CPU、メモリ、ディスク使用率、ロードアベレージを収集し、しきい値超過を即座にアラート化。
  • ネットワーク & 通信先追跡: インターフェース状態、ARP テーブル監視(IPなりすまし・未登録機器検知)、確立中 TCP コネクションの宛先追跡(C2通信検知)。
  • ファイル整合性監視 (FIM): fsnotify による重要ディレクトリの再帰監視。変更時の SHA-256 ハッシュ値自動算出による改ざん検知。
  • OS セキュリティログ追跡: Linux (auth.log, secure, syslog)、macOS (install.log, system.log)、Windows Event Log、および独自ログパスを自動監視。

4. マルチプロトコル連携

  • MQTT: TWSNMP NEO のイベントパイプラインに最適化されたトピック構成でリアルタイム配信。
  • Syslog: 既存 SIEM や TWSNMP NEO へ RFC 5424 / RFC 3164 形式で転送。
  • SNMP TRAP: 専用エンタープライズ MIB(TWAGENT-NEO-MIB.txt / OID .1.3.6.1.4.1.17862.3)に基づき、SNMPv2c および SNMPv3 (AuthPriv) でトラップ送信。

5. CLI による安全な自己アップデート

  • twagentneo update コマンドで最新リリースへの自動更新が可能。
  • Homebrew 環境やコンテナ環境を自動識別し、最適な更新方法を案内。

📦 Quick Start / クイックスタート

macOS (Homebrew)

brew install twsnmp/tap/twagentneo

Linux / macOS (One-Liner Script)

curl -fsSL https://raw.githubusercontent.com/twsnmp/twagentneo/main/install/install.sh | sh

Run Agent / エージェントの起動

twagentneo -config config.yaml

📖 Documentation / 公式ドキュメント (GitHub Pages)