def generateThreatActor(attribute): ta = ThreatActor() ta.id_ = "example:threatactor-" + attribute["uuid"] ta.title = "MISP Attribute #" + attribute["id"] + " uuid: " + attribute[ "uuid"] ta.description = attribute["value"] return ta
def generateThreatActor(attribute): ta = ThreatActor(timestamp=getDateFromTimestamp(int(attribute["timestamp"]))) ta.id_= namespace[1] + ":threatactor-" + attribute["uuid"] ta.title = attribute["category"] + ": " + attribute["value"] + " (MISP Attribute #" + attribute["id"] + ")" if attribute["comment"] != "": ta.description = attribute["value"] + " (" + attribute["comment"] + ")" else: ta.description = attribute["value"] return ta
def generateThreatActor(attribute): ta = ThreatActor(timestamp=getDateFromTimestamp(int(attribute["timestamp"]))) ta.id_ = namespace[1] + ":threatactor-" + attribute["uuid"] ta.title = attribute["category"] + ": " + attribute["value"] + " (MISP Attribute #" + attribute["id"] + ")" if attribute["comment"] != "": ta.description = attribute["value"] + " (" + attribute["comment"] + ")" else: ta.description = attribute["value"] return ta
def generate_threat_actor(attribute): ta = ThreatActor(timestamp=attribute.timestamp) ta.id_ = "{}:threatactor-{}".format(namespace[1], attribute.uuid) ta.title = "{}: {} (MISP Attribute #{})".format(attribute.category, attribute.value, attribute.id) description = attribute.value if attribute.comment: description += " ({})".format(attribute.comment) ta.description = description return ta
def generateThreatActor(attribute): ta = ThreatActor() ta.id_= namespace[1] + ":threatactor-" + attribute["uuid"] ta.title = "MISP Attribute #" + attribute["id"] + " uuid: " + attribute["uuid"] if attribute["comment"] != "": ta.description = attribute["value"] + " (" + attribute["comment"] + ")" else: ta.description = attribute["value"] return ta
def generateThreatActor(attribute): ta = ThreatActor() ta.id_="example:threatactor-" + attribute["uuid"] ta.title = "MISP Attribute #" + attribute["id"] + " uuid: " + attribute["uuid"] ta.description = attribute["value"] return ta