mihari 4.1.0 → 4.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (83) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/test.yml +1 -1
  3. data/README.md +1 -1
  4. data/Rakefile +5 -0
  5. data/config.ru +0 -1
  6. data/lib/mihari/analyzers/base.rb +18 -10
  7. data/lib/mihari/analyzers/rule.rb +1 -1
  8. data/lib/mihari/cli/base.rb +0 -4
  9. data/lib/mihari/commands/init.rb +1 -1
  10. data/lib/mihari/commands/search.rb +11 -58
  11. data/lib/mihari/commands/validator.rb +1 -2
  12. data/lib/mihari/database.rb +1 -1
  13. data/lib/mihari/emitters/base.rb +5 -2
  14. data/lib/mihari/emitters/slack.rb +40 -4
  15. data/lib/mihari/enrichers/base.rb +5 -2
  16. data/lib/mihari/enrichers/ipinfo.rb +4 -3
  17. data/lib/mihari/{web/entities → entities}/alert.rb +0 -0
  18. data/lib/mihari/{web/entities → entities}/artifact.rb +0 -0
  19. data/lib/mihari/{web/entities → entities}/autonomous_system.rb +0 -0
  20. data/lib/mihari/{web/entities → entities}/command.rb +0 -0
  21. data/lib/mihari/{web/entities → entities}/config.rb +0 -0
  22. data/lib/mihari/{web/entities → entities}/dns.rb +0 -0
  23. data/lib/mihari/{web/entities → entities}/geolocation.rb +0 -0
  24. data/lib/mihari/{web/entities → entities}/ip_address.rb +0 -0
  25. data/lib/mihari/{web/entities → entities}/message.rb +0 -0
  26. data/lib/mihari/{web/entities → entities}/reverse_dns.rb +0 -0
  27. data/lib/mihari/{web/entities → entities}/rule.rb +0 -0
  28. data/lib/mihari/{web/entities → entities}/source.rb +0 -0
  29. data/lib/mihari/{web/entities → entities}/tag.rb +0 -0
  30. data/lib/mihari/{web/entities → entities}/whois.rb +0 -0
  31. data/lib/mihari/errors.rb +2 -0
  32. data/lib/mihari/feed/reader.rb +11 -55
  33. data/lib/mihari/http.rb +94 -0
  34. data/lib/mihari/mixins/error_notification.rb +20 -0
  35. data/lib/mihari/mixins/retriable.rb +12 -2
  36. data/lib/mihari/mixins/rule.rb +1 -2
  37. data/lib/mihari/structs/ipinfo.rb +2 -3
  38. data/lib/mihari/structs/rule.rb +30 -0
  39. data/lib/mihari/structs/shodan.rb +9 -1
  40. data/lib/mihari/version.rb +1 -1
  41. data/lib/mihari/web/api.rb +0 -20
  42. data/lib/mihari/web/app.rb +3 -3
  43. data/lib/mihari/web/endpoints/rules.rb +3 -1
  44. data/lib/mihari/web/middleware/error_notification_adapter.rb +19 -0
  45. data/lib/mihari/web/public/index.html +1 -1
  46. data/lib/mihari/web/public/redoc-static.html +1881 -165
  47. data/lib/mihari/web/public/static/css/app.43138058.css +1 -0
  48. data/lib/mihari/web/public/static/css/chunk-vendors.3ed9b08e.css +7 -0
  49. data/lib/mihari/web/public/static/fonts/fa-brands-400.1fd0b4d7.ttf +0 -0
  50. data/lib/mihari/web/public/static/fonts/fa-brands-400.5d5236fb.woff2 +0 -0
  51. data/lib/mihari/web/public/static/fonts/fa-regular-400.64b3730e.woff2 +0 -0
  52. data/lib/mihari/web/public/static/fonts/fa-regular-400.95a8a8af.ttf +0 -0
  53. data/lib/mihari/web/public/static/fonts/fa-solid-900.6115ad71.woff2 +0 -0
  54. data/lib/mihari/web/public/static/fonts/fa-solid-900.f0203cfc.ttf +0 -0
  55. data/lib/mihari/web/public/static/fonts/fa-v4compatibility.e1023515.ttf +0 -0
  56. data/lib/mihari/web/public/static/js/app-legacy.46b666f0.js +2 -0
  57. data/lib/mihari/web/public/static/js/app-legacy.46b666f0.js.map +1 -0
  58. data/lib/mihari/web/public/static/js/app.4818aedd.js +2 -0
  59. data/lib/mihari/web/public/static/js/app.4818aedd.js.map +1 -0
  60. data/lib/mihari/web/public/static/js/app.b88ce341.js +35 -0
  61. data/lib/mihari/web/public/static/js/app.b88ce341.js.map +1 -0
  62. data/lib/mihari/web/public/static/js/chunk-vendors-legacy.c99e452e.js +17 -0
  63. data/lib/mihari/web/public/static/js/chunk-vendors-legacy.c99e452e.js.map +1 -0
  64. data/lib/mihari/web/public/static/js/chunk-vendors.15e84e22.js +23 -0
  65. data/lib/mihari/web/public/static/js/chunk-vendors.15e84e22.js.map +1 -0
  66. data/lib/mihari.rb +63 -15
  67. data/mihari.gemspec +12 -12
  68. data/sig/lib/mihari/emitters/slack.rbs +29 -1
  69. data/sig/lib/mihari/feed/reader.rbs +2 -2
  70. data/sig/lib/mihari/http.rbs +65 -0
  71. data/sig/lib/mihari/mixins/error_notification.rbs +12 -0
  72. data/sig/lib/mihari/structs/rule.rbs +6 -0
  73. data/sig/lib/mihari.rbs +4 -8
  74. metadata +88 -73
  75. data/lib/mihari/cli/mixins/utils.rb +0 -72
  76. data/lib/mihari/emitters/stdout.rb +0 -22
  77. data/lib/mihari/notifiers/base.rb +0 -24
  78. data/lib/mihari/notifiers/exception_notifier.rb +0 -126
  79. data/lib/mihari/notifiers/slack.rb +0 -63
  80. data/sig/lib/mihari/cli/mixins/utils.rbs +0 -50
  81. data/sig/lib/mihari/notifiers/base.rbs +0 -18
  82. data/sig/lib/mihari/notifiers/exception_notifier.rbs +0 -75
  83. data/sig/lib/mihari/notifiers/slack.rbs +0 -50
@@ -0,0 +1 @@
1
+ .navbar[data-v-0c9efb8c]{border-bottom:1px solid #d3d3d3}table.is-fullwidth th{width:120px}.tag img[data-v-e4f0c0e0]{margin-right:5px}img.liveshot[data-v-75c00fae]{border:1px solid #aaa;border-radius:5px;width:100%;max-height:250px;-o-object-fit:cover;object-fit:cover;-o-object-position:top;object-position:top;display:block;overflow:hidden;transition:max-height 1s,height 1s}img.liveshot[data-v-75c00fae]:hover{max-height:none}.modal-card[data-v-75c00fae]{width:960px}.my-editor[data-v-f7087656]{background:#282b2e;color:#ccc;font-family:Fira code,Fira Mono,Consolas,Menlo,Courier,monospace;font-size:14px;line-height:1.5;padding:5px}.my-editor-wrapper[data-v-f7087656]{background:#282b2e;padding:10px}pre[data-v-d671c1e2]{background-color:#282b2e}