Repository navigation
Releases
twagentneo v0.3.0 - Security Configuration Assessment (SCA) & Hardened Telemetry Release
twagentneo v0.3.0 - Security Configuration Assessment (SCA) & Hardened Telemetry Release
We are excited to announce the release of twagentneo v0.3.0!
This release introduces a built-in Security Configuration Assessment (SCA) engine aligned with CIS Benchmarks, event-driven real-time auditing via FIM triggers, smart disk deduplication/exclusion, and critical dependency security updates.
🚀 Key Highlights & New Features (English)
1. Security Configuration Assessment (SCA) Engine
- CIS Benchmark Aligned Auditing: Pure Go auditing engine (
collector/sca) assessing local file permissions, leftover files, exposed secrets, and OS baselines without external dependencies.- Insecure File Permissions (CIS-3.14): Detects world-writable files (
0002), loose permissions on private keys (id_rsa,*.pem,*.key) or environment files (.env), and unauthorized access to/etc/shadow. - Exposed Plaintext Secrets (CIS-3.12): Scans for AWS access keys, Slack webhooks, private keys, and database passwords (evidence is automatically masked).
- Leftover Backup & Temporary Files (CIS-4.7): Discovers forgotten sensitive files (
.bak,.old,.temp,.tmp,*~). - OS / Service Baseline Hardening (CIS-4.1, CIS-4.8): Validates SSH daemon configuration (
sshd_config) and Linux kernel parameters (sysctl.conf).
- Insecure File Permissions (CIS-3.14): Detects world-writable files (
- Hybrid Trigger Architecture:
- Startup Baseline Scan (
scan_on_startup: true): Establishes initial security posture across target directories at boot. - FIM Event-Driven Real-Time Audit (
scan_on_fim_events: true): Instantly performs a pinpoint audit on individual files uponcreate,write, orchmodevents detected by FIM, eliminating scheduled scan lag with near-zero resource overhead.
- Startup Baseline Scan (
- Local AI Triage (
tensai) Integration: High-risk configuration flaws are evaluated on-device bytensaito assess real-world exposure and generate actionable remediation commands.
2. File Integrity Monitoring (FIM) Noise Reduction
- Exclude Pattern Filters (
excludes): Configure glob or regex exclusion rules (defaults:["*.tmp", "*~"]) to suppress noise from editor backup and transient files. - Normalized UTC Timestamps: FIM event timestamps are strictly formatted in UTC across all platforms.
3. Smart Disk Exclusion & Deduplication
- False-Positive Prevention: Automatically excludes pseudo/virtual filesystems (
proc,sysfs,cgroup,devtmpfs,snap/squashfs, Kubernetes empty-dir), optical/virtual ISO images (CDFS, UDF), and read-only media. - Cross-Platform Device Deduplication: Prevents duplicate filesystem capacity alerts across Linux, macOS, and Windows.
4. Package Security Updates & Hardening
- MQTT Security Patch: Updated
github.com/eclipse/paho.mqtt.golangto v1.5.1 resolving CVE-2025-10543. - Static Security Analysis: Resolved CodeQL alerts (anchored regex patterns and strict hostname matching).
🇯🇵 主な新機能と変更点 (Japanese)
1. セキュリティ設定監査 (SCA: Security Configuration Assessment)
- CIS ベンチマーク準拠の Pure Go 監査エンジン: 外部ツール不要で、ホスト内のセキュリティ設定不備やシークレット露出を自律的に監査。
- 危険なファイル権限の検知 (CIS-3.14): World-Writable(誰でも書ける)ファイル、秘密鍵(
id_rsa,*.pem,*.key)や.envの過剰な権限、/etc/shadowの不適切な権限を検知。 - 平文シークレット・APIキー露出の検知 (CIS-3.12): AWS アクセスキー、Slack Webhook、秘密鍵、データベースパスワード等の平文露出を正規表現スキャン(証跡は自動マスキング)。
- 放置されたバックアップ・一時ファイルの検知 (CIS-4.7): 機密情報が残存しやすい
.bak,.old,.temp,.tmp,*~などの放置を検知。 - OS・サービス設定監査 (CIS-4.1, CIS-4.8): SSH設定(
sshd_config)や Linux カーネルパラメータ(sysctl.conf)のベースライン監査。
- 危険なファイル権限の検知 (CIS-3.14): World-Writable(誰でも書ける)ファイル、秘密鍵(
- ハイブリッド実行トリガー:
- 起動時ベースライン全件走査 (
scan_on_startup: true): エージェント起動時に設定ディレクトリを走査し、初期ベースラインを確立。 - FIM 連動リアルタイム監査 (
scan_on_fim_events: true): ファイルの作成・更新・権限変更(chmod)を検知した際、対象ファイル単体をピンポイントで即時監査。定期スキャンのタイムラグと高負荷を排除。
- 起動時ベースライン全件走査 (
- ローカル AI (
tensai) トリアージ連携: 重大な不備に対して環境文脈を加味した脅威度評価と日本語の具体的修復コマンドを自動付与。
2. ファイル整合性監視 (FIM) のノイズ低減 & UTC 統一
- 除外パターン (
excludes): 一時ファイル(デフォルト:["*.tmp", "*~"]や任意の glob / 正規表現)をスマートに除外可能。 - タイムスタンプの UTC 統一: FIM アラートの日時フォーマットを UTC に統一。
3. ホストリソース監視のスマートディスク除外・重複排除
- 容量アラートの誤検知防止: 不要な擬似ファイルシステム(
proc,sysfs,cgroup,devtmpfs,snap/squashfs, k8s empty-dir)、CD-ROM / DVD / 仮想 ISO、読み取り専用メディアを自動除外。 - 重複マウントの集約: 同一デバイスの多重マウントポイントによる重複アラートを解消。
4. セキュリティアップデート & パッケージ堅牢化
- MQTT クライアント脆弱性修正:
paho.mqtt.golangを v1.5.1 に更新し、CVE-2025-10543 を解消。 - CodeQL 静的解析対応: 正規表現のアンカー指定およびホスト名マッチングの厳密化によりアラートを解消。
📦 Quick Start / クイックスタート
Self-Update / セルフアップデート
# Update existing agent to v0.3.0 / 既存エージェントを更新
twagentneo updatemacOS (Homebrew)
brew upgrade twagentneo # or: brew install twsnmp/tap/twagentneoLinux / macOS (One-Liner Script)
curl -fsSL https://raw.githubusercontent.com/twsnmp/twagentneo/main/install/install.sh | shRun Agent / エージェントの起動
# Standard run / 通常起動
twagentneo -config config.yaml
# Verbose debug logging / 詳細デバッグログ付き起動
twagentneo -config config.yaml -debug📖 Documentation / 公式ドキュメント (GitHub Pages)
Detailed Changelog
- feat(collector/sca): add local configuration assessment with startup and FIM event-driven triggers
- feat(collector/fim): add exclude patterns support with default
*.tmpand*~filters - fix(collector/fim): set UTC timestamp on FIM events and fix test race condition
- fix(collector/resource): add smart disk exclusion and deduplication across macOS, Linux, and Windows
- fix(deps): update
github.com/eclipse/paho.mqtt.golangto v1.5.1 to resolve CVE-2025-10543 - fix(collector/sca): resolve CodeQL unanchored regex and host matching alerts
- chore: release preparation and documentation updates for v0.3.0
v0.2.0
twagentneo v0.2.0 - Windows Service, Linux systemd & Traffic Rates Release
We are excited to announce the release of twagentneo v0.2.0!
This release brings full native service management for Windows and Linux systemd, real-time network traffic throughput rate metrics, enhanced console debugging, and critical stability fixes.
🚀 Key Highlights & New Features (English)
1. Windows Service & Linux systemd Integration
- Native OS Daemon Management: Manage agent lifecycle via the unified
twagentneo service <install|start|restart|status|stop|remove>commands. - Windows Service Control Manager (SCM):
- Install as a Windows service with
-service-auto(or-service-delayed) for automatic boot-up. - Automatic working directory resolution, Windows Event Log registration, service logging fallback, and panic recovery.
- Install as a Windows service with
- Linux systemd Integration:
- Automatically generates
/etc/systemd/system/twagentneo.servicewith automatic restart (Restart=always), resource limits (LimitNOFILE=65536), and graceful shutdown timeout.
- Automatically generates
- Self-Updater Integration:
twagentneo updatesafely pauses running services before replacing executables and restarts them upon completion.
2. Network Traffic Throughput & Packet Rate Telemetry
- Interface Statistics: Collects byte and packet counters per interface (
BytesRecv,BytesSent,PacketsRecv,PacketsSent, errors, drops). - Real-Time Rate Calculation: Automatically computes per-second rates between collection cycles:
- Throughput rates:
BytesInRate/BytesOutRate(rx_mbps/tx_mbps) - Packet rates:
PacketsInRate/PacketsOutRate(rx_pps/tx_pps) - Error and drop rates
- Throughput rates:
3. Debugging & Observability Enhancements
- Console Debug Logging: Added
-debug(or-d) CLI flag to print detailed collection, rule evaluation, and export events directly to console. - Startup Log Visibility: Monitored file paths are explicitly logged on startup for transparent audit verification.
4. Lifecycle & Stability Improvements
- Graceful Shutdown: Resolved early shutdown and hanging issues on Windows during service termination.
- Linux Collectors: Fixed logtail file spam and resource collector edge cases.
- Non-blocking Event Delivery: Buffered internal event bus prevents event drops during agent startup.
🇯🇵 主な新機能と変更点 (Japanese)
1. Windows サービス & Linux systemd 常駐サポート
- OS ネイティブのサービス管理:
twagentneo service <install|start|restart|status|stop|remove>コマンドによる一元管理。 - Windows サービス (SCM):
service install -service-auto(または-service-delayed) により OS 起動時の自動開始に対応。- カレントディレクトリの自動解決、Windows イベントログ連携、パニックリカバリ、ロギングフォールバックを完備。
- Linux systemd 連携:
/etc/systemd/system/twagentneo.serviceを自動生成し、クラッシュ時の自動再起動(Restart=always)、ファイルディスクリプタ上限拡張(LimitNOFILE=65536)、安全な終了タイムアウトを設定。
- セルフアップデーターとのサービス連携:
twagentneo update実行時、稼働中サービスを自動停止・バイナリ安全置換・自動再起動をシームレスに実施。
2. ネットワークトラフィックレート・帯域監視
- インターフェース統計の強化: 各インターフェースの送受信バイト数・パケット数・エラー数・ドロップ数を収集。
- リアルタイム単位時間レート計算: 収集サイクルごとの差分から以下を自動計算して TWSNMP NEO へ配信:
- 転送速度:
BytesInRate/BytesOutRate(rx_mbps/tx_mbps) - パケットレート:
PacketsInRate/PacketsOutRate(rx_pps/tx_pps) - エラーレートおよびパケット破棄レート
- 転送速度:
3. デバッグ・可観測性の強化
- コンソール詳細デバッグ:
-debug(または-d)フラグにより、収集・ルール評価・送信イベントの詳細ログをコンソール出力可能。 - 監視ログパスの明示: 起動時に追跡対象ログファイルのフルパスをログ表示し、監査の透明性を向上。
4. ライフサイクル & 安定性の向上
- 安全なシャットダウン: Windows サービス停止時やシグナル受信時のハングを解消。
- Linux コレクター最適化: Linux における logtail スパムおよびリソースコレクターの処理を最適化。
- 内部イベントバスのバッファリング: 起動直後のメトリクス・FIM イベントの取りこぼしを防止。
📦 Quick Start / クイックスタート
macOS (Homebrew)
brew upgrade twagentneo # or: brew install twsnmp/tap/twagentneoLinux / macOS (One-Liner Script)
curl -fsSL https://raw.githubusercontent.com/twsnmp/twagentneo/main/install/install.sh | shRun Agent / エージェントの起動
# Standard run / 通常起動
twagentneo -config config.yaml
# Run with verbose debug logging / 詳細ログ付き起動
twagentneo -config config.yaml -debugService Management / サービス管理
# Windows (Administrator PowerShell)
.\twagentneo.exe service install -service-auto -config C:\twagentneo\config.yaml
.\twagentneo.exe service start
# Linux (sudo)
sudo /usr/local/bin/twagentneo service install -auto -config /etc/twagentneo/config.yaml
sudo /usr/local/bin/twagentneo service start📖 Documentation / 公式ドキュメント (GitHub Pages)
twagentneo v0.1.0
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
tensairunning 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
fsnotifyand 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 updateto 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/twagentneoLinux / macOS (One-Liner Script)
curl -fsSL https://raw.githubusercontent.com/twsnmp/twagentneo/main/install/install.sh | shRun Agent / エージェントの起動
twagentneo -config config.yaml📖 Documentation / 公式ドキュメント (GitHub Pages)
- 📖 日本語マニュアル (Japanese Manual): https://twsnmp.github.io/twagentneo/index_ja.html
- 📖 English Manual (英語マニュアル): https://twsnmp.github.io/twagentneo/