mihari 5.4.0 → 5.4.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (45) hide show
  1. checksums.yaml +4 -4
  2. data/frontend/package-lock.json +145 -146
  3. data/frontend/package.json +8 -8
  4. data/frontend/src/swagger.yaml +306 -272
  5. data/lib/mihari/analyzers/binaryedge.rb +4 -4
  6. data/lib/mihari/analyzers/censys.rb +2 -2
  7. data/lib/mihari/analyzers/circl.rb +2 -2
  8. data/lib/mihari/analyzers/greynoise.rb +2 -2
  9. data/lib/mihari/analyzers/hunterhow.rb +5 -5
  10. data/lib/mihari/analyzers/onyphe.rb +4 -4
  11. data/lib/mihari/analyzers/otx.rb +2 -2
  12. data/lib/mihari/analyzers/passivetotal.rb +2 -2
  13. data/lib/mihari/analyzers/pulsedive.rb +2 -2
  14. data/lib/mihari/analyzers/rule.rb +13 -12
  15. data/lib/mihari/analyzers/securitytrails.rb +2 -2
  16. data/lib/mihari/analyzers/shodan.rb +4 -4
  17. data/lib/mihari/analyzers/urlscan.rb +2 -2
  18. data/lib/mihari/analyzers/virustotal.rb +2 -2
  19. data/lib/mihari/analyzers/virustotal_intelligence.rb +2 -2
  20. data/lib/mihari/analyzers/zoomeye.rb +4 -4
  21. data/lib/mihari/cli/alert.rb +11 -0
  22. data/lib/mihari/cli/main.rb +6 -1
  23. data/lib/mihari/commands/alert.rb +42 -0
  24. data/lib/mihari/commands/rule.rb +2 -2
  25. data/lib/mihari/commands/search.rb +20 -59
  26. data/lib/mihari/config.rb +2 -2
  27. data/lib/mihari/emitters/base.rb +1 -1
  28. data/lib/mihari/emitters/database.rb +2 -2
  29. data/lib/mihari/errors.rb +23 -2
  30. data/lib/mihari/http.rb +7 -1
  31. data/lib/mihari/schemas/alert.rb +14 -0
  32. data/lib/mihari/services/alert_proxy.rb +106 -0
  33. data/lib/mihari/services/alert_runner.rb +22 -0
  34. data/lib/mihari/services/{rule.rb → rule_proxy.rb} +10 -6
  35. data/lib/mihari/services/rule_runner.rb +49 -0
  36. data/lib/mihari/version.rb +1 -1
  37. data/lib/mihari/web/endpoints/alerts.rb +22 -0
  38. data/lib/mihari/web/endpoints/rules.rb +8 -8
  39. data/lib/mihari/web/public/assets/{index-61dc587c.js → index-4d7eda9f.js} +1 -1
  40. data/lib/mihari/web/public/index.html +1 -1
  41. data/lib/mihari/web/public/redoc-static.html +29 -27
  42. data/lib/mihari.rb +6 -1
  43. data/mihari.gemspec +2 -3
  44. metadata +14 -23
  45. data/Steepfile +0 -31
@@ -19,7 +19,7 @@
19
19
  "@fortawesome/vue-fontawesome": "^3.0.3",
20
20
  "@vueuse/core": "^10.3.0",
21
21
  "@vueuse/router": "^10.3.0",
22
- "ace-builds": "^1.24.0",
22
+ "ace-builds": "^1.24.1",
23
23
  "axios": "^1.4.0",
24
24
  "bulma": "^0.9.4",
25
25
  "bulma-helpers": "^0.4.3",
@@ -41,16 +41,16 @@
41
41
  "@rushstack/eslint-patch": "^1.3.3",
42
42
  "@tsconfig/node20": "^20.1.1",
43
43
  "@types/jsdom": "^21.1.1",
44
- "@types/node": "^20.4.9",
44
+ "@types/node": "^20.5.1",
45
45
  "@types/url-parse": "^1.4.8",
46
- "@typescript-eslint/eslint-plugin": "^6.3.0",
47
- "@typescript-eslint/parser": "^6.3.0",
48
- "@vitejs/plugin-vue": "^4.2.3",
46
+ "@typescript-eslint/eslint-plugin": "^6.4.0",
47
+ "@typescript-eslint/parser": "^6.4.0",
48
+ "@vitejs/plugin-vue": "^4.3.1",
49
49
  "@vue/eslint-config-prettier": "^8.0.0",
50
50
  "@vue/eslint-config-typescript": "^11.0.3",
51
51
  "@vue/test-utils": "2.4.1",
52
52
  "@vue/tsconfig": "^0.4.0",
53
- "eslint": "^8.46.0",
53
+ "eslint": "^8.47.0",
54
54
  "eslint-config-prettier": "^9.0.0",
55
55
  "eslint-plugin-prettier": "^5.0.0",
56
56
  "eslint-plugin-simple-import-sort": "^10.0.0",
@@ -58,10 +58,10 @@
58
58
  "husky": "^8.0.3",
59
59
  "jsdom": "^22.1.0",
60
60
  "npm-run-all": "^4.1.5",
61
- "prettier": "^3.0.1",
61
+ "prettier": "^3.0.2",
62
62
  "typescript": "~5.1.6",
63
63
  "vite": "^4.4.9",
64
- "vitest": "^0.34.1",
64
+ "vitest": "^0.34.2",
65
65
  "vue-tsc": "^1.8.8"
66
66
  }
67
67
  }