diff --git a/.drone.yml b/.drone.yml
index e75677b412..16354f6ca6 100644
--- a/.drone.yml
+++ b/.drone.yml
@@ -48,8 +48,7 @@ steps:
- name: build-packages
image: thehiveproject/drone-scala-node
settings:
- pgp_key:
- from_secret: pgp_key
+ pgp_key: {from_secret: pgp_key}
commands:
- |
V=$(sbt -no-colors --error "print thehive/version" | tail -1)
@@ -76,14 +75,10 @@ steps:
- name: send packages
image: appleboy/drone-scp
settings:
- host:
- from_secret: scp_host
- username:
- from_secret: scp_user
- key:
- from_secret: scp_key
- target:
- from_secret: incoming_path
+ host: {from_secret: package_host}
+ username: {from_secret: package_user}
+ key: {from_secret: package_key}
+ target: {from_secret: incoming_path}
source:
- target/thehive*.deb
- target/thehive*.rpm
@@ -96,14 +91,10 @@ steps:
- name: publish packages
image: appleboy/drone-ssh
settings:
- host:
- from_secret: scp_host
- user:
- from_secret: scp_user
- key:
- from_secret: scp_key
- publish_script:
- from_secret: publish_script
+ host: {from_secret: package_host}
+ user: {from_secret: package_user}
+ key: {from_secret: package_key}
+ publish_script: {from_secret: publish_script}
commands:
- PLUGIN_SCRIPT="bash $PLUGIN_PUBLISH_SCRIPT thehive4 $(cat thehive-version.txt)" /bin/drone-ssh
when:
@@ -116,10 +107,8 @@ steps:
context: target/docker/stage
dockerfile: target/docker/stage/Dockerfile
repo: thehiveproject/thehive4
- username:
- from_secret: docker_username
- password:
- from_secret: docker_password
+ username: {from_secret: docker_username}
+ password: {from_secret: docker_password}
when:
event: [tag]
@@ -129,17 +118,34 @@ steps:
settings:
context: target/docker/stage
dockerfile: target/docker/stage/Dockerfile
- registry:
- from_secret: harbor_server
- repo:
- from_secret: harbor_repo
- username:
- from_secret: harbor_username
- password:
- from_secret: harbor_password
+ registry: {from_secret: harbor_registry}
+ repo: {from_secret: harbor_repo}
+ username: {from_secret: harbor_username}
+ password: {from_secret: harbor_password}
when:
event: [tag]
+ - name: send message
+ image: thehiveproject/drone_keybase
+ settings:
+ username: {from_secret: keybase_username}
+ paperkey: {from_secret: keybase_paperkey}
+ channel: {from_secret: keybase_channel}
+ commands:
+ - |
+ keybase oneshot -u "$PLUGIN_USERNAME" --paperkey "$PLUGIN_PAPERKEY"
+ URL="$DRONE_SYSTEM_PROTO://$DRONE_SYSTEM_HOST/$DRONE_REPO/$DRONE_BUILD_NUMBER"
+ if [ $DRONE_BUILD_STATUS = "success" ]
+ then
+ keybase chat send "$PLUGIN_CHANNEL" ":white_check_mark: $DRONE_REPO: build succeeded $URL"
+ else
+ keybase chat send "$PLUGIN_CHANNEL" ":x: $DRONE_REPO: build failed $URL"
+ fi
+ when:
+ status:
+ - success
+ - failure
+
volumes:
- name: cache
host:
diff --git a/.gitignore b/.gitignore
index 9e91904c55..d78ccf369e 100644
--- a/.gitignore
+++ b/.gitignore
@@ -21,6 +21,7 @@ RUNNING_PID
.cache-main
.cache-tests
sbt-launch.jar
+.bsp/
# Eclipse
.project
@@ -37,4 +38,8 @@ tmp
!/.idea/runConfigurations/
!/.idea/runConfigurations/*
-dev
+# VSCode
+.vscode/
+.bloop/
+.metals/
+metals.sbt
diff --git a/.idea/runConfigurations/Cortex_tests.xml b/.idea/runConfigurations/Cortex_tests.xml
deleted file mode 100644
index 806a16db24..0000000000
--- a/.idea/runConfigurations/Cortex_tests.xml
+++ /dev/null
@@ -1,50 +0,0 @@
-
-
-
-
-
-
-
{{$cmp.labels[item.key] || item.key}} | ++ {{item.count}} + | +
These will be the default case tags
- | + | + | Flags | +Imported | Type | Data | @@ -37,9 +38,14 @@ | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
- + + | +
+ |
+ + | {{observable.dataType}} |
diff --git a/frontend/app/views/login.html b/frontend/app/views/login.html
index efb70a376b..d4dfdd4229 100644
--- a/frontend/app/views/login.html
+++ b/frontend/app/views/login.html
@@ -44,5 +44,7 @@
-
+
+ Version: {{version}}
+
diff --git a/frontend/app/views/partials/admin/analyzer-templates.html b/frontend/app/views/partials/admin/analyzer-templates.html
index 66d669c3cf..590205556c 100644
--- a/frontend/app/views/partials/admin/analyzer-templates.html
+++ b/frontend/app/views/partials/admin/analyzer-templates.html
@@ -15,6 +15,10 @@ Analyzer template management+
+
Download the official templates archive+You can download the latest archive of the official analyzer templates from here +Filters
-
+
-
+
-
+
+ List of alerts ({{$vm.list.total || 0}} of {{$vm.alertList
Filtersdiff --git a/frontend/app/views/partials/alert/list/mini-stats.html b/frontend/app/views/partials/alert/list/mini-stats.html index 183fb1725f..6db30f8742 100644 --- a/frontend/app/views/partials/alert/list/mini-stats.html +++ b/frontend/app/views/partials/alert/list/mini-stats.html @@ -1,52 +1,23 @@
-
diff --git a/frontend/app/views/partials/case/case.links.html b/frontend/app/views/partials/case/case.links.html
index e3bccb7aa3..ba0d6532fc 100644
--- a/frontend/app/views/partials/case/case.links.html
+++ b/frontend/app/views/partials/case/case.links.html
@@ -93,7 +93,8 @@
-
Statistics-
-
-
Alerts by Status
-
-
+
+
-
+
+
-
diff --git a/frontend/app/views/partials/alert/list/toolbar.html b/frontend/app/views/partials/alert/list/toolbar.html
index 52342a720e..bc49d48021 100644
--- a/frontend/app/views/partials/alert/list/toolbar.html
+++ b/frontend/app/views/partials/alert/list/toolbar.html
@@ -102,6 +102,12 @@
Stats
+
+
-
+
diff --git a/frontend/app/views/partials/observables/details/summary.html b/frontend/app/views/partials/observables/details/summary.html
index 3a5e168b0d..741319e11a 100644
--- a/frontend/app/views/partials/observables/details/summary.html
+++ b/frontend/app/views/partials/observables/details/summary.html
@@ -78,6 +78,20 @@ List of cases ({{$vm.list.total || 0}} of {{$vm.caseCount}
+
(Closed at {{currentCase.endDate | showDate}} as {{$vm.CaseResolutionStatus[currentCase.resolutionStatus]}})
diff --git a/frontend/app/views/partials/case/case.merge.html b/frontend/app/views/partials/case/case.merge.html
index d019a8072b..14b625697b 100644
--- a/frontend/app/views/partials/case/case.merge.html
+++ b/frontend/app/views/partials/case/case.merge.html
@@ -14,7 +14,7 @@
-{{dialog.title | ellipsis:50}}+ - - + - - - -
+
diff --git a/frontend/app/views/partials/case/list/mini-stats.html b/frontend/app/views/partials/case/list/mini-stats.html
index 7cc02b8da2..af698a4948 100644
--- a/frontend/app/views/partials/case/list/mini-stats.html
+++ b/frontend/app/views/partials/case/list/mini-stats.html
@@ -1,61 +1,22 @@
Filters
-
-
Statistics-
-
-
-
-
diff --git a/frontend/app/views/partials/case/list/toolbar.html b/frontend/app/views/partials/case/list/toolbar.html
index dbcffd29b2..8c6363308e 100644
--- a/frontend/app/views/partials/case/list/toolbar.html
+++ b/frontend/app/views/partials/case/list/toolbar.html
@@ -76,10 +76,16 @@
-
+
+
+
+
++ + + + + |
IOC | -TLP | +Flags | Case | -Date added | +Date added | |||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
- - |
- |
diff --git a/frontend/app/views/partials/observables/list/filters.html b/frontend/app/views/partials/observables/list/filters.html
index 1cb79dbb14..ffc4faaaa5 100644
--- a/frontend/app/views/partials/observables/list/filters.html
+++ b/frontend/app/views/partials/observables/list/filters.html
@@ -11,7 +11,7 @@ Filtersdiff --git a/frontend/app/views/partials/observables/list/mini-stats.html b/frontend/app/views/partials/observables/list/mini-stats.html index ca1b0c66fa..4e2b789c52 100644 --- a/frontend/app/views/partials/observables/list/mini-stats.html +++ b/frontend/app/views/partials/observables/list/mini-stats.html @@ -1,61 +1,22 @@
-
-
Statistics-
-
-
-
Observables as IOC
-
-
+
+
-
-
diff --git a/frontend/app/views/partials/observables/list/observables.html b/frontend/app/views/partials/observables/list/observables.html
index 823c37e8df..7290b50631 100644
--- a/frontend/app/views/partials/observables/list/observables.html
+++ b/frontend/app/views/partials/observables/list/observables.html
@@ -24,13 +24,11 @@
|