nadouani on develop
#769 Add a case template select… Merge branch 'feature/template-… #769 Add case template selector (compare)
nadouani on develop
#271 Allow merging multiple ale… (compare)
To-om on develop
#271 Update alert status when m… (compare)
To-om on develop
#271 Add API to merge alert in … (compare)
how do I purge all alerts from hive, any suggestions?
After 4.0.0 there is bulk removal function. You are selecting the alerts from UI and there should be a delete button on top left. If you want to do it programmatically (which I did) just use chrometools to identify the endpoint of bulk removal from that UI, get all alerts programmatically and provide this list to that API. I personally dont use thehive4py and reverse engineered majority of the endpoints.
$theHiveApiURL = 'https://thehive.sample.org:9000/api/'
$theHiveApiURLAlert = $theHiveApiURL+'alert'
$headers=@{'Authorization'= 'Bearer '+ 'the_api_key_goes_here'}
function createTheHiveAlert{
$alertArtifacts = @()
$fileName = ''
$contentType = ''
$fileLocation = ''
$b64File = ''
$fileName = malicousFile.doc
$contentType = $fileContentType
$fileLocation = "C:\Users\Rigsby\Desktop\malicousFile.doc"
$b64File = [Convert]::ToBase64String([IO.File]::ReadAllBytes($fileLocation))
Write-Host "$fileName - $contentType added to alert artifacts"
$alertArtifacts += [PSCustomObject]@{
"dataType" = "file"
"data" = "$fileName;$contentType;$b64File"
"message" = "Attachment Found"
}
$alertObject = [PSCustomObject]@{
"title" = "Malicious File Found"
"type" = "test-alert"
"description" = "Hello world"
"source" = "Anti-Malware"
"sourceRef" = $("test-alert - $(Get-Date -Format o)")
"artifacts" = $alertArtifacts
} | ConvertTo-JSON
Write-Host 'Creating alert in The Hive!'
#Create new Alert
Invoke-RestMethod -Method POST -Headers $headers -Uri $theHiveApiURLAlert -Body $alertObject -ContentType "application/json"
}
Hello everybody. We are more than 1k people here, with different levels of knowledge, with different type of issues and questions. Discussions on gitter is getting hard to follow, even for people who want to help answering questions.
Many community members asked few months ago for a move from Gitter, but we didn't have the bandwidth to work on that.
Today we want to make it real, and improve your experience with TheHive.
Please give your opinion about migrating to an official Discord community for TheHive Project: https://twitter.com/TheHive_Project/status/1330414838116474881
Have a good day
2020-11-24 21:19:12,348 [ERROR] from org.thp.scalligraph.utils.Retry in application-akka.actor.default-dispatcher-33 [000004c4|34859770] uncaught error, not retrying
org.thp.scalligraph.NotFoundError: CustomField reporting-type not found
at org.thp.scalligraph.services.VertexSrv.$anonfun$getOrFail$1(VertexSrv.scala:35)
at scala.Option.fold(Option.scala:251)