Skip to content

Commit 30d6ca1

Browse files
Merge pull request #1460 from marvinuku/clusterhawk-ipv6-support
Platform supports IPv6 now, clarification
2 parents 5847fc2 + c58369c commit 30d6ca1

2 files changed

Lines changed: 17 additions & 4 deletions

File tree

analyzers/ClusterHawk/README.md

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ Before using this analyzer, you must:
9292

9393
### Supported Data Types
9494

95-
- **ip**: IPv4 addresses
95+
- **ip**: IPv4 and IPv6 addresses
9696

9797
## Output Format
9898

@@ -146,6 +146,16 @@ For prebuilt models, additional fields are included:
146146
"candidates": [{ "cluster_id": 2, "confidence": 0.94 }],
147147
"label": "['Web Crawler']"
148148
},
149+
{
150+
"ip": "2001:db8:3c4d:15::1a2f",
151+
"predicted_cluster": 5,
152+
"confidence": 0.91,
153+
"kind": "confident_match",
154+
"top1_minus_top2": 0.77,
155+
"effective_n": 1.28,
156+
"candidates": [{ "cluster_id": 5, "confidence": 0.91 }],
157+
"label": "['Botnet C2']"
158+
},
149159
{
150160
"ip": "10.0.0.50",
151161
"predicted_cluster": 1,
@@ -171,7 +181,7 @@ For prebuilt models, additional fields are included:
171181
"label": null
172182
}
173183
],
174-
"total_predictions": 3,
184+
"total_predictions": 4,
175185
"model_info": {
176186
"model_id": "job_abc123def456"
177187
}

thehive-templates/ClusterHawk_1_0/long.html

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
<style>
2+
.kh-ip { overflow-wrap: anywhere; word-break: break-all; }
3+
</style>
14
<div ng-if="success">
25
<div ng-if="content">
36

@@ -93,7 +96,7 @@ <h4>Cluster Analysis</h4>
9396
<tr>
9497
<th>IP Addresses</th>
9598
<td>
96-
<span class="kh-chip" ng-repeat="ip in info.ips track by $index">{{ ip }}</span>
99+
<span class="kh-chip kh-ip" ng-repeat="ip in info.ips track by $index">{{ ip }}</span>
97100
</td>
98101
</tr>
99102
</table>
@@ -117,7 +120,7 @@ <h4>Predictions</h4>
117120
</thead>
118121
<tbody>
119122
<tr ng-repeat-start="p in content.predictions track by $index">
120-
<td><span class="kh-chip">{{ p.ip }}</span></td>
123+
<td><span class="kh-chip kh-ip">{{ p.ip }}</span></td>
121124
<td>
122125
<span class="label label-default" ng-if="p.cluster === null || p.cluster === undefined">
123126
No match

0 commit comments

Comments
 (0)