From 79011d840b04cef13e7a395965001689c6482b16 Mon Sep 17 00:00:00 2001 From: Hubert Jasudowicz Date: Mon, 19 Apr 2021 10:30:43 +0200 Subject: [PATCH] Add configuration knob --- drakrun/drakrun/config.dist.ini | 2 ++ drakrun/drakrun/main.py | 5 +++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/drakrun/drakrun/config.dist.ini b/drakrun/drakrun/config.dist.ini index a5c39188d..8031da5cb 100644 --- a/drakrun/drakrun/config.dist.ini +++ b/drakrun/drakrun/config.dist.ini @@ -74,6 +74,8 @@ enable_ipt=0 ; protects against API hammering techniques, default 0 (means: off) ; anti_hammering_threshold=0 +; (advanced) Attach DLL profiles to analyses +; attach_profiles=0 [drakvuf_plugins] ; list of enabled DRAKVUF plugins that are used by default, diff --git a/drakrun/drakrun/main.py b/drakrun/drakrun/main.py index 4844bf71d..562594724 100644 --- a/drakrun/drakrun/main.py +++ b/drakrun/drakrun/main.py @@ -366,8 +366,9 @@ def send_analysis(self, sample, outdir, metadata, quality): if self.test_run: task.add_payload('testcase', self.current_task.payload['testcase']) - self.log.info("Uploading profiles...") - task.add_payload("profiles", self.build_profile_payload()) + if self.config.config.getboolean("drakrun", "attach_profiles", fallback=False): + self.log.info("Uploading profiles...") + task.add_payload("profiles", self.build_profile_payload()) self.log.info("Uploading artifacts...") for resource in self.upload_artifacts(self.analysis_uid, outdir):