Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update antivirus_irma.py #440

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

r00t0vi4
Copy link

Some IRMA probes in 'report.json' may contain filed "status" with value equal to "-1".
Json chunk containing "status":-1 does not contain "resuts" field (other chunks with different status value contains "result" field)
This leads to the following error:

Failed to run 'on_complete' of the antivirus_irma signature
Traceback (most recent call last):
  File "/opt/cuckoo/venv/local/lib/python2.7/site-packages/cuckoo/core/plugins.py", line 414, in call_signature
    if not signature.matched and handler(*args, **kwargs):
  File "/opt/cuckoo/data/signatures/windows/antivirus_irma.py", line 33, in on_complete
    verdict = result["results"]
KeyError: 'results'

Some kind of check or exception handling is required here

Some IRMA probes in 'report.json' may contain filed "status" with value equal to "-1".
Json chunk containing "status":-1 does not contain "resuts" field (other chunks with different status value contains "result" field)
This leads to the following error:

```
Failed to run 'on_complete' of the antivirus_irma signature
Traceback (most recent call last):
  File "/opt/cuckoo/venv/local/lib/python2.7/site-packages/cuckoo/core/plugins.py", line 414, in call_signature
    if not signature.matched and handler(*args, **kwargs):
  File "/opt/cuckoo/data/signatures/windows/antivirus_irma.py", line 33, in on_complete
    verdict = result["results"]
KeyError: 'results'
```

Some kind of check or exception handling is required here
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant