Code Monkey home page Code Monkey logo

assemblyline-service-virustotal-static's Introduction

DEPRECATED: Replaced by assemblyline-service-virustotal

VirusTotal Static Service

This Assemblyline service performs a hash check against the VirusTotal API and returns the results.

NOTE: This service requires you to have your own API key (Paid or Free). It is not preinstalled during a default installation.

Execution

This service calls the VirusTotal file report API with the hash of your file and returns the results (if any) over the v3 REST API.

Because this service queries an external API, if selected by the user, it will prompt the user and notify them that their file or metadata related to their file will leave our system.

assemblyline-service-virustotal-static's People

Contributors

cccs-douglass avatar cccs-rs avatar cccs-rushi avatar cccs-sgaron avatar tparrott-cse avatar vpenso avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Forkers

jredi-jedi

assemblyline-service-virustotal-static's Issues

Feature Request: Add optional relationships that line up with the ODM

Create submission parameters for the service to optionally add relationships available from the VT API, that line up with the ODM. Ideally, this parameter could be a comma-separated list of relationships that someone would like to obtain, since this would be identical to how VT's API works.
For example:

https://www.virustotal.com/api/v3/file/{file_hash}?relationships=contacted_ips,contacted_domains,contacted_urls,behaviours

(modified query from the documentation: https://developers.virustotal.com/reference/relationships)

A full list of file relationships can be found here
https://developers.virustotal.com/reference/files#relationships

Another nice-to-have feature: add "download_evtx" and "download_pcap" flags, which would grab any EVTX/PCAP files from related sandbox submissions, which could be then scanned against Sigma signatures in AL.
There are details on "has_evtx" and "has_pcap" values here:
https://developers.virustotal.com/reference/file-behaviour-summary#object-attributes

Getting a lot of errors during performing scanning

File "/var/lib/assemblyline/.local/lib/python3.7/site-packages/assemblyline_v4_service/common/base.py", line 79, in handle_task
    self.execute(request)
  File "/opt/al_service/virustotal_static.py", line 43, in execute
    response = self.scan_file(request)
  File "/opt/al_service/virustotal_static.py", line 63, in scan_file
    json_response = r.json()
  File "/var/lib/assemblyline/.local/lib/python3.7/site-packages/requests/models.py", line 898, in json
    return complexjson.loads(self.text, **kwargs)
  File "/usr/local/lib/python3.7/json/__init__.py", line 348, in loads
    return _default_decoder.decode(s)
  File "/usr/local/lib/python3.7/json/decoder.py", line 337, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/local/lib/python3.7/json/decoder.py", line 355, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
JSONDecodeError: Expecting value: line 1 column 1 (char 0)

Error viewers screenshots:
image

Services param config
image

Can I use it behind a proxy?

I was not able to use it behind a proxy. It looks like that a proxy is not supported in both virus-total services? The API of Virustotal does support it.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.