Invoke-SqlVulnerabilityAssessment VA1220 False Fail?

Saransvan 111 Reputation points
2025-02-18T15:58:36.1333333+00:00

If I run the vulnerability scan on a SQL Server without a cert and force encryption set I get fails on

VA1220: Database communication using TDS should protected through TLS Microsoft SQL Server can use Secure Sockets Layer (SSL) or Transport Layer Security (TLS) to encrypt data that is transmitted across a network between an instance of SQL Server and a client application. This rule checks that connections to the SQL Server Change the Force Encryption option in SQL Configuration Manager, or force the encryption on the client applications

and

VA1279: Force encryption should be enabled for TDS When the Force Encryption option for the Database Engine is enabled, all communications between client and server is encrypted regardless of whether the 'Encrypt connection' option (such as from SSMS) is checked or not. This rule checks that Force Encrypt Change the ForceEncryption setting on SQL Server Control Manager.

If I run the scan on a SQL Server with a valid cert and Force Encryption I still get VA1220. Can anyone tell me why please?

SQL Server
SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
14,491 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. ZoeHui-MSFT 41,291 Reputation points
    2025-02-19T06:57:16.1966667+00:00

    Hi @Saransvan,

    As said in the documentation, database communication using TDS should be protected through TLS.

    Please have a double check on the TDS and TLS.

    Rule ID Rule Title Change details
    VA1220 Database communication using TDS should be protected through TLS Logic change
    VA1220 Database communication using TDS should be protected through TLS Logic change

    Regards,

    Zoe Hui


    If the answer is helpful, please click "Accept Answer" and upvote it.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.