TMAegisBeta
Thêm quy tắc cho tdsql

TDSQL

TMA-TDSQL-4.11

Ensure the TXSQL SQL Firewall Is Enabled

Trung bìnhCấp 2Xem xét thủ côngtdsql

Mô tả

The TXSQL kernel includes a built-in SQL firewall (txsql_sql_filter) that can reject specific SQL types/keyword patterns or limit the concurrent connections matching a rule. Rule metadata is stored in information_schema.txsql_sql_filter_info (fields: TYPE, ITEM_ID, CURRENT_CONN, MAX_CONN, REJECTED_SQL_COUNT, CREATED_TIME, EXPIRE_TIME, EXPIRED, KEY_STR, ORIGIN_STR, etc.).

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.

-- Check the SQL firewall switch SHOW GLOBAL VARIABLES LIKE 'txsql_sql_filter_enable'; -- View configured filter rules and their hit/reject statistics SELECT * FROM information_schema.txsql_sql_filter_info; Confirm txsql_sql_filter_enable = ON, and that interception rules are configured for critical scenarios (financial transaction tables, user data tables).

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

Configuring rules through the OSS management interface is recommended (OSS validates rule legality before pushing). If executing SQL directly as an administrator, the rule syntax of the txsql_sql_filter variable is: -- Enable the SQL firewall SET GLOBAL txsql_sql_filter_enable = ON;

Thuộc tính

Hệ điều hành
Bất kỳ
Thẻ
tdsqlhardening
Tham chiếu
CIS Tencent TDSQL 10.3.22 Benchmark v1.0.0 - 4.11 Ensure the TXSQL SQL Firewall Is Enabled