Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to run slips on Apple Silicon #411

Closed
Ondjultomte opened this issue Nov 10, 2023 · 5 comments
Closed

How to run slips on Apple Silicon #411

Ondjultomte opened this issue Nov 10, 2023 · 5 comments

Comments

@Ondjultomte
Copy link

Describe the bug
crashes running against a pcap on apple silicon.

To Reproduce
just run it with
docker run -it --rm --net=host --name slips2 -v $(pwd)/dataset:/StratosphereLinuxIPS/dataset stratosphereips/slips:latest

on apple m1 macbook, so apple silicon

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots

image

`@linuxkit-6a8162938e55:/StratosphereLinuxIPS# ./slips.py -c config/slips.conf -f dataset/carina_00007_20231107144105.pcap
[Main] Storing Slips logs in output/carina_00007_20231107144105.pcap_2023-11-10_08:06:54/
Slips. Version 1.0.7 (822db6d)
https://stratosphereips.org

[Main] Using redis server on port: 6379
Started Main process [PID 33]
Started Output Process [PID 65]
Starting modules
Starting the module Risk IQ (Module to get passive DNS info about IPs from RiskIQ) [PID 95]
Starting the module ARP (Detect arp attacks) [PID 97]
Starting the module Flow Alerts (Alerts about flows: long connection, successful ssh, password guessing, self-signed certificate, data exfiltration, etc.) [PID 100]
Starting the module Flow ML Detection (Train or test a Machine Learning model to detect malicious flows) [PID 103]
Starting the module HTTP Analyzer (Analyze HTTP flows) [PID 106]
Starting the module IP Info (Get different info about an IP/MAC address) [PID 108]
Starting the module Leak Detector (Detect leaks of data in the traffic) [PID 116]
Starting the module Network Discovery (Detect Horizonal, Vertical Port scans, ICMP, and DHCP scans) [PID 120]
Starting the module Threat Intelligence (Check if the source IP or destination IP are in a malicious list of IPs) [PID 126]
Starting the module Timeline (Creates kalipso timeline of what happened in the network based on flows and available data) [PID 129]
Starting the module Update Manager (Update Threat Intelligence files) [PID 135]
Starting the module Virustotal (IP, domain and file hash lookup on Virustotal) [PID 141]

[Main] Disabled Modules: ['template', 'ensembling', 'rnnccdetection', 'Exporting Alerts', 'p2ptrust', 'CESNET', 'blocking', 'CYST']
[Evidence] Storing Slips logs in output/carina_00007_20231107144105.pcap_2023-11-10_08:06:54/
Started Evidence Process [PID 143]
Started Profiler Process [PID 145]
[Main] Metadata added to output/carina_00007_20231107144105.pcap_2023-11-10_08:06:54/metadata
Started Input Process [PID 147]
[Main] Warning: Slips may generate a large amount of traffic by querying TI sites.
[Input] Storing zeek log files in output/carina_00007_20231107144105.pcap_2023-11-10_08:06:54/zeek_files
Total analyzed IPs so far: 0. Evidence added: 0. IPs sending traffic in the last 1 hr: 0. (2023/11/10 08:07:37)

Stopping Slips

[Main] Analysis of dataset/carina_00007_20231107144105.pcap finished in 0.70 minutes
Flow Alerts Stopped. 13 left.
Network Discovery Stopped. 12 left.
Timeline Stopped. 11 left.
IP Info Stopped. 10 left.
Leak Detector Stopped. 9 left.
Threat Intelligence Stopped. 8 left.
HTTP Analyzer Stopped. 7 left.
ARP Stopped. 6 left.
Flow ML Detection Stopped. 5 left.

[Main] The following modules are busy working on your data.

['Update Manager', 'Evidence', 'Profiler', 'Input', 'Output']

You can wait for them to finish, or you can press CTRL-C again to force-kill.

[Main] Update Manager may take several minutes to finish updating 45+ TI files.
Traceback (most recent call last):
File "/usr/local/lib/python3.8/dist-packages/redis/connection.py", line 559, in connect
sock = self._connect()
File "/usr/local/lib/python3.8/dist-packages/redis/connection.py", line 615, in _connect
raise err
File "/usr/local/lib/python3.8/dist-packages/redis/connection.py", line 603, in _connect
sock.connect(socket_address)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/StratosphereLinuxIPS/modules/update_manager/update_manager.py", line 563, in update_TI_file
self.delete_old_source_data_from_database(file_name_to_download)
File "/StratosphereLinuxIPS/modules/update_manager/update_manager.py", line 713, in delete_old_source_data_from_database
self.delete_old_source_IPs(data_file)
File "/StratosphereLinuxIPS/modules/update_manager/update_manager.py", line 683, in delete_old_source_IPs
all_data = self.db.get_IPs_in_IoC()
File "/StratosphereLinuxIPS/slips_files/core/database/database_manager.py", line 454, in get_IPs_in_IoC
return self.rdb.get_IPs_in_IoC(*args, **kwargs)
File "/StratosphereLinuxIPS/slips_files/core/database/redis_db/ioc_handler.py", line 140, in get_IPs_in_IoC
return self.rcache.hgetall('IoC_ips')
File "/usr/local/lib/python3.8/dist-packages/redis/client.py", line 3014, in hgetall
return self.execute_command('HGETALL', name)
File "/usr/local/lib/python3.8/dist-packages/redis/client.py", line 898, in execute_command
conn = self.connection or pool.get_connection(command_name, **options)
File "/usr/local/lib/python3.8/dist-packages/redis/connection.py", line 1192, in get_connection
connection.connect()
File "/usr/local/lib/python3.8/dist-packages/redis/connection.py", line 563, in connect
raise ConnectionError(self._error_message(e))
redis.exceptions.ConnectionError: Error 111 connecting to localhost:6379. Connection refused.
Traceback (most recent call last):
File "/usr/local/lib/python3.8/dist-packages/redis/connection.py", line 559, in connect
sock = self._connect()
File "/usr/local/lib/python3.8/dist-packages/redis/connection.py", line 615, in _connect
raise err
File "/usr/local/lib/python3.8/dist-packages/redis/connection.py", line 603, in _connect
sock.connect(socket_address)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/StratosphereLinuxIPS/modules/update_manager/update_manager.py", line 563, in update_TI_file
self.delete_old_source_data_from_database(file_name_to_download)
File "/StratosphereLinuxIPS/modules/update_manager/update_manager.py", line 713, in delete_old_source_data_from_database
self.delete_old_source_IPs(data_file)
File "/StratosphereLinuxIPS/modules/update_manager/update_manager.py", line 683, in delete_old_source_IPs
all_data = self.db.get_IPs_in_IoC()
File "/StratosphereLinuxIPS/slips_files/core/database/database_manager.py", line 454, in get_IPs_in_IoC
return self.rdb.get_IPs_in_IoC(*args, **kwargs)
File "/StratosphereLinuxIPS/slips_files/core/database/redis_db/ioc_handler.py", line 140, in get_IPs_in_IoC
return self.rcache.hgetall('IoC_ips')
File "/usr/local/lib/python3.8/dist-packages/redis/client.py", line 3014, in hgetall
return self.execute_command('HGETALL', name)
File "/usr/local/lib/python3.8/dist-packages/redis/client.py", line 898, in execute_command
conn = self.connection or pool.get_connection(command_name, **options)
File "/usr/local/lib/python3.8/dist-packages/redis/connection.py", line 1192, in get_connection
connection.connect()
File "/usr/local/lib/python3.8/dist-packages/redis/connection.py", line 563, in connect
raise ConnectionError(self._error_message(e))
redis.exceptions.ConnectionError: Error 111 connecting to localhost:6379. Connection refused.
Traceback (most recent call last):
File "/usr/local/lib/python3.8/dist-packages/redis/connection.py", line 559, in connect
sock = self._connect()
File "/usr/local/lib/python3.8/dist-packages/redis/connection.py", line 615, in _connect
raise err
File "/usr/local/lib/python3.8/dist-packages/redis/connection.py", line 603, in _connect
sock.connect(socket_address)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/StratosphereLinuxIPS/modules/update_manager/update_manager.py", line 563, in update_TI_file
self.delete_old_source_data_from_database(file_name_to_download)
File "/StratosphereLinuxIPS/modules/update_manager/update_manager.py", line 713, in delete_old_source_data_from_database
self.delete_old_source_IPs(data_file)
File "/StratosphereLinuxIPS/modules/update_manager/update_manager.py", line 683, in delete_old_source_IPs
all_data = self.db.get_IPs_in_IoC()
File "/StratosphereLinuxIPS/slips_files/core/database/database_manager.py", line 454, in get_IPs_in_IoC
return self.rdb.get_IPs_in_IoC(*args, **kwargs)
File "/StratosphereLinuxIPS/slips_files/core/database/redis_db/ioc_handler.py", line 140, in get_IPs_in_IoC
return self.rcache.hgetall('IoC_ips')
File "/usr/local/lib/python3.8/dist-packages/redis/client.py", line 3014, in hgetall
return self.execute_command('HGETALL', name)
File "/usr/local/lib/python3.8/dist-packages/redis/client.py", line 898, in execute_command
conn = self.connection or pool.get_connection(command_name, **options)
File "/usr/local/lib/python3.8/dist-packages/redis/connection.py", line 1192, in get_connection
connection.connect()
File "/usr/local/lib/python3.8/dist-packages/redis/connection.py", line 563, in connect
raise ConnectionError(self._error_message(e))
redis.exceptions.ConnectionError: Error 111 connecting to localhost:6379. Connection refused.
Traceback (most recent call last):
File "/usr/local/lib/python3.8/dist-packages/redis/connection.py", line 559, in connect
sock = self._connect()
File "/usr/local/lib/python3.8/dist-packages/redis/connection.py", line 615, in _connect
raise err
File "/usr/local/lib/python3.8/dist-packages/redis/connection.py", line 603, in _connect
sock.connect(socket_address)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/StratosphereLinuxIPS/modules/update_manager/update_manager.py", line 563, in update_TI_file
self.delete_old_source_data_from_database(file_name_to_download)
File "/StratosphereLinuxIPS/modules/update_manager/update_manager.py", line 713, in delete_old_source_data_from_database
self.delete_old_source_IPs(data_file)
File "/StratosphereLinuxIPS/modules/update_manager/update_manager.py", line 683, in delete_old_source_IPs
all_data = self.db.get_IPs_in_IoC()
File "/StratosphereLinuxIPS/slips_files/core/database/database_manager.py", line 454, in get_IPs_in_IoC
return self.rdb.get_IPs_in_IoC(*args, **kwargs)
File "/StratosphereLinuxIPS/slips_files/core/database/redis_db/ioc_handler.py", line 140, in get_IPs_in_IoC
return self.rcache.hgetall('IoC_ips')
File "/usr/local/lib/python3.8/dist-packages/redis/client.py", line 3014, in hgetall
return self.execute_command('HGETALL', name)
File "/usr/local/lib/python3.8/dist-packages/redis/client.py", line 898, in execute_command
conn = self.connection or pool.get_connection(command_name, **options)
File "/usr/local/lib/python3.8/dist-packages/redis/connection.py", line 1192, in get_connection
connection.connect()
File "/usr/local/lib/python3.8/dist-packages/redis/connection.py", line 563, in connect
raise ConnectionError(self._error_message(e))
redis.exceptions.ConnectionError: Error 111 connecting to localhost:6379. Connection refused.
Traceback (most recent call last):
File "/usr/local/lib/python3.8/dist-packages/redis/connection.py", line 559, in connect
sock = self._connect()
File "/usr/local/lib/python3.8/dist-packages/redis/connection.py", line 615, in _connect
raise err
File "/usr/local/lib/python3.8/dist-packages/redis/connection.py", line 603, in _connect
sock.connect(socket_address)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/StratosphereLinuxIPS/modules/update_manager/update_manager.py", line 563, in update_TI_file
self.delete_old_source_data_from_database(file_name_to_download)
File "/StratosphereLinuxIPS/modules/update_manager/update_manager.py", line 713, in delete_old_source_data_from_database
self.delete_old_source_IPs(data_file)
File "/StratosphereLinuxIPS/modules/update_manager/update_manager.py", line 683, in delete_old_source_IPs
all_data = self.db.get_IPs_in_IoC()
File "/StratosphereLinuxIPS/slips_files/core/database/database_manager.py", line 454, in get_IPs_in_IoC
return self.rdb.get_IPs_in_IoC(*args, **kwargs)
File "/StratosphereLinuxIPS/slips_files/core/database/redis_db/ioc_handler.py", line 140, in get_IPs_in_IoC
return self.rcache.hgetall('IoC_ips')
File "/usr/local/lib/python3.8/dist-packages/redis/client.py", line 3014, in hgetall
return self.execute_command('HGETALL', name)
File "/usr/local/lib/python3.8/dist-packages/redis/client.py", line 898, in execute_command
conn = self.connection or pool.get_connection(command_name, **options)
File "/usr/local/lib/python3.8/dist-packages/redis/connection.py", line 1192, in get_connection
connection.connect()
File "/usr/local/lib/python3.8/dist-packages/redis/connection.py", line 563, in connect
raise ConnectionError(self._error_message(e))
redis.exceptions.ConnectionError: Error 111 connecting to localhost:6379. Connection refused.
Traceback (most recent call last):
File "/usr/local/lib/python3.8/dist-packages/redis/connection.py", line 559, in connect
sock = self._connect()
File "/usr/local/lib/python3.8/dist-packages/redis/connection.py", line 615, in _connect
raise err
File "/usr/local/lib/python3.8/dist-packages/redis/connection.py", line 603, in _connect
sock.connect(socket_address)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/StratosphereLinuxIPS/modules/update_manager/update_manager.py", line 563, in update_TI_file
self.delete_old_source_data_from_database(file_name_to_download)
File "/StratosphereLinuxIPS/modules/update_manager/update_manager.py", line 713, in delete_old_source_data_from_database
self.delete_old_source_IPs(data_file)
File "/StratosphereLinuxIPS/modules/update_manager/update_manager.py", line 683, in delete_old_source_IPs
all_data = self.db.get_IPs_in_IoC()
File "/StratosphereLinuxIPS/slips_files/core/database/database_manager.py", line 454, in get_IPs_in_IoC
return self.rdb.get_IPs_in_IoC(*args, **kwargs)
File "/StratosphereLinuxIPS/slips_files/core/database/redis_db/ioc_handler.py", line 140, in get_IPs_in_IoC
return self.rcache.hgetall('IoC_ips')
File "/usr/local/lib/python3.8/dist-packages/redis/client.py", line 3014, in hgetall
return self.execute_command('HGETALL', name)
File "/usr/local/lib/python3.8/dist-packages/redis/client.py", line 898, in execute_command
conn = self.connection or pool.get_connection(command_name, **options)
File "/usr/local/lib/python3.8/dist-packages/redis/connection.py", line 1192, in get_connection
connection.connect()
File "/usr/local/lib/python3.8/dist-packages/redis/connection.py", line 563, in connect
raise ConnectionError(self._error_message(e))
redis.exceptions.ConnectionError: Error 111 connecting to localhost:6379. Connection refused.
Traceback (most recent call last):
File "/usr/local/lib/python3.8/dist-packages/redis/connection.py", line 559, in connect
sock = self._connect()
File "/usr/local/lib/python3.8/dist-packages/redis/connection.py", line 615, in _connect
raise err
File "/usr/local/lib/python3.8/dist-packages/redis/connection.py", line 603, in _connect
sock.connect(socket_address)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/StratosphereLinuxIPS/modules/update_manager/update_manager.py", line 563, in update_TI_file
self.delete_old_source_data_from_database(file_name_to_download)
File "/StratosphereLinuxIPS/modules/update_manager/update_manager.py", line 713, in delete_old_source_data_from_database
self.delete_old_source_IPs(data_file)
File "/StratosphereLinuxIPS/modules/update_manager/update_manager.py", line 683, in delete_old_source_IPs
all_data = self.db.get_IPs_in_IoC()
File "/StratosphereLinuxIPS/slips_files/core/database/database_manager.py", line 454, in get_IPs_in_IoC
return self.rdb.get_IPs_in_IoC(*args, **kwargs)
File "/StratosphereLinuxIPS/slips_files/core/database/redis_db/ioc_handler.py", line 140, in get_IPs_in_IoC
return self.rcache.hgetall('IoC_ips')
File "/usr/local/lib/python3.8/dist-packages/redis/client.py", line 3014, in hgetall
return self.execute_command('HGETALL', name)
File "/usr/local/lib/python3.8/dist-packages/redis/client.py", line 898, in execute_command
conn = self.connection or pool.get_connection(command_name, **options)
File "/usr/local/lib/python3.8/dist-packages/redis/connection.py", line 1192, in get_connection
connection.connect()
File "/usr/local/lib/python3.8/dist-packages/redis/connection.py", line 563, in connect
raise ConnectionError(self._error_message(e))
redis.exceptions.ConnectionError: Error 111 connecting to localhost:6379. Connection refused.
Traceback (most recent call last):
File "/usr/local/lib/python3.8/dist-packages/redis/connection.py", line 559, in connect
sock = self._connect()
File "/usr/local/lib/python3.8/dist-packages/redis/connection.py", line 615, in _connect
raise err
File "/usr/local/lib/python3.8/dist-packages/redis/connection.py", line 603, in _connect
sock.connect(socket_address)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/StratosphereLinuxIPS/modules/update_manager/update_manager.py", line 563, in update_TI_file
self.delete_old_source_data_from_database(file_name_to_download)
File "/StratosphereLinuxIPS/modules/update_manager/update_manager.py", line 713, in delete_old_source_data_from_database
self.delete_old_source_IPs(data_file)
File "/StratosphereLinuxIPS/modules/update_manager/update_manager.py", line 683, in delete_old_source_IPs
all_data = self.db.get_IPs_in_IoC()
File "/StratosphereLinuxIPS/slips_files/core/database/database_manager.py", line 454, in get_IPs_in_IoC
return self.rdb.get_IPs_in_IoC(*args, **kwargs)
File "/StratosphereLinuxIPS/slips_files/core/database/redis_db/ioc_handler.py", line 140, in get_IPs_in_IoC
return self.rcache.hgetall('IoC_ips')
File "/usr/local/lib/python3.8/dist-packages/redis/client.py", line 3014, in hgetall
return self.execute_command('HGETALL', name)
File "/usr/local/lib/python3.8/dist-packages/redis/client.py", line 898, in execute_command
conn = self.connection or pool.get_connection(command_name, **options)
File "/usr/local/lib/python3.8/dist-packages/redis/connection.py", line 1192, in get_connection
connection.connect()
File "/usr/local/lib/python3.8/dist-packages/redis/connection.py", line 563, in connect
raise ConnectionError(self._error_message(e))
redis.exceptions.ConnectionError: Error 111 connecting to localhost:6379. Connection refused.
Traceback (most recent call last):
File "/usr/local/lib/python3.8/dist-packages/redis/connection.py", line 559, in connect
sock = self._connect()
File "/usr/local/lib/python3.8/dist-packages/redis/connection.py", line 615, in _connect
raise err
File "/usr/local/lib/python3.8/dist-packages/redis/connection.py", line 603, in _connect
sock.connect(socket_address)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/StratosphereLinuxIPS/modules/update_manager/update_manager.py", line 563, in update_TI_file
self.delete_old_source_data_from_database(file_name_to_download)
File "/StratosphereLinuxIPS/modules/update_manager/update_manager.py", line 713, in delete_old_source_data_from_database
self.delete_old_source_IPs(data_file)
File "/StratosphereLinuxIPS/modules/update_manager/update_manager.py", line 683, in delete_old_source_IPs
all_data = self.db.get_IPs_in_IoC()
File "/StratosphereLinuxIPS/slips_files/core/database/database_manager.py", line 454, in get_IPs_in_IoC
return self.rdb.get_IPs_in_IoC(*args, **kwargs)
File "/StratosphereLinuxIPS/slips_files/core/database/redis_db/ioc_handler.py", line 140, in get_IPs_in_IoC
return self.rcache.hgetall('IoC_ips')
File "/usr/local/lib/python3.8/dist-packages/redis/client.py", line 3014, in hgetall
return self.execute_command('HGETALL', name)
File "/usr/local/lib/python3.8/dist-packages/redis/client.py", line 898, in execute_command
conn = self.connection or pool.get_connection(command_name, **options)
File "/usr/local/lib/python3.8/dist-packages/redis/connection.py", line 1192, in get_connection
connection.connect()
File "/usr/local/lib/python3.8/dist-packages/redis/connection.py", line 563, in connect
raise ConnectionError(self._error_message(e))
redis.exceptions.ConnectionError: Error 111 connecting to localhost:6379. Connection refused.
Traceback (most recent call last):
File "/usr/local/lib/python3.8/dist-packages/redis/connection.py", line 559, in connect
sock = self._connect()
File "/usr/local/lib/python3.8/dist-packages/redis/connection.py", line 615, in _connect
raise err
File "/usr/local/lib/python3.8/dist-packages/redis/connection.py", line 603, in _connect
sock.connect(socket_address)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/StratosphereLinuxIPS/modules/update_manager/update_manager.py", line 563, in update_TI_file
self.delete_old_source_data_from_database(file_name_to_download)
File "/StratosphereLinuxIPS/modules/update_manager/update_manager.py", line 713, in delete_old_source_data_from_database
self.delete_old_source_IPs(data_file)
File "/StratosphereLinuxIPS/modules/update_manager/update_manager.py", line 683, in delete_old_source_IPs
all_data = self.db.get_IPs_in_IoC()
File "/StratosphereLinuxIPS/slips_files/core/database/database_manager.py", line 454, in get_IPs_in_IoC
return self.rdb.get_IPs_in_IoC(*args, **kwargs)
File "/StratosphereLinuxIPS/slips_files/core/database/redis_db/ioc_handler.py", line 140, in get_IPs_in_IoC
return self.rcache.hgetall('IoC_ips')
File "/usr/local/lib/python3.8/dist-packages/redis/client.py", line 3014, in hgetall
return self.execute_command('HGETALL', name)
File "/usr/local/lib/python3.8/dist-packages/redis/client.py", line 898, in execute_command
conn = self.connection or pool.get_connection(command_name, **options)
File "/usr/local/lib/python3.8/dist-packages/redis/connection.py", line 1192, in get_connection
connection.connect()
File "/usr/local/lib/python3.8/dist-packages/redis/connection.py", line 563, in connect
raise ConnectionError(self._error_message(e))
redis.exceptions.ConnectionError: Error 111 connecting to localhost:6379. Connection refused.
Traceback (most recent call last):
File "/usr/local/lib/python3.8/dist-packages/redis/connection.py", line 559, in connect
sock = self._connect()
File "/usr/local/lib/python3.8/dist-packages/redis/connection.py", line 615, in _connect
raise err
File "/usr/local/lib/python3.8/dist-packages/redis/connection.py", line 603, in _connect
sock.connect(socket_address)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/StratosphereLinuxIPS/modules/update_manager/update_manager.py", line 563, in update_TI_file
self.delete_old_source_data_from_database(file_name_to_download)
File "/StratosphereLinuxIPS/modules/update_manager/update_manager.py", line 713, in delete_old_source_data_from_database
self.delete_old_source_IPs(data_file)
File "/StratosphereLinuxIPS/modules/update_manager/update_manager.py", line 683, in delete_old_source_IPs
all_data = self.db.get_IPs_in_IoC()
File "/StratosphereLinuxIPS/slips_files/core/database/database_manager.py", line 454, in get_IPs_in_IoC
return self.rdb.get_IPs_in_IoC(*args, **kwargs)
File "/StratosphereLinuxIPS/slips_files/core/database/redis_db/ioc_handler.py", line 140, in get_IPs_in_IoC
return self.rcache.hgetall('IoC_ips')
File "/usr/local/lib/python3.8/dist-packages/redis/client.py", line 3014, in hgetall
return self.execute_command('HGETALL', name)
File "/usr/local/lib/python3.8/dist-packages/redis/client.py", line 898, in execute_command
conn = self.connection or pool.get_connection(command_name, **options)
File "/usr/local/lib/python3.8/dist-packages/redis/connection.py", line 1192, in get_connection
connection.connect()
File "/usr/local/lib/python3.8/dist-packages/redis/connection.py", line 563, in connect
raise ConnectionError(self._error_message(e))
redis.exceptions.ConnectionError: Error 111 connecting to localhost:6379. Connection refused.
Traceback (most recent call last):
File "/usr/local/lib/python3.8/dist-packages/redis/connection.py", line 559, in connect
sock = self._connect()
File "/usr/local/lib/python3.8/dist-packages/redis/connection.py", line 615, in _connect
raise err
File "/usr/local/lib/python3.8/dist-packages/redis/connection.py", line 603, in _connect
sock.connect(socket_address)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/StratosphereLinuxIPS/modules/update_manager/update_manager.py", line 563, in update_TI_file
self.delete_old_source_data_from_database(file_name_to_download)
File "/StratosphereLinuxIPS/modules/update_manager/update_manager.py", line 713, in delete_old_source_data_from_database
self.delete_old_source_IPs(data_file)
File "/StratosphereLinuxIPS/modules/update_manager/update_manager.py", line 683, in delete_old_source_IPs
all_data = self.db.get_IPs_in_IoC()
File "/StratosphereLinuxIPS/slips_files/core/database/database_manager.py", line 454, in get_IPs_in_IoC
return self.rdb.get_IPs_in_IoC(*args, **kwargs)
File "/StratosphereLinuxIPS/slips_files/core/database/redis_db/ioc_handler.py", line 140, in get_IPs_in_IoC
return self.rcache.hgetall('IoC_ips')
File "/usr/local/lib/python3.8/dist-packages/redis/client.py", line 3014, in hgetall
return self.execute_command('HGETALL', name)
File "/usr/local/lib/python3.8/dist-packages/redis/client.py", line 898, in execute_command
conn = self.connection or pool.get_connection(command_name, **options)
File "/usr/local/lib/python3.8/dist-packages/redis/connection.py", line 1192, in get_connection
connection.connect()
File "/usr/local/lib/python3.8/dist-packages/redis/connection.py", line 563, in connect
raise ConnectionError(self._error_message(e))
redis.exceptions.ConnectionError: Error 111 connecting to localhost:6379. Connection refused.
Traceback (most recent call last):
File "/usr/local/lib/python3.8/dist-packages/redis/connection.py", line 559, in connect
sock = self._connect()
File "/usr/local/lib/python3.8/dist-packages/redis/connection.py", line 615, in _connect
raise err
File "/usr/local/lib/python3.8/dist-packages/redis/connection.py", line 603, in _connect
sock.connect(socket_address)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/StratosphereLinuxIPS/modules/update_manager/update_manager.py", line 563, in update_TI_file
self.delete_old_source_data_from_database(file_name_to_download)
File "/StratosphereLinuxIPS/modules/update_manager/update_manager.py", line 713, in delete_old_source_data_from_database
self.delete_old_source_IPs(data_file)
File "/StratosphereLinuxIPS/modules/update_manager/update_manager.py", line 683, in delete_old_source_IPs
all_data = self.db.get_IPs_in_IoC()
File "/StratosphereLinuxIPS/slips_files/core/database/database_manager.py", line 454, in get_IPs_in_IoC
return self.rdb.get_IPs_in_IoC(*args, **kwargs)
File "/StratosphereLinuxIPS/slips_files/core/database/redis_db/ioc_handler.py", line 140, in get_IPs_in_IoC
return self.rcache.hgetall('IoC_ips')
File "/usr/local/lib/python3.8/dist-packages/redis/client.py", line 3014, in hgetall
return self.execute_command('HGETALL', name)
File "/usr/local/lib/python3.8/dist-packages/redis/client.py", line 898, in execute_command
conn = self.connection or pool.get_connection(command_name, **options)
File "/usr/local/lib/python3.8/dist-packages/redis/connection.py", line 1192, in get_connection
connection.connect()
File "/usr/local/lib/python3.8/dist-packages/redis/connection.py", line 563, in connect
raise ConnectionError(self._error_message(e))
redis.exceptions.ConnectionError: Error 111 connecting to localhost:6379. Connection refused.
Traceback (most recent call last):
File "/usr/local/lib/python3.8/dist-packages/redis/connection.py", line 559, in connect
sock = self._connect()
File "/usr/local/lib/python3.8/dist-packages/redis/connection.py", line 615, in _connect
raise err
File "/usr/local/lib/python3.8/dist-packages/redis/connection.py", line 603, in _connect
sock.connect(socket_address)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/StratosphereLinuxIPS/modules/update_manager/update_manager.py", line 563, in update_TI_file
self.delete_old_source_data_from_database(file_name_to_download)
File "/StratosphereLinuxIPS/modules/update_manager/update_manager.py", line 713, in delete_old_source_data_from_database
self.delete_old_source_IPs(data_file)
File "/StratosphereLinuxIPS/modules/update_manager/update_manager.py", line 683, in delete_old_source_IPs
all_data = self.db.get_IPs_in_IoC()
File "/StratosphereLinuxIPS/slips_files/core/database/database_manager.py", line 454, in get_IPs_in_IoC
return self.rdb.get_IPs_in_IoC(*args, **kwargs)
File "/StratosphereLinuxIPS/slips_files/core/database/redis_db/ioc_handler.py", line 140, in get_IPs_in_IoC
return self.rcache.hgetall('IoC_ips')
File "/usr/local/lib/python3.8/dist-packages/redis/client.py", line 3014, in hgetall
return self.execute_command('HGETALL', name)
File "/usr/local/lib/python3.8/dist-packages/redis/client.py", line 898, in execute_command
conn = self.connection or pool.get_connection(command_name, **options)
File "/usr/local/lib/python3.8/dist-packages/redis/connection.py", line 1192, in get_connection
connection.connect()
File "/usr/local/lib/python3.8/dist-packages/redis/connection.py", line 563, in connect
raise ConnectionError(self._error_message(e))
redis.exceptions.ConnectionError: Error 111 connecting to localhost:6379. Connection refused.
Traceback (most recent call last):
File "/usr/local/lib/python3.8/dist-packages/redis/connection.py", line 559, in connect
sock = self._connect()
File "/usr/local/lib/python3.8/dist-packages/redis/connection.py", line 615, in _connect
raise err
File "/usr/local/lib/python3.8/dist-packages/redis/connection.py", line 603, in _connect
sock.connect(socket_address)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/StratosphereLinuxIPS/modules/update_manager/update_manager.py", line 563, in update_TI_file
self.delete_old_source_data_from_database(file_name_to_download)
File "/StratosphereLinuxIPS/modules/update_manager/update_manager.py", line 713, in delete_old_source_data_from_database
self.delete_old_source_IPs(data_file)
File "/StratosphereLinuxIPS/modules/update_manager/update_manager.py", line 683, in delete_old_source_IPs
all_data = self.db.get_IPs_in_IoC()
File "/StratosphereLinuxIPS/slips_files/core/database/database_manager.py", line 454, in get_IPs_in_IoC
return self.rdb.get_IPs_in_IoC(*args, **kwargs)
File "/StratosphereLinuxIPS/slips_files/core/database/redis_db/ioc_handler.py", line 140, in get_IPs_in_IoC
return self.rcache.hgetall('IoC_ips')
File "/usr/local/lib/python3.8/dist-packages/redis/client.py", line 3014, in hgetall
return self.execute_command('HGETALL', name)
File "/usr/local/lib/python3.8/dist-packages/redis/client.py", line 898, in execute_command
conn = self.connection or pool.get_connection(command_name, **options)
File "/usr/local/lib/python3.8/dist-packages/redis/connection.py", line 1192, in get_connection
connection.connect()
File "/usr/local/lib/python3.8/dist-packages/redis/connection.py", line 563, in connect
raise ConnectionError(self._error_message(e))
redis.exceptions.ConnectionError: Error 111 connecting to localhost:6379. Connection refused.
Traceback (most recent call last):
File "/usr/local/lib/python3.8/dist-packages/redis/connection.py", line 559, in connect
sock = self._connect()
File "/usr/local/lib/python3.8/dist-packages/redis/connection.py", line 615, in _connect
raise err
File "/usr/local/lib/python3.8/dist-packages/redis/connection.py", line 603, in _connect
sock.connect(socket_address)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/StratosphereLinuxIPS/modules/update_manager/update_manager.py", line 563, in update_TI_file
self.delete_old_source_data_from_database(file_name_to_download)
File "/StratosphereLinuxIPS/modules/update_manager/update_manager.py", line 713, in delete_old_source_data_from_database
self.delete_old_source_IPs(data_file)
File "/StratosphereLinuxIPS/modules/update_manager/update_manager.py", line 683, in delete_old_source_IPs
all_data = self.db.get_IPs_in_IoC()
File "/StratosphereLinuxIPS/slips_files/core/database/database_manager.py", line 454, in get_IPs_in_IoC
return self.rdb.get_IPs_in_IoC(*args, **kwargs)
File "/StratosphereLinuxIPS/slips_files/core/database/redis_db/ioc_handler.py", line 140, in get_IPs_in_IoC
return self.rcache.hgetall('IoC_ips')
File "/usr/local/lib/python3.8/dist-packages/redis/client.py", line 3014, in hgetall
return self.execute_command('HGETALL', name)
File "/usr/local/lib/python3.8/dist-packages/redis/client.py", line 898, in execute_command
conn = self.connection or pool.get_connection(command_name, **options)
File "/usr/local/lib/python3.8/dist-packages/redis/connection.py", line 1192, in get_connection
connection.connect()
File "/usr/local/lib/python3.8/dist-packages/redis/connection.py", line 563, in connect
raise ConnectionError(self._error_message(e))
redis.exceptions.ConnectionError: Error 111 connecting to localhost:6379. Connection refused.
Traceback (most recent call last):
File "/usr/local/lib/python3.8/dist-packages/redis/connection.py", line 559, in connect
sock = self._connect()
File "/usr/local/lib/python3.8/dist-packages/redis/connection.py", line 615, in _connect
raise err
File "/usr/local/lib/python3.8/dist-packages/redis/connection.py", line 603, in _connect
sock.connect(socket_address)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/StratosphereLinuxIPS/modules/update_manager/update_manager.py", line 563, in update_TI_file
self.delete_old_source_data_from_database(file_name_to_download)
File "/StratosphereLinuxIPS/modules/update_manager/update_manager.py", line 713, in delete_old_source_data_from_database
self.delete_old_source_IPs(data_file)
File "/StratosphereLinuxIPS/modules/update_manager/update_manager.py", line 683, in delete_old_source_IPs
all_data = self.db.get_IPs_in_IoC()
File "/StratosphereLinuxIPS/slips_files/core/database/database_manager.py", line 454, in get_IPs_in_IoC
return self.rdb.get_IPs_in_IoC(*args, **kwargs)
File "/StratosphereLinuxIPS/slips_files/core/database/redis_db/ioc_handler.py", line 140, in get_IPs_in_IoC
return self.rcache.hgetall('IoC_ips')
File "/usr/local/lib/python3.8/dist-packages/redis/client.py", line 3014, in hgetall
return self.execute_command('HGETALL', name)
File "/usr/local/lib/python3.8/dist-packages/redis/client.py", line 898, in execute_command
conn = self.connection or pool.get_connection(command_name, **options)
File "/usr/local/lib/python3.8/dist-packages/redis/connection.py", line 1192, in get_connection
connection.connect()
File "/usr/local/lib/python3.8/dist-packages/redis/connection.py", line 563, in connect
raise ConnectionError(self._error_message(e))
redis.exceptions.ConnectionError: Error 111 connecting to localhost:6379. Connection refused.
Traceback (most recent call last):
File "/usr/local/lib/python3.8/dist-packages/redis/connection.py", line 559, in connect
sock = self._connect()
File "/usr/local/lib/python3.8/dist-packages/redis/connection.py", line 615, in _connect
raise err
File "/usr/local/lib/python3.8/dist-packages/redis/connection.py", line 603, in _connect
sock.connect(socket_address)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/StratosphereLinuxIPS/modules/update_manager/update_manager.py", line 563, in update_TI_file
self.delete_old_source_data_from_database(file_name_to_download)
File "/StratosphereLinuxIPS/modules/update_manager/update_manager.py", line 713, in delete_old_source_data_from_database
self.delete_old_source_IPs(data_file)
File "/StratosphereLinuxIPS/modules/update_manager/update_manager.py", line 683, in delete_old_source_IPs
all_data = self.db.get_IPs_in_IoC()
File "/StratosphereLinuxIPS/slips_files/core/database/database_manager.py", line 454, in get_IPs_in_IoC
return self.rdb.get_IPs_in_IoC(*args, **kwargs)
File "/StratosphereLinuxIPS/slips_files/core/database/redis_db/ioc_handler.py", line 140, in get_IPs_in_IoC
return self.rcache.hgetall('IoC_ips')
File "/usr/local/lib/python3.8/dist-packages/redis/client.py", line 3014, in hgetall
return self.execute_command('HGETALL', name)
File "/usr/local/lib/python3.8/dist-packages/redis/client.py", line 898, in execute_command
conn = self.connection or pool.get_connection(command_name, **options)
File "/usr/local/lib/python3.8/dist-packages/redis/connection.py", line 1192, in get_connection
connection.connect()
File "/usr/local/lib/python3.8/dist-packages/redis/connection.py", line 563, in connect
raise ConnectionError(self._error_message(e))
redis.exceptions.ConnectionError: Error 111 connecting to localhost:6379. Connection refused.
Traceback (most recent call last):
File "/usr/local/lib/python3.8/dist-packages/redis/connection.py", line 559, in connect
sock = self._connect()
File "/usr/local/lib/python3.8/dist-packages/redis/connection.py", line 615, in _connect
raise err
File "/usr/local/lib/python3.8/dist-packages/redis/connection.py", line 603, in _connect
sock.connect(socket_address)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/StratosphereLinuxIPS/modules/update_manager/update_manager.py", line 563, in update_TI_file
self.delete_old_source_data_from_database(file_name_to_download)
File "/StratosphereLinuxIPS/modules/update_manager/update_manager.py", line 713, in delete_old_source_data_from_database
self.delete_old_source_IPs(data_file)
File "/StratosphereLinuxIPS/modules/update_manager/update_manager.py", line 683, in delete_old_source_IPs
all_data = self.db.get_IPs_in_IoC()
File "/StratosphereLinuxIPS/slips_files/core/database/database_manager.py", line 454, in get_IPs_in_IoC
return self.rdb.get_IPs_in_IoC(*args, **kwargs)
File "/StratosphereLinuxIPS/slips_files/core/database/redis_db/ioc_handler.py", line 140, in get_IPs_in_IoC
return self.rcache.hgetall('IoC_ips')
File "/usr/local/lib/python3.8/dist-packages/redis/client.py", line 3014, in hgetall
return self.execute_command('HGETALL', name)
File "/usr/local/lib/python3.8/dist-packages/redis/client.py", line 898, in execute_command
conn = self.connection or pool.get_connection(command_name, **options)
File "/usr/local/lib/python3.8/dist-packages/redis/connection.py", line 1192, in get_connection
connection.connect()
File "/usr/local/lib/python3.8/dist-packages/redis/connection.py", line 563, in connect
raise ConnectionError(self._error_message(e))
redis.exceptions.ConnectionError: Error 111 connecting to localhost:6379. Connection refused.
Traceback (most recent call last):
File "/usr/local/lib/python3.8/dist-packages/redis/connection.py", line 559, in connect
sock = self._connect()
File "/usr/local/lib/python3.8/dist-packages/redis/connection.py", line 615, in _connect
raise err
File "/usr/local/lib/python3.8/dist-packages/redis/connection.py", line 603, in _connect
sock.connect(socket_address)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/StratosphereLinuxIPS/modules/update_manager/update_manager.py", line 563, in update_TI_file
self.delete_old_source_data_from_database(file_name_to_download)
File "/StratosphereLinuxIPS/modules/update_manager/update_manager.py", line 713, in delete_old_source_data_from_database
self.delete_old_source_IPs(data_file)
File "/StratosphereLinuxIPS/modules/update_manager/update_manager.py", line 683, in delete_old_source_IPs
all_data = self.db.get_IPs_in_IoC()
File "/StratosphereLinuxIPS/slips_files/core/database/database_manager.py", line 454, in get_IPs_in_IoC
return self.rdb.get_IPs_in_IoC(*args, **kwargs)
File "/StratosphereLinuxIPS/slips_files/core/database/redis_db/ioc_handler.py", line 140, in get_IPs_in_IoC
return self.rcache.hgetall('IoC_ips')
File "/usr/local/lib/python3.8/dist-packages/redis/client.py", line 3014, in hgetall
return self.execute_command('HGETALL', name)
File "/usr/local/lib/python3.8/dist-packages/redis/client.py", line 898, in execute_command
conn = self.connection or pool.get_connection(command_name, **options)
File "/usr/local/lib/python3.8/dist-packages/redis/connection.py", line 1192, in get_connection
connection.connect()
File "/usr/local/lib/python3.8/dist-packages/redis/connection.py", line 563, in connect
raise ConnectionError(self._error_message(e))
redis.exceptions.ConnectionError: Error 111 connecting to localhost:6379. Connection refused.
Traceback (most recent call last):
File "/usr/local/lib/python3.8/dist-packages/redis/connection.py", line 559, in connect
sock = self._connect()
File "/usr/local/lib/python3.8/dist-packages/redis/connection.py", line 615, in _connect
raise err
File "/usr/local/lib/python3.8/dist-packages/redis/connection.py", line 603, in _connect
sock.connect(socket_address)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/StratosphereLinuxIPS/modules/update_manager/update_manager.py", line 563, in update_TI_file
self.delete_old_source_data_from_database(file_name_to_download)
File "/StratosphereLinuxIPS/modules/update_manager/update_manager.py", line 713, in delete_old_source_data_from_database
self.delete_old_source_IPs(data_file)
File "/StratosphereLinuxIPS/modules/update_manager/update_manager.py", line 683, in delete_old_source_IPs
all_data = self.db.get_IPs_in_IoC()
File "/StratosphereLinuxIPS/slips_files/core/database/database_manager.py", line 454, in get_IPs_in_IoC
return self.rdb.get_IPs_in_IoC(*args, **kwargs)
File "/StratosphereLinuxIPS/slips_files/core/database/redis_db/ioc_handler.py", line 140, in get_IPs_in_IoC
return self.rcache.hgetall('IoC_ips')
File "/usr/local/lib/python3.8/dist-packages/redis/client.py", line 3014, in hgetall
return self.execute_command('HGETALL', name)
File "/usr/local/lib/python3.8/dist-packages/redis/client.py", line 898, in execute_command
conn = self.connection or pool.get_connection(command_name, **options)
File "/usr/local/lib/python3.8/dist-packages/redis/connection.py", line 1192, in get_connection
connection.connect()
File "/usr/local/lib/python3.8/dist-packages/redis/connection.py", line 563, in connect
raise ConnectionError(self._error_message(e))
redis.exceptions.ConnectionError: Error 111 connecting to localhost:6379. Connection refused.
Traceback (most recent call last):
File "/usr/local/lib/python3.8/dist-packages/redis/connection.py", line 559, in connect
sock = self._connect()
File "/usr/local/lib/python3.8/dist-packages/redis/connection.py", line 615, in _connect
raise err
File "/usr/local/lib/python3.8/dist-packages/redis/connection.py", line 603, in _connect
sock.connect(socket_address)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/StratosphereLinuxIPS/modules/update_manager/update_manager.py", line 563, in update_TI_file
self.delete_old_source_data_from_database(file_name_to_download)
File "/StratosphereLinuxIPS/modules/update_manager/update_manager.py", line 713, in delete_old_source_data_from_database
self.delete_old_source_IPs(data_file)
File "/StratosphereLinuxIPS/modules/update_manager/update_manager.py", line 683, in delete_old_source_IPs
all_data = self.db.get_IPs_in_IoC()
File "/StratosphereLinuxIPS/slips_files/core/database/database_manager.py", line 454, in get_IPs_in_IoC
return self.rdb.get_IPs_in_IoC(*args, **kwargs)
File "/StratosphereLinuxIPS/slips_files/core/database/redis_db/ioc_handler.py", line 140, in get_IPs_in_IoC
return self.rcache.hgetall('IoC_ips')
File "/usr/local/lib/python3.8/dist-packages/redis/client.py", line 3014, in hgetall
return self.execute_command('HGETALL', name)
File "/usr/local/lib/python3.8/dist-packages/redis/client.py", line 898, in execute_command
conn = self.connection or pool.get_connection(command_name, **options)
File "/usr/local/lib/python3.8/dist-packages/redis/connection.py", line 1192, in get_connection
connection.connect()
File "/usr/local/lib/python3.8/dist-packages/redis/connection.py", line 563, in connect
raise ConnectionError(self._error_message(e))
redis.exceptions.ConnectionError: Error 111 connecting to localhost:6379. Connection refused.
Traceback (most recent call last):
File "/usr/local/lib/python3.8/dist-packages/redis/connection.py", line 559, in connect
sock = self._connect()
File "/usr/local/lib/python3.8/dist-packages/redis/connection.py", line 615, in _connect
raise err
File "/usr/local/lib/python3.8/dist-packages/redis/connection.py", line 603, in _connect
sock.connect(socket_address)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/StratosphereLinuxIPS/modules/update_manager/update_manager.py", line 563, in update_TI_file
self.delete_old_source_data_from_database(file_name_to_download)
File "/StratosphereLinuxIPS/modules/update_manager/update_manager.py", line 713, in delete_old_source_data_from_database
self.delete_old_source_IPs(data_file)
File "/StratosphereLinuxIPS/modules/update_manager/update_manager.py", line 683, in delete_old_source_IPs
all_data = self.db.get_IPs_in_IoC()
File "/StratosphereLinuxIPS/slips_files/core/database/database_manager.py", line 454, in get_IPs_in_IoC
return self.rdb.get_IPs_in_IoC(*args, **kwargs)
File "/StratosphereLinuxIPS/slips_files/core/database/redis_db/ioc_handler.py", line 140, in get_IPs_in_IoC
return self.rcache.hgetall('IoC_ips')
File "/usr/local/lib/python3.8/dist-packages/redis/client.py", line 3014, in hgetall
return self.execute_command('HGETALL', name)
File "/usr/local/lib/python3.8/dist-packages/redis/client.py", line 898, in execute_command
conn = self.connection or pool.get_connection(command_name, **options)
File "/usr/local/lib/python3.8/dist-packages/redis/connection.py", line 1192, in get_connection
connection.connect()
File "/usr/local/lib/python3.8/dist-packages/redis/connection.py", line 563, in connect
raise ConnectionError(self._error_message(e))
redis.exceptions.ConnectionError: Error 111 connecting to localhost:6379. Connection refused.
Traceback (most recent call last):
File "/usr/local/lib/python3.8/dist-packages/redis/connection.py", line 559, in connect
sock = self._connect()
File "/usr/local/lib/python3.8/dist-packages/redis/connection.py", line 615, in _connect

Traceback (most recent call last):
File "/StratosphereLinuxIPS/modules/update_manager/update_manager.py", line 563, in update_TI_file
self.delete_old_source_data_from_database(file_name_to_download)
File "/StratosphereLinuxIPS/modules/update_manager/update_manager.py", line 713, in delete_old_source_data_from_database
self.delete_old_source_IPs(data_file)
File "/StratosphereLinuxIPS/modules/update_manager/update_manager.py", line 683, in delete_old_source_IPs
all_data = self.db.get_IPs_in_IoC()
File "/StratosphereLinuxIPS/slips_files/core/database/database_manager.py", line 454, in get_IPs_in_IoC
return self.rdb.get_IPs_in_IoC(*args, **kwargs)
File "/StratosphereLinuxIPS/slips_files/core/database/redis_db/ioc_handler.py", line 140, in get_IPs_in_IoC
return self.rcache.hgetall('IoC_ips')
File "/usr/local/lib/python3.8/dist-packages/redis/client.py", line 3014, in hgetall
return self.execute_command('HGETALL', name)
File "/usr/local/lib/python3.8/dist-packages/redis/client.py", line 898, in execute_command
conn = self.connection or pool.get_connection(command_name, **options)
File "/usr/local/lib/python3.8/dist-packages/redis/connection.py", line 1192, in get_connection
connection.connect()
File "/usr/local/lib/python3.8/dist-packages/redis/connection.py", line 563, in connect
raise ConnectionError(self._error_message(e))
redis.exceptions.ConnectionError: Error 111 connecting to localhost:6379. Connection refused.
Traceback (most recent call last):
File "/usr/local/lib/python3.8/dist-packages/redis/connection.py", line 559, in connect
sock = self._connect()
File "/usr/local/lib/python3.8/dist-packages/redis/connection.py", line 615, in _connect
raise err
File "/usr/local/lib/python3.8/dist-packages/redis/connection.py", line 603, in _connect
sock.connect(socket_address)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/StratosphereLinuxIPS/modules/update_manager/update_manager.py", line 563, in update_TI_file
self.delete_old_source_data_from_database(file_name_to_download)
File "/StratosphereLinuxIPS/modules/update_manager/update_manager.py", line 713, in delete_old_source_data_from_database
self.delete_old_source_IPs(data_file)
File "/StratosphereLinuxIPS/modules/update_manager/update_manager.py", line 683, in delete_old_source_IPs
all_data = self.db.get_IPs_in_IoC()
File "/StratosphereLinuxIPS/slips_files/core/database/database_manager.py", line 454, in get_IPs_in_IoC
return self.rdb.get_IPs_in_IoC(*args, **kwargs)
File "/StratosphereLinuxIPS/slips_files/core/database/redis_db/ioc_handler.py", line 140, in get_IPs_in_IoC
return self.rcache.hgetall('IoC_ips')
File "/usr/local/lib/python3.8/dist-packages/redis/client.py", line 3014, in hgetall
return self.execute_command('HGETALL', name)
File "/usr/local/lib/python3.8/dist-packages/redis/client.py", line 898, in execute_command
conn = self.connection or pool.get_connection(command_name, **options)
File "/usr/local/lib/python3.8/dist-packages/redis/connection.py", line 1192, in get_connection
connection.connect()
File "/usr/local/lib/python3.8/dist-packages/redis/connection.py", line 563, in connect
raise ConnectionError(self._error_message(e))
redis.exceptions.ConnectionError: Error 111 connecting to localhost:6379. Connection refused.
Traceback (most recent call last):
File "/usr/local/lib/python3.8/dist-packages/redis/connection.py", line 559, in connect
sock = self._connect()
File "/usr/local/lib/python3.8/dist-packages/redis/connection.py", line 615, in _connect
raise err
File "/usr/local/lib/python3.8/dist-packages/redis/connection.py", line 603, in _connect
sock.connect(socket_address)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/StratosphereLinuxIPS/modules/update_manager/update_manager.py", line 563, in update_TI_file

File "/usr/local/lib/python3.8/dist-packages/redis/connection.py", line 603, in _connect
sock.connect(socket_address)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/StratosphereLinuxIPS/modules/update_manager/update_manager.py", line 563, in update_TI_file
self.delete_old_source_data_from_database(file_name_to_download)
File "/StratosphereLinuxIPS/modules/update_manager/update_manager.py", line 713, in delete_old_source_data_from_database
self.delete_old_source_IPs(data_file)
File "/StratosphereLinuxIPS/modules/update_manager/update_manager.py", line 683, in delete_old_source_IPs
all_data = self.db.get_IPs_in_IoC()
File "/StratosphereLinuxIPS/slips_files/core/database/database_manager.py", line 454, in get_IPs_in_IoC
return self.rdb.get_IPs_in_IoC(*args, **kwargs)
File "/StratosphereLinuxIPS/slips_files/core/database/redis_db/ioc_handler.py", line 140, in get_IPs_in_IoC
return self.rcache.hgetall('IoC_ips')
File "/usr/local/lib/python3.8/dist-packages/redis/client.py", line 3014, in hgetall
return self.execute_command('HGETALL', name)
File "/usr/local/lib/python3.8/dist-packages/redis/client.py", line 898, in execute_command
conn = self.connection or pool.get_connection(command_name, **options)
File "/usr/local/lib/python3.8/dist-packages/redis/connection.py", line 1192, in get_connection
connection.connect()
File "/usr/local/lib/python3.8/dist-packages/redis/connection.py", line 563, in connect
raise ConnectionError(self._error_message(e))
redis.exceptions.ConnectionError: Error 111 connecting to localhost:6379. Connection refused.
Traceback (most recent call last):
File "/usr/local/lib/python3.8/dist-packages/redis/connection.py", line 559, in connect
sock = self._connect()
File "/usr/local/lib/python3.8/dist-packages/redis/connection.py", line 615, in _connect
raise err
File "/usr/local/lib/python3.8/dist-packages/redis/connection.py", line 603, in _connect
sock.connect(socket_address)
ConnectionRefusedError: [Errno 111] Connection refused

...
`

Branch
Master or Develop?

Environment (please complete the following information):

  • OS: [e.g. iOS]
  • Version [e.g. 22]
  • Python version [e.g. 3.8]
  • Are you running slips in docker or locally? [yes/no]
  • Docker version (if running slips in docker) [e.g. 20.10.22]
  • Slips docker image used (if running slips in docker) [e.g. macosm1-image, macosm1-P2P-image, ubuntu-image, dependency-image]

Additional context
Add any other context about the problem here.

@Ondjultomte
Copy link
Author

Ops, topic got cut.

@Ondjultomte
Copy link
Author

linuxkit-6a8162938e55:/StratosphereLinuxIPS# ps afx|grep redis
1 pts/0 Ssl 0:00 /usr/bin/qemu-x86_64 /bin/sh /bin/sh -c redis-server --daemonize yes && /bin/bash
5185 pts/0 Sl+ 0:00 _ /usr/bin/qemu-x86_64 /usr/bin/grep grep --color=auto redis

redis seems to be running

@Ondjultomte
Copy link
Author

root@linuxkit-6a8162938e55:/StratosphereLinuxIPS# netstat -tlpn
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 0.0.0.0:56233 0.0.0.0:* LISTEN -
tcp 0 0 0.0.0.0:111 0.0.0.0:* LISTEN -
tcp6 0 0 :::58897 :::* LISTEN -
tcp6 0 0 :::111 :::* LISTEN -

@AlyaGomaa AlyaGomaa changed the title C How to run slips on Apple Silicon Nov 10, 2023
@AlyaGomaa
Copy link
Collaborator

hello @Ondjultomte

Check the docker map here to know which docker image is the correct one for your arch
https://github.com/stratosphereips/StratosphereLinuxIPS/tree/develop#build-slips-from-the-dockerfile

This docker image stratosphereips/slips:latest is for Linux

Since you're using Apple's M1, you should use the macosm1-image instead
https://hub.docker.com/r/stratosphereips/slips_macos_m1

let us know how it goes!

@Ondjultomte
Copy link
Author

image

@linuxkit-6a8162938e55:/StratosphereLinuxIPS# ./slips.py dataset/carina_00007_20231107144105.pcap
usage: ./slips.py -c [options] [file]
slips.py: error: unrecognized arguments: dataset/carina_00007_20231107144105.pcap
root@linuxkit-6a8162938e55:/StratosphereLinuxIPS# python3 slips.py -e 1 -f dataset/infected.pcap
[Main] Storing Slips logs in output/infected.pcap_2023-11-13_14:13:26/
Slips. Version 1.0.7 (822db6d)
https://stratosphereips.org

[Main] Using redis server on port: 6379
Started Main process [PID 70]
Started Output Process [PID 101]
Starting modules
Starting the module Risk IQ (Module to get passive DNS info about IPs from RiskIQ) [PID 131]
Starting the module ARP (Detect arp attacks) [PID 133]
Starting the module Flow Alerts (Alerts about flows: long connection, successful ssh, password guessing, self-signed certificate, data exfiltration, etc.) [PID 136]
Starting the module Flow ML Detection (Train or test a Machine Learning model to detect malicious flows) [PID 139]
Starting the module HTTP Analyzer (Analyze HTTP flows) [PID 142]
Starting the module IP Info (Get different info about an IP/MAC address) [PID 144]
Starting the module Leak Detector (Detect leaks of data in the traffic) [PID 152]
Starting the module Network Discovery (Detect Horizonal, Vertical Port scans, ICMP, and DHCP scans) [PID 156]
Starting the module Threat Intelligence (Check if the source IP or destination IP are in a malicious list of IPs) [PID 162]
Starting the module Timeline (Creates kalipso timeline of what happened in the network based on flows and available data) [PID 165]
Starting the module Update Manager (Update Threat Intelligence files) [PID 171]
Starting the module Virustotal (IP, domain and file hash lookup on Virustotal) [PID 177]

[Main] Disabled Modules: ['template', 'ensembling', 'rnnccdetection', 'Exporting Alerts', 'p2ptrust', 'CESNET', 'blocking', 'CYST']
[Evidence] Storing Slips logs in output/infected.pcap_2023-11-13_14:13:26/
Started Evidence Process [PID 179]
Started Profiler Process [PID 181]
[Main] Metadata added to output/infected.pcap_2023-11-13_14:13:26/metadata
Started Input Process [PID 183]
[Main] Warning: Slips may generate a large amount of traffic by querying TI sites.
[Input] Storing zeek log files in output/infected.pcap_2023-11-13_14:13:26/zeek_files
[Input] Problem in main() line 177
[Input] Traceback (most recent call last):
File "/StratosphereLinuxIPS/slips_files/common/abstracts.py", line 177, in run
error: bool = self.main()
File "/StratosphereLinuxIPS/slips_files/core/inputProcess.py", line 895, in main
self.handle_pcap_and_interface()
File "/StratosphereLinuxIPS/slips_files/core/inputProcess.py", line 628, in handle_pcap_and_interface
self.start_observer()
File "/StratosphereLinuxIPS/slips_files/core/inputProcess.py", line 619, in start_observer
self.event_observer.start()
File "/usr/local/lib/python3.8/dist-packages/watchdog/observers/api.py", line 256, in start
emitter.start()
File "/usr/local/lib/python3.8/dist-packages/watchdog/utils/init.py", line 93, in start
self.on_thread_start()
File "/usr/local/lib/python3.8/dist-packages/watchdog/observers/inotify.py", line 118, in on_thread_start
self._inotify = InotifyBuffer(path, self.watch.is_recursive)
File "/usr/local/lib/python3.8/dist-packages/watchdog/observers/inotify_buffer.py", line 35, in init
self._inotify = Inotify(path, recursive)
File "/usr/local/lib/python3.8/dist-packages/watchdog/observers/inotify_c.py", line 155, in init
Inotify._raise_error()
File "/usr/local/lib/python3.8/dist-packages/watchdog/observers/inotify_c.py", line 405, in _raise_error
raise OSError(err, os.strerror(err))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants