CertificateReputation
Common Scripts Pack.#
This Script is part of theSupported versions
Supported Cortex XSOAR versions: 6.0.0 and later.
Enrich and calculate reputation of a Certificate indicator.
#
Script DataName | Description |
---|---|
Script Type | python3 |
Tags | reputation |
Cortex XSOAR Version | 6.0.0 |
#
InputsArgument Name | Description |
---|---|
input | Value of the indicator. |
update_indicator | Set validation checks in the indicator |
#
OutputsPath | Description | Type |
---|---|---|
Certificate.Name | Name (CN or SAN) appearing in the certificate. | String |
Certificate.SubjectDN | The Subject Distinguished Name of the certificate. This field includes the Common Name of the certificate. | String |
Certificate.PEM | Certificate in PEM format. | String |
Certificate.IssuerDN | The Issuer Distinguished Name of the certificate. | String |
Certificate.SerialNumber | The Serial Number of the certificate. | String |
Certificate.ValidityNotAfter | End of certificate validity period. | Date |
Certificate.ValidityNotBefore | Start of certificate validity period. | Date |
Certificate.SubjectAlternativeName.Type | Type of the SAN. | String |
Certificate.SubjectAlternativeName.Value | Name of the SAN. | String |
Certificate.SHA512 | SHA512 Fingerprint of the certificate in DER format. | String |
Certificate.SHA256 | SHA256 Fingerprint of the certificate in DER format. | String |
Certificate.SHA1 | SHA1 Fingerprint of the certificate in DER format. | String |
Certificate.MD5 | MD5 Fingerprint of the certificate in DER format. | String |
Certificate.PublicKey.Algorithm | Algorithm used for public key of the certificate. | String |
Certificate.PublicKey.Length | Length in bits of the public key of the certificate. | Number |
Certificate.PublicKey.Modulus | Modulus of the public key for RSA keys. | String |
Certificate.PublicKey.Exponent | Exponent of the public key for RSA keys. | Number |
Certificate.PublicKey.PublicKey | The public key for DSA/Unknown keys. | String |
Certificate.PublicKey.P | The P parameter for DSA keys. | String |
Certificate.PublicKey.Q | The Q parameter for DSA keys. | String |
Certificate.PublicKey.G | The G parameter for DSA keys. | String |
Certificate.PublicKey.X | The X parameter for EC keys. | String |
Certificate.PublicKey.Y | The Y parameter for EC keys. | String |
Certificate.PublicKey.Curve | Curve of the Public Key for EC keys. | String |
Certificate.SPKISHA256 | SHA256 fingerprint of the certificate Subject Public Key Info. | String |
Certificate.Signature.Algorithm | Algorithm used in the signature of the certificate. | String |
Certificate.Signature.Signature | Signature of the certificate. | String |
Certificate.Extension.Critical | Critical flag of the certificate extension. | Bool |
Certificate.Extension.OID | OID of the certificate extension. | String |
Certificate.Extension.Name | Name of the certificate extension. | String |
Certificate.Extension.Value | Value of the certificate extension. | Unknown |
Certificate.Malicious.Vendor | The vendor that reported the file as malicious. | String |
Certificate.Malicious.Description | A description explaining why the file was determined to be malicious. | String |
DBotScore.Indicator | The indicator that was tested. | String |
DBotScore.Type | The indicator type. | String |
DBotScore.Vendor | The vendor used to calculate the score. | String |
DBotScore.Score | The actual score. | Number |
#
Script Example!CertificateReputation input="fead39be0bc680baaaf282d915b44c803e7ab66e61ff5afc356bcf0d12d73f2c" update_indicator=false
#
Context Example#
Human Readable OutputScore for fead39be0bc680baaaf282d915b44c803e7ab66e61ff5afc356bcf0d12d73f2c is 2
#
NotesWILDCARD_CERTIFICATE Certificate contains at least one name with wildcard DOMAIN_CONTROL_VALIDATED Certificate is Domain Control Validated