{"Name":"mssql","ID":"go.mondoo.com/mql/v13/providers/mssql","Version":"13.0.0","ConnectionTypes":["mssql"],"CrossProviderTypes":null,"Connectors":[{"Name":"mssql","Use":"mssql [host]","Short":"a Microsoft SQL Server instance","Long":"Use the mssql provider to query a Microsoft SQL Server instance.\n\nThe provider connects to a SQL Server instance over TDS and runs read-only\ncatalog queries (sys.* and msdb.*) to inventory server principals, databases,\npermissions, credentials, linked servers, audit settings, and encryption keys.\n\nAuthentication supports SQL logins, Windows (NTLM) integrated auth, and\nMicrosoft Entra ID (Azure AD) access tokens. By default the provider discovers\nevery online database on the instance as its own asset.\n\nExamples:\n  cnspec shell mssql sql.contoso.com --user sa --ask-pass\n  cnspec scan mssql sql.contoso.com --instance SQL2022 --auth windows --user 'CONTOSO\\audit' --ask-pass\n  cnspec scan mssql sql.contoso.com --auth azure --user audit@contoso.com --token \u003caccess-token\u003e\n","Flags":[{"Long":"host","Desc":"SQL Server hostname or IP address","Type":3},{"Long":"port","Default":"1433","Desc":"SQL Server TCP port","Type":2},{"Long":"instance","Desc":"Named instance (resolved via SQL Browser when the port is unknown)","Type":3},{"Long":"database","Desc":"Scope the connection to a single database","Type":3},{"Long":"user","Short":"u","Desc":"Login name (SQL login, DOMAIN\\user, or user principal name)","Type":3},{"Long":"password","Short":"p","Desc":"Set the connection password","Type":3,"Option":8,"ConfigEntry":"-"},{"Long":"ask-pass","Default":"false","Desc":"Prompt for the connection password","Type":1,"ConfigEntry":"-"},{"Long":"token","Desc":"Access token for Microsoft Entra ID (Azure AD) authentication","Type":3,"Option":8,"ConfigEntry":"-"},{"Long":"auth","Default":"sql","Desc":"Authentication mode: sql, windows, kerberos, or azure","Type":3},{"Long":"encrypt","Default":"mandatory","Desc":"TDS encryption mode: strict, mandatory, optional, or disable","Type":3},{"Long":"trust-server-certificate","Default":"false","Desc":"Skip TLS certificate validation for the server","Type":1}],"Discovery":["auto","all","instance","databases","none"]}],"AssetUrlTrees":null,"Platforms":[{"name":"mssql","title":"Microsoft SQL Server","family":["mssql"],"kind":["api"],"runtime":["mssql"]},{"name":"mssql-database","title":"Microsoft SQL Server Database","family":["mssql"],"kind":["api"],"runtime":["mssql"]}]}