Asymmetric Key size


Job details

Name: Asymmetric Key size
Platform: Sqlserver
Category: Security
Premium package: Security and compliance package
Description: Checks that at least a 2048-bit encryption key size is used for asymmetric keys.
Long description: Checks that at least a 2048-bit encryption key size is used for asymmetric keys.
Version: 1.2
Default schedule: 1 1 1 *
Requires engine install: Yes
Compatibility tag: .[type=‘instance’ & databasetype=‘sqlserver’]/instance[maj_version > ‘2005′ & hasengine=‘YES’ & eng_inst_priv = 0 & (engine_edition = ‘Microsoft SQL Server’ engine_edition = ‘Azure SQL Managed Instance’)]

Parameters

Name Default value Description
return status 1 Return status value (ALARM – 2, WARNING – 1, or OK – 0) when the asymmetric key size is less than 2048-bit.
history threshold 365 The maximum number of days to keep statistics for in the historic tables.

Job Summary

SELECT name, algorithm_desc, key_length FROM sys.asymmetric_keys WHERE key_length < 2048;

Job Configuration

Job Implementation

Job Reporting

Database Key Name Key Size Last Detected
ExampleDB Key1 1024 2023-01-01

Upgrades and Compatibility

This robust monitoring setup not only complies with encryption best practices but also helps in maintaining a secure data environment by continuously assessing and reporting the asymmetric key sizes in use.