How to Secure Database Credentials in a Windows Desktop App Without a Service Layer

Joined
May 29, 2024
Messages
3
Reaction score
0
Given a Windows desktop application (written in Java) that communicates directly with a SQL DBMS without a service layer, how can you secure the database credentials and connection to prevent unauthorized access?

The goal is to ensure that users without admin privileges cannot misuse the credentials outside of the application, such as by accessing the database directly through other programs.

On Linux, you might use separate user permissions and setuid to restrict access, but Windows does not offer a direct equivalent with runAs due to its lack of program-specific restrictions.

What are some effective strategies to secure database credentials and prevent unauthorized access in this environment?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top