TMAegisBeta
Thêm quy tắc cho tdsql

TDSQL

TMA-TDSQL-6.2

Ensure Audit and Gateway Log Limits Preserve Complete Statements

ThấpCấp 2Xem xét thủ côngtdsql

Mô tả

audit_txsql_truncate_length limits the SQL text written by the TXSQL audit facility, while gateway.log.interface.sql_size limits the message length processed by the compute-node logging path. Both limits must be large enough to preserve complete security-relevant statements throughout the audit pipeline.

Cách kiểm tra

Phương pháp kiểm tra: Xem xét thủ công

Khuyến nghị này không thể kiểm tra tự động. Lần quét sẽ liệt kê mục này kèm hướng dẫn khi bạn truyền cờ --include-manual.

Run SHOW GLOBAL VARIABLES LIKE 'audit_txsql_truncate_length'; on the data nodes and grep -R gateway.log.interface.sql_size <tdsql>/conf/ (or check the management platform) for the compute nodes. Both must be at least 2048 bytes and large enough for the longest security-relevant statements; verify a long test statement is not truncated centrally.

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

Set the data-node limit through the instance parameter configuration: SET GLOBAL audit_txsql_truncate_length = 4096; Set gateway.log.interface.sql_size to the same or a larger value through the compute-node settings, then validate the complete record at the configured Kafka, Elasticsearch, DBbrain, or SIEM destination.

Thuộc tính

Hệ điều hành
Bất kỳ
Thẻ
tdsqlloggingaudit
Tham chiếu
CIS Tencent TDSQL 10.3.22 Benchmark v1.0.0 - 6.2 Ensure Audit and Gateway Log Limits Preserve Complete Statements