IBM Db2
TMA-DB2-3.1.1
Require Explicit Authorization for Cataloging (CATALOG_NOAUTH)
Trung bìnhCấp 1Tự độngdb2
Mô tả
Db2 can be configured to allow users that do not possess the SYSADM authority to catalog and uncatalog databases and nodes. It is recommended that the CATALOG_NOAUTH parameter be set to NO. Run as the instance owner (or with sqllib/db2profile sourced) so the db2 CLP reads this instance's configuration.
Cách kiểm tra
Phương pháp kiểm tra: Lệnh shell
shell
out=$(db2 get dbm cfg 2>/dev/null) || exit 1; printf '%s\n' "$out" | awk '{ if (match($0, /\([A-Z0-9_]+\) *=/)) { k = substr($0, RSTART + 1, RLENGTH); sub(/\).*/, "", k); v = $0; sub(/^[^=]*=/, "", v); gsub(/[ \t]/, "", v); c[k] = v } } END { if (c["CATALOG_NOAUTH"] == "NO") print "compliant"; else print "noncompliant: " c["CATALOG_NOAUTH"] }'- Đầu ra mong đợi
compliant
Cách khắc phục
Phương pháp khắc phục: Hướng dẫn hoặc bản vá hạ tầng
Perform the following to require explicit authorization to catalog and uncatalog databases and nodes. 1. Attach to the Db2 instance db2 => attach to <db2instance> 2. Run the following command: db2 => update database manager configuration using catalog_noauth no
Thuộc tính
- Hệ điều hành
- Bất kỳ
- Thẻ
- db2databaseinstance
- Tham chiếu
- CIS IBM Db2 12.1 Benchmark v1.0.0 - 3.1.1 Require Explicit Authorization for Cataloging (CATALOG_NOAUTH)
Kiểm tra máy này
Chạy lệnh này trên máy bạn được phép kiểm tra. Lần quét chỉ ở chế độ đọc.
shell
tmaegis scan --target db2