Skip to content

Commit

Permalink
add oracle check_configuration_fifteenth_spare_parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
foospidy committed Jan 31, 2017
1 parent 450809f commit 1f7b3cc
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 0 deletions.
1 change: 1 addition & 0 deletions plugins/oracle/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
from check_configuration_audit_trail import *
from check_configuration_dbms_sql_security_level import *
from check_configuration_dictionary_accessibility import *
from check_configuration_fifteenth_spare_parameter import *
from check_configuration_remote_os_authentication import *
from check_configuration_local_os_authentication import *
from check_configuration_admin_restrictions_listener import *
Expand Down
35 changes: 35 additions & 0 deletions plugins/oracle/check_configuration_fifteenth_spare_parameter.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
class check_configuration_fifteenth_spare_parameter():
"""
check_configuration_fifteenth_spare_parameter
Ensure _fifteenth_spare_parameter is set to 'all'.
The _fifteenth_spare_parameter determines whether the oradebug facility
has been disabled or not.
"""
# References:
# http://www.davidlitchfield.com/AddendumtotheOracle12cCISGuidelines.pdf
# http://blog.red-database-security.com/2013/09/13/fix-for-oradebug-disable-auditing- available-11-2-0-3/

TITLE = 'Fifteenth Spare Parameter'
CATEGORY = 'Configuration'
TYPE = 'sql'
SQL = "SELECT c.ksppstvl FROM x$ksppi a, x$ksppsv c WHERE a.indx = c.indx AND a.ksppinm = '_fifteenth_spare_parameter'"

verbose = False
skip = False
result = {}

def do_check(self, *results):

for rows in results:
for row in rows:
if 'all' != row[0]:
self.result['level'] = 'RED'
self.result['output'] = 'Fifteenth Spare Parameter is (%s).' % (row[0])
else:
self.result['level'] = 'GREEN'
self.result['output'] = 'Fifteenth Spare Parameter is (%s).' % (row[0])

return self.result

def __init__(self, parent):
print('Performing check: ' + self.TITLE)

0 comments on commit 1f7b3cc

Please sign in to comment.