Skip to content

[BUG] AIP cannot execute if do_not_block_these_ips.csv file does not exist, but file can be empty #30

@verovaleros

Description

@verovaleros

Describe the bug

If this file can be empty, it seems unnecessary that the existence of the file should be a strict requirement:

self.donotblocklist = pd.read_csv(path.join(data_dir, 'external', 'do_not_block_these_ips.csv'))

To Reproduce
Run AIP without this file:

docker run --rm -v /opt/zeek/logs/:/home/aip/AIP/data/raw:ro -v ${PWD}/data/:/home/aip/AIP/data/:rw --name aip stratosphereips/aip:latest bin/aip

Expected behaviour
If the file doesn't exist, then maybe it is possible to consider it empty. It would technically mean the same.

Screenshots
image

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

Status

✅ Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions