Hello,
I facing problem with VirusTotal function in workflow. If I using manually on artifact, all works fine, but in workflow I get error (name 'artifact' is not defined) message like on screen below. The error occured after I tried mark task as a complete, then next step in workflow is virustotal function.
Does anyone have an idea, what could be wrong?
#virustotal
Regards

Pre-Process Script
typeLookup = { 'Email Attachment': 'file', 'Malware Sample': 'file', 'Malware MD5 Hash': 'hash', 'Malware SHA-1 Hash': 'hash', 'Malware SHA-256 Hash': 'hash', 'Other File': 'file', 'RCF 822 Email Message Fife': 'file', 'File Name': 'filename',
'URL': 'url', 'IP Address': 'ip', 'DNS Name':'domain'}
if artifact.type in typeLookup:
inputs.vt_type = typeLookup.get(artifact.type, artifact.type)
else:
inputs.vt_type = artifact.type
inputs.incident_id = incident.id
inputs.artifact_id = artifact.id
inputs.vt_data = artifact.value
Workflow
