TMAegis
tdsql 관련 규칙 더 보기

TDSQL

TMA-TDSQL-6.2

Ensure Audit and Gateway Log Limits Preserve Complete Statements

낮음레벨 2수동 검토tdsql

설명

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.

점검 방법

감사 방식: 수동 검토

이 권장 사항은 자동으로 점검할 수 없습니다. --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.

조치 방법

조치 방식: 가이드 또는 인프라 패치

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.

속성

운영 체제
모두
태그
tdsqlloggingaudit
참고 자료
CIS Tencent TDSQL 10.3.22 Benchmark v1.0.0 - 6.2 Ensure Audit and Gateway Log Limits Preserve Complete Statements