island: Use MONKEY_ISLAND_ABS_PATH to locate STIX attack data

This commit is contained in:
Mike Salvatore 2021-06-02 09:54:46 -04:00
parent a8570987a6
commit 28a34a4ec9
1 changed files with 6 additions and 1 deletions

View File

@ -1,10 +1,15 @@
import os
from typing import Dict, List
from stix2 import AttackPattern, CourseOfAction, FileSystemSource, Filter
from monkey_island.cc.server_utils.consts import MONKEY_ISLAND_ABS_PATH
class MitreApiInterface:
ATTACK_DATA_PATH = "monkey_island/cc/services/attack/attack_data/enterprise-attack"
ATTACK_DATA_PATH = os.path.join(
MONKEY_ISLAND_ABS_PATH, "cc", "services", "attack", "attack_data", "enterprise-attack"
)
@staticmethod
def get_all_mitigations() -> Dict[str, CourseOfAction]: