fix(ids): close stream when no longer used

This commit is contained in:
MDLeom 2025-05-24 23:23:41 +00:00
parent 48e294534d
commit d111f7aeda
No known key found for this signature in database
GPG Key ID: 32D3E28E96A695E8
2 changed files with 2 additions and 2 deletions

View File

@ -202,7 +202,6 @@ rule-files:
This ruleset includes online domains only. It enables Suricata to detect malicious HTTPS-enabled domains by inspecting the SNI in the [unencrypted ClientHello](https://en.wikipedia.org/wiki/Server_Name_Indication#Security_implications) message. There is increasing support for encrypted Client Hello which defeats SNI inspection.
## Splunk
A CSV file for Splunk [lookup](https://docs.splunk.com/Documentation/Splunk/latest/Knowledge/Aboutlookupsandfieldactions).

View File

@ -39,6 +39,8 @@ for await (const domain of domains.readLines()) {
sid++
}
suricataSni.close()
for await (const line of urls.readLines()) {
if (!URL.canParse(`http://${line}`)) {
console.error(`Invalid URL: ${line}`)
@ -61,5 +63,4 @@ for await (const line of urls.readLines()) {
snort2.close()
snort3.close()
suricata.close()
suricataSni.close()
splunk.close()