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

VirusTotal_Download (v.1.1.2) service failing with errors #335

Open
ricotj opened this issue Jan 24, 2018 · 4 comments
Open

VirusTotal_Download (v.1.1.2) service failing with errors #335

ricotj opened this issue Jan 24, 2018 · 4 comments

Comments

@ricotj
Copy link

ricotj commented Jan 24, 2018

New install of crits (master) with the VirusTotal_Download service (master).

I get the following error when trying to download a sample:
Failed to create new Sample: handle_file() got an unexpected keyword argument 'reference'

Taking a look at the crits/crits/samples/handlers.py
def handle_file seems to have changed between stable and current master,
reference is now source_reference
method is now source_method

with these fixed (VirusTotal_Download init.py line# 186 & 188) I am getting the following error:
Failed to create new Sample: 'str' object has no attribute 'has_access_to'

@brlogan
Copy link
Contributor

brlogan commented Jan 24, 2018

That new error is probably a user/username issue. The user object has a "has_access_to" attribute, but if only the username is passed (not the entire user object), then you'll get that error.

@phate1
Copy link

phate1 commented Oct 2, 2019

for anyone else that hits this I resolved by modifying the init.py file in the virustotal_download_service folder right near the end when it sends the sample to crits to match this:

202             try:
203                 handle_file(filename = obj.md5,
204                             data = data,
205                             source = "VirusTotal",
206                             source_reference = "Binary downloaded from VT based on MD5",
207                             user = self.current_task.user,
208                             source_method = "VirusTotal Download Service",
209                             md5_digest = obj.md5 )

@apolkosnik
Copy link
Contributor

Nice, can you create a pull request? Thanks!

@phate1
Copy link

phate1 commented Oct 2, 2019

sure #350

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

No branches or pull requests

4 participants