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

Cortex Analyzers return JSON error when run #441

Open
zJvco opened this issue Feb 28, 2023 · 0 comments
Open

Cortex Analyzers return JSON error when run #441

zJvco opened this issue Feb 28, 2023 · 0 comments

Comments

@zJvco
Copy link

zJvco commented Feb 28, 2023

EDIT THIS TITLE BEFORE POSTING. Use this template for bug reports. If you'd like to request a feature, please be as descriptive as possible and delete the template except the first section (Request Type)

Request Type

Bug

Work Environment

Question Answer
OS version (server) Ubuntu
OS version (client) 22.04 LTS
Cortex version / git hash Docker Latest
Package Type Docker, docker-compose
Browser type & version If applicable

Problem Description

I'm using docker and docker-compose, and I installed the Virtustotal_GetReport_3_1 but when I run it returns me a JSON error.

This is my docker-compose cortex cfg:

cortex.local:
    image: thehiveproject/cortex:latest
    container_name: cortex
    restart: unless-stopped
    environment:
      - job_directory=/opt/cortex/jobs
      - docker_job_directory=/tmp/cortex-jobs
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock
      - /tmp/cortex-jobs:/tmp/cortex-jobs
      - ./cortex/logs:/var/log/cortex
      - ./cortex/application.conf:/cortex/application.conf
    depends_on:
      - elasticsearch
    ports:
      - "0.0.0.0:9001:9001"

Complementary information

Traceback (most recent call last):
  File "/worker/VirusTotal/virustotal.py", line 404, in <module>
    VirusTotalAnalyzer().run()
    ^^^^^^^^^^^^^^^^^^^^
  File "/worker/VirusTotal/virustotal.py", line 23, in __init__
    Analyzer.__init__(self)
  File "/usr/local/lib/python3.11/site-packages/cortexutils/analyzer.py", line 18, in __init__
    Worker.__init__(self, job_directory, secret_phrases)
  File "/usr/local/lib/python3.11/site-packages/cortexutils/worker.py", line 35, in __init__
    self._input = json.load(sys.stdin)
                  ^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/json/__init__.py", line 293, in load
    return loads(fp.read(),
           ^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/json/__init__.py", line 346, in loads
    return _default_decoder.decode(s)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/json/decoder.py", line 337, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/json/decoder.py", line 355, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
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

1 participant