TMAegisBeta
Thêm quy tắc cho oracle-db

Oracle Database

TMA-ORACLE-REMOTE-OS-AUTHENT

Ensure 'REMOTE_OS_AUTHENT' is set to FALSE

Nghiêm trọngCấp 1Tự độngoracle-db

Mô tả

TRUE trusts the client's operating-system user name for OPS$ accounts, which any remote host can spoof. If the parameter no longer exists in the release it is treated as FALSE. Run on the database host as the Oracle software owner with ORACLE_HOME, ORACLE_SID and PATH set; connects with 'sqlplus -S / as sysdba' (OS authentication).

Cách kiểm tra

Phương pháp kiểm tra: Truy vấn SQL

sql_query
out=$(sqlplus -S -L / as sysdba 2>/dev/null <<'EOF'
whenever sqlerror exit failure
set heading off feedback off pagesize 0 verify off echo off trimspool on
select nvl((select upper(value) from v$parameter where name = 'remote_os_authent'), 'FALSE') from dual;
exit
EOF
) || exit 1
printf '%s\n' "$out"
Đầu ra mong đợi
FALSE

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

ALTER SYSTEM SET REMOTE_OS_AUTHENT = FALSE SCOPE = SPFILE; then restart the instance (rolling restart on RAC)

Thuộc tính

Hệ điều hành
Bất kỳ
Thẻ
oracle-dbdatabaseoracleauthentication
Tham chiếu
CIS Oracle Database 19c Benchmark v2.0.0 - 2.3.14 Ensure 'REMOTE_OS_AUTHENT' Is Set to 'FALSE' (not in the 23ai v1.1.0 benchmark; the parameter is desupported there)

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 oracle-db