mihari 5.4.6 → 5.4.8

Sign up to get free protection for your applications and to get access to all the features.
Files changed (46) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +2 -0
  3. data/.rubocop.yml +2 -0
  4. data/docs/analyzers/index.md +5 -0
  5. data/docs/emitters/misp.md +1 -1
  6. data/docs/requirements.md +8 -15
  7. data/frontend/package-lock.json +258 -249
  8. data/frontend/package.json +12 -12
  9. data/lib/mihari/analyzers/base.rb +8 -1
  10. data/lib/mihari/analyzers/binaryedge.rb +1 -1
  11. data/lib/mihari/analyzers/censys.rb +1 -1
  12. data/lib/mihari/analyzers/feed.rb +1 -0
  13. data/lib/mihari/analyzers/greynoise.rb +1 -1
  14. data/lib/mihari/analyzers/hunterhow.rb +1 -1
  15. data/lib/mihari/analyzers/onyphe.rb +1 -1
  16. data/lib/mihari/analyzers/shodan.rb +1 -1
  17. data/lib/mihari/analyzers/urlscan.rb +1 -1
  18. data/lib/mihari/analyzers/virustotal_intelligence.rb +1 -1
  19. data/lib/mihari/analyzers/zoomeye.rb +1 -1
  20. data/lib/mihari/clients/base.rb +18 -5
  21. data/lib/mihari/clients/binaryedge.rb +4 -3
  22. data/lib/mihari/clients/censys.rb +3 -2
  23. data/lib/mihari/clients/greynoise.rb +3 -2
  24. data/lib/mihari/clients/hunterhow.rb +3 -2
  25. data/lib/mihari/clients/onyphe.rb +4 -2
  26. data/lib/mihari/clients/shodan.rb +3 -2
  27. data/lib/mihari/clients/urlscan.rb +3 -2
  28. data/lib/mihari/clients/virustotal.rb +3 -2
  29. data/lib/mihari/clients/zoomeye.rb +3 -2
  30. data/lib/mihari/config.rb +13 -0
  31. data/lib/mihari/database.rb +2 -2
  32. data/lib/mihari/emitters/webhook.rb +11 -11
  33. data/lib/mihari/enrichers/google_public_dns.rb +7 -1
  34. data/lib/mihari/enrichers/ipinfo.rb +13 -6
  35. data/lib/mihari/enrichers/shodan.rb +7 -1
  36. data/lib/mihari/errors.rb +0 -2
  37. data/lib/mihari/feed/reader.rb +15 -10
  38. data/lib/mihari/http.rb +26 -100
  39. data/lib/mihari/schemas/analyzer.rb +1 -0
  40. data/lib/mihari/version.rb +1 -1
  41. data/lib/mihari/web/public/assets/{index-0a5a47bf.js → index-a92abd57.js} +1 -1
  42. data/lib/mihari/web/public/index.html +1 -1
  43. data/lib/mihari/web/public/redoc-static.html +400 -400
  44. data/mihari.gemspec +8 -5
  45. data/requirements.txt +1 -1
  46. metadata +57 -15
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 685244b2cf09a001eacff1c1e0fa1e4fecb44e8affee30dd2bd7914e65cba594
4
- data.tar.gz: 427285d6992f44011dee5b0038c79da4b0b0958062869b1547d36190d1b27656
3
+ metadata.gz: 80cd943b56266398aebedf99a1d4f41cee448f22d1338353c42d6eb014d9663f
4
+ data.tar.gz: 5e1fe745405432f5bfa711371f7065b0a0f5ca9db1fb3348cc240644ac230350
5
5
  SHA512:
6
- metadata.gz: 06e99eed502d4df71a79104a7dc1d29bed954866dd3523971f1883316dec2eb74ffdff1f78df64e711ffb65f92e4474e7b45b4057e5e8e84295e4a2677b87dd4
7
- data.tar.gz: 434ede07d0f8c50626bc975f5c0278013ae7bd989e90c7ccbf8d8f031c93e1313fa9d8fffc17d21f1aaf6893b41a027087ef78f3d523461b857038aee0a8d1b4
6
+ metadata.gz: 1bdbee7c0359654bdc6ca06b61b9f36df098a239a854394dc44d91fbc44fd9379fec38fe345f85e7decb6a032393d30e792baef9f530aaf10f5e6876af93b2fd
7
+ data.tar.gz: 5c47ad00c85b343d32b6f615e2ad89504d744eaae3bd4425708f2244a2515597d1dd07355cf70a8d55781be25e96c65301147876b097822e023a3851dd8cf40f
data/.gitignore CHANGED
@@ -57,6 +57,8 @@ Gemfile.lock
57
57
 
58
58
  # SQLite
59
59
  *.db
60
+ *.db-shm
61
+ *.db-wal
60
62
 
61
63
  # Config
62
64
  mihari.yml
data/.rubocop.yml CHANGED
@@ -10,3 +10,5 @@ Metrics/ClassLength:
10
10
  Enabled: false
11
11
  Metrics/MethodLength:
12
12
  Max: 20
13
+ require:
14
+ - rubocop-rspec
@@ -26,6 +26,7 @@ All the analyzers can have optional `options`.
26
26
  analyzer: ...
27
27
  query: ...
28
28
  options:
29
+ timeout: ...
29
30
  interval: ...
30
31
  pagination_limit: ...
31
32
  retry_times: ...
@@ -33,6 +34,10 @@ options:
33
34
  ignore_error: ...
34
35
  ```
35
36
 
37
+ ### Timeout
38
+
39
+ `timeout` is an HTTP timeout in seconds. Optional.
40
+
36
41
  ### Interval
37
42
 
38
43
  `interval` is an interval in seconds between pagination. (If an analyzer does pagination). Optional.
@@ -2,7 +2,7 @@
2
2
 
3
3
  - [https://www.misp-project.org/](https://www.misp-project.org/)
4
4
 
5
- This emitter creates an event on MISP based on an alert.
5
+ This emitter creates an event on MISP based on an alert. MISP v2 is supported.
6
6
 
7
7
  ```yaml
8
8
  emitter: misp
data/docs/requirements.md CHANGED
@@ -1,20 +1,13 @@
1
1
  # Requirements
2
2
 
3
- - Runtime:
4
- - Ruby 2.7+ / 3.0+ (tested with 2.7, 3.0, 3.1 and 3.2)
5
- - Database:
6
- - SQLite3, PostgreSQL and MySQL
7
- - Others:
8
- - MISP
9
- - TheHive
3
+ ## Runtime
10
4
 
11
- | Name | Supported versions |
12
- | ---------- | ----------------------- |
13
- | Ruby | v2.7, v3.0, v3.1 & v3.2 |
14
- | PostgreSQL | v15 |
15
- | SQLite | v3 |
16
- | MySQL | v8 |
17
- | MISP | v2.4 |
18
- | TheHive | v3 & v4 |
5
+ Ruby 2.7+ / 3.0+ (tested with 2.7, 3.0, 3.1 and 3.2)
6
+
7
+ ## Database
8
+
9
+ - SQLite3
10
+ - PostgreSQL
11
+ - MySQL
19
12
 
20
13
  You need to have a database to persistent the data. See [Database](./emitters/database.md) for details.