Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Re-index/parse existing files #729

Open
1 of 4 tasks
jasperla opened this issue Dec 28, 2022 · 0 comments
Open
1 of 4 tasks

Re-index/parse existing files #729

jasperla opened this issue Dec 28, 2022 · 0 comments
Labels
type:improvement Small improvement of existing feature zone:backend MWDB backend core related tasks

Comments

@jasperla
Copy link
Contributor

jasperla commented Dec 28, 2022

Feature Category

  • Correctness
  • User Interface / User Experience
  • Performance
  • Other (please explain)

Describe the problem

I noticed that some files have an incorrect type associated with them due to a bug in the underlying libmagic package. For example 3bbb5ee6aea113cd0ae393769acf1395961d01d40451e0bca45f05765a770acb is recognized by libmagic 5.39 as Apple DiskCopy 4.2 image Z@, 6291456 bytes, 0x4000 tag size, 0x5 encoding, 0x0 format. However libmagic 5.41 (correctly) reports it as PE32 executable (GUI) Intel 80386 (stripped to external PDB), for MS Windows.

Now, this file (and others) have the incorrect data associated with them in the MWDB with no way to correct this in-place.

Describe the solution you'd like

Make the File type field directly editable, make it possible to delete and re-add the field, or have a "re-index" mwdb-core command.

Describe alternatives you've considered

Manually fiddling with the database, but that doesn't scale or might introduce subtle inconsistencies.

Also, removing and re-adding the samples isn't always an option due to the large number of parent/child relations and/or tags/attributes.

@psrok1 psrok1 added type:improvement Small improvement of existing feature zone:backend MWDB backend core related tasks labels Jan 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:improvement Small improvement of existing feature zone:backend MWDB backend core related tasks
Projects
None yet
Development

No branches or pull requests

2 participants