chg: Improve documentation of MISPAttribute.malware_binary

pull/665/head
Raphaël Vinot 2020-11-30 09:53:49 +01:00
parent c8cb3bb589
commit babb04cbc2
1 changed files with 3 additions and 3 deletions

View File

@ -309,9 +309,9 @@ class MISPAttribute(AbstractMISP):
@property @property
def malware_binary(self) -> Optional[BytesIO]: def malware_binary(self) -> Optional[BytesIO]:
"""Returns a BytesIO of the malware (if the attribute has one, obvs). """Returns a BytesIO of the malware, if the attribute has one.
Note: The first call may be slow as it will decrypt the sample and this Decrypts, unpacks and caches the binary on the first invocation,
operation can be very slow, especially if the malware sample is big (~1s/MB). which may require some time for large attachments (~1s/MB).
""" """
if self.type != 'malware-sample': if self.type != 'malware-sample':
# Not a malware sample # Not a malware sample