Skip to content

Mutation intrusionSetAdd creates an intrusion set with the first_seen value as the last_seen value #415

@maertv

Description

@maertv

Description

The mutation intrusionSetAdd creates an intrusion set with the first_seen value as the last_seen value.

Environment

  1. OS: Ubuntu 18.04.3 LTS
  2. OpenCTI version: OpenCTI 2.1.3
  3. OpenCTI client: api

Reproducible Steps

Steps to create the smallest reproducible scenario:

  1. Execute following GraphQL mutation.

Mutation to add a new intrusion set:

mutation IntrusionSetCreationMutation($input: IntrusionSetAddInput!) {
  intrusionSetAdd(input: $input) {
    id
    name
    first_seen
    last_seen
  }
}

Variables:

{
    "input": {
        "name":"TestIntrusionSet Bug",
        "description":"TestIntrusionSet Bug Description.",
        "first_seen": "1990-01-16T00:00:00.000Z",
        "last_seen": "2019-12-24T00:00:00.000Z",
        "createdByRef":"88ec0c6a-13ce-5e39-b486-354fe4a7084f",
        "markingDefinitions":["f465c4bc-2d75-4a71-ad49-35efc15724ef"],
        "tags":[]
    }
}

Expected Output

{
  "data": {
    "intrusionSetAdd": {
      "id": "40dac9b3-9ba2-44b6-acfa-5cc73cdf490f",
      "name": "TestIntrusionSet Bug",
      "first_seen": "1990-01-16T00:00:00.000Z",
      "last_seen": "2019-12-24T00:00:00.000Z"
    }
  }
}

Actual Output

{
  "data": {
    "intrusionSetAdd": {
      "id": "40dac9b3-9ba2-44b6-acfa-5cc73cdf490f",
      "name": "TestIntrusionSet Bug",
      "first_seen": "1990-01-16T00:00:00.000Z",
      "last_seen": "1990-01-16T00:00:00.000Z"
    }
  }
}

Metadata

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