MISP / MISP/misp-modules

Error Surfaced while Submitting JSON file to threatanalyzer_import.py

Open
#195 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
377
Forks
280
Avg merge
2d 2h
Merged PRs (30d)
10

Description

Hi, I am new to MISP and I am trying to import my findings from the ThreatAnalyser's sandboxes to MISP.

I have with me the json file which can be found in analysis.zip.
When I passed my json file into the handler function, I received the following error message:

Traceback (most recent call last):
File "threatanalyzer_import.py", line 535, in
acheived_results = handler(jsonReceived)
File "threatanalyzer_import.py", line 39, in handler
data = base64.b64decode(request['data'])
TypeError: string indices must be integers

I'm not sure of where i went wrong, so I really appreciate any help I can get! Thank you so much!!

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start in threatanalyzer_import.py at handler on line 39 and the invocation around line 535. Inspect the expected request shape against the JSON file from analysis.zip and reproduce the reported TypeError; done should mean the input is either imported successfully or rejected with a clear, actionable error.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
backend, security
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
18/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.