Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Invalid response received from module reversedns - Using "Enrich Event"

オープン
#707 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
42/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
python
領域
security

調査の方向性

添付されたイベントと reversedns モジュールで失敗を再現し、app/Model/Event.php と app/Controller/EventsController.php を通るエンリッチメントの経路を追跡します。8.8.1.1 に対する Enrich Event の動作を、成功する Add のエンリッチメント経路と比較します。NXDOMAIN 応答によって invalid-response エラーが発生しなくなれば完了です。

索引モデルが issue の本文から書いたものです。

説明

Hey there,

Running latest version of the misp-modules and have updated all :)

Here is a sample MISP event to replicate
misp.event.1788.json

First I mark all the IP's:
image

Then click on the "Enrich Event" and choose the "reversedns"
image

This results in this error:

image

2024-12-17 19:25:37 Error: [RuntimeException] Invalid response received from module reversedns, response data do not contains results field.
Request URL: /events/enrichEvent/1788
Stack Trace:
#0 /var/www/MISP/app/Model/Event.php(6301): Event->enrichment()
#1 /var/www/MISP/app/Controller/EventsController.php(5985): Event->enrichmentRouter()
#2 [internal function]: EventsController->enrichEvent()
#3 /var/www/MISP/app/Lib/cakephp/lib/Cake/Controller/Controller.php(499): ReflectionMethod->invokeArgs()
#4 /var/www/MISP/app/Lib/cakephp/lib/Cake/Routing/Dispatcher.php(193): Controller->invokeAction()
#5 /var/www/MISP/app/Lib/cakephp/lib/Cake/Routing/Dispatcher.php(167): Dispatcher->_invoke()
#6 /var/www/MISP/app/webroot/index.php(105): Dispatcher->dispatch()
#7 {main}

So the IP's it is hitting error on seems to be "8.8.1.1" that does not have a reverse DNS name to it if a normal nslookup returns

nslookup 8.8.1.1
** server can't find 1.1.8.8.in-addr.arpa: NXDOMAIN

The interesting part is that as far as I can see the code it looks to attempt to handle NXDOMAIN, but it must be the combination of attempting to enrich through "Enrich Event".

If I choose the "8.8.1.1" and click the "Add enrichment" it returns

image

主要言語
Python
スター
381
フォーク
292
平均マージ
8時間 24分
マージ済み PR(30日)
139

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

MISP/misp-modules のほかの issue

MISP/misp-modules の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。