Re: xp_cmdshell

From: Dan Guzman (danguzman_at_nospam-earthlink.net)
Date: 07/10/03


Date: Thu, 10 Jul 2003 08:08:43 -0500


AFAIK, there's no way to completely hide xp_cmdshell without dropping
the proc entirely.

Note that an intruder would need to gain access via a sysadmin account
to execute xp_cmdshell. For sysadmin users, xp_cmdshell runs under the
security context of the SQL Server service account so you can mitigate
risk by using Windows-only authentication and running SQL Server under a
non-privileged account. A sysadmin user always has full SQL Server
privileges so an intruder that gains access under a sysadmin account can
do nasty things without xp_cmdshell, like drop databases.

See
<http://msdn.microsoft.com/webservices/building/frameworkandstudio/defau
lt.aspx?pull=/library/en-us/dnnetsec/html/thcmch18.asp> for more
information on securing your database server.

-- 
Hope this helps.
Dan Guzman
SQL Server MVP
"AJAY R" <dba_pune@hotmail.com> wrote in message
news:OobbpWgRDHA.3236@TK2MSFTNGP10.phx.gbl...
> Thanks Dan
> But my purpose is to hide xp_cmdhsell from any user .
> Even if some intrusion happens in the db , the intruder should not be
able
> to see xp_cmdshell .
> Is there any way to hide or rename or anything which will keep
xp_cmdshell
> present but in encapsulated form or with some other name.
>
> Regards
> Ajay Rengunthwar
>


Relevant Pages

  • Re: SA PW
    ... You can't retrieve the password but you can reset it. ... onto SQL Server using a sysadmin account or if ... >a major problem yet, but..... ...
    (microsoft.public.sqlserver.security)
  • Re: just below sysadmin
    ... The sysadmin account is GOD. ... It can do anything it wants within SQL Server. ... Chief Tenaya ... > is there anyway to hide actual data and datastructure from everyone except ...
    (microsoft.public.sqlserver.security)

Quantcast