Oracle Database Vault en
Oracle Database Vault en
OracleDatabaseVault:TheworldisnotpinkandI'mroot!
JoxeanKoret
WhatisDatabaseVault?
OracleDatabaseVault:TheworldisnotpinkandI'mroot!
JoxeanKoret
DesignFailures
OracleDatabaseVault:TheworldisnotpinkandI'mroot!
JoxeanKoret
DatabaseVault'sadministratorand auditor
Themostobviousfailure(ifitcanbeconsidered afailure...)
Whocontrolsthepolice? Whoshouldbetheresponsable?
OracleDatabaseVault:TheworldisnotpinkandI'mroot!
JoxeanKoret
Failures:OperativeSystemLevel
Fact:Databasesystemrunsasonlyone operativesystemuser
OracleunderUnix/Linux LocalSystemunderWindows
Failures:OperativeSystemLevel
Fact:Databaseadministratorcantrojanizethe databaseatoperativesystemlevel
OracleDatabaseVault:TheworldisnotpinkandI'mroot!
JoxeanKoret
Failures:OperativeSystemLevel
Fact:DBAhasOracleorLocalSystem privilegesintheoperativesystem
OracleDatabaseVault:TheworldisnotpinkandI'mroot!
Failure:FilesystemLevel
Fact:DBAhasfilesystemaccess
Abletoreadorwritedatafilesinrawmode Therearemanylibrariesandtoolstodoit
DataUnloader
Oracle'sowntool http://www.ora600.nl/introduction.htm
DUDE(DatabaseUnloadingbyDataExtraction)
OracleDatabaseVault:TheworldisnotpinkandI'mroot!
JoxeanKoret
Failures:FilesystemLevel
Fact:DBAcandoabackup.(S)hecancopythe completedatabasetoanyotherdiskormachine
RMAN ALTERTABLESPACEXXXBEGINBACKUP
EXP/IMPdoesn'tworkasexpectedbut... (S)hecanuseRMAN Doamanualrecover:damageonedatafileandputthe manipulatedversiontorecover
Canreimportcompletedatabase
Hardbutpossible
JoxeanKoret
OracleDatabaseVault:TheworldisnotpinkandI'mroot!
Failures:FilesystemLevel
Problems
OracleDatabaseVault:TheworldisnotpinkandI'mroot!
JoxeanKoret
Failures:FilesystemLevel
Solutions
Youwilalwaysfoundasystemfailure
Youwillalwaysfoundasolution,ifyou'rethe DBAorthesystemadministratoryou'regod:)
OracleDatabaseVault:TheworldisnotpinkandI'mroot! JoxeanKoret
Fallas:DatabaseSystem
WhileDBAisdoingthetesting
But...Whatcanbetrojanized?
OracleDatabaseVault:TheworldisnotpinkandI'mroot!
JoxeanKoret
Failures:Whattotrojanize?
Databasevault'sownscripts;)
OracleDatabaseVault:TheworldisnotpinkandI'mroot!
JoxeanKoret
Failures:Backdoors
Awrapped(tohidethecode)PL/SQL packageduringdatabasevaultinstall
OracleDatabaseVault:TheworldisnotpinkandI'mroot!
JoxeanKoret
Failures:Again,trojanizeatOSlevel
WecantrojanizeatOSlevel
Asexplainedinotherchapter
OracleDatabaseVault:TheworldisnotpinkandI'mroot!
JoxeanKoret
Failures:Hooks
Everytimeyouappliesapatchyoushould reapplythetrojan
Butyoucantrojanizetherebuildscript...
Isbettertowriteatooltohookinteresting Oraclefunctions
oci_prepare_stmt,inexample? Anyofthekk*internalfunctions
OracleDatabaseVault:TheworldisnotpinkandI'mroot!
JoxeanKoret
Failures:TNSProtocol
TheyaresimplystringsinaTNSPacket
OracleDatabaseVault:TheworldisnotpinkandI'mroot!
Failures:TNSProtocol
AnexampleTNSpacket'sNVstring:
OSusernameandipaddressarefullycontrollableby anattacker
Aswellasmanyotheroptions...
TheyarefieldsofaTNSpacket
OracleDatabaseVault:TheworldisnotpinkandI'mroot!
JoxeanKoret
Conclusions
Interestingproductbut...
Tosubvertdatabase'sbehaviour,i.e.
OracleDatabaseVault:TheworldisnotpinkandI'mroot!
JoxeanKoret
Possiblesolutions
Notethequotes(rootattackingthesystem...) Googlelikequestion:WhatisbrokeninUnix?
Privilegeseparationatoslevel,bycreatingdifferent usersandgroupsfordifferenttaskisfundamental
Remember:Allruninthesameuserspace
OracleDatabaseVault:TheworldisnotpinkandI'mroot!
JoxeanKoret
End
OracleDatabaseVault:TheworldisnotpinkandI'mroot!
JoxeanKoret