Pre-discovery phase
Summarize
Summary of Pre-discovery phase
The pre-discovery phase prepares for the certificate discovery process by defining scanning parameters and configuring credentials. This ensures an efficient start to the discovery of certificates across various protocols and sources.
Show less
Key Features
- Discovery via Ports: The
tlssslcertsport probe scans 14 default ports to gather certificate chain information, transforming it into an XML payload for further processing. - Discovery via URL: The
Certificate URLtable lists target URLs for discovery, enabling the collection of certificate chain data linked to specific URLs. - Import Certificates: Utilizes parameters such as host name/IP and folder location to discover certificates, with considerations for payload size and MID Server configurations.
- CA Authority Discovery: Integrates with Certificate Authorities (CAs) like GoDaddy and DigiCert through REST API calls to gather and store certificate information in designated tables.
Key Outcomes
By completing the pre-discovery phase, customers can expect a streamlined process for identifying and managing certificates. This lays the groundwork for effective certificate inventory and management, enabling better compliance and security posture as they transition to the post-discovery phase.
The pre-discovery phase involves preparatory steps, such as defining scanning parameters and configuring credential details, to ensure a smooth initiation of the certificate discovery process.
Discovery via Ports
- Typical ports for SSL: 443, 8443, 9443, 636 (ldaps), 993 (imaps), 995 (popssl), 989, 990
- StartTLS ports: 25 (smtp), 110, 143, 389, 21, 587 (smtp)
As part of the CI Discovery process during Shazzam, the MID Server uses scanners to gather certificate chain information from the IP port number, capturing diverse attributes, including the certificate hierarchy. The MID Server then transforms these certificates into an XML payload, sharing it with the instance. The Shazzam sensor, in turn, detects the ECC queue entry and inserts a new record into the Discovered Certificate table [sn_disco_certmgmt_certificate_history].
The following fields are pulled from the XML payload and verified in java code from the Shazzam TLS port probe for discovered certificates: certificate id, revocation_status, subject, issuer, sans/, is_self_signed, is_ca, valid_from, valid_to, signature_algorithm, fingerprint_algorithm, key_size, serial_number, and version.
Discovery via URL
The Certificate URL [sn_disco_certmgmt_cert_url] table holds a list of URLs to target for certificate discovery. Each record also has an optional reference to the Unique Certificate [cmdb_ci_certificate] table, to see what certificate is related to the given URL definition. The necessary parameters from the Discovery Schedule are combined to create and initialize the Discovery status. The [CertificateDiscoveryFromURLScan] probe discovers the certificate chain for each of the URLs in the batch and outputs an XML payload that contains the certificate chain for each certificate. It also adds a new record into the Discovered Certificate [sn_disco_certmgmt_certificate_history] table.
Discovery via Import Certificates (Version 1.1.7 Certificate Inventory and Management)
- Host name/IP where the certificates are hosted
- Folder where certificates are located
- TLS_keepOriginalCertificate: Setting this parameter to true may lead to increased payload size, potentially causing out-of-memory issues.
- Mid_temp_folder: The temporary folder on the MID Server where files will be temporarily copied.
Discovery via CA authority (Version 1.1.7 Certificate Inventory and Management)
Once the Certificate Inventory and Management credential is set up with either GoDaddy, DigiCert, Entrust, or Sectigo Certificate Authority and the Discovery schedule runs, the specific CA pattern makes REST API calls to (GoDaddy, DigiCert, Entrust, or Sectigo), collects certificate information, retrieves the list of certificates, and stores it in the [cmdb_ci_certificate], [certificate_domain], and [sys_attachment] tables.
- DigiCert - Certificate Management (ca_api_version = v2, ca_api_url = https://www.digicert.com/services/)
- Entrust - Certificate Management (ca_api_version = v2, ca_api_url = https://api.entrust.net/enterprise/)
- GoDaddy - Certificate Management (ca_api_version = v1, ca_api_url = https://api.godaddy.com/)
- Sectigo - Certificate Management (ca_api_version = v1, ca_api_url = https://cert-manager.com/api/ssl/)
- Start_offset: The offset position for reading certificates from CA authorities, with a default value of 0.
- Limit: The number of certificates to be read from the start_offset, with a default value of 1500.
- CredentialAlias: The name of the Credential Alias or Tag linked to the CA credentials, added in the serverless execution pattern configuration.
If the TLS_keepOriginalCertificate parameter is set to true, the certificate file is attached to the Certificate CI. This may increase payload size, potentially causing out-of-memory issues.
- IncludeCertStatus: A parameter for specifying additional certificate states to discover, in addition to the defaults.
You can include multiple certificate statuses by separating each with commas.Table 1. Certificate states by certificate authorities Certificate Authority Default States Discovered Sectigo - Issued
- Expired
DigiCert and GoDaddy - Active
- Expired
- Revoked
- Canceled
Entrust - Active
- Expired
- Revoked
Once the pre-discovery phase is completed, move on to the post-discovery phase.