client-python icon indicating copy to clipboard operation
client-python copied to clipboard

[client] Missing the X509V3ExtensionsType fields on X509Certificate

Open pdamoune opened this issue 4 months ago • 0 comments

Add the missing fields on x509certificate creation

Source: V6.8.8

Problem to Solve

When creating the observable entity X509Certificate, the fields coming from X509V3ExtensionsType are not mapped.

https://github.com/OpenCTI-Platform/opencti/blob/6.8.8/opencti-platform/opencti-graphql/config/schema/opencti.graphql#L9445-L9476

https://github.com/OpenCTI-Platform/client-python/blob/6.8.8/pycti/entities/opencti_stix_cyber_observable.py#L657-L715

entity fields mapped in pycti
basic_constraints
name_constraints
policy_constraints
key_usage
extended_key_usage
subject_key_identifier
authority_key_identifier
subject_alternative_name
issuer_alternative_name
subject_directory_attributes
crl_distribution_points
inhibit_any_policy
private_key_usage_period_not_before
private_key_usage_period_not_after
certificate_policies
policy_mappings

Current Workaround

Create the entity without this fields

Proposed Solution

Add the fields' mapping

pdamoune avatar Oct 27 '25 09:10 pdamoune