From a1fcedbc4bcb3886b6803ae6cc0f2ab2e951ab4d Mon Sep 17 00:00:00 2001 From: Sekhar-Kumar-Dash <119131588+Sekhar-Kumar-Dash@users.noreply.github.com> Date: Fri, 22 Mar 2024 12:13:03 +0530 Subject: [PATCH] Update config_parser.py added description for analysis_direction --- slips_files/common/parsers/config_parser.py | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/slips_files/common/parsers/config_parser.py b/slips_files/common/parsers/config_parser.py index ac4da2ba7..f8f868bdd 100644 --- a/slips_files/common/parsers/config_parser.py +++ b/slips_files/common/parsers/config_parser.py @@ -547,6 +547,16 @@ def timeline_human_timestamp(self): ) def analysis_direction(self): + """ + Controls which traffic flows are processed and analyzed by SLIPS. + + Determines whether SLIPS should focus on: + - 'out' mode: Analyzes only outbound traffic (potential data exfiltration) + - 'all' mode: Analyzes traffic in both directions (inbound and outbound) + + Returns: + str or False: The value of the 'analysis_direction' parameter, or False if not found. + """ return self.read_configuration( 'parameters', 'analysis_direction', False ) @@ -779,4 +789,4 @@ def get_memory_profiler_mode(self): return self.read_configuration('Profiling', 'memory_profiler_mode', 'dev') def get_memory_profiler_multiprocess(self): - return self.read_configuration('Profiling', 'memory_profiler_multiprocess', 'yes') \ No newline at end of file + return self.read_configuration('Profiling', 'memory_profiler_multiprocess', 'yes')