audit under the CIS standard-EN

One of the most important things that the DBA should do in coordination with the business owner is to set up an audit that can audit the sensitive tables and the tasks that those who connect to the database can audit. Usually, business owners don't realize this until they run into a problem. For this reason, based on the part of the CIS standard that is related to Audit, I recommend that you follow the policy that I am giving you in your database. Also, if a table needs to be audited in certain circumstances, it must be audited. I should also add that putting this policy can satisfy part of the requests of security regulatory organizations.

The only part that I intentionally removed was the list of successful logins to the database, which in my opinion loads the database and has a tangible negative effect. Unsuccessful logins are also monitored with a policy called failed login attempt by default. This audit was written based on the unified audit policy from version 12 onwards:

create  AUDIT POLICY CIS_UNIFIED_AUDIT_POLICY

ACTIONS

CREATE USER;

ALTER AUDIT POLICY CIS_UNIFIED_AUDIT_POLICY

ADD

ACTIONS

ALTER USER;

ALTER AUDIT POLICY CIS_UNIFIED_AUDIT_POLICY

ADD

ACTIONS

DROP USER;

ALTER AUDIT POLICY CIS_UNIFIED_AUDIT_POLICY

ADD

ACTIONS

CREATE ROLE;

ALTER AUDIT POLICY CIS_UNIFIED_AUDIT_POLICY

ADD

ACTIONS

ALTER ROLE;

ALTER AUDIT POLICY CIS_UNIFIED_AUDIT_POLICY

ADD

ACTIONS

DROP ROLE;

ALTER AUDIT POLICY CIS_UNIFIED_AUDIT_POLICY

ADD

ACTIONS

GRANT;

ALTER AUDIT POLICY CIS_UNIFIED_AUDIT_POLICY

ADD

ACTIONS

REVOKE;

ALTER AUDIT POLICY CIS_UNIFIED_AUDIT_POLICY

ADD

ACTIONS

CREATE PROFILE;

ALTER AUDIT POLICY CIS_UNIFIED_AUDIT_POLICY

ADD

ACTIONS

ALTER PROFILE;

ALTER AUDIT POLICY CIS_UNIFIED_AUDIT_POLICY

ADD

ACTIONS

DROP PROFILE;

ALTER AUDIT POLICY CIS_UNIFIED_AUDIT_POLICY

ADD

ACTIONS

CREATE DATABASE LINK;

ALTER AUDIT POLICY CIS_UNIFIED_AUDIT_POLICY

ADD

ACTIONS

ALTER DATABASE LINK;

ALTER AUDIT POLICY CIS_UNIFIED_AUDIT_POLICY

ADD ACTIONS

DROP DATABASE LINK;

ALTER AUDIT POLICY CIS_UNIFIED_AUDIT_POLICY

ADD

ACTIONS

CREATE SYNONYM;

ALTER AUDIT POLICY CIS_UNIFIED_AUDIT_POLICY

ADD

ACTIONS

ALTER SYNONYM;

ALTER AUDIT POLICY CIS_UNIFIED_AUDIT_POLICY

ADD

ACTIONS

DROP SYNONYM;

ALTER AUDIT POLICY CIS_UNIFIED_AUDIT_POLICY

ADD

PRIVILEGES

SELECT ANY DICTIONARY;

ALTER AUDIT POLICY CIS_UNIFIED_AUDIT_POLICY

ADD ACTIONS

ALL on AUDSYS.AUD$UNIFIED;

ALTER AUDIT POLICY CIS_UNIFIED_AUDIT_POLICY

ADD

ACTIONS

CREATE PROCEDURE,

CREATE FUNCTION,

CREATE PACKAGE,

CREATE PACKAGE BODY;

ALTER AUDIT POLICY CIS_UNIFIED_AUDIT_POLICY

ADD

ACTIONS

ALTER PROCEDURE,

ALTER FUNCTION,

ALTER PACKAGE,

ALTER PACKAGE BODY;

ALTER AUDIT POLICY CIS_UNIFIED_AUDIT_POLICY

ADD

ACTIONS

DROP PROCEDURE,

DROP FUNCTION,

DROP PACKAGE,

DROP PACKAGE BODY;

ALTER AUDIT POLICY CIS_UNIFIED_AUDIT_POLICY

ADD

ACTIONS

ALTER SYSTEM;

ALTER AUDIT POLICY CIS_UNIFIED_AUDIT_POLICY

ADD

ACTIONS

CREATE TRIGGER;

ALTER AUDIT POLICY CIS_UNIFIED_AUDIT_POLICY

ADD ACTIONS

ALTER TRIGGER;

ALTER AUDIT POLICY CIS_UNIFIED_AUDIT_POLICY

ADD

ACTIONS

DROP TRIGGER;

for activate it, do this:

AUDIT POLICY CIS_UNIFIED_AUDIT_POLICY;

to find the policies which are enabled:

SELECT * FROM AUDIT_UNIFIED_ENABLED_POLICIES;