GithubHelp home page GithubHelp logo

FOFA rule returns null about mihari HOT 4 CLOSED

V0lundr avatar V0lundr commented on July 30, 2024
FOFA rule returns null

from mihari.

Comments (4)

ninoseki avatar ninoseki commented on July 30, 2024

I guess you already have 137.74.131.20 in under the same rule.
You can check it by mihari artifact list "rule.id:575fdb13-c04f-48d2-80a8-c1587e1456a8 AND data:137.74.131.20.
If the command outputs something, my hypothesis is right.

from mihari.

V0lundr avatar V0lundr commented on July 30, 2024

Thanks for your quick reply. Actually the rule was new, as I was testing FOFA queries for the first time. In any case, the command you suggested produced the following:

mihari artifact list "rule.id:575fdb13-c04f-48d2-80a8-c1587e1456a8 AND data:137.74.131.20"
{
  "total": 0,
  "currentPage": 1,
  "pageSize": 10,
  "results": [

  ]
}

from mihari.

ninoseki avatar ninoseki commented on July 30, 2024

I'm unable to reproduce the issue unfortunately.

$ mihari search 575fdb13-c04f-48d2-80a8-c1587e1456a8                                                                                                                  
{
  "id": 4,
  "ruleId": "575fdb13-c04f-48d2-80a8-c1587e1456a8",
  "createdAt": "2024-01-03 15:09:41 UTC",
  "artifacts": [
    {
      "id": 4,
      "data": "137.74.131.20",
      "dataType": "ip",
      "source": "fofa",
      "query": "ip=\"137.74.131.20\"",
      "metadata": null,
      "createdAt": "2024-01-03 15:09:41 UTC"
    }
  ],
  "tags": [
    {
      "id": 1,
      "name": "FOFATest"
    }
  ]
}

from mihari.

V0lundr avatar V0lundr commented on July 30, 2024

No worries. I redeployed the system from scratch and tested it. I get the same null value for FOFA.

When I use the same query for censys in the same rule, it works fine. So, there's deff something wrong with FOFA on my side.

Here is the summary:
FOFA query: server=="web.go" && asn="44477" -> returns null + no results
Censys query: services:(services.http.response.headers.Server:web.go) and (autonomous_system.description="STARK-INDUSTRIES")

Overall rule:

id: 575fdb13-c04f-48d2-80a8-c1587e1456a8
title:  web.go
description: web.go
tags:
- web
author: web
created_on: '2023-12-31'
queries:
- analyzer: fofa
  query: server=="web.go" && asn="44477"
- analyzer: censys
  query: services:(services.http.response.headers.Server:web.go) and (autonomous_system.description="STARK-INDUSTRIES")
emitters:
- emitter: database
- emitter: slack
- emitter: misp
enrichers:
- enricher: whois
- enricher: mmdb
- enricher: shodan
- enricher: google_public_dns
data_types:
- hash
- ip
- domain
- url
- mail
falsepositives: []

If you've exhausted all ideas regarding what the issue might be, please feel free to close the issue. And thanks a lot.

from mihari.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.