Auditing an Oracle database for security issues is very important. PeteFinnigan.com provides all of the information and tools that you will need Click here for details of PeteFinnigan.com Limited's detailed Oracle database security audit service Click here for details of PeteFinnigan.com Limited's Oracle Security Training Courses
Cookie Policy:We only use essential cookies on small sections of this website. For details see here.

Welcome, Guest. Please Login.
Nov 23rd, 2017, 7:08am
News: If you would like to register contact the forum admin
Home | Help | Search | Members | Login
   Pete Finnigan's Oracle Security Forum
   Oracle General
   General Oracle questions
(Moderator: Pete Finnigan)
   Hiding password from ps -ef
« Previous topic | Next topic »
Pages: 1  Reply | Notify of replies | Send Topic | Print
   Author  Topic: Hiding password from ps -ef  (Read 4697 times)
newbie_01
PeteFinnigan.com Newbie
*



I love YaBB 1G - SP1!

   
View Profile |

Posts: 9
Hiding password from ps -ef
« on: May 28th, 2009, 3:49pm »
Quote | Modify

Hi all,
 
This question has been asked several times in several forums but I have yet to find the answer to the question. Hopefully it will get answered here or if it has been posted and answered already before, please advise where is it, i.e. the answer.
 
When running sqlplus via UNIX scripts, I have to include the username and password when accessing a remote database, this however appears when someone run the ps command, what is the best way to hide this from the ps command or any other snooping eyes. I do not have issues when the database is local because I can do sqlplus "/as sysdba".
 
I have the same issue with EXPDP/IMPDP, the password is exposed, Oracle suggested to use PAR file which I did, unfortunately, someone can simply have a look at that PAR file and get the password from there.
 
Any feedback will be very much appreciated.
 
IP Logged
Pete Finnigan
PeteFinnigan.com Administrator
*****




Oracle Security is easier if you design for it

   
View Profile | WWW | Email

Gender: male
Posts: 309
Re: Hiding password from ps -ef
« Reply #1 on: May 28th, 2009, 7:54pm »
Quote | Modify

Hi,
 
There are lots of solutions to this issue. The obvious one is that if the code you run from sqlplus remotely can be run in the database as a database job then that will fix the issue, alternately you could run the job locally as a cron job or to be called remotely via dbms_scheduler (there are bigger security issues with using this though). Dont run jobs with sys / as sysdba though, its not suitable with a "least privilege principal" approach. Next you could use the Oracle hide.c code to remove the password from ps listings (not ideal approach). You could use Oracle wallets remotely or locally (ideally locally) with mkstore etc. This allows you to associate Oracle usernames/passwords with a Unix user and the username/ password is stored in a wallet that is auto-open for the "right" user (owner) and password protected for others. This allows a "/" slash logon without the password. You can also use the free software OPR from opr.sourceforge.net - check search in my blog for some detailed installations.  
 
Always try and remove the need for remote logon jobs, if not move them locally, if not move them into the database, if not control from withoin the database, finally use external authenicated users (locally) or the wallet or OPR but ALWAYS use the least privilege principal.
 
 
cheers
 
Pete
IP Logged

Pete Finnigan (email:pete@petefinnigan.com)
Oracle Security Web site: http://www.petefinnigan.com
Forum: http://www.petefinnigan.com/forum/yabb/YaBB.cgi
Oracle security blog: http://www.petefinnigan.com/weblog/entries/index.html
newbie_01
PeteFinnigan.com Newbie
*



I love YaBB 1G - SP1!

   
View Profile |

Posts: 9
Re: Hiding password from ps -ef
« Reply #2 on: Jun 19th, 2009, 8:52am »
Quote | Modify

Thanks for your advise.
 
IP Logged
Pages: 1  Reply | Notify of replies | Send Topic | Print

« Previous topic | Next topic »

Powered by YaBB 1 Gold - SP 1.4!
Forum software copyright 2000-2004 Yet another Bulletin Board