TMAegis
更多 ibmcloud 規則

TMA-IBMCLOUD-ACTIVITY-TRACKER-ROUTE

Ensure Activity Tracker event routing is configured

高等級 1自動化ibmcloud

說明

Activity Tracker Event Routing sends account audit events to a durable target (Cloud Logs, COS, Event Streams). At least one route with target_ids must exist (requires the atracker plugin). Read-only ibmcloud CLI calls using the current CLI session and targeted region (ibmcloud login, or IBMCLOUD_API_KEY); JSON output is parsed with grep/sed/awk. A missing CLI, plugin or session fails the check.

檢查方式

稽核方法: Shell 指令

shell
out=$(ibmcloud atracker route ls --output json 2>/dev/null) || exit 1
n=$(printf '%s\n' "$out" | grep -c '"target_ids"' || true)
[ "$n" -gt 0 ] && echo compliant
預期輸出
compliant

修補方式

修補方法: 操作指南或基礎設施修補檔

ibmcloud atracker target create --name <t> --type cloud_object_storage|cloud_logs ... then ibmcloud atracker route create --name <r> --rules '[{"locations":["*","global"],"target_ids":["<target-id>"]}]'.

屬性

作業系統
不限
標籤
ibmcloudlogging
參考資料
CIS IBM Cloud Foundations Benchmark v2.0.0 - Logging and Monitoring - Activity Tracker event routing (verify section number for your release)

檢查此主機

請在您有權稽核的機器上執行此指令。掃描為唯讀操作。

shell
tmaegis scan --target ibmcloud