Skip to content

Cannot create a X509 Observable #984

Closed

Description

Description

It's not possible to create a X509 Observable.

Environment

  1. OS : VM with portainer
  2. OpenCTI version: 4.0.5
  3. OpenCTI client: frontend

Reproducible Steps

Steps to create the smallest reproducible scenario:

  • Go to Obsarvables tab
  • Click +
  • Select X509 certificate
    • description : APT1
    • subject : C=US, ST=Some-State, O=www.virtuallythere.com, OU=new, CN=new
  • Click Create

Expected Output

observable creation

Actual Output

opencti_opencti container logs:

...
variable \"$X509Certificate\" got invalid value { is_self_signed: false, issuer: \"\", serial_number: \"\", signature_algorithm: \"\", subject: \"C=US, ST=Some-State, O=www.virtuallythere.com, OU=new, CN=new\", subject_public_key_algorithm: \"\", subject_public_key_exponent: \"\", subject_public_key_modulus: \"\", validity_not_after: null, validity_not_before: null, version: \"\" }; Field \"subject\" is not defined by type \"X509CertificateAddInput\".","at /opt/opencti/node_modules/graphql/execution/values.js:116:15","at coerceInputValueImpl (/opt/opencti/node_modules/graphql/utilities/coerceInputValue.js:115:9)","at coerceInputValue (/opt/opencti/node_modules/graphql/utilities/coerceInputValue.js:39:10)","at _loop (/opt/opencti/node_modules/graphql/execution/values.js:109:69)","at coerceVariableValues (/opt/opencti/node_modules/graphql/execution/values.js:121:16)","at getVariableValues (/opt/opencti/node_modules/graphql/execution/values.js:50:19)","at buildExecutionContext (/opt/opencti/node_modules/graphql/execution/execute.js:205:61)","at executeImpl (/opt/opencti/node_modules/graphql/execution/execute.js:103:20)","at Object.execute (/opt/opencti/node_modules/graphql/execution/execute.js:62:35)","at /opt/opencti/node_modules/apollo-server-core/dist/requestPipeline.js:249:48","at Generator.next (<anonymous>)","at /opt/opencti/node_modules/apollo-server-core/dist/requestPipeline.js:8:71","at new Promise (<anonymous>)","at __awaiter (/opt/opencti/node_modules/apollo-server-core/dist/requestPipeline.js:4:12)","at execute (/opt/opencti/node_modules/apollo-server-core/dist/requestPipeline.js:228:20)","at Object.<anonymous> (/opt/opencti/node_modules/apollo-server-core/dist/requestPipeline.js:176:42)"]},"level":"error","message":"API Call","timestamp":"2021-01-07T14:29:41.163Z"}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

Labels

buguse for describing something not working as expectedsolveduse to identify issue that has been solved (must be linked to the solving PR)

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions