mirror of https://github.com/MISP/PyMISP
22 lines
759 B
Python
22 lines
759 B
Python
#!/usr/bin/env python3
|
|
# -*- coding: utf-8 -*-
|
|
|
|
from .abstractgenerator import AbstractMISPObjectGenerator
|
|
|
|
|
|
class SBSignatureObject(AbstractMISPObjectGenerator):
|
|
'''
|
|
Sandbox Analyzer
|
|
'''
|
|
def __init__(self, software: str, report: list, standalone: bool=True, **kwargs):
|
|
super(SBSignatureObject, self).__init__("sb-signature", **kwargs)
|
|
self._software = software
|
|
self._report = report
|
|
self.generate_attributes()
|
|
|
|
def generate_attributes(self):
|
|
''' Parse the report for relevant attributes '''
|
|
self.add_attribute("software", value=self._software)
|
|
for (signature_name, description) in self._report:
|
|
self.add_attribute("signature", value=signature_name, comment=description)
|