fix(iwooos): redact frontend host topology labels

This commit is contained in:
ogt
2026-06-25 11:08:34 +08:00
parent b2a0cf1133
commit 975ed981e2
6 changed files with 325 additions and 256 deletions

View File

@@ -7,8 +7,10 @@
- 112 `wazuh-manager``wazuh-indexer``wazuh-dashboard` 均為 active`NRestarts=0`
- 受管節點 A 的 `wazuh-agent.service` active並有到 manager 的 transport 連線。
- 112 manager 端 `1514` 只讀觀察到 `6` 條 established transport這代表傳輸層有 agent 連線,但不能替代 manager registry 驗收。
- 2026-06-25 11:00 CST 再次只讀確認112 三個 Wazuh 服務仍 activeWazuh API root 與 agents endpoint 回 `401`,代表 API 進程可回應但目前沒有可用只讀憑證110 agent active 且到 manager transport 為 `1`188 本工作視窗 SSH 只讀讀回被拒,不能以此視窗宣稱 188 已恢復。
- 目前使用者 `kali` 可讀服務狀態與 journal但不能直接讀 manager registry CLIWazuh manager 受限目錄需要更高權限,`sudo -n` 也需要密碼。
- Dashboard journal 仍觀察到 stored API / API check / login 退化:`400 / 429 / 500`、stored API unreachable、run_as / internal user 權限錯誤與 TLS client trust 錯誤。
- 近一小時 Dashboard 讀取層仍有 `400``429``unreachable` 與憑證信任錯誤類型和「Dashboard 看不到 agent」一致這仍不是 agent registry 驗收。
**判定**
- 目前不是「所有 agent 服務都停了」的單純故障;至少 manager transport 層仍有多條連線。
@@ -19,6 +21,8 @@
- `docs/security/wazuh-agent-visibility-runtime-gate.snapshot.json` 更新為 2026-06-25 live read-only 狀態,新增 `manager_transport_established_connection_count=6` 與 Dashboard API 退化細項。
- `scripts/security/wazuh-agent-visibility-runtime-gate.py` 加嚴驗證:必須保留 transport count、stored API unreachable、login 500、rate limited、run_as permission、TLS client trust 與 registry CLI permission blocked 訊號。
- `docs/security/WAZUH-AGENT-DISAPPEARANCE-INCIDENT-READBACK-2026-06-24.md` 同步更新結論與證據表。
- IwoooS 前端顯示層已把資安觀測主機、開發主機群與內部 health endpoint 脫敏,移除 `host:*``Kali 112``kali_112``127.0.0.1` 與 P2 host-coded 顯示字串。
- 新增 `scripts/security/iwooos-frontend-display-redaction-guard.py` 並納入 `security-mirror-progress-guard.py`後續若有人把內部主機代號、LAN endpoint 或 host-coded 工作線放回 IwoooS 前端 / i18nguard 會直接擋下。
**完成度同步**
- Wazuh agent transport 只讀確認:`65%`
@@ -26,6 +30,7 @@
- Manager agent registry 驗收:`0%`
- IwoooS production live metadata route`0%`
- Dashboard stored API / RBAC / TLS 修復:`0%`
- IwoooS 前端顯示層脫敏:`100%` source-side guard。
- Active response / host write / agent re-enroll / Wazuh restart`0%`,維持禁止。
**邊界**:本輪沒有讀 Wazuh secret、沒有保存 raw log、沒有重新註冊 agent、沒有重啟 Wazuh、沒有修改 Dashboard stored API、RBAC、TLS、Nginx、Docker、K8s、firewall 或 host config也沒有 active response 或 Kali active scan。