Skip to content
Snippets Groups Projects
Commit dfdeb476 authored by Odin K. Henriksen's avatar Odin K. Henriksen
Browse files

Validation filehash AV

parent 7131cd4e
No related branches found
No related tags found
1 merge request!2Merge react-branch into main.
......@@ -149,15 +149,17 @@ func SetResponeObjectUrlscanio(jsonResponse HybridAnalysisURL, urlscanio *Fronte
func SetResponseObjectAlienVaultHash(jsonResponse AlienVaultHash, response *FrontendResponse2) {
if jsonResponse.PulseInfo.Count == 0 || len(jsonResponse.PulseInfo.Related.Other.MalwareFamilies) == 0 {
response.EN.Status = "Safe"
response.EN.Content = "We have no information indicating that this is malicious."
response.EN.Content = "We have no information indicating that this file is malicious."
response.NO.Content = "Trygg"
response.NO.Content = "Vi har ingen informasjon som tyder på at dette er ondsinnet."
response.NO.Content = "Vi har ingen informasjon som tyder på at dette er en ondsinnet fil."
} else {
response.EN.Status = "Risk"
response.EN.Tags = "Malicious"
response.EN.Content = jsonResponse.PulseInfo.Related.Other.MalwareFamilies[0]
response.NO.Status = "Risk"
response.NO.Tags = "Ondsinnet"
response.NO.Content = jsonResponse.PulseInfo.Related.Other.MalwareFamilies[0]
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment