Skip to content

Commit

Permalink
Update mordor_driver.py
Browse files Browse the repository at this point in the history
Suppress bandit warnings on loading pickled DFs.
Tracking in issue #639
  • Loading branch information
ianhelle authored Mar 14, 2023
1 parent 3ebcb89 commit 193cc74
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions msticpy/data/drivers/mordor_driver.py
Original file line number Diff line number Diff line change
Expand Up @@ -903,8 +903,9 @@ def _get_mitre_categories(
tactics_cache = Path(cache_folder).joinpath(_MITRE_TACTICS_CACHE)
if _valid_cache(tech_cache) and _valid_cache(tactics_cache):
try:
tech_df = pd.read_pickle(tech_cache)
tactics_df = pd.read_pickle(tactics_cache)
# caching location only used if sepcified.
tech_df = pd.read_pickle(tech_cache) # nosec
tactics_df = pd.read_pickle(tactics_cache) # nosec
return tech_df, tactics_df
except pickle.PickleError:
pass
Expand Down

0 comments on commit 193cc74

Please sign in to comment.