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 ignores Environment Proxies #130

Closed
stdio-h opened this issue Nov 2, 2017 · 0 comments
Closed

VirusTotal ignores Environment Proxies #130

stdio-h opened this issue Nov 2, 2017 · 0 comments
Assignees
Labels
category:enhancement Issue is related to an existing feature to improve scope:analyzer Issue is analyzer related

Comments

@stdio-h
Copy link

stdio-h commented Nov 2, 2017

Request Type

Bug

Work Environment

Question Answer
OS version (server) Debian 9
OS version (client) N/A
Cortex Analyzer Name VirusTotal_GetReport
Cortex Analyzer Version 3.0
Cortex Version 1.1.4
Browser type & version N/A

Description

virustotal_api.py ignores any proxy settings within /etc/environment, because it is initialized with only the virustotal_key by virustotal.py

virustotal_api.py:
  def __init__(self, api_key=None, proxies=None)

virustotal.py:
  def run(self):
    ...
    self.vt = VirusTotalPublicApi(self.virustotal_key)

Steps to Reproduce

  1. set proxy within /etc/environment
  2. try to run VirusTotal analyzer (without direct connection; only proxy)

Possible Solutions

Either add a proxies configuration:

  virustotal.py:
    def __init__(self):
      self.proxies = self.getParam('config.proxies', None)
      ...
    def run(self):
      self.vt = VirusTotalPublicApi(self.virustotal_key, self.proxies)
      ...

Or remove proxies from virustotal_api.py to use the system proxies.

Complementary information

@saadkadhi saadkadhi added scope:analyzer Issue is analyzer related category:enhancement Issue is related to an existing feature to improve labels Nov 4, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category:enhancement Issue is related to an existing feature to improve scope:analyzer Issue is analyzer related
Projects
None yet
Development

No branches or pull requests

3 participants