You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
r0sier opened this issue
May 16, 2021
· 2 comments
Labels
questionuse for asking information about a functionality or behaviorsolveduse to identify issue that has been solved (must be linked to the solving PR)
When using pycti to create a StixFile observable, the MD5 file hash value must be present. Without, an unsupported error is raised for 'Cant create key for StixFile from empty data'
Environment
pycti-4.5.3
Reproducible Steps
Create a StixFile observable with a hash algorithm other than MD5, for example:
ERROR:root:Cant create key for StixFile from empty data
Additional information
On another note, it would be useful if the type could also be set as StixFile rather than just file. If attempting to create an observable of type StixFile, an error is thrown: ERROR:root:Observable type Stixfile is not supported.
Thanks in advance!
The text was updated successfully, but these errors were encountered:
The sha256 and sha1 hashes are displayed with no errors within the UI, however are not mapped correctly I believe as when you go to edit the observable within the UI, the hash fields for SHA1 and SHA-256 are empty.
The correct hash key should be sah-256 and sha-1. This has closed my issue but unsure if this is working as intended. May be worth updating the hash keys within examples/create_file_with_hashes.py so others don't also have issues with this! :)
SamuelHassine
added
question
use for asking information about a functionality or behavior
solved
use to identify issue that has been solved (must be linked to the solving PR)
labels
May 16, 2021
questionuse for asking information about a functionality or behaviorsolveduse to identify issue that has been solved (must be linked to the solving PR)
Description
When using pycti to create a StixFile observable, the MD5 file hash value must be present. Without, an unsupported error is raised for 'Cant create key for StixFile from empty data'
Environment
pycti-4.5.3
Reproducible Steps
Create a StixFile observable with a hash algorithm other than MD5, for example:
Expected Output
An observable is created
Actual Output
ERROR:root:Cant create key for StixFile from empty data
Additional information
On another note, it would be useful if the
type
could also be set asStixFile
rather than justfile
. If attempting to create an observable of typeStixFile
, an error is thrown:ERROR:root:Observable type Stixfile is not supported.
Thanks in advance!
The text was updated successfully, but these errors were encountered: