INNER CODE UNIT · Python
AttackObject
center-for-threat-informed-defense/tram · src/tram/models.py:25
class AttackObject(models.Model):
"""Attack Techniques"""
name = models.CharField(max_length=200)
stix_id = models.CharField(max_length=128)
stix_type = models.CharField(max_length=128)
attack_id = models.CharField(max_length=128)
attack_type = models.CharField(max_length=128)
attack_url = models.CharField(max_length=512)
matrix = models.CharField(max_length=200)
created_on = models.DateTimeField(auto_now_add=True)
updated_on = models.DateTimeField(auto_now=True)
sentences = models.ManyToManyField("Sentence", through="Mapping")
@classmethod
def get_sentence_counts(cls, accept_threshold=0):
"""