diff --git a/db/file-summary.n1ql b/db/file-summary.n1ql index 4340868..e92da10 100644 --- a/db/file-summary.n1ql +++ b/db/file-summary.n1ql @@ -11,6 +11,7 @@ SELECT "SHA256": f.sha256, "SHA512": f.sha512, "SSDeep": f.ssdeep, + "TLSH": f.tlsh, "Packer": f.packer, "Magic": f.magic, "Tags": f.tags, diff --git a/internal/entity/file.go b/internal/entity/file.go index fee8b25..fabfab4 100644 --- a/internal/entity/file.go +++ b/internal/entity/file.go @@ -16,6 +16,7 @@ type File struct { SHA256 string `json:"sha256,omitempty"` SHA512 string `json:"sha512,omitempty"` SSDeep string `json:"ssdeep,omitempty"` + TLSH string `json:"tlsh,omitempty"` Crc32 string `json:"crc32,omitempty"` Size int64 `json:"size,omitempty"` Tags map[string]interface{} `json:"tags,omitempty"` diff --git a/internal/file/service.go b/internal/file/service.go index cf057bc..721c44c 100644 --- a/internal/file/service.go +++ b/internal/file/service.go @@ -125,6 +125,7 @@ type UpdateFileRequest struct { SHA256 string `json:"sha256,omitempty"` SHA512 string `json:"sha512,omitempty"` Ssdeep string `json:"ssdeep,omitempty"` + TLSH string `json:"tlsh,omitempty"` CRC32 string `json:"crc32,omitempty"` Magic string `json:"magic,omitempty"` Size uint64 `json:"size,omitempty"`