Skip to content

Commit

Permalink
removed default TLP as WHITE to avoid unwanted overwrites of playbook…
Browse files Browse the repository at this point in the history
…s TLP configurations
  • Loading branch information
mlodic committed Oct 25, 2023
1 parent ca7ae35 commit 276ffc8
Showing 1 changed file with 6 additions and 14 deletions.
20 changes: 6 additions & 14 deletions pyintelowl/pyintelowl.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ def send_file_analysis_request(
Defaults to ``[]`` i.e. all connectors.
tlp (str, optional):
TLP for the analysis.
(options: ``WHITE, GREEN, AMBER, RED``). Defaults to ``WHITE``.
(options: ``WHITE, GREEN, AMBER, RED``).
runtime_configuration (Dict, optional):
Overwrite configuration for analyzers. Defaults to ``{}``.
tags_labels (List[str], optional):
Expand All @@ -184,8 +184,6 @@ def send_file_analysis_request(
Dict: JSON body
"""
try:
if not tlp:
tlp = "WHITE"
if not analyzers_requested:
analyzers_requested = []
if not connectors_requested:
Expand Down Expand Up @@ -232,7 +230,7 @@ def send_file_analysis_playbook_request(
Defaults to ``[]`` i.e. all playbooks.
tlp (str, optional):
TLP for the analysis.
(options: ``WHITE, GREEN, AMBER, RED``). Defaults to ``WHITE``.
(options: ``WHITE, GREEN, AMBER, RED``).
runtime_configuration (Dict, optional):
Overwrite configuration for analyzers. Defaults to ``{}``.
tags_labels (List[str], optional):
Expand All @@ -245,8 +243,6 @@ def send_file_analysis_playbook_request(
Dict: JSON body
"""
try:
if not tlp:
tlp = "WHITE"
if not playbooks_requested:
playbooks_requested = []
if not tags_labels:
Expand Down Expand Up @@ -296,7 +292,7 @@ def send_observable_analysis_request(
Defaults to ``[]`` i.e. all connectors.
tlp (str, optional):
TLP for the analysis.
(options: ``WHITE, GREEN, AMBER, RED``). Defaults to ``WHITE``.
(options: ``WHITE, GREEN, AMBER, RED``).
runtime_configuration (Dict, optional):
Overwrite configuration for analyzers. Defaults to ``{}``.
tags_labels (List[str], optional):
Expand All @@ -314,8 +310,6 @@ def send_observable_analysis_request(
Dict: JSON body
"""
try:
if not tlp:
tlp = "WHITE"
if not analyzers_requested:
analyzers_requested = []
if not connectors_requested:
Expand Down Expand Up @@ -373,7 +367,7 @@ def send_observable_analysis_playbook_request(
Defaults to ``[]`` i.e. all playbooks.
tlp (str, optional):
TLP for the analysis.
(options: ``WHITE, GREEN, AMBER, RED``). Defaults to ``WHITE``.
(options: ``WHITE, GREEN, AMBER, RED``).
runtime_configuration (Dict, optional):
Overwrite configuration for analyzers. Defaults to ``{}``.
tags_labels (List[str], optional):
Expand All @@ -391,8 +385,6 @@ def send_observable_analysis_playbook_request(
Dict: JSON body
"""
try:
if not tlp:
tlp = "WHITE"
if not playbooks_requested:
playbooks_requested = []
if not tags_labels:
Expand Down Expand Up @@ -685,7 +677,7 @@ def _new_analysis_cli(
obj: str,
type_: str,
check,
tlp: TLPType = "CLEAR",
tlp: TLPType = None,
analyzers_list: List[str] = None,
connectors_list: List[str] = None,
runtime_configuration: Dict = None,
Expand Down Expand Up @@ -775,7 +767,7 @@ def _new_analysis_playbook_cli(
obj: str,
type_: str,
check,
tlp: TLPType = "CLEAR",
tlp: TLPType = None,
playbooks_list: List[str] = None,
runtime_configuration: Dict = None,
tags_labels: List[str] = None,
Expand Down

0 comments on commit 276ffc8

Please sign in to comment.