MISP / MISP/PyMISP

Cannot update `first_seen` or `last_seen` when its null

Open
#1,463 0 comments 0 reactions 2 assignees View on GitHub

@Rafiot is already working on this.

Since Jul 30, 2026.

Dominant language
Python
Stars
491
Forks
290
Avg merge
2d 8h
Merged PRs (30d)
3

Description

When trying to update an attribute that has a null first_seen and last_seen and try to update them via PyMISP an error is returned:

Something went wrong (405): {'name': 'Attribute could not be saved: Attribute in the request not newer than the local copy.', 'message': 'Attribute could not be saved: Attribute in the request not newer than the local copy.', 'url': '/attributes/edit/<UUID>'}

If the first_seen or last_seen values are already set there is no error.

POC:

attribute = misp.get_attribute("<UUID>", pythonify=True)
attribute.first_seen = '2026-07-30T09:00:00.00000+07:00'
attribute.last_seen = '2026-07-30T10:00:00.00000+07:00'
# attribute.comment = 'Updated first_seen and last_seen timestamps'
misp.update_attribute(attribute, pythonify=True)

If we change something else in the attribute, such as the comment the attribute is properly updated.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.