How to protect db from being accessed by unauthorized applications

From: Karsten Beck (Karsten.Beck_at_foto-beck.de)
Date: 01/22/04

  • Next message: Jeremy: "Re: Remote SQL Server"
    Date: Thu, 22 Jan 2004 22:05:48 +0100
    
    

    I have an insteresting problem:

    I want to protect an SQL Server database from being accessed by any other
    application than my own. The reason is that I want to add additional
    security based on actual data in the database, i.e. the user should not read
    data with a specific content. In my opinion, that can only be solved by
    building this into the application.

    I know I can use my own application identity to log on. Just create an SQL
    Server user "MyApplication" and a secret password that only the application
    knows. But this is not secure enough because anyone can get the password by
    sniffing the logon API calls.

    The other way may be using Windows security. Create a Windows user
    "MyApplication", call LogonUser and set the current user of my application
    to this user. Create the same user on the SQL Server. Logon to SQL Server by
    using Windows security (no password necessary when logging onto SQL
    Server) - Same problem: An attacker can get the password by sniffing the
    LogonUser API call.

    Additionally, there is no way to audit user actions any more when using
    application identity.

    Did anyone solve a similar problem? Any suggestions will be appreciated...

    Karsten


  • Next message: Jeremy: "Re: Remote SQL Server"

    Relevant Pages

    • Re: SQL server question
      ... Microsoft is deprecating it even for new development, ... An Access project is an Access file that provides a direct, ... You can connect an Access project to a remote SQL Server ... a local SQL Server database, or a local installation of the SQL Server ...
      (comp.databases.ms-access)
    • Exactly How to Use Disconnected Recordsets in VB / SQL Server Application
      ... Front-end is VB 6.0, back-end is SQL Server 2000 (actually, MSDE since ... underlying SQL Server database w/the assumption that the user *might* ... the local disconnected recordset on the user's machine would seem to ... time to update each and every record as each user scrolls through the ...
      (microsoft.public.vb.database)
    • Re: DataSet.GetChanges() in RowChanged(DataRowAction.Add)
      ... if the way synchronization needs to be handled changes in the ... > data stored in an SQL Server database. ... > GetChanges() call, but I feel that this workaround is not my best choice. ...
      (microsoft.public.dotnet.framework.adonet)
    • VBA Microsoft Access and SQL Server
      ... I am currently working on a project with Power Point. ... into a Microsoft SQL Server database. ... information from the Microsoft SQL Server database and re-populate a Power ...
      (microsoft.public.office.developer.vba)
    • Re: curious problem in production
      ... thank for the lesson on unique keys, but I suggest you read the question ... I am getting an exception from sql server ... >> trying to insert into the same sql server database. ...
      (microsoft.public.sqlserver.server)