mihari 1.5.0 → 1.5.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 70afeb6b1ddaa263689beb836de85264ad1e871a1887a0574adfc22f00e006d8
4
- data.tar.gz: ad614363a9a3320c2dfa34ec19bd4712d08a9a6e662cdf11b4b70c775f55e592
3
+ metadata.gz: 951201ccebc7b6c4c117a687c1abce9ab24fa8d450f5a0f0badeeececa6db5cb
4
+ data.tar.gz: aed5f37c4031ffbc1a635ddd4fc979f4e40ab68a94ef880730bc48a2df600678
5
5
  SHA512:
6
- metadata.gz: 8b7b9b86a6ec5341ce03b5652e29d45ccfafcd6ee09ca469ccf88d9872a965aded13fae1925c647cbbdedb389532469060698e35a06905197ffb143b223d0a93
7
- data.tar.gz: 5d839d16358cf855658bc85d8e30868ce9fcae63cf9064461e67343cd979cee90daad2822260d96da9f00acadb9f981e29de89eb07b35047f9cd3ae039a37c3e
6
+ metadata.gz: a81ff55bf880a3581ad52f6bf2d8652e1d7824119ed31daed81eb0e8f215d4d26a19a10d646b5497346e6795a320de18cd63fa817958081c2ba4393efad4c20a
7
+ data.tar.gz: b3fa4c9979fc22863d0e171d87918c320ec177b5e27c0820f4997919cb714d8c19516d37e15eccaed8b0a81102498820b4865864dcb56c650c186ef1bd057b56
@@ -30,7 +30,7 @@ jobs:
30
30
  steps:
31
31
  - uses: actions/checkout@v2
32
32
  - name: Set up Ruby 2.7
33
- uses: actions/setup-ruby@v1
33
+ uses: ruby/setup-ruby@v1
34
34
  with:
35
35
  ruby-version: ${{ matrix.ruby }}
36
36
  bundler-cache: true
data/README.md CHANGED
@@ -1,11 +1,13 @@
1
1
  # mihari
2
2
 
3
3
  [![Gem Version](https://badge.fury.io/rb/mihari.svg)](https://badge.fury.io/rb/mihari)
4
- [![Build Status](https://travis-ci.com/ninoseki/mihari.svg?branch=master)](https://travis-ci.com/ninoseki/mihari)
4
+ [![Ruby CI](https://github.com/ninoseki/mihari/actions/workflows/test.yml/badge.svg)](https://github.com/ninoseki/mihari/actions/workflows/test.yml)
5
5
  [![Docker Cloud Build Status](https://img.shields.io/docker/cloud/build/ninoseki/mihari)](https://hub.docker.com/r/ninoseki/mihari)
6
6
  [![Coverage Status](https://coveralls.io/repos/github/ninoseki/mihari/badge.svg?branch=master)](https://coveralls.io/github/ninoseki/mihari?branch=master)
7
7
  [![CodeFactor](https://www.codefactor.io/repository/github/ninoseki/mihari/badge)](https://www.codefactor.io/repository/github/ninoseki/mihari)
8
8
 
9
+ ![img](https://github.com/ninoseki/mihari/raw/master/images/logo.png)
10
+
9
11
  Mihari is a helper to run queries & manage results continuously. Mihari can be used for C2, landing page and phishing hunting.
10
12
 
11
13
  ## How it works
@@ -17,21 +19,21 @@ Mihari is a helper to run queries & manage results continuously. Mihari can be u
17
19
  - Mihari sends a notification to Slack.
18
20
  - Mihari creates an event on MISP.
19
21
 
20
- ![img](https://github.com/ninoseki/mihari/raw/master/screenshots/eyecatch.png)
22
+ ![img](https://github.com/ninoseki/mihari/raw/master/images/eyecatch.png)
21
23
 
22
24
  ### Screenshots
23
25
 
24
26
  - TheHive alert example
25
27
 
26
- ![img](https://github.com/ninoseki/mihari/raw/master/screenshots/alert.png)
28
+ ![img](https://github.com/ninoseki/mihari/raw/master/images/alert.png)
27
29
 
28
30
  - Slack notification example
29
31
 
30
- ![img](https://github.com/ninoseki/mihari/raw/master/screenshots/slack.png)
32
+ ![img](https://github.com/ninoseki/mihari/raw/master/images/slack.png)
31
33
 
32
34
  - MISP event example
33
35
 
34
- ![img](https://github.com/ninoseki/mihari/raw/master/screenshots/misp.png)
36
+ ![img](https://github.com/ninoseki/mihari/raw/master/images/misp.png)
35
37
 
36
38
  ## Requirements
37
39
 
@@ -43,6 +45,15 @@ Mihari is a helper to run queries & manage results continuously. Mihari can be u
43
45
  apt-get install sqlite3 libsqlite3-dev libpq-dev
44
46
  ```
45
47
 
48
+ ## Supported platforms & databases
49
+
50
+ | Name | Supported versions |
51
+ |------------|--------------------|
52
+ | PostgreSQL | v12 |
53
+ | SQLite | v3 |
54
+ | MISP | v2.4 |
55
+ | TheHive | v3.x & v4.x |
56
+
46
57
  ## Installation
47
58
 
48
59
  ```bash
@@ -68,6 +79,7 @@ Mihari supports the following services by default.
68
79
  - [Onyphe](https://onyphe.io)
69
80
  - [OTX](https://otx.alienvault.com/)
70
81
  - [PassiveTotal](https://community.riskiq.com/)
82
+ - [Pulsedive](https://pulsedive.com/)
71
83
  - [SecurityTrails](https://securitytrails.com/)
72
84
  - [Shodan](https://shodan.io)
73
85
  - [Spyse](https://spyse.com)
data/docker/Dockerfile CHANGED
@@ -1,4 +1,5 @@
1
1
  FROM ruby:3.0.0-alpine3.13
2
+
2
3
  RUN apk --no-cache add git build-base ruby-dev sqlite-dev postgresql-dev \
3
4
  && cd /tmp/ \
4
5
  && git clone https://github.com/ninoseki/mihari.git \
@@ -10,4 +11,4 @@ RUN apk --no-cache add git build-base ruby-dev sqlite-dev postgresql-dev \
10
11
 
11
12
  ENTRYPOINT ["mihari"]
12
13
 
13
- CMD ["--help"]
14
+ CMD ["--help"]
File without changes
File without changes
data/images/logo.png ADDED
Binary file
File without changes
File without changes
@@ -56,6 +56,10 @@ module Mihari
56
56
 
57
57
  responses << res
58
58
  break if res["total"].to_i <= page * PAGE_SIZE
59
+ rescue JSON::ParserError
60
+ # ignore JSON::ParserError
61
+ # ref. https://github.com/ninoseki/mihari/issues/197
62
+ next
59
63
  end
60
64
  responses
61
65
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Mihari
4
- VERSION = "1.5.0"
4
+ VERSION = "1.5.1"
5
5
  end
data/mihari.gemspec CHANGED
@@ -44,7 +44,7 @@ Gem::Specification.new do |spec|
44
44
  spec.add_dependency "dnpedia", "~> 0.1"
45
45
  spec.add_dependency "dnstwister", "~> 0.1"
46
46
  spec.add_dependency "email_address", "~> 0.1"
47
- spec.add_dependency "hachi", "~> 0.3"
47
+ spec.add_dependency "hachi", "~> 1.0"
48
48
  spec.add_dependency "mem", "~> 0.1"
49
49
  spec.add_dependency "misp", "~> 0.1"
50
50
  spec.add_dependency "murmurhash3", "~> 0.1"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mihari
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.0
4
+ version: 1.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Manabu Niseki
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-03-13 00:00:00.000000000 Z
11
+ date: 2021-03-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -282,14 +282,14 @@ dependencies:
282
282
  requirements:
283
283
  - - "~>"
284
284
  - !ruby/object:Gem::Version
285
- version: '0.3'
285
+ version: '1.0'
286
286
  type: :runtime
287
287
  prerelease: false
288
288
  version_requirements: !ruby/object:Gem::Requirement
289
289
  requirements:
290
290
  - - "~>"
291
291
  - !ruby/object:Gem::Version
292
- version: '0.3'
292
+ version: '1.0'
293
293
  - !ruby/object:Gem::Dependency
294
294
  name: mem
295
295
  requirement: !ruby/object:Gem::Requirement
@@ -620,6 +620,11 @@ files:
620
620
  - docker/Dockerfile
621
621
  - examples/ipinfo_hosted_domains.rb
622
622
  - exe/mihari
623
+ - images/alert.png
624
+ - images/eyecatch.png
625
+ - images/logo.png
626
+ - images/misp.png
627
+ - images/slack.png
623
628
  - lib/mihari.rb
624
629
  - lib/mihari/alert_viewer.rb
625
630
  - lib/mihari/analyzers/base.rb
@@ -676,10 +681,6 @@ files:
676
681
  - lib/mihari/version.rb
677
682
  - mihari.gemspec
678
683
  - renovate.json
679
- - screenshots/alert.png
680
- - screenshots/eyecatch.png
681
- - screenshots/misp.png
682
- - screenshots/slack.png
683
684
  homepage: https://github.com/ninoseki/mihari
684
685
  licenses:
685
686
  - MIT