TheHive-Project / TheHive-Project/Cortex-Analyzers

[Bug] Wazuh responder problem with analyzer

Open
#1,243 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
490
Forks
405
Avg merge
2d 43m
Merged PRs (30d)
8

Description

Hello everyone I'm trying to get fix the problem in the wazuh responder

How can I get the data from an artifact or observable in a case ?

I created one new observable "agent_id" this is visible in my list of observables in the case in Thehive

imagen

How can I get the data from that field and pass to the payload to run the command firewalldrop

imagen

imagen

If I run the command like above this It works
imagen

When I change the code to the following the analyzer failed

imagen

imagen

what command or code I need to get that data from that field "agent_id " in this case 12079 ??

Work environment

  • Client OS: Windows 11
  • Browse type and version: Firefox
  • Cortex version: 3.1.7
  • Cortex Analyzer/Responder name: Wazuh 1.0

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 at the Wazuh responder (version 1.0) and compare the working command with the failing change shown in the screenshots. Verify how the case observable's agent_id is supplied to the firewalldrop payload; done means the analyzer runs successfully and passes the value 12079.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
security
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.