Repository navigation
twagentneo v0.3.0 - Security Configuration Assessment (SCA) & Hardened Telemetry Release
Latesttwagentneo 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