-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from OPSWAT/rename_to_metadefender_sandbox
Rename to MetaDefender Sandbox
- Loading branch information
Showing
8 changed files
with
69 additions
and
61 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,7 @@ | |
|
||
|
||
sys.path.append("..") | ||
import filescan_sandbox_result | ||
import metadefender_sandbox_result | ||
from assemblyline_v4_service.common.result import ( | ||
Result, | ||
ResultSection, | ||
|
@@ -22,7 +22,7 @@ def util_load_json(path: str) -> Any: | |
return json.loads(f.read()) | ||
|
||
|
||
class TestFilescanSandboxResult: | ||
class TestMetaDefenderSandboxResult: | ||
@classmethod | ||
def setup_class(cls): | ||
# copy yml | ||
|
@@ -51,7 +51,7 @@ def test_parse_compact_result_bad(): | |
.get("reports", {}) | ||
.get("93a90ffb-1aac-43f6-abdd-c579d6ae14df", {}) | ||
) | ||
compact_result = filescan_sandbox_result.parse_compact_result( | ||
compact_result = metadefender_sandbox_result.parse_compact_result( | ||
raw_response, | ||
"93a90ffb-1aac-43f6-abdd-c579d6ae14df", | ||
"64d1fb9c2a1db2a88ac17017", | ||
|
@@ -76,7 +76,7 @@ def test_parse_compact_result_informational(): | |
.get("reports", {}) | ||
.get("21815d5f-3653-466e-a421-187423ca7b93", {}) | ||
) | ||
compact_result = filescan_sandbox_result.parse_compact_result( | ||
compact_result = metadefender_sandbox_result.parse_compact_result( | ||
raw_response, | ||
"21815d5f-3653-466e-a421-187423ca7b93", | ||
"64de1abb9489ac1ead366732", | ||
|
@@ -101,7 +101,7 @@ def test_parse_compact_result_badfile2(): | |
.get("reports", {}) | ||
.get("d389e943-dc72-4070-aade-1d11f0457ea3", {}) | ||
) | ||
compact_result = filescan_sandbox_result.parse_compact_result( | ||
compact_result = metadefender_sandbox_result.parse_compact_result( | ||
raw_response, | ||
"d389e943-dc72-4070-aade-1d11f0457ea3", | ||
"64de19f4a29d57e20384dac6", | ||
|
@@ -146,7 +146,7 @@ def test_parse_compact_result_badfile2(): | |
@staticmethod | ||
def test_parse_compact_result_empty(): | ||
raw_response = {} | ||
compact_result = filescan_sandbox_result.parse_compact_result( | ||
compact_result = metadefender_sandbox_result.parse_compact_result( | ||
raw_response, | ||
"93a90ffb-1aac-43f6-abdd-c579d6ae14df", | ||
"64d1fb9c2a1db2a88ac17017", | ||
|
@@ -175,7 +175,7 @@ def test_process_allSignalGroups(): | |
|
||
rs = ResultSection("Test", body_format=BODY_FORMAT.TEXT, body="test") | ||
|
||
compact_result = filescan_sandbox_result.process_allSignalGroups( | ||
compact_result = metadefender_sandbox_result.process_allSignalGroups( | ||
rs, raw_response | ||
) | ||
|
||
|
@@ -193,7 +193,7 @@ def test_process_iocs(): | |
|
||
rs = ResultSection("Test", body_format=BODY_FORMAT.TEXT, body="test") | ||
|
||
compact_result = filescan_sandbox_result.process_iocs(rs, raw_response) | ||
compact_result = metadefender_sandbox_result.process_iocs(rs, raw_response) | ||
tags = { | ||
"network.email.address": ["[email protected]"], | ||
"network.static.uri": [ | ||
|
@@ -218,7 +218,7 @@ def test_process_allOsintTags(): | |
|
||
rs = ResultSection("Test", body_format=BODY_FORMAT.TEXT, body="test") | ||
|
||
compact_result = filescan_sandbox_result.process_allOsintTags(rs, raw_response) | ||
compact_result = metadefender_sandbox_result.process_allOsintTags(rs, raw_response) | ||
tags = {"av.virus_name": ["emotet", "geodo"]} | ||
assert rs.tags == tags | ||
|
||
|
@@ -233,7 +233,7 @@ def test_process_resources(): | |
|
||
rs = ResultSection("Test", body_format=BODY_FORMAT.TEXT, body="test") | ||
|
||
compact_result = filescan_sandbox_result.process_resources(rs, raw_response) | ||
compact_result = metadefender_sandbox_result.process_resources(rs, raw_response) | ||
tags = { | ||
"av.virus_name": ["Trojan/Riskware!my0NYEEN"], | ||
"attribution.family": ["riskware"], | ||
|