Skip to content

Commit

Permalink
Merge branch 'release/3.4.4'
Browse files Browse the repository at this point in the history
  • Loading branch information
nusantara-self committed Feb 7, 2025
2 parents 611d192 + e5d9c18 commit 8ca08b4
Show file tree
Hide file tree
Showing 11 changed files with 55 additions and 23 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
runs-on: [ ubuntu-latest ]
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Build analyzers
Expand All @@ -32,7 +32,7 @@ jobs:
runs-on: [ ubuntu-latest ]
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Build responders
Expand All @@ -49,13 +49,13 @@ jobs:
if: always()
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Build catalog
uses: docker://thehiveproject/neurons-build-catalogs
- name: Build report-templates zip package
uses: docker://thehiveproject/neurons-build-report-templates
- name: Save Artifacts
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: catalog
path: |
Expand All @@ -80,13 +80,13 @@ jobs:
needs: [build_analyzers, build_responders ]
if: startsWith(github.ref, 'refs/tags/') && always()
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Prepare documentation files
uses: docker://thehiveproject/doc-builder
with:
args: --type Cortex-Neurons
- name: Set up Python
uses: actions/setup-python@v3
uses: actions/setup-python@v5
with:
python-version: "3.x"
architecture: x64
Expand Down
15 changes: 12 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,17 +1,26 @@
# Changelog

## [3.4.3](https://github.com/TheHive-Project/Cortex-Analyzers/tree/3.4.2) (2025-01-16)
## [3.4.4](https://github.com/TheHive-Project/Cortex-Analyzers/tree/3.4.4) (2025-02-07)

[Full Changelog](https://github.com/TheHive-Project/Cortex-Analyzers/compare/3.4.3...3.4.4)

**Closed issues:**

- \[FR\] - Feedback for the MSEntraID Responder [\#1302](https://github.com/TheHive-Project/Cortex-Analyzers/issues/1302)
- \[Bug\] Elasticsearch analyzer does not work with index that has no @timestamp field [\#1290](https://github.com/TheHive-Project/Cortex-Analyzers/issues/1290)

## [3.4.3](https://github.com/TheHive-Project/Cortex-Analyzers/tree/3.4.3) (2025-01-16)

[Full Changelog](https://github.com/TheHive-Project/Cortex-Analyzers/compare/3.4.2...3.4.3)

**Closed issues:**

- \[FR\] Crowdstrike Falcon: support custom base URL [\#1306](https://github.com/TheHive-Project/Cortex-Analyzers/issues/1309)
- \[FR\] Crowdstrike Falcon: support custom base URL [\#1309](https://github.com/TheHive-Project/Cortex-Analyzers/issues/1309)

**Merged pull requests:**

- Crowdstrike Falcon - Custom Base URL support [\#1310](https://github.com/TheHive-Project/Cortex-Analyzers/pull/1310) ([nusantara-self](https://github.com/nusantara-self))
- utils improvements [\#1311](https://github.com/TheHive-Project/Cortex-Analyzers/pull/1311) ([nusantara-self](https://github.com/nusantara-self))
- Crowdstrike Falcon - Custom Base URL support [\#1310](https://github.com/TheHive-Project/Cortex-Analyzers/pull/1310) ([nusantara-self](https://github.com/nusantara-self))

## [3.4.2](https://github.com/TheHive-Project/Cortex-Analyzers/tree/3.4.2) (2024-12-26)

Expand Down
2 changes: 1 addition & 1 deletion analyzers/AnyRun/anyrun_analyzer.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ def run(self):
if status_code == 200:
task_id = response.json()["data"]["taskid"]
elif status_code == 201:
task_id = response.json()["taskid"]
task_id = response.json()["data"]["taskid"]
elif status_code == 429:
# it not support parallel runs, so we wait and resubmit later
time.sleep(60)
Expand Down
4 changes: 2 additions & 2 deletions analyzers/Cluster25/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
requests~=2.31.0
cortexutils~=2.2.0
requests
cortexutils
19 changes: 13 additions & 6 deletions analyzers/DShield/DShield_lookup.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,12 +83,19 @@ def run(self):
results['firstseen'] = info['mindate'] if isinstance(info['mindate'], str) else 'None'
results['updated'] = info['updated'] if isinstance(info['updated'], str) else 'None'
results['comment'] = info['comment'] if isinstance(info['comment'], str) else 'None'
results['asabusecontact'] = info['asabusecontact'] if isinstance(info['asabusecontact'], str) else 'Unknown'
results['as'] = info['as']
results['asname'] = info['asname']
results['ascountry'] = info['ascountry']
results['assize'] = info['assize']
results['network'] = info['network']
if 'asabusecontact' in info:
results['asabusecontact'] = info['asabusecontact'] if isinstance(info['asabusecontact'], str) else 'Unknown'
if 'as' in info:
results['as'] = info['as']
if 'asname' in info:
results['asname'] = info['asname']
if 'ascountry' in info:
results['ascountry'] = info['ascountry']
if 'assize' in info:
results['assize'] = info['assize']
if 'network' in info:
results['network'] = info['network']

results['threatfeedscount'] = 0
if 'threatfeeds' not in info:
results['threatfeeds'] = ''
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,4 +92,4 @@
"required": false
}
]
}
}
18 changes: 17 additions & 1 deletion analyzers/Elasticsearch/elk.py
Original file line number Diff line number Diff line change
Expand Up @@ -195,8 +195,24 @@ def run(self):
info['querystring'] += '"'
#loop to get hits from each index
for index in self.index:
body = {
"sort": [
{
"@timestamp": {
"order": "desc",
"unmapped_type" : "date"
}
}
],
"query": {
"multi_match": {
"query": self.data,
"fields": self.fields
}
}
}
#search elastic for fields in each index
res = es.search(size=self.size,index=index,body={'sort':[{"@timestamp":{"order":"desc"}}],'query':{'multi_match':{'query':self.data, 'fields':self.fields}}})
res = es.search(size=self.size,index=index,body=body)
#if relation is gte then more logs exist than we will display
if res['hits']['total']['relation'] == 'gte' or res['hits']['total']['relation'] == 'gt':
total = 'gte'
Expand Down
2 changes: 1 addition & 1 deletion responders/Shuffle/shuffle.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"url": "https://github.com/frikky/shuffle",
"license": "AGPL-V3",
"description": "Execute a workflow in Shuffle",
"dataTypeList": ["thehive:case", "thehive:alert"],
"dataTypeList": ["thehive:case", "thehive:alert", "thehive:case_artifact", "thehive:task", "thehive:case_task_log"],
"command": "Shuffle/shuffle.py",
"baseConfig": "Shuffle",
"configurationItems": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -185,4 +185,4 @@ <h3>{{content.info.hitcount}} Hit(s)</h3>
<div class="panel-body">
{{content.errorMessage}}
</div>
</div>
</div>
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<span class="label" ng-repeat="t in content.taxonomies" ng-class="{'info': 'label-info', 'safe': 'label-success', 'suspicious': 'label-warning', 'malicious':'label-danger'}[t.level]">
{{t.namespace}}:{{t.predicate}}="{{t.value}}"
</span>
</span>

0 comments on commit 8ca08b4

Please sign in to comment.