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