mihari 6.0.0 → 6.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +4 -0
- data/lib/mihari/actor.rb +1 -1
- data/lib/mihari/analyzers/base.rb +3 -0
- data/lib/mihari/analyzers/hunterhow.rb +1 -1
- data/lib/mihari/config.rb +5 -1
- data/lib/mihari/database.rb +7 -1
- data/lib/mihari/emitters/misp.rb +2 -2
- data/lib/mihari/emitters/slack.rb +5 -5
- data/lib/mihari/emitters/the_hive.rb +2 -2
- data/lib/mihari/enrichers/base.rb +2 -0
- data/lib/mihari/enrichers/ipinfo.rb +1 -0
- data/lib/mihari/enrichers/shodan.rb +1 -0
- data/lib/mihari/enrichers/whois.rb +11 -16
- data/lib/mihari/entities/artifact.rb +1 -0
- data/lib/mihari/mixins/falsepositive.rb +2 -2
- data/lib/mihari/models/artifact.rb +13 -5
- data/lib/mihari/version.rb +1 -1
- data/lib/mihari/web/app.rb +2 -2
- data/lib/mihari/web/public/assets/{index-07cddfcd.js → index-216d49d1.js} +42 -42
- data/lib/mihari/web/public/assets/{index-56fc2187.css → index-4c8509ee.css} +1 -1
- data/lib/mihari/web/public/index.html +2 -2
- data/lib/mihari/web/public/redoc-static.html +4 -4
- data/lib/mihari.rb +8 -9
- data/mihari.gemspec +1 -1
- data/mkdocs.yml +1 -0
- data/requirements.txt +1 -1
- metadata +7 -7
@@ -6,8 +6,8 @@
|
|
6
6
|
<meta name="viewport" content="width=device-width,initial-scale=1.0" />
|
7
7
|
<link rel="icon" href="/favicon.ico" />
|
8
8
|
<title>Mihari</title>
|
9
|
-
<script type="module" crossorigin src="/assets/index-
|
10
|
-
<link rel="stylesheet" href="/assets/index-
|
9
|
+
<script type="module" crossorigin src="/assets/index-216d49d1.js"></script>
|
10
|
+
<link rel="stylesheet" href="/assets/index-4c8509ee.css">
|
11
11
|
</head>
|
12
12
|
<body>
|
13
13
|
<noscript>
|
@@ -359,11 +359,11 @@ data-styled.g137[id="sc-cKZHtR"]{content:"lcoFQc,"}/*!sc*/
|
|
359
359
|
" class="sc-iJuWdM sc-cBNeRQ gpkGbA casAkG"><p>Create an alert</p>
|
360
360
|
</div></div><h5 class="sc-iqHXzD bRzaSI">Request Body schema: <span class="sc-gWHiUp duVBEA">application/json</span><div class="sc-gTgyBf sc-eJMOVy sc-jmhEHb ihUpGF giWqTo gpLUhw">required</div></h5><div html="" class="sc-iJuWdM sc-cBNeRQ gpkGbA casAkG"></div><table class="sc-hHftZz buUaAP"><tbody><tr class=""><td kind="field" title="ruleId" class="sc-hBEZvw sc-fFubCH gPUvwc gXIfsF"><span class="sc-idOjMB jwsifT"></span><span class="property-name">ruleId</span><div class="sc-gTgyBf sc-eJMOVy ihUpGF giWqTo">required</div></td><td class="sc-bkzXAi kMAhqG"><div><div><span class="sc-gTgyBf sc-laRQQM ihUpGF cREGdc"></span><span class="sc-gTgyBf sc-iNqNmV ihUpGF iPuJRj">string</span></div> <div><div html="" class="sc-iJuWdM sc-cBNeRQ gpkGbA dujygE"></div></div></div></td></tr><tr class="last "><td kind="field" title="artifacts" class="sc-hBEZvw sc-fFubCH gPUvwc gXIfsF"><span class="sc-idOjMB jwsifT"></span><span class="property-name">artifacts</span><div class="sc-gTgyBf sc-eJMOVy ihUpGF giWqTo">required</div></td><td class="sc-bkzXAi kMAhqG"><div><div><span class="sc-gTgyBf sc-laRQQM ihUpGF cREGdc">Array of </span><span class="sc-gTgyBf sc-iNqNmV ihUpGF iPuJRj">strings</span></div> <div><div html="" class="sc-iJuWdM sc-cBNeRQ gpkGbA dujygE"></div></div></div></td></tr></tbody></table><div><h3 class="sc-fWPdKs fCsSHf">Responses</h3><div><button class="sc-httZfN iePdRD"><svg class="sc-dQpIV iHKCKT" version="1.1" viewBox="0 0 24 24" x="0" xmlns="http://www.w3.org/2000/svg" y="0" aria-hidden="true"><polygon points="17.3 8.3 12 13.6 6.7 8.3 5.3 9.7 12 16.4 18.7 9.7 "></polygon></svg><strong class="sc-gVgoeb goojcW">201<!-- --> </strong><div html="<p>Create an alert</p>
|
361
361
|
" class="sc-iJuWdM sc-cBNeRQ gpkGbA casAkG sc-citwID bzkUsW"><p>Create an alert</p>
|
362
|
-
</div></button></div><div><button class="sc-httZfN jEuzUJ"><svg class="sc-dQpIV bbipPn" version="1.1" viewBox="0 0 24 24" x="0" xmlns="http://www.w3.org/2000/svg" y="0" aria-hidden="true"><polygon points="17.3 8.3 12 13.6 6.7 8.3 5.3 9.7 12 16.4 18.7 9.7 "></polygon></svg><strong class="sc-gVgoeb goojcW">404<!-- --> </strong><div html="" class="sc-iJuWdM sc-cBNeRQ gpkGbA casAkG sc-citwID bzkUsW"></div></button></div></div></div><div class="sc-jSguLX sc-gKsecS QymcT bZqtR"><div class="sc-bQdSiB bhuodb"><button class="sc-FyfbU jlriCd"><span type="post" class="sc-jXkspL coiChI http-verb post">post</span><span class="sc-fXoxOd jzevEV">/api/alerts</span><svg class="sc-dQpIV hHbBnT" style="margin-right:-25px" version="1.1" viewBox="0 0 24 24" x="0" xmlns="http://www.w3.org/2000/svg" y="0" aria-hidden="true"><polygon points="17.3 8.3 12 13.6 6.7 8.3 5.3 9.7 12 16.4 18.7 9.7 "></polygon></svg></button><div aria-hidden="true" class="sc-eFtZDC ciRGmD"><div class="sc-fmlKft buTZbL"><div html="" class="sc-iJuWdM sc-cBNeRQ gpkGbA dujygE"></div><div tabindex="0" role="button"><div class="sc-ljRaSg uePtT"><span></span>/api/alerts</div></div></div></div></div><div><h3 class="sc-kEjbdu jmifsN"> <!-- -->Request samples<!-- --> </h3><div class="sc-cxFKTC jVRsAZ" data-rttabs="true"><ul class="react-tabs__tab-list" role="tablist"><li class="react-tabs__tab react-tabs__tab--selected" role="tab" id="react-tabs-0" aria-selected="true" aria-disabled="false" aria-controls="react-tabs-1" tabindex="0" data-rttab="true">Payload</li></ul><div class="react-tabs__tab-panel react-tabs__tab-panel--selected" role="tabpanel" id="react-tabs-1" aria-labelledby="react-tabs-0"><div><div class="sc-cOaiZO eDzWuJ"><span class="sc-bBrOHt etjuEr">Content type</span><div class="sc-dOSSlk bAzVww">application/json</div></div><div class="sc-hTZhMB kTaCsY"><div class="sc-cTkyaV gLzJQv"><div class="sc-giInvV bIDavi"><button><div class="sc-jcVcfa iVrxDL">Copy</div></button><button> Expand all </button><button> Collapse all </button></div><div class="sc-iJuWdM gpkGbA sc-jNMdxs jXmkAn"><div class="redoc-json"><code><button class="collapser" aria-label="collapse"></button><span class="token punctuation">{</span><span class="ellipsis"></span><ul class="obj collapsible"><li><div class="hoverable "><span class="property token string">"ruleId"</span>: <span class="token string">"string"</span><span class="token punctuation">,</span></div></li><li><div class="hoverable "><span class="property token string">"artifacts"</span>: <button class="collapser" aria-label="collapse"></button><span class="token punctuation">[</span><span class="ellipsis"></span><ul class="array collapsible"><li><div class="hoverable collapsed"><span class="token string">"string"</span></div></li></ul><span class="token punctuation">]</span></div></li></ul><span class="token punctuation">}</span></code></div></div></div></div></div></div></div></div><div><h3 class="sc-kEjbdu jmifsN"> <!-- -->Response samples<!-- --> </h3><div class="sc-cxFKTC jVRsAZ" data-rttabs="true"><ul class="react-tabs__tab-list" role="tablist"><li class="tab-success react-tabs__tab--selected" role="tab" id="react-tabs-2" aria-selected="true" aria-disabled="false" aria-controls="react-tabs-3" tabindex="0" data-rttab="true">201</li><li class="tab-error" role="tab" id="react-tabs-4" aria-selected="false" aria-disabled="false" aria-controls="react-tabs-5" data-rttab="true">404</li></ul><div class="react-tabs__tab-panel react-tabs__tab-panel--selected" role="tabpanel" id="react-tabs-3" aria-labelledby="react-tabs-2"><div><div class="sc-cOaiZO eDzWuJ"><span class="sc-bBrOHt etjuEr">Content type</span><div class="sc-dOSSlk bAzVww">application/json</div></div><div class="sc-hTZhMB kTaCsY"><div class="sc-cTkyaV gLzJQv"><div class="sc-giInvV bIDavi"><button><div class="sc-jcVcfa iVrxDL">Copy</div></button><button> Expand all </button><button> Collapse all </button></div><div class="sc-iJuWdM gpkGbA sc-jNMdxs jXmkAn"><div class="redoc-json"><code><button class="collapser" aria-label="collapse"></button><span class="token punctuation">{</span><span class="ellipsis"></span><ul class="obj collapsible"><li><div class="hoverable "><span class="property token string">"id"</span>: <span class="token string">"string"</span><span class="token punctuation">,</span></div></li><li><div class="hoverable "><span class="property token string">"ruleId"</span>: <span class="token string">"string"</span><span class="token punctuation">,</span></div></li><li><div class="hoverable "><span class="property token string">"createdAt"</span>: <span class="token string">"2019-08-24T14:15:22Z"</span><span class="token punctuation">,</span></div></li><li><div class="hoverable "><span class="property token string">"artifacts"</span>: <button class="collapser" aria-label="collapse"></button><span class="token punctuation">[</span><span class="ellipsis"></span><ul class="array collapsible"><li><div class="hoverable collapsed"><button class="collapser" aria-label="expand"></button><span class="token punctuation">{</span><span class="ellipsis"></span><ul class="obj collapsible"><li><div class="hoverable collapsed"><span class="property token string">"id"</span>: <span class="token string">"string"</span><span class="token punctuation">,</span></div></li><li><div class="hoverable collapsed"><span class="property token string">"data"</span>: <span class="token string">"string"</span><span class="token punctuation">,</span></div></li><li><div class="hoverable collapsed"><span class="property token string">"dataType"</span>: <span class="token string">"string"</span><span class="token punctuation">,</span></div></li><li><div class="hoverable collapsed"><span class="property token string">"source"</span>: <span class="token string">"string"</span><span class="token punctuation">,</span></div></li><li><div class="hoverable collapsed"><span class="property token string">"tags"</span>: <button class="collapser" aria-label="expand"></button><span class="token punctuation">[</span><span class="ellipsis"></span><ul class="array collapsible"><li><div class="hoverable collapsed"><span class="token string">"string"</span></div></li></ul><span class="token punctuation">]</span></div></li></ul><span class="token punctuation">}</span></div></li></ul><span class="token punctuation">]</span><span class="token punctuation">,</span></div></li><li><div class="hoverable "><span class="property token string">"tags"</span>: <button class="collapser" aria-label="collapse"></button><span class="token punctuation">[</span><span class="ellipsis"></span><ul class="array collapsible"><li><div class="hoverable collapsed"><button class="collapser" aria-label="expand"></button><span class="token punctuation">{</span><span class="ellipsis"></span><ul class="obj collapsible"><li><div class="hoverable collapsed"><span class="property token string">"id"</span>: <span class="token number">0</span><span class="token punctuation">,</span></div></li><li><div class="hoverable collapsed"><span class="property token string">"name"</span>: <span class="token string">"string"</span></div></li></ul><span class="token punctuation">}</span></div></li></ul><span class="token punctuation">]</span></div></li></ul><span class="token punctuation">}</span></code></div></div></div></div></div></div><div class="react-tabs__tab-panel" role="tabpanel" id="react-tabs-5" aria-labelledby="react-tabs-4"></div></div></div></div></div></div><div id="tag/alerts/paths/~1api~1alerts/get" data-section-id="tag/alerts/paths/~1api~1alerts/get" class="sc-eCstZk bCpIRB"><div class="sc-iBPTVF keMybc"><div class="sc-hKgKIp gvoNGN"><h2 class="sc-pGaPU biKwui"><a class="sc-crrtmM jGBpue" href="#tag/alerts/paths/~1api~1alerts/get" aria-label="tag/alerts/paths/~1api~1alerts/get"></a>Search alerts<!-- --> </h2><div class="sc-eWVLZl fgfjUV"><div html="<p>Search alerts</p>
|
362
|
+
</div></button></div><div><button class="sc-httZfN jEuzUJ"><svg class="sc-dQpIV bbipPn" version="1.1" viewBox="0 0 24 24" x="0" xmlns="http://www.w3.org/2000/svg" y="0" aria-hidden="true"><polygon points="17.3 8.3 12 13.6 6.7 8.3 5.3 9.7 12 16.4 18.7 9.7 "></polygon></svg><strong class="sc-gVgoeb goojcW">404<!-- --> </strong><div html="" class="sc-iJuWdM sc-cBNeRQ gpkGbA casAkG sc-citwID bzkUsW"></div></button></div></div></div><div class="sc-jSguLX sc-gKsecS QymcT bZqtR"><div class="sc-bQdSiB bhuodb"><button class="sc-FyfbU jlriCd"><span type="post" class="sc-jXkspL coiChI http-verb post">post</span><span class="sc-fXoxOd jzevEV">/api/alerts</span><svg class="sc-dQpIV hHbBnT" style="margin-right:-25px" version="1.1" viewBox="0 0 24 24" x="0" xmlns="http://www.w3.org/2000/svg" y="0" aria-hidden="true"><polygon points="17.3 8.3 12 13.6 6.7 8.3 5.3 9.7 12 16.4 18.7 9.7 "></polygon></svg></button><div aria-hidden="true" class="sc-eFtZDC ciRGmD"><div class="sc-fmlKft buTZbL"><div html="" class="sc-iJuWdM sc-cBNeRQ gpkGbA dujygE"></div><div tabindex="0" role="button"><div class="sc-ljRaSg uePtT"><span></span>/api/alerts</div></div></div></div></div><div><h3 class="sc-kEjbdu jmifsN"> <!-- -->Request samples<!-- --> </h3><div class="sc-cxFKTC jVRsAZ" data-rttabs="true"><ul class="react-tabs__tab-list" role="tablist"><li class="react-tabs__tab react-tabs__tab--selected" role="tab" id="react-tabs-0" aria-selected="true" aria-disabled="false" aria-controls="react-tabs-1" tabindex="0" data-rttab="true">Payload</li></ul><div class="react-tabs__tab-panel react-tabs__tab-panel--selected" role="tabpanel" id="react-tabs-1" aria-labelledby="react-tabs-0"><div><div class="sc-cOaiZO eDzWuJ"><span class="sc-bBrOHt etjuEr">Content type</span><div class="sc-dOSSlk bAzVww">application/json</div></div><div class="sc-hTZhMB kTaCsY"><div class="sc-cTkyaV gLzJQv"><div class="sc-giInvV bIDavi"><button><div class="sc-jcVcfa iVrxDL">Copy</div></button><button> Expand all </button><button> Collapse all </button></div><div class="sc-iJuWdM gpkGbA sc-jNMdxs jXmkAn"><div class="redoc-json"><code><button class="collapser" aria-label="collapse"></button><span class="token punctuation">{</span><span class="ellipsis"></span><ul class="obj collapsible"><li><div class="hoverable "><span class="property token string">"ruleId"</span>: <span class="token string">"string"</span><span class="token punctuation">,</span></div></li><li><div class="hoverable "><span class="property token string">"artifacts"</span>: <button class="collapser" aria-label="collapse"></button><span class="token punctuation">[</span><span class="ellipsis"></span><ul class="array collapsible"><li><div class="hoverable collapsed"><span class="token string">"string"</span></div></li></ul><span class="token punctuation">]</span></div></li></ul><span class="token punctuation">}</span></code></div></div></div></div></div></div></div></div><div><h3 class="sc-kEjbdu jmifsN"> <!-- -->Response samples<!-- --> </h3><div class="sc-cxFKTC jVRsAZ" data-rttabs="true"><ul class="react-tabs__tab-list" role="tablist"><li class="tab-success react-tabs__tab--selected" role="tab" id="react-tabs-2" aria-selected="true" aria-disabled="false" aria-controls="react-tabs-3" tabindex="0" data-rttab="true">201</li><li class="tab-error" role="tab" id="react-tabs-4" aria-selected="false" aria-disabled="false" aria-controls="react-tabs-5" data-rttab="true">404</li></ul><div class="react-tabs__tab-panel react-tabs__tab-panel--selected" role="tabpanel" id="react-tabs-3" aria-labelledby="react-tabs-2"><div><div class="sc-cOaiZO eDzWuJ"><span class="sc-bBrOHt etjuEr">Content type</span><div class="sc-dOSSlk bAzVww">application/json</div></div><div class="sc-hTZhMB kTaCsY"><div class="sc-cTkyaV gLzJQv"><div class="sc-giInvV bIDavi"><button><div class="sc-jcVcfa iVrxDL">Copy</div></button><button> Expand all </button><button> Collapse all </button></div><div class="sc-iJuWdM gpkGbA sc-jNMdxs jXmkAn"><div class="redoc-json"><code><button class="collapser" aria-label="collapse"></button><span class="token punctuation">{</span><span class="ellipsis"></span><ul class="obj collapsible"><li><div class="hoverable "><span class="property token string">"id"</span>: <span class="token string">"string"</span><span class="token punctuation">,</span></div></li><li><div class="hoverable "><span class="property token string">"ruleId"</span>: <span class="token string">"string"</span><span class="token punctuation">,</span></div></li><li><div class="hoverable "><span class="property token string">"createdAt"</span>: <span class="token string">"2019-08-24T14:15:22Z"</span><span class="token punctuation">,</span></div></li><li><div class="hoverable "><span class="property token string">"artifacts"</span>: <button class="collapser" aria-label="collapse"></button><span class="token punctuation">[</span><span class="ellipsis"></span><ul class="array collapsible"><li><div class="hoverable collapsed"><button class="collapser" aria-label="expand"></button><span class="token punctuation">{</span><span class="ellipsis"></span><ul class="obj collapsible"><li><div class="hoverable collapsed"><span class="property token string">"id"</span>: <span class="token string">"string"</span><span class="token punctuation">,</span></div></li><li><div class="hoverable collapsed"><span class="property token string">"data"</span>: <span class="token string">"string"</span><span class="token punctuation">,</span></div></li><li><div class="hoverable collapsed"><span class="property token string">"dataType"</span>: <span class="token string">"string"</span><span class="token punctuation">,</span></div></li><li><div class="hoverable collapsed"><span class="property token string">"source"</span>: <span class="token string">"string"</span><span class="token punctuation">,</span></div></li><li><div class="hoverable collapsed"><span class="property token string">"query"</span>: <span class="token string">"string"</span><span class="token punctuation">,</span></div></li><li><div class="hoverable collapsed"><span class="property token string">"tags"</span>: <button class="collapser" aria-label="expand"></button><span class="token punctuation">[</span><span class="ellipsis"></span><ul class="array collapsible"><li><div class="hoverable collapsed"><span class="token string">"string"</span></div></li></ul><span class="token punctuation">]</span></div></li></ul><span class="token punctuation">}</span></div></li></ul><span class="token punctuation">]</span><span class="token punctuation">,</span></div></li><li><div class="hoverable "><span class="property token string">"tags"</span>: <button class="collapser" aria-label="collapse"></button><span class="token punctuation">[</span><span class="ellipsis"></span><ul class="array collapsible"><li><div class="hoverable collapsed"><button class="collapser" aria-label="expand"></button><span class="token punctuation">{</span><span class="ellipsis"></span><ul class="obj collapsible"><li><div class="hoverable collapsed"><span class="property token string">"id"</span>: <span class="token number">0</span><span class="token punctuation">,</span></div></li><li><div class="hoverable collapsed"><span class="property token string">"name"</span>: <span class="token string">"string"</span></div></li></ul><span class="token punctuation">}</span></div></li></ul><span class="token punctuation">]</span></div></li></ul><span class="token punctuation">}</span></code></div></div></div></div></div></div><div class="react-tabs__tab-panel" role="tabpanel" id="react-tabs-5" aria-labelledby="react-tabs-4"></div></div></div></div></div></div><div id="tag/alerts/paths/~1api~1alerts/get" data-section-id="tag/alerts/paths/~1api~1alerts/get" class="sc-eCstZk bCpIRB"><div class="sc-iBPTVF keMybc"><div class="sc-hKgKIp gvoNGN"><h2 class="sc-pGaPU biKwui"><a class="sc-crrtmM jGBpue" href="#tag/alerts/paths/~1api~1alerts/get" aria-label="tag/alerts/paths/~1api~1alerts/get"></a>Search alerts<!-- --> </h2><div class="sc-eWVLZl fgfjUV"><div html="<p>Search alerts</p>
|
363
363
|
" class="sc-iJuWdM sc-cBNeRQ gpkGbA casAkG"><p>Search alerts</p>
|
364
364
|
</div></div><div><h5 class="sc-iqHXzD bRzaSI">query<!-- --> Parameters</h5><table class="sc-hHftZz buUaAP"><tbody><tr class=""><td kind="field" title="page" class="sc-hBEZvw sc-fFubCH gPUvwc gXIfsF"><span class="sc-idOjMB jwsifT"></span><span class="property-name">page</span></td><td class="sc-bkzXAi kMAhqG"><div><div><span class="sc-gTgyBf sc-laRQQM ihUpGF cREGdc"></span><span class="sc-gTgyBf sc-iNqNmV ihUpGF iPuJRj">integer</span><span class="sc-gTgyBf sc-iNqNmV ihUpGF iPuJRj"> <!-- --><<!-- -->int32<!-- -->><!-- --> </span></div><div><span class="sc-gTgyBf ihUpGF"> <!-- -->Default:<!-- --> </span> <span class="sc-gTgyBf sc-lcuiaG ihUpGF cEfEOv">1</span></div> <div><div html="" class="sc-iJuWdM sc-cBNeRQ gpkGbA dujygE"></div></div></div></td></tr><tr class=""><td kind="field" title="limit" class="sc-hBEZvw sc-fFubCH gPUvwc gXIfsF"><span class="sc-idOjMB jwsifT"></span><span class="property-name">limit</span></td><td class="sc-bkzXAi kMAhqG"><div><div><span class="sc-gTgyBf sc-laRQQM ihUpGF cREGdc"></span><span class="sc-gTgyBf sc-iNqNmV ihUpGF iPuJRj">integer</span><span class="sc-gTgyBf sc-iNqNmV ihUpGF iPuJRj"> <!-- --><<!-- -->int32<!-- -->><!-- --> </span></div><div><span class="sc-gTgyBf ihUpGF"> <!-- -->Default:<!-- --> </span> <span class="sc-gTgyBf sc-lcuiaG ihUpGF cEfEOv">10</span></div> <div><div html="" class="sc-iJuWdM sc-cBNeRQ gpkGbA dujygE"></div></div></div></td></tr><tr class=""><td kind="field" title="artifact" class="sc-hBEZvw sc-fFubCH gPUvwc gXIfsF"><span class="sc-idOjMB jwsifT"></span><span class="property-name">artifact</span></td><td class="sc-bkzXAi kMAhqG"><div><div><span class="sc-gTgyBf sc-laRQQM ihUpGF cREGdc"></span><span class="sc-gTgyBf sc-iNqNmV ihUpGF iPuJRj">string</span></div> <div><div html="" class="sc-iJuWdM sc-cBNeRQ gpkGbA dujygE"></div></div></div></td></tr><tr class=""><td kind="field" title="rule_id" class="sc-hBEZvw sc-fFubCH gPUvwc gXIfsF"><span class="sc-idOjMB jwsifT"></span><span class="property-name">rule_id</span></td><td class="sc-bkzXAi kMAhqG"><div><div><span class="sc-gTgyBf sc-laRQQM ihUpGF cREGdc"></span><span class="sc-gTgyBf sc-iNqNmV ihUpGF iPuJRj">string</span></div> <div><div html="" class="sc-iJuWdM sc-cBNeRQ gpkGbA dujygE"></div></div></div></td></tr><tr class=""><td kind="field" title="tag" class="sc-hBEZvw sc-fFubCH gPUvwc gXIfsF"><span class="sc-idOjMB jwsifT"></span><span class="property-name">tag</span></td><td class="sc-bkzXAi kMAhqG"><div><div><span class="sc-gTgyBf sc-laRQQM ihUpGF cREGdc"></span><span class="sc-gTgyBf sc-iNqNmV ihUpGF iPuJRj">string</span></div> <div><div html="" class="sc-iJuWdM sc-cBNeRQ gpkGbA dujygE"></div></div></div></td></tr><tr class=""><td kind="field" title="fromAt" class="sc-hBEZvw sc-fFubCH gPUvwc gXIfsF"><span class="sc-idOjMB jwsifT"></span><span class="property-name">fromAt</span></td><td class="sc-bkzXAi kMAhqG"><div><div><span class="sc-gTgyBf sc-laRQQM ihUpGF cREGdc"></span><span class="sc-gTgyBf sc-iNqNmV ihUpGF iPuJRj">string</span><span class="sc-gTgyBf sc-iNqNmV ihUpGF iPuJRj"> <!-- --><<!-- -->date-time<!-- -->><!-- --> </span></div> <div><div html="" class="sc-iJuWdM sc-cBNeRQ gpkGbA dujygE"></div></div></div></td></tr><tr class="last "><td kind="field" title="toAt" class="sc-hBEZvw sc-fFubCH gPUvwc gXIfsF"><span class="sc-idOjMB jwsifT"></span><span class="property-name">toAt</span></td><td class="sc-bkzXAi kMAhqG"><div><div><span class="sc-gTgyBf sc-laRQQM ihUpGF cREGdc"></span><span class="sc-gTgyBf sc-iNqNmV ihUpGF iPuJRj">string</span><span class="sc-gTgyBf sc-iNqNmV ihUpGF iPuJRj"> <!-- --><<!-- -->date-time<!-- -->><!-- --> </span></div> <div><div html="" class="sc-iJuWdM sc-cBNeRQ gpkGbA dujygE"></div></div></div></td></tr></tbody></table></div><div><h3 class="sc-fWPdKs fCsSHf">Responses</h3><div><button class="sc-httZfN iePdRD"><svg class="sc-dQpIV iHKCKT" version="1.1" viewBox="0 0 24 24" x="0" xmlns="http://www.w3.org/2000/svg" y="0" aria-hidden="true"><polygon points="17.3 8.3 12 13.6 6.7 8.3 5.3 9.7 12 16.4 18.7 9.7 "></polygon></svg><strong class="sc-gVgoeb goojcW">200<!-- --> </strong><div html="<p>Search alerts</p>
|
365
365
|
" class="sc-iJuWdM sc-cBNeRQ gpkGbA casAkG sc-citwID bzkUsW"><p>Search alerts</p>
|
366
|
-
</div></button></div></div></div><div class="sc-jSguLX sc-gKsecS QymcT bZqtR"><div class="sc-bQdSiB bhuodb"><button class="sc-FyfbU jlriCd"><span type="get" class="sc-jXkspL gDPfwK http-verb get">get</span><span class="sc-fXoxOd jzevEV">/api/alerts</span><svg class="sc-dQpIV hHbBnT" style="margin-right:-25px" version="1.1" viewBox="0 0 24 24" x="0" xmlns="http://www.w3.org/2000/svg" y="0" aria-hidden="true"><polygon points="17.3 8.3 12 13.6 6.7 8.3 5.3 9.7 12 16.4 18.7 9.7 "></polygon></svg></button><div aria-hidden="true" class="sc-eFtZDC ciRGmD"><div class="sc-fmlKft buTZbL"><div html="" class="sc-iJuWdM sc-cBNeRQ gpkGbA dujygE"></div><div tabindex="0" role="button"><div class="sc-ljRaSg uePtT"><span></span>/api/alerts</div></div></div></div></div><div><h3 class="sc-kEjbdu jmifsN"> <!-- -->Response samples<!-- --> </h3><div class="sc-cxFKTC jVRsAZ" data-rttabs="true"><ul class="react-tabs__tab-list" role="tablist"><li class="tab-success react-tabs__tab--selected" role="tab" id="react-tabs-6" aria-selected="true" aria-disabled="false" aria-controls="react-tabs-7" tabindex="0" data-rttab="true">200</li></ul><div class="react-tabs__tab-panel react-tabs__tab-panel--selected" role="tabpanel" id="react-tabs-7" aria-labelledby="react-tabs-6"><div><div class="sc-cOaiZO eDzWuJ"><span class="sc-bBrOHt etjuEr">Content type</span><div class="sc-dOSSlk bAzVww">application/json</div></div><div class="sc-hTZhMB kTaCsY"><div class="sc-cTkyaV gLzJQv"><div class="sc-giInvV bIDavi"><button><div class="sc-jcVcfa iVrxDL">Copy</div></button><button> Expand all </button><button> Collapse all </button></div><div class="sc-iJuWdM gpkGbA sc-jNMdxs jXmkAn"><div class="redoc-json"><code><button class="collapser" aria-label="collapse"></button><span class="token punctuation">[</span><span class="ellipsis"></span><ul class="array collapsible"><li><div class="hoverable "><button class="collapser" aria-label="collapse"></button><span class="token punctuation">{</span><span class="ellipsis"></span><ul class="obj collapsible"><li><div class="hoverable collapsed"><span class="property token string">"alerts"</span>: <button class="collapser" aria-label="expand"></button><span class="token punctuation">[</span><span class="ellipsis"></span><ul class="array collapsible"><li><div class="hoverable collapsed"><button class="collapser" aria-label="expand"></button><span class="token punctuation">{</span><span class="ellipsis"></span><ul class="obj collapsible"><li><div class="hoverable collapsed"><span class="property token string">"id"</span>: <span class="token string">"string"</span><span class="token punctuation">,</span></div></li><li><div class="hoverable collapsed"><span class="property token string">"ruleId"</span>: <span class="token string">"string"</span><span class="token punctuation">,</span></div></li><li><div class="hoverable collapsed"><span class="property token string">"createdAt"</span>: <span class="token string">"2019-08-24T14:15:22Z"</span><span class="token punctuation">,</span></div></li><li><div class="hoverable collapsed"><span class="property token string">"artifacts"</span>: <button class="collapser" aria-label="expand"></button><span class="token punctuation">[</span><span class="ellipsis"></span><ul class="array collapsible"><li><div class="hoverable collapsed"><button class="collapser" aria-label="expand"></button><span class="token punctuation">{</span><span class="ellipsis"></span><ul class="obj collapsible"><li><div class="hoverable collapsed"><span class="property token string">"id"</span>: <span class="token string">"string"</span><span class="token punctuation">,</span></div></li><li><div class="hoverable collapsed"><span class="property token string">"data"</span>: <span class="token string">"string"</span><span class="token punctuation">,</span></div></li><li><div class="hoverable collapsed"><span class="property token string">"dataType"</span>: <span class="token string">"string"</span><span class="token punctuation">,</span></div></li><li><div class="hoverable collapsed"><span class="property token string">"source"</span>: <span class="token string">"string"</span><span class="token punctuation">,</span></div></li><li><div class="hoverable collapsed"><span class="property token string">"tags"</span>: <button class="collapser" aria-label="expand"></button><span class="token punctuation">[</span><span class="ellipsis"></span><ul class="array collapsible"><li><div class="hoverable collapsed"><span class="token string">"string"</span></div></li></ul><span class="token punctuation">]</span></div></li></ul><span class="token punctuation">}</span></div></li></ul><span class="token punctuation">]</span><span class="token punctuation">,</span></div></li><li><div class="hoverable collapsed"><span class="property token string">"tags"</span>: <button class="collapser" aria-label="expand"></button><span class="token punctuation">[</span><span class="ellipsis"></span><ul class="array collapsible"><li><div class="hoverable collapsed"><button class="collapser" aria-label="expand"></button><span class="token punctuation">{</span><span class="ellipsis"></span><ul class="obj collapsible"><li><div class="hoverable collapsed"><span class="property token string">"id"</span>: <span class="token number">0</span><span class="token punctuation">,</span></div></li><li><div class="hoverable collapsed"><span class="property token string">"name"</span>: <span class="token string">"string"</span></div></li></ul><span class="token punctuation">}</span></div></li></ul><span class="token punctuation">]</span></div></li></ul><span class="token punctuation">}</span></div></li></ul><span class="token punctuation">]</span><span class="token punctuation">,</span></div></li><li><div class="hoverable collapsed"><span class="property token string">"total"</span>: <span class="token number">0</span><span class="token punctuation">,</span></div></li><li><div class="hoverable collapsed"><span class="property token string">"currentPage"</span>: <span class="token number">0</span><span class="token punctuation">,</span></div></li><li><div class="hoverable collapsed"><span class="property token string">"pageSize"</span>: <span class="token number">0</span></div></li></ul><span class="token punctuation">}</span></div></li></ul><span class="token punctuation">]</span></code></div></div></div></div></div></div></div></div></div></div></div><div id="tag/alerts/paths/~1api~1alerts~1{id}/delete" data-section-id="tag/alerts/paths/~1api~1alerts~1{id}/delete" class="sc-eCstZk bCpIRB"><div class="sc-iBPTVF keMybc"><div class="sc-hKgKIp gvoNGN"><h2 class="sc-pGaPU biKwui"><a class="sc-crrtmM jGBpue" href="#tag/alerts/paths/~1api~1alerts~1{id}/delete" aria-label="tag/alerts/paths/~1api~1alerts~1{id}/delete"></a>Delete an alert<!-- --> </h2><div class="sc-eWVLZl fgfjUV"><div html="<p>Delete an alert</p>
|
366
|
+
</div></button></div></div></div><div class="sc-jSguLX sc-gKsecS QymcT bZqtR"><div class="sc-bQdSiB bhuodb"><button class="sc-FyfbU jlriCd"><span type="get" class="sc-jXkspL gDPfwK http-verb get">get</span><span class="sc-fXoxOd jzevEV">/api/alerts</span><svg class="sc-dQpIV hHbBnT" style="margin-right:-25px" version="1.1" viewBox="0 0 24 24" x="0" xmlns="http://www.w3.org/2000/svg" y="0" aria-hidden="true"><polygon points="17.3 8.3 12 13.6 6.7 8.3 5.3 9.7 12 16.4 18.7 9.7 "></polygon></svg></button><div aria-hidden="true" class="sc-eFtZDC ciRGmD"><div class="sc-fmlKft buTZbL"><div html="" class="sc-iJuWdM sc-cBNeRQ gpkGbA dujygE"></div><div tabindex="0" role="button"><div class="sc-ljRaSg uePtT"><span></span>/api/alerts</div></div></div></div></div><div><h3 class="sc-kEjbdu jmifsN"> <!-- -->Response samples<!-- --> </h3><div class="sc-cxFKTC jVRsAZ" data-rttabs="true"><ul class="react-tabs__tab-list" role="tablist"><li class="tab-success react-tabs__tab--selected" role="tab" id="react-tabs-6" aria-selected="true" aria-disabled="false" aria-controls="react-tabs-7" tabindex="0" data-rttab="true">200</li></ul><div class="react-tabs__tab-panel react-tabs__tab-panel--selected" role="tabpanel" id="react-tabs-7" aria-labelledby="react-tabs-6"><div><div class="sc-cOaiZO eDzWuJ"><span class="sc-bBrOHt etjuEr">Content type</span><div class="sc-dOSSlk bAzVww">application/json</div></div><div class="sc-hTZhMB kTaCsY"><div class="sc-cTkyaV gLzJQv"><div class="sc-giInvV bIDavi"><button><div class="sc-jcVcfa iVrxDL">Copy</div></button><button> Expand all </button><button> Collapse all </button></div><div class="sc-iJuWdM gpkGbA sc-jNMdxs jXmkAn"><div class="redoc-json"><code><button class="collapser" aria-label="collapse"></button><span class="token punctuation">[</span><span class="ellipsis"></span><ul class="array collapsible"><li><div class="hoverable "><button class="collapser" aria-label="collapse"></button><span class="token punctuation">{</span><span class="ellipsis"></span><ul class="obj collapsible"><li><div class="hoverable collapsed"><span class="property token string">"alerts"</span>: <button class="collapser" aria-label="expand"></button><span class="token punctuation">[</span><span class="ellipsis"></span><ul class="array collapsible"><li><div class="hoverable collapsed"><button class="collapser" aria-label="expand"></button><span class="token punctuation">{</span><span class="ellipsis"></span><ul class="obj collapsible"><li><div class="hoverable collapsed"><span class="property token string">"id"</span>: <span class="token string">"string"</span><span class="token punctuation">,</span></div></li><li><div class="hoverable collapsed"><span class="property token string">"ruleId"</span>: <span class="token string">"string"</span><span class="token punctuation">,</span></div></li><li><div class="hoverable collapsed"><span class="property token string">"createdAt"</span>: <span class="token string">"2019-08-24T14:15:22Z"</span><span class="token punctuation">,</span></div></li><li><div class="hoverable collapsed"><span class="property token string">"artifacts"</span>: <button class="collapser" aria-label="expand"></button><span class="token punctuation">[</span><span class="ellipsis"></span><ul class="array collapsible"><li><div class="hoverable collapsed"><button class="collapser" aria-label="expand"></button><span class="token punctuation">{</span><span class="ellipsis"></span><ul class="obj collapsible"><li><div class="hoverable collapsed"><span class="property token string">"id"</span>: <span class="token string">"string"</span><span class="token punctuation">,</span></div></li><li><div class="hoverable collapsed"><span class="property token string">"data"</span>: <span class="token string">"string"</span><span class="token punctuation">,</span></div></li><li><div class="hoverable collapsed"><span class="property token string">"dataType"</span>: <span class="token string">"string"</span><span class="token punctuation">,</span></div></li><li><div class="hoverable collapsed"><span class="property token string">"source"</span>: <span class="token string">"string"</span><span class="token punctuation">,</span></div></li><li><div class="hoverable collapsed"><span class="property token string">"query"</span>: <span class="token string">"string"</span><span class="token punctuation">,</span></div></li><li><div class="hoverable collapsed"><span class="property token string">"tags"</span>: <button class="collapser" aria-label="expand"></button><span class="token punctuation">[</span><span class="ellipsis"></span><ul class="array collapsible"><li><div class="hoverable collapsed"><span class="token string">"string"</span></div></li></ul><span class="token punctuation">]</span></div></li></ul><span class="token punctuation">}</span></div></li></ul><span class="token punctuation">]</span><span class="token punctuation">,</span></div></li><li><div class="hoverable collapsed"><span class="property token string">"tags"</span>: <button class="collapser" aria-label="expand"></button><span class="token punctuation">[</span><span class="ellipsis"></span><ul class="array collapsible"><li><div class="hoverable collapsed"><button class="collapser" aria-label="expand"></button><span class="token punctuation">{</span><span class="ellipsis"></span><ul class="obj collapsible"><li><div class="hoverable collapsed"><span class="property token string">"id"</span>: <span class="token number">0</span><span class="token punctuation">,</span></div></li><li><div class="hoverable collapsed"><span class="property token string">"name"</span>: <span class="token string">"string"</span></div></li></ul><span class="token punctuation">}</span></div></li></ul><span class="token punctuation">]</span></div></li></ul><span class="token punctuation">}</span></div></li></ul><span class="token punctuation">]</span><span class="token punctuation">,</span></div></li><li><div class="hoverable collapsed"><span class="property token string">"total"</span>: <span class="token number">0</span><span class="token punctuation">,</span></div></li><li><div class="hoverable collapsed"><span class="property token string">"currentPage"</span>: <span class="token number">0</span><span class="token punctuation">,</span></div></li><li><div class="hoverable collapsed"><span class="property token string">"pageSize"</span>: <span class="token number">0</span></div></li></ul><span class="token punctuation">}</span></div></li></ul><span class="token punctuation">]</span></code></div></div></div></div></div></div></div></div></div></div></div><div id="tag/alerts/paths/~1api~1alerts~1{id}/delete" data-section-id="tag/alerts/paths/~1api~1alerts~1{id}/delete" class="sc-eCstZk bCpIRB"><div class="sc-iBPTVF keMybc"><div class="sc-hKgKIp gvoNGN"><h2 class="sc-pGaPU biKwui"><a class="sc-crrtmM jGBpue" href="#tag/alerts/paths/~1api~1alerts~1{id}/delete" aria-label="tag/alerts/paths/~1api~1alerts~1{id}/delete"></a>Delete an alert<!-- --> </h2><div class="sc-eWVLZl fgfjUV"><div html="<p>Delete an alert</p>
|
367
367
|
" class="sc-iJuWdM sc-cBNeRQ gpkGbA casAkG"><p>Delete an alert</p>
|
368
368
|
</div></div><div><h5 class="sc-iqHXzD bRzaSI">path<!-- --> Parameters</h5><table class="sc-hHftZz buUaAP"><tbody><tr class="last "><td kind="field" title="id" class="sc-hBEZvw sc-fFubCH gPUvwc gXIfsF"><span class="sc-idOjMB jwsifT"></span><span class="property-name">id</span><div class="sc-gTgyBf sc-eJMOVy ihUpGF giWqTo">required</div></td><td class="sc-bkzXAi kMAhqG"><div><div><span class="sc-gTgyBf sc-laRQQM ihUpGF cREGdc"></span><span class="sc-gTgyBf sc-iNqNmV ihUpGF iPuJRj">integer</span><span class="sc-gTgyBf sc-iNqNmV ihUpGF iPuJRj"> <!-- --><<!-- -->int32<!-- -->><!-- --> </span></div> <div><div html="" class="sc-iJuWdM sc-cBNeRQ gpkGbA dujygE"></div></div></div></td></tr></tbody></table></div><div><h3 class="sc-fWPdKs fCsSHf">Responses</h3><div><button class="sc-httZfN iePdRD"><svg class="sc-dQpIV iHKCKT" version="1.1" viewBox="0 0 24 24" x="0" xmlns="http://www.w3.org/2000/svg" y="0" aria-hidden="true"><polygon points="17.3 8.3 12 13.6 6.7 8.3 5.3 9.7 12 16.4 18.7 9.7 "></polygon></svg><strong class="sc-gVgoeb goojcW">204<!-- --> </strong><div html="<p>Delete an alert</p>
|
369
369
|
" class="sc-iJuWdM sc-cBNeRQ gpkGbA casAkG sc-citwID bzkUsW"><p>Delete an alert</p>
|
@@ -377,7 +377,7 @@ data-styled.g137[id="sc-cKZHtR"]{content:"lcoFQc,"}/*!sc*/
|
|
377
377
|
" class="sc-iJuWdM sc-cBNeRQ gpkGbA casAkG"><p>Get an artifact</p>
|
378
378
|
</div></div><div><h5 class="sc-iqHXzD bRzaSI">path<!-- --> Parameters</h5><table class="sc-hHftZz buUaAP"><tbody><tr class="last "><td kind="field" title="id" class="sc-hBEZvw sc-fFubCH gPUvwc gXIfsF"><span class="sc-idOjMB jwsifT"></span><span class="property-name">id</span><div class="sc-gTgyBf sc-eJMOVy ihUpGF giWqTo">required</div></td><td class="sc-bkzXAi kMAhqG"><div><div><span class="sc-gTgyBf sc-laRQQM ihUpGF cREGdc"></span><span class="sc-gTgyBf sc-iNqNmV ihUpGF iPuJRj">integer</span><span class="sc-gTgyBf sc-iNqNmV ihUpGF iPuJRj"> <!-- --><<!-- -->int32<!-- -->><!-- --> </span></div> <div><div html="" class="sc-iJuWdM sc-cBNeRQ gpkGbA dujygE"></div></div></div></td></tr></tbody></table></div><div><h3 class="sc-fWPdKs fCsSHf">Responses</h3><div><button class="sc-httZfN iePdRD"><svg class="sc-dQpIV iHKCKT" version="1.1" viewBox="0 0 24 24" x="0" xmlns="http://www.w3.org/2000/svg" y="0" aria-hidden="true"><polygon points="17.3 8.3 12 13.6 6.7 8.3 5.3 9.7 12 16.4 18.7 9.7 "></polygon></svg><strong class="sc-gVgoeb goojcW">200<!-- --> </strong><div html="<p>Get an artifact</p>
|
379
379
|
" class="sc-iJuWdM sc-cBNeRQ gpkGbA casAkG sc-citwID bzkUsW"><p>Get an artifact</p>
|
380
|
-
</div></button></div><div><button class="sc-httZfN jEuzUJ"><svg class="sc-dQpIV bbipPn" version="1.1" viewBox="0 0 24 24" x="0" xmlns="http://www.w3.org/2000/svg" y="0" aria-hidden="true"><polygon points="17.3 8.3 12 13.6 6.7 8.3 5.3 9.7 12 16.4 18.7 9.7 "></polygon></svg><strong class="sc-gVgoeb goojcW">404<!-- --> </strong><div html="" class="sc-iJuWdM sc-cBNeRQ gpkGbA casAkG sc-citwID bzkUsW"></div></button></div></div></div><div class="sc-jSguLX sc-gKsecS QymcT bZqtR"><div class="sc-bQdSiB bhuodb"><button class="sc-FyfbU jlriCd"><span type="get" class="sc-jXkspL gDPfwK http-verb get">get</span><span class="sc-fXoxOd jzevEV">/api/artifacts/{id}</span><svg class="sc-dQpIV hHbBnT" style="margin-right:-25px" version="1.1" viewBox="0 0 24 24" x="0" xmlns="http://www.w3.org/2000/svg" y="0" aria-hidden="true"><polygon points="17.3 8.3 12 13.6 6.7 8.3 5.3 9.7 12 16.4 18.7 9.7 "></polygon></svg></button><div aria-hidden="true" class="sc-eFtZDC ciRGmD"><div class="sc-fmlKft buTZbL"><div html="" class="sc-iJuWdM sc-cBNeRQ gpkGbA dujygE"></div><div tabindex="0" role="button"><div class="sc-ljRaSg uePtT"><span></span>/api/artifacts/{id}</div></div></div></div></div><div><h3 class="sc-kEjbdu jmifsN"> <!-- -->Response samples<!-- --> </h3><div class="sc-cxFKTC jVRsAZ" data-rttabs="true"><ul class="react-tabs__tab-list" role="tablist"><li class="tab-success react-tabs__tab--selected" role="tab" id="react-tabs-16" aria-selected="true" aria-disabled="false" aria-controls="react-tabs-17" tabindex="0" data-rttab="true">200</li><li class="tab-error" role="tab" id="react-tabs-18" aria-selected="false" aria-disabled="false" aria-controls="react-tabs-19" data-rttab="true">404</li></ul><div class="react-tabs__tab-panel react-tabs__tab-panel--selected" role="tabpanel" id="react-tabs-17" aria-labelledby="react-tabs-16"><div><div class="sc-cOaiZO eDzWuJ"><span class="sc-bBrOHt etjuEr">Content type</span><div class="sc-dOSSlk bAzVww">application/json</div></div><div class="sc-hTZhMB kTaCsY"><div class="sc-cTkyaV gLzJQv"><div class="sc-giInvV bIDavi"><button><div class="sc-jcVcfa iVrxDL">Copy</div></button><button> Expand all </button><button> Collapse all </button></div><div class="sc-iJuWdM gpkGbA sc-jNMdxs jXmkAn"><div class="redoc-json"><code><button class="collapser" aria-label="collapse"></button><span class="token punctuation">{</span><span class="ellipsis"></span><ul class="obj collapsible"><li><div class="hoverable "><span class="property token string">"id"</span>: <span class="token string">"string"</span><span class="token punctuation">,</span></div></li><li><div class="hoverable "><span class="property token string">"data"</span>: <span class="token string">"string"</span><span class="token punctuation">,</span></div></li><li><div class="hoverable "><span class="property token string">"dataType"</span>: <span class="token string">"string"</span><span class="token punctuation">,</span></div></li><li><div class="hoverable "><span class="property token string">"source"</span>: <span class="token string">"string"</span><span class="token punctuation">,</span></div></li><li><div class="hoverable "><span class="property token string">"tags"</span>: <button class="collapser" aria-label="collapse"></button><span class="token punctuation">[</span><span class="ellipsis"></span><ul class="array collapsible"><li><div class="hoverable collapsed"><span class="token string">"string"</span></div></li></ul><span class="token punctuation">]</span><span class="token punctuation">,</span></div></li><li><div class="hoverable "><span class="property token string">"metadata"</span>: <span class="token punctuation">{ }</span><span class="token punctuation">,</span></div></li><li><div class="hoverable "><span class="property token string">"autonomousSystem"</span>: <button class="collapser" aria-label="collapse"></button><span class="token punctuation">{</span><span class="ellipsis"></span><ul class="obj collapsible"><li><div class="hoverable collapsed"><span class="property token string">"asn"</span>: <span class="token number">0</span></div></li></ul><span class="token punctuation">}</span><span class="token punctuation">,</span></div></li><li><div class="hoverable "><span class="property token string">"geolocation"</span>: <button class="collapser" aria-label="collapse"></button><span class="token punctuation">{</span><span class="ellipsis"></span><ul class="obj collapsible"><li><div class="hoverable collapsed"><span class="property token string">"country"</span>: <span class="token string">"string"</span><span class="token punctuation">,</span></div></li><li><div class="hoverable collapsed"><span class="property token string">"countryCode"</span>: <span class="token string">"string"</span></div></li></ul><span class="token punctuation">}</span><span class="token punctuation">,</span></div></li><li><div class="hoverable "><span class="property token string">"whoisRecord"</span>: <button class="collapser" aria-label="collapse"></button><span class="token punctuation">{</span><span class="ellipsis"></span><ul class="obj collapsible"><li><div class="hoverable collapsed"><span class="property token string">"domain"</span>: <span class="token string">"string"</span><span class="token punctuation">,</span></div></li><li><div class="hoverable collapsed"><span class="property token string">"createdOn"</span>: <span class="token string">"2019-08-24"</span><span class="token punctuation">,</span></div></li><li><div class="hoverable collapsed"><span class="property token string">"updatedOn"</span>: <span class="token string">"2019-08-24"</span><span class="token punctuation">,</span></div></li><li><div class="hoverable collapsed"><span class="property token string">"expiresOn"</span>: <span class="token string">"2019-08-24"</span><span class="token punctuation">,</span></div></li><li><div class="hoverable collapsed"><span class="property token string">"registrar"</span>: <span class="token punctuation">{ }</span><span class="token punctuation">,</span></div></li><li><div class="hoverable collapsed"><span class="property token string">"contacts"</span>: <button class="collapser" aria-label="expand"></button><span class="token punctuation">[</span><span class="ellipsis"></span><ul class="array collapsible"><li><div class="hoverable collapsed"><span class="token punctuation">{ }</span></div></li></ul><span class="token punctuation">]</span></div></li></ul><span class="token punctuation">}</span><span class="token punctuation">,</span></div></li><li><div class="hoverable "><span class="property token string">"reverseDnsNames"</span>: <button class="collapser" aria-label="collapse"></button><span class="token punctuation">[</span><span class="ellipsis"></span><ul class="array collapsible"><li><div class="hoverable collapsed"><button class="collapser" aria-label="expand"></button><span class="token punctuation">{</span><span class="ellipsis"></span><ul class="obj collapsible"><li><div class="hoverable collapsed"><span class="property token string">"name"</span>: <span class="token string">"string"</span></div></li></ul><span class="token punctuation">}</span></div></li></ul><span class="token punctuation">]</span><span class="token punctuation">,</span></div></li><li><div class="hoverable "><span class="property token string">"dnsRecords"</span>: <button class="collapser" aria-label="collapse"></button><span class="token punctuation">[</span><span class="ellipsis"></span><ul class="array collapsible"><li><div class="hoverable collapsed"><button class="collapser" aria-label="expand"></button><span class="token punctuation">{</span><span class="ellipsis"></span><ul class="obj collapsible"><li><div class="hoverable collapsed"><span class="property token string">"resource"</span>: <span class="token string">"string"</span><span class="token punctuation">,</span></div></li><li><div class="hoverable collapsed"><span class="property token string">"value"</span>: <span class="token string">"string"</span></div></li></ul><span class="token punctuation">}</span></div></li></ul><span class="token punctuation">]</span><span class="token punctuation">,</span></div></li><li><div class="hoverable "><span class="property token string">"cpes"</span>: <button class="collapser" aria-label="collapse"></button><span class="token punctuation">[</span><span class="ellipsis"></span><ul class="array collapsible"><li><div class="hoverable collapsed"><button class="collapser" aria-label="expand"></button><span class="token punctuation">{</span><span class="ellipsis"></span><ul class="obj collapsible"><li><div class="hoverable collapsed"><span class="property token string">"cpe"</span>: <span class="token string">"string"</span></div></li></ul><span class="token punctuation">}</span></div></li></ul><span class="token punctuation">]</span><span class="token punctuation">,</span></div></li><li><div class="hoverable "><span class="property token string">"ports"</span>: <button class="collapser" aria-label="collapse"></button><span class="token punctuation">[</span><span class="ellipsis"></span><ul class="array collapsible"><li><div class="hoverable collapsed"><button class="collapser" aria-label="expand"></button><span class="token punctuation">{</span><span class="ellipsis"></span><ul class="obj collapsible"><li><div class="hoverable collapsed"><span class="property token string">"port"</span>: <span class="token number">0</span></div></li></ul><span class="token punctuation">}</span></div></li></ul><span class="token punctuation">]</span></div></li></ul><span class="token punctuation">}</span></code></div></div></div></div></div></div><div class="react-tabs__tab-panel" role="tabpanel" id="react-tabs-19" aria-labelledby="react-tabs-18"></div></div></div></div></div></div><div id="tag/artifacts/paths/~1api~1artifacts~1{id}~1enrich/get" data-section-id="tag/artifacts/paths/~1api~1artifacts~1{id}~1enrich/get" class="sc-eCstZk bCpIRB"><div class="sc-iBPTVF keMybc"><div class="sc-hKgKIp gvoNGN"><h2 class="sc-pGaPU biKwui"><a class="sc-crrtmM jGBpue" href="#tag/artifacts/paths/~1api~1artifacts~1{id}~1enrich/get" aria-label="tag/artifacts/paths/~1api~1artifacts~1{id}~1enrich/get"></a>Enrich an artifact<!-- --> </h2><div class="sc-eWVLZl fgfjUV"><div html="<p>Enrich an artifact</p>
|
380
|
+
</div></button></div><div><button class="sc-httZfN jEuzUJ"><svg class="sc-dQpIV bbipPn" version="1.1" viewBox="0 0 24 24" x="0" xmlns="http://www.w3.org/2000/svg" y="0" aria-hidden="true"><polygon points="17.3 8.3 12 13.6 6.7 8.3 5.3 9.7 12 16.4 18.7 9.7 "></polygon></svg><strong class="sc-gVgoeb goojcW">404<!-- --> </strong><div html="" class="sc-iJuWdM sc-cBNeRQ gpkGbA casAkG sc-citwID bzkUsW"></div></button></div></div></div><div class="sc-jSguLX sc-gKsecS QymcT bZqtR"><div class="sc-bQdSiB bhuodb"><button class="sc-FyfbU jlriCd"><span type="get" class="sc-jXkspL gDPfwK http-verb get">get</span><span class="sc-fXoxOd jzevEV">/api/artifacts/{id}</span><svg class="sc-dQpIV hHbBnT" style="margin-right:-25px" version="1.1" viewBox="0 0 24 24" x="0" xmlns="http://www.w3.org/2000/svg" y="0" aria-hidden="true"><polygon points="17.3 8.3 12 13.6 6.7 8.3 5.3 9.7 12 16.4 18.7 9.7 "></polygon></svg></button><div aria-hidden="true" class="sc-eFtZDC ciRGmD"><div class="sc-fmlKft buTZbL"><div html="" class="sc-iJuWdM sc-cBNeRQ gpkGbA dujygE"></div><div tabindex="0" role="button"><div class="sc-ljRaSg uePtT"><span></span>/api/artifacts/{id}</div></div></div></div></div><div><h3 class="sc-kEjbdu jmifsN"> <!-- -->Response samples<!-- --> </h3><div class="sc-cxFKTC jVRsAZ" data-rttabs="true"><ul class="react-tabs__tab-list" role="tablist"><li class="tab-success react-tabs__tab--selected" role="tab" id="react-tabs-16" aria-selected="true" aria-disabled="false" aria-controls="react-tabs-17" tabindex="0" data-rttab="true">200</li><li class="tab-error" role="tab" id="react-tabs-18" aria-selected="false" aria-disabled="false" aria-controls="react-tabs-19" data-rttab="true">404</li></ul><div class="react-tabs__tab-panel react-tabs__tab-panel--selected" role="tabpanel" id="react-tabs-17" aria-labelledby="react-tabs-16"><div><div class="sc-cOaiZO eDzWuJ"><span class="sc-bBrOHt etjuEr">Content type</span><div class="sc-dOSSlk bAzVww">application/json</div></div><div class="sc-hTZhMB kTaCsY"><div class="sc-cTkyaV gLzJQv"><div class="sc-giInvV bIDavi"><button><div class="sc-jcVcfa iVrxDL">Copy</div></button><button> Expand all </button><button> Collapse all </button></div><div class="sc-iJuWdM gpkGbA sc-jNMdxs jXmkAn"><div class="redoc-json"><code><button class="collapser" aria-label="collapse"></button><span class="token punctuation">{</span><span class="ellipsis"></span><ul class="obj collapsible"><li><div class="hoverable "><span class="property token string">"id"</span>: <span class="token string">"string"</span><span class="token punctuation">,</span></div></li><li><div class="hoverable "><span class="property token string">"data"</span>: <span class="token string">"string"</span><span class="token punctuation">,</span></div></li><li><div class="hoverable "><span class="property token string">"dataType"</span>: <span class="token string">"string"</span><span class="token punctuation">,</span></div></li><li><div class="hoverable "><span class="property token string">"source"</span>: <span class="token string">"string"</span><span class="token punctuation">,</span></div></li><li><div class="hoverable "><span class="property token string">"query"</span>: <span class="token string">"string"</span><span class="token punctuation">,</span></div></li><li><div class="hoverable "><span class="property token string">"tags"</span>: <button class="collapser" aria-label="collapse"></button><span class="token punctuation">[</span><span class="ellipsis"></span><ul class="array collapsible"><li><div class="hoverable collapsed"><span class="token string">"string"</span></div></li></ul><span class="token punctuation">]</span><span class="token punctuation">,</span></div></li><li><div class="hoverable "><span class="property token string">"metadata"</span>: <span class="token punctuation">{ }</span><span class="token punctuation">,</span></div></li><li><div class="hoverable "><span class="property token string">"autonomousSystem"</span>: <button class="collapser" aria-label="collapse"></button><span class="token punctuation">{</span><span class="ellipsis"></span><ul class="obj collapsible"><li><div class="hoverable collapsed"><span class="property token string">"asn"</span>: <span class="token number">0</span></div></li></ul><span class="token punctuation">}</span><span class="token punctuation">,</span></div></li><li><div class="hoverable "><span class="property token string">"geolocation"</span>: <button class="collapser" aria-label="collapse"></button><span class="token punctuation">{</span><span class="ellipsis"></span><ul class="obj collapsible"><li><div class="hoverable collapsed"><span class="property token string">"country"</span>: <span class="token string">"string"</span><span class="token punctuation">,</span></div></li><li><div class="hoverable collapsed"><span class="property token string">"countryCode"</span>: <span class="token string">"string"</span></div></li></ul><span class="token punctuation">}</span><span class="token punctuation">,</span></div></li><li><div class="hoverable "><span class="property token string">"whoisRecord"</span>: <button class="collapser" aria-label="collapse"></button><span class="token punctuation">{</span><span class="ellipsis"></span><ul class="obj collapsible"><li><div class="hoverable collapsed"><span class="property token string">"domain"</span>: <span class="token string">"string"</span><span class="token punctuation">,</span></div></li><li><div class="hoverable collapsed"><span class="property token string">"createdOn"</span>: <span class="token string">"2019-08-24"</span><span class="token punctuation">,</span></div></li><li><div class="hoverable collapsed"><span class="property token string">"updatedOn"</span>: <span class="token string">"2019-08-24"</span><span class="token punctuation">,</span></div></li><li><div class="hoverable collapsed"><span class="property token string">"expiresOn"</span>: <span class="token string">"2019-08-24"</span><span class="token punctuation">,</span></div></li><li><div class="hoverable collapsed"><span class="property token string">"registrar"</span>: <span class="token punctuation">{ }</span><span class="token punctuation">,</span></div></li><li><div class="hoverable collapsed"><span class="property token string">"contacts"</span>: <button class="collapser" aria-label="expand"></button><span class="token punctuation">[</span><span class="ellipsis"></span><ul class="array collapsible"><li><div class="hoverable collapsed"><span class="token punctuation">{ }</span></div></li></ul><span class="token punctuation">]</span></div></li></ul><span class="token punctuation">}</span><span class="token punctuation">,</span></div></li><li><div class="hoverable "><span class="property token string">"reverseDnsNames"</span>: <button class="collapser" aria-label="collapse"></button><span class="token punctuation">[</span><span class="ellipsis"></span><ul class="array collapsible"><li><div class="hoverable collapsed"><button class="collapser" aria-label="expand"></button><span class="token punctuation">{</span><span class="ellipsis"></span><ul class="obj collapsible"><li><div class="hoverable collapsed"><span class="property token string">"name"</span>: <span class="token string">"string"</span></div></li></ul><span class="token punctuation">}</span></div></li></ul><span class="token punctuation">]</span><span class="token punctuation">,</span></div></li><li><div class="hoverable "><span class="property token string">"dnsRecords"</span>: <button class="collapser" aria-label="collapse"></button><span class="token punctuation">[</span><span class="ellipsis"></span><ul class="array collapsible"><li><div class="hoverable collapsed"><button class="collapser" aria-label="expand"></button><span class="token punctuation">{</span><span class="ellipsis"></span><ul class="obj collapsible"><li><div class="hoverable collapsed"><span class="property token string">"resource"</span>: <span class="token string">"string"</span><span class="token punctuation">,</span></div></li><li><div class="hoverable collapsed"><span class="property token string">"value"</span>: <span class="token string">"string"</span></div></li></ul><span class="token punctuation">}</span></div></li></ul><span class="token punctuation">]</span><span class="token punctuation">,</span></div></li><li><div class="hoverable "><span class="property token string">"cpes"</span>: <button class="collapser" aria-label="collapse"></button><span class="token punctuation">[</span><span class="ellipsis"></span><ul class="array collapsible"><li><div class="hoverable collapsed"><button class="collapser" aria-label="expand"></button><span class="token punctuation">{</span><span class="ellipsis"></span><ul class="obj collapsible"><li><div class="hoverable collapsed"><span class="property token string">"cpe"</span>: <span class="token string">"string"</span></div></li></ul><span class="token punctuation">}</span></div></li></ul><span class="token punctuation">]</span><span class="token punctuation">,</span></div></li><li><div class="hoverable "><span class="property token string">"ports"</span>: <button class="collapser" aria-label="collapse"></button><span class="token punctuation">[</span><span class="ellipsis"></span><ul class="array collapsible"><li><div class="hoverable collapsed"><button class="collapser" aria-label="expand"></button><span class="token punctuation">{</span><span class="ellipsis"></span><ul class="obj collapsible"><li><div class="hoverable collapsed"><span class="property token string">"port"</span>: <span class="token number">0</span></div></li></ul><span class="token punctuation">}</span></div></li></ul><span class="token punctuation">]</span></div></li></ul><span class="token punctuation">}</span></code></div></div></div></div></div></div><div class="react-tabs__tab-panel" role="tabpanel" id="react-tabs-19" aria-labelledby="react-tabs-18"></div></div></div></div></div></div><div id="tag/artifacts/paths/~1api~1artifacts~1{id}~1enrich/get" data-section-id="tag/artifacts/paths/~1api~1artifacts~1{id}~1enrich/get" class="sc-eCstZk bCpIRB"><div class="sc-iBPTVF keMybc"><div class="sc-hKgKIp gvoNGN"><h2 class="sc-pGaPU biKwui"><a class="sc-crrtmM jGBpue" href="#tag/artifacts/paths/~1api~1artifacts~1{id}~1enrich/get" aria-label="tag/artifacts/paths/~1api~1artifacts~1{id}~1enrich/get"></a>Enrich an artifact<!-- --> </h2><div class="sc-eWVLZl fgfjUV"><div html="<p>Enrich an artifact</p>
|
381
381
|
" class="sc-iJuWdM sc-cBNeRQ gpkGbA casAkG"><p>Enrich an artifact</p>
|
382
382
|
</div></div><div><h5 class="sc-iqHXzD bRzaSI">path<!-- --> Parameters</h5><table class="sc-hHftZz buUaAP"><tbody><tr class="last "><td kind="field" title="id" class="sc-hBEZvw sc-fFubCH gPUvwc gXIfsF"><span class="sc-idOjMB jwsifT"></span><span class="property-name">id</span><div class="sc-gTgyBf sc-eJMOVy ihUpGF giWqTo">required</div></td><td class="sc-bkzXAi kMAhqG"><div><div><span class="sc-gTgyBf sc-laRQQM ihUpGF cREGdc"></span><span class="sc-gTgyBf sc-iNqNmV ihUpGF iPuJRj">integer</span><span class="sc-gTgyBf sc-iNqNmV ihUpGF iPuJRj"> <!-- --><<!-- -->int32<!-- -->><!-- --> </span></div> <div><div html="" class="sc-iJuWdM sc-cBNeRQ gpkGbA dujygE"></div></div></div></td></tr></tbody></table></div><div><h3 class="sc-fWPdKs fCsSHf">Responses</h3><div><button class="sc-httZfN iePdRD"><svg class="sc-dQpIV iHKCKT" version="1.1" viewBox="0 0 24 24" x="0" xmlns="http://www.w3.org/2000/svg" y="0" aria-hidden="true"><polygon points="17.3 8.3 12 13.6 6.7 8.3 5.3 9.7 12 16.4 18.7 9.7 "></polygon></svg><strong class="sc-gVgoeb goojcW">201<!-- --> </strong><div html="<p>Enrich an artifact</p>
|
383
383
|
" class="sc-iJuWdM sc-cBNeRQ gpkGbA casAkG sc-citwID bzkUsW"><p>Enrich an artifact</p>
|
@@ -435,7 +435,7 @@ data-styled.g137[id="sc-cKZHtR"]{content:"lcoFQc,"}/*!sc*/
|
|
435
435
|
" class="sc-iJuWdM sc-cBNeRQ gpkGbA casAkG sc-citwID bzkUsW"><p>Get tags</p>
|
436
436
|
</div></button></div></div></div><div class="sc-jSguLX sc-gKsecS QymcT bZqtR"><div class="sc-bQdSiB bhuodb"><button class="sc-FyfbU jlriCd"><span type="get" class="sc-jXkspL gDPfwK http-verb get">get</span><span class="sc-fXoxOd jzevEV">/api/tags</span><svg class="sc-dQpIV hHbBnT" style="margin-right:-25px" version="1.1" viewBox="0 0 24 24" x="0" xmlns="http://www.w3.org/2000/svg" y="0" aria-hidden="true"><polygon points="17.3 8.3 12 13.6 6.7 8.3 5.3 9.7 12 16.4 18.7 9.7 "></polygon></svg></button><div aria-hidden="true" class="sc-eFtZDC ciRGmD"><div class="sc-fmlKft buTZbL"><div html="" class="sc-iJuWdM sc-cBNeRQ gpkGbA dujygE"></div><div tabindex="0" role="button"><div class="sc-ljRaSg uePtT"><span></span>/api/tags</div></div></div></div></div><div><h3 class="sc-kEjbdu jmifsN"> <!-- -->Response samples<!-- --> </h3><div class="sc-cxFKTC jVRsAZ" data-rttabs="true"><ul class="react-tabs__tab-list" role="tablist"><li class="tab-success react-tabs__tab--selected" role="tab" id="react-tabs-62" aria-selected="true" aria-disabled="false" aria-controls="react-tabs-63" tabindex="0" data-rttab="true">200</li></ul><div class="react-tabs__tab-panel react-tabs__tab-panel--selected" role="tabpanel" id="react-tabs-63" aria-labelledby="react-tabs-62"><div><div class="sc-cOaiZO eDzWuJ"><span class="sc-bBrOHt etjuEr">Content type</span><div class="sc-dOSSlk bAzVww">application/json</div></div><div class="sc-hTZhMB kTaCsY"><div class="sc-cTkyaV gLzJQv"><div class="sc-giInvV bIDavi"><button><div class="sc-jcVcfa iVrxDL">Copy</div></button><button> Expand all </button><button> Collapse all </button></div><div class="sc-iJuWdM gpkGbA sc-jNMdxs jXmkAn"><div class="redoc-json"><code><button class="collapser" aria-label="collapse"></button><span class="token punctuation">[</span><span class="ellipsis"></span><ul class="array collapsible"><li><div class="hoverable "><button class="collapser" aria-label="collapse"></button><span class="token punctuation">{</span><span class="ellipsis"></span><ul class="obj collapsible"><li><div class="hoverable collapsed"><span class="property token string">"tags"</span>: <span class="token string">"string"</span></div></li></ul><span class="token punctuation">}</span></div></li></ul><span class="token punctuation">]</span></code></div></div></div></div></div></div></div></div></div></div></div></div><div class="sc-jtHLPo gfiMgB"></div></div></div>
|
437
437
|
<script>
|
438
|
-
const __redoc_state = {"menu":{"activeItemIdx":-1},"spec":{"data":{"openapi":"3.0.0","info":{"title":"Mihari API","version":"0.0.1"},"tags":[{"name":"alerts","description":"Operations about alerts"},{"name":"artifacts","description":"Operations about artifacts"},{"name":"configs","description":"Operations about configs"},{"name":"ip_addresses","description":"Operations about ip_addresses"},{"name":"rules","description":"Operations about rules"},{"name":"tags","description":"Operations about tags"}],"paths":{"/api/alerts":{"post":{"summary":"Create an alert","description":"Create an alert","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/postApiAlerts"}}},"required":true},"responses":{"201":{"description":"Create an alert","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Mihari_Entities_Alert"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Mihari_Entities_Message"}}}}},"tags":["alerts"]},"get":{"summary":"Search alerts","description":"Search alerts","parameters":[{"in":"query","name":"page","required":false,"schema":{"type":"integer","format":"int32","default":1}},{"in":"query","name":"limit","required":false,"schema":{"type":"integer","format":"int32","default":10}},{"in":"query","name":"artifact","required":false,"schema":{"type":"string"}},{"in":"query","name":"rule_id","required":false,"schema":{"type":"string"}},{"in":"query","name":"tag","required":false,"schema":{"type":"string"}},{"in":"query","name":"fromAt","required":false,"schema":{"type":"string","format":"date-time"}},{"in":"query","name":"toAt","required":false,"schema":{"type":"string","format":"date-time"}}],"responses":{"200":{"description":"Search alerts","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Mihari_Entities_AlertsWithPagination"}}}}}},"tags":["alerts"]}},"/api/alerts/{id}":{"delete":{"summary":"Delete an alert","description":"Delete an alert","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"integer","format":"int32"}}],"responses":{"204":{"description":"Delete an alert","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Mihari_Entities_Message"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Mihari_Entities_Message"}}}}},"tags":["alerts"]}},"/api/artifacts/{id}":{"delete":{"summary":"Delete an artifact","description":"Delete an artifact","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"integer","format":"int32"}}],"responses":{"204":{"description":"Delete an artifact","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Mihari_Entities_Message"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Mihari_Entities_Message"}}}}},"tags":["artifacts"]},"get":{"summary":"Get an artifact","description":"Get an artifact","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"integer","format":"int32"}}],"responses":{"200":{"description":"Get an artifact","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Mihari_Entities_Artifact"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Mihari_Entities_Message"}}}}},"tags":["artifacts"]}},"/api/artifacts/{id}/enrich":{"get":{"summary":"Enrich an artifact","description":"Enrich an artifact","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"integer","format":"int32"}}],"responses":{"201":{"description":"Enrich an artifact","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Mihari_Entities_Message"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Mihari_Entities_Message"}}}}},"tags":["artifacts"]}},"/api/configs":{"get":{"summary":"Get configs","description":"Get configs","responses":{"200":{"description":"Get configs","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Mihari_Entities_Config"}}}}}},"tags":["configs"]}},"/api/ip_addresses/{ip}":{"get":{"summary":"Get an IP address","description":"Get an IP address","parameters":[{"in":"path","name":"ip","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Get an IP address","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Mihari_Entities_IPAddress"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Mihari_Entities_Message"}}}}},"tags":["ip_addresses"]}},"/api/rules/{id}":{"delete":{"summary":"Delete a rule","description":"Delete a rule","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"Delete a rule","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Mihari_Entities_Message"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Mihari_Entities_Message"}}}}},"tags":["rules"]},"get":{"summary":"Get a rule","description":"Get a rule","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Get a rule","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Mihari_Entities_Rule"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Mihari_Entities_Message"}}}}},"tags":["rules"]}},"/api/rules":{"put":{"summary":"Update a rule","description":"Update a rule","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/putApiRules"}}},"required":true},"responses":{"201":{"description":"Update a rule","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Mihari_Entities_Rule"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Mihari_Entities_Message"}}}}},"tags":["rules"]},"post":{"summary":"Create a rule","description":"Create a rule","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/postApiRules"}}},"required":true},"responses":{"201":{"description":"Create a rule","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Mihari_Entities_Rule"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Mihari_Entities_Message"}}}}},"tags":["rules"]},"get":{"summary":"Search rules","description":"Search rules","parameters":[{"in":"query","name":"page","required":false,"schema":{"type":"integer","format":"int32","default":1}},{"in":"query","name":"limit","required":false,"schema":{"type":"integer","format":"int32","default":10}},{"in":"query","name":"title","required":false,"schema":{"type":"string"}},{"in":"query","name":"description","required":false,"schema":{"type":"string"}},{"in":"query","name":"tag","required":false,"schema":{"type":"string"}},{"in":"query","name":"fromAt","required":false,"schema":{"type":"string","format":"date-time"}},{"in":"query","name":"toAt","required":false,"schema":{"type":"string","format":"date-time"}}],"responses":{"200":{"description":"Search rules","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Mihari_Entities_RulesWithPagination"}}}}}},"tags":["rules"]}},"/api/rules/{id}/run":{"get":{"summary":"Run a rule","description":"Run a rule","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"201":{"description":"Run a rule","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Mihari_Entities_Message"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Mihari_Entities_Message"}}}}},"tags":["rules"]}},"/api/rules/ids":{"get":{"summary":"Get rule IDs","description":"Get Rule IDs","responses":{"200":{"description":"Get Rule IDs","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Mihari_Entities_RuleIDs"}}}}}},"tags":["rules"]}},"/api/tags/{id}":{"delete":{"summary":"Delete a tag","description":"Delete a tag","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"integer","format":"int32"}}],"responses":{"204":{"description":"Delete a tag","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Mihari_Entities_Message"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Mihari_Entities_Message"}}}}},"tags":["tags"]}},"/api/tags":{"get":{"summary":"Get tags","description":"Get tags","responses":{"200":{"description":"Get tags","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Mihari_Entities_Tags"}}}}}},"tags":["tags"]}}},"components":{"schemas":{"postApiAlerts":{"type":"object","properties":{"ruleId":{"type":"string"},"artifacts":{"type":"array","items":{"type":"string"}}},"required":["ruleId","artifacts"],"description":"Create an alert"},"Mihari_Entities_Alert":{"type":"object","properties":{"id":{"type":"string","description":"String representation of the ID"},"ruleId":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"artifacts":{"type":"array","items":{"$ref":"#/components/schemas/Mihari_Entities_BaseArtifact"}},"tags":{"type":"array","items":{"$ref":"#/components/schemas/Mihari_Entities_Tag"}}},"required":["id","ruleId","createdAt","tags"],"description":"Mihari_Entities_Alert model"},"Mihari_Entities_BaseArtifact":{"type":"object","properties":{"id":{"type":"string","description":"String representation of the ID"},"data":{"type":"string"},"dataType":{"type":"string"},"source":{"type":"string"},"tags":{"type":"array","items":{"type":"string"}}},"required":["id","data","dataType","source"]},"Mihari_Entities_Tag":{"type":"object","properties":{"id":{"type":"integer","format":"int32"},"name":{"type":"string"}},"required":["id","name"]},"Mihari_Entities_Message":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"description":"Mihari_Entities_Message model"},"Mihari_Entities_AlertsWithPagination":{"type":"object","properties":{"alerts":{"type":"array","items":{"$ref":"#/components/schemas/Mihari_Entities_Alert"}},"total":{"type":"integer","format":"int32"},"currentPage":{"type":"integer","format":"int32"},"pageSize":{"type":"integer","format":"int32"}},"required":["alerts","total","currentPage","pageSize"],"description":"Mihari_Entities_AlertsWithPagination model"},"Mihari_Entities_Artifact":{"type":"object","properties":{"id":{"type":"string","description":"String representation of the ID"},"data":{"type":"string"},"dataType":{"type":"string"},"source":{"type":"string"},"tags":{"type":"array","items":{"type":"string"}},"metadata":{"type":"object"},"autonomousSystem":{"$ref":"#/components/schemas/Mihari_Entities_AutonomousSystem"},"geolocation":{"$ref":"#/components/schemas/Mihari_Entities_Geolocation"},"whoisRecord":{"$ref":"#/components/schemas/Mihari_Entities_WhoisRecord"},"reverseDnsNames":{"type":"array","items":{"$ref":"#/components/schemas/Mihari_Entities_ReverseDnsName"}},"dnsRecords":{"type":"array","items":{"$ref":"#/components/schemas/Mihari_Entities_DnsRecord"}},"cpes":{"type":"array","items":{"$ref":"#/components/schemas/Mihari_Entities_CPE"}},"ports":{"type":"array","items":{"$ref":"#/components/schemas/Mihari_Entities_Port"}}},"required":["id","data","dataType","source"],"description":"Mihari_Entities_Artifact model"},"Mihari_Entities_AutonomousSystem":{"type":"object","properties":{"asn":{"type":"integer","format":"int32"}},"required":["asn"]},"Mihari_Entities_Geolocation":{"type":"object","properties":{"country":{"type":"string"},"countryCode":{"type":"string"}},"required":["country","countryCode"]},"Mihari_Entities_WhoisRecord":{"type":"object","properties":{"domain":{"type":"string"},"createdOn":{"type":"string","format":"date"},"updatedOn":{"type":"string","format":"date"},"expiresOn":{"type":"string","format":"date"},"registrar":{"type":"object"},"contacts":{"type":"array","items":{"type":"object"}}},"required":["domain","contacts"]},"Mihari_Entities_ReverseDnsName":{"type":"object","properties":{"name":{"type":"string"}},"required":["name"]},"Mihari_Entities_DnsRecord":{"type":"object","properties":{"resource":{"type":"string"},"value":{"type":"string"}},"required":["resource","value"]},"Mihari_Entities_CPE":{"type":"object","properties":{"cpe":{"type":"string"}},"required":["cpe"]},"Mihari_Entities_Port":{"type":"object","properties":{"port":{"type":"integer","format":"int32"}},"required":["port"]},"Mihari_Entities_Config":{"type":"object","properties":{"name":{"type":"string"},"type":{"type":"string"},"values":{"type":"array","items":{"type":"string"}},"isConfigured":{"type":"boolean"}},"required":["name","type","values","isConfigured"],"description":"Mihari_Entities_Config model"},"Mihari_Entities_IPAddress":{"type":"object","properties":{"ip":{"type":"string"},"countryCode":{"type":"string"},"hostname":{"type":"string"},"loc":{"type":"string"},"asn":{"type":"integer","format":"int32"}},"required":["ip","countryCode","loc"],"description":"Mihari_Entities_IPAddress model"},"putApiRules":{"type":"object","properties":{"id":{"type":"string"},"yaml":{"type":"string"}},"required":["id","yaml"],"description":"Update a rule"},"Mihari_Entities_Rule":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"description":{"type":"string"},"yaml":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"tags":{"type":"array","items":{"$ref":"#/components/schemas/Mihari_Entities_Tag"}}},"required":["id","title","description","yaml","createdAt","updatedAt","tags"],"description":"Mihari_Entities_Rule model"},"postApiRules":{"type":"object","properties":{"yaml":{"type":"string"}},"required":["yaml"],"description":"Create a rule"},"Mihari_Entities_RulesWithPagination":{"type":"object","properties":{"rules":{"type":"array","items":{"$ref":"#/components/schemas/Mihari_Entities_Rule"}},"total":{"type":"integer","format":"int32"},"currentPage":{"type":"integer","format":"int32"},"pageSize":{"type":"integer","format":"int32"}},"required":["rules","total","currentPage","pageSize"],"description":"Mihari_Entities_RulesWithPagination model"},"Mihari_Entities_RuleIDs":{"type":"object","properties":{"ruleIds":{"type":"string"}},"required":["ruleIds"],"description":"Mihari_Entities_RuleIDs model"},"Mihari_Entities_Tags":{"type":"object","properties":{"tags":{"type":"string"}},"required":["tags"],"description":"Mihari_Entities_Tags model"}}}}},"searchIndex":{"store":["tag/alerts","tag/alerts/paths/~1api~1alerts/post","tag/alerts/paths/~1api~1alerts/get","tag/alerts/paths/~1api~1alerts~1{id}/delete","tag/artifacts","tag/artifacts/paths/~1api~1artifacts~1{id}/delete","tag/artifacts/paths/~1api~1artifacts~1{id}/get","tag/artifacts/paths/~1api~1artifacts~1{id}~1enrich/get","tag/configs","tag/configs/paths/~1api~1configs/get","tag/ip_addresses","tag/ip_addresses/paths/~1api~1ip_addresses~1{ip}/get","tag/rules","tag/rules/paths/~1api~1rules~1{id}/delete","tag/rules/paths/~1api~1rules~1{id}/get","tag/rules/paths/~1api~1rules/put","tag/rules/paths/~1api~1rules/post","tag/rules/paths/~1api~1rules/get","tag/rules/paths/~1api~1rules~1{id}~1run/get","tag/rules/paths/~1api~1rules~1ids/get","tag/tags","tag/tags/paths/~1api~1tags~1{id}/delete","tag/tags/paths/~1api~1tags/get"],"index":{"version":"2.3.9","fields":["title","description"],"fieldVectors":[["title/0",[0,1.218]],["description/0",[0,1.141,1,1.436]],["title/1",[0,0.932,2,1.503]],["description/1",[0,0.971,2,1.565,3,2.115]],["title/2",[0,0.932,4,1.503]],["description/2",[0,0.971,3,2.115,4,1.565]],["title/3",[0,0.932,5,0.932]],["description/3",[0,0.971,5,0.971,6,2.593]],["title/4",[7,1.218]],["description/4",[1,1.436,7,1.141]],["title/5",[5,0.932,7,0.932]],["description/5",[5,0.971,7,0.971,8,2.115]],["title/6",[7,1.218]],["description/6",[7,1.141,8,2.486]],["title/7",[7,0.932,9,2.031]],["description/7",[7,0.971,9,2.115,10,2.593]],["title/8",[11,1.964]],["description/8",[1,1.436,11,1.84]],["title/9",[11,1.964]],["description/9",[11,1.84,12,3.047]],["title/10",[13,2.654]],["description/10",[1,1.436,13,2.486]],["title/11",[14,2.031,15,2.031]],["description/11",[14,2.115,15,2.115,16,2.593]],["title/12",[17,0.44]],["description/12",[1,1.436,17,0.412]],["title/13",[5,0.932,17,0.336]],["description/13",[5,0.971,17,0.35,18,2.115]],["title/14",[17,0.44]],["description/14",[17,0.412,18,2.486]],["title/15",[17,0.336,19,2.031]],["description/15",[17,0.35,19,2.115,20,1.8]],["title/16",[2,1.503,17,0.336]],["description/16",[2,1.565,17,0.35,20,1.8]],["title/17",[4,1.503,17,0.336]],["description/17",[4,1.565,17,0.35,20,1.8]],["title/18",[17,0.336,21,2.031]],["description/18",[17,0.35,21,2.115,22,2.593]],["title/19",[17,0.336,23,2.031]],["description/19",[17,0.35,23,2.115,24,2.593]],["title/20",[25,1.533]],["description/20",[1,1.436,25,1.436]],["title/21",[5,0.932,25,1.173]],["description/21",[5,0.971,25,1.222,26,2.593]],["title/22",[25,1.533]],["description/22",[25,1.436,27,3.047]]],"invertedIndex":[["address",{"_index":15,"title":{"11":{}},"description":{"11":{}}}],["alert",{"_index":0,"title":{"0":{},"1":{},"2":{},"3":{}},"description":{"0":{},"1":{},"2":{},"3":{}}}],["api/alert",{"_index":3,"title":{},"description":{"1":{},"2":{}}}],["api/alerts/{id",{"_index":6,"title":{},"description":{"3":{}}}],["api/artifacts/{id",{"_index":8,"title":{},"description":{"5":{},"6":{}}}],["api/artifacts/{id}/enrich",{"_index":10,"title":{},"description":{"7":{}}}],["api/config",{"_index":12,"title":{},"description":{"9":{}}}],["api/ip_addresses/{ip",{"_index":16,"title":{},"description":{"11":{}}}],["api/rul",{"_index":20,"title":{},"description":{"15":{},"16":{},"17":{}}}],["api/rules/id",{"_index":24,"title":{},"description":{"19":{}}}],["api/rules/{id",{"_index":18,"title":{},"description":{"13":{},"14":{}}}],["api/rules/{id}/run",{"_index":22,"title":{},"description":{"18":{}}}],["api/tag",{"_index":27,"title":{},"description":{"22":{}}}],["api/tags/{id",{"_index":26,"title":{},"description":{"21":{}}}],["artifact",{"_index":7,"title":{"4":{},"5":{},"6":{},"7":{}},"description":{"4":{},"5":{},"6":{},"7":{}}}],["config",{"_index":11,"title":{"8":{},"9":{}},"description":{"8":{},"9":{}}}],["creat",{"_index":2,"title":{"1":{},"16":{}},"description":{"1":{},"16":{}}}],["delet",{"_index":5,"title":{"3":{},"5":{},"13":{},"21":{}},"description":{"3":{},"5":{},"13":{},"21":{}}}],["enrich",{"_index":9,"title":{"7":{}},"description":{"7":{}}}],["id",{"_index":23,"title":{"19":{}},"description":{"19":{}}}],["ip",{"_index":14,"title":{"11":{}},"description":{"11":{}}}],["ip_address",{"_index":13,"title":{"10":{}},"description":{"10":{}}}],["oper",{"_index":1,"title":{},"description":{"0":{},"4":{},"8":{},"10":{},"12":{},"20":{}}}],["rule",{"_index":17,"title":{"12":{},"13":{},"14":{},"15":{},"16":{},"17":{},"18":{},"19":{}},"description":{"12":{},"13":{},"14":{},"15":{},"16":{},"17":{},"18":{},"19":{}}}],["run",{"_index":21,"title":{"18":{}},"description":{"18":{}}}],["search",{"_index":4,"title":{"2":{},"17":{}},"description":{"2":{},"17":{}}}],["tag",{"_index":25,"title":{"20":{},"21":{},"22":{}},"description":{"20":{},"21":{},"22":{}}}],["updat",{"_index":19,"title":{"15":{}},"description":{"15":{}}}]],"pipeline":[]}},"options":{}};
|
438
|
+
const __redoc_state = {"menu":{"activeItemIdx":-1},"spec":{"data":{"openapi":"3.0.0","info":{"title":"Mihari API","version":"0.0.1"},"tags":[{"name":"alerts","description":"Operations about alerts"},{"name":"artifacts","description":"Operations about artifacts"},{"name":"configs","description":"Operations about configs"},{"name":"ip_addresses","description":"Operations about ip_addresses"},{"name":"rules","description":"Operations about rules"},{"name":"tags","description":"Operations about tags"}],"paths":{"/api/alerts":{"post":{"summary":"Create an alert","description":"Create an alert","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/postApiAlerts"}}},"required":true},"responses":{"201":{"description":"Create an alert","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Mihari_Entities_Alert"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Mihari_Entities_Message"}}}}},"tags":["alerts"]},"get":{"summary":"Search alerts","description":"Search alerts","parameters":[{"in":"query","name":"page","required":false,"schema":{"type":"integer","format":"int32","default":1}},{"in":"query","name":"limit","required":false,"schema":{"type":"integer","format":"int32","default":10}},{"in":"query","name":"artifact","required":false,"schema":{"type":"string"}},{"in":"query","name":"rule_id","required":false,"schema":{"type":"string"}},{"in":"query","name":"tag","required":false,"schema":{"type":"string"}},{"in":"query","name":"fromAt","required":false,"schema":{"type":"string","format":"date-time"}},{"in":"query","name":"toAt","required":false,"schema":{"type":"string","format":"date-time"}}],"responses":{"200":{"description":"Search alerts","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Mihari_Entities_AlertsWithPagination"}}}}}},"tags":["alerts"]}},"/api/alerts/{id}":{"delete":{"summary":"Delete an alert","description":"Delete an alert","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"integer","format":"int32"}}],"responses":{"204":{"description":"Delete an alert","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Mihari_Entities_Message"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Mihari_Entities_Message"}}}}},"tags":["alerts"]}},"/api/artifacts/{id}":{"delete":{"summary":"Delete an artifact","description":"Delete an artifact","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"integer","format":"int32"}}],"responses":{"204":{"description":"Delete an artifact","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Mihari_Entities_Message"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Mihari_Entities_Message"}}}}},"tags":["artifacts"]},"get":{"summary":"Get an artifact","description":"Get an artifact","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"integer","format":"int32"}}],"responses":{"200":{"description":"Get an artifact","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Mihari_Entities_Artifact"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Mihari_Entities_Message"}}}}},"tags":["artifacts"]}},"/api/artifacts/{id}/enrich":{"get":{"summary":"Enrich an artifact","description":"Enrich an artifact","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"integer","format":"int32"}}],"responses":{"201":{"description":"Enrich an artifact","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Mihari_Entities_Message"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Mihari_Entities_Message"}}}}},"tags":["artifacts"]}},"/api/configs":{"get":{"summary":"Get configs","description":"Get configs","responses":{"200":{"description":"Get configs","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Mihari_Entities_Config"}}}}}},"tags":["configs"]}},"/api/ip_addresses/{ip}":{"get":{"summary":"Get an IP address","description":"Get an IP address","parameters":[{"in":"path","name":"ip","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Get an IP address","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Mihari_Entities_IPAddress"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Mihari_Entities_Message"}}}}},"tags":["ip_addresses"]}},"/api/rules/{id}":{"delete":{"summary":"Delete a rule","description":"Delete a rule","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"Delete a rule","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Mihari_Entities_Message"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Mihari_Entities_Message"}}}}},"tags":["rules"]},"get":{"summary":"Get a rule","description":"Get a rule","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Get a rule","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Mihari_Entities_Rule"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Mihari_Entities_Message"}}}}},"tags":["rules"]}},"/api/rules":{"put":{"summary":"Update a rule","description":"Update a rule","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/putApiRules"}}},"required":true},"responses":{"201":{"description":"Update a rule","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Mihari_Entities_Rule"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Mihari_Entities_Message"}}}}},"tags":["rules"]},"post":{"summary":"Create a rule","description":"Create a rule","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/postApiRules"}}},"required":true},"responses":{"201":{"description":"Create a rule","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Mihari_Entities_Rule"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Mihari_Entities_Message"}}}}},"tags":["rules"]},"get":{"summary":"Search rules","description":"Search rules","parameters":[{"in":"query","name":"page","required":false,"schema":{"type":"integer","format":"int32","default":1}},{"in":"query","name":"limit","required":false,"schema":{"type":"integer","format":"int32","default":10}},{"in":"query","name":"title","required":false,"schema":{"type":"string"}},{"in":"query","name":"description","required":false,"schema":{"type":"string"}},{"in":"query","name":"tag","required":false,"schema":{"type":"string"}},{"in":"query","name":"fromAt","required":false,"schema":{"type":"string","format":"date-time"}},{"in":"query","name":"toAt","required":false,"schema":{"type":"string","format":"date-time"}}],"responses":{"200":{"description":"Search rules","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Mihari_Entities_RulesWithPagination"}}}}}},"tags":["rules"]}},"/api/rules/{id}/run":{"get":{"summary":"Run a rule","description":"Run a rule","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"201":{"description":"Run a rule","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Mihari_Entities_Message"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Mihari_Entities_Message"}}}}},"tags":["rules"]}},"/api/rules/ids":{"get":{"summary":"Get rule IDs","description":"Get Rule IDs","responses":{"200":{"description":"Get Rule IDs","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Mihari_Entities_RuleIDs"}}}}}},"tags":["rules"]}},"/api/tags/{id}":{"delete":{"summary":"Delete a tag","description":"Delete a tag","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"integer","format":"int32"}}],"responses":{"204":{"description":"Delete a tag","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Mihari_Entities_Message"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Mihari_Entities_Message"}}}}},"tags":["tags"]}},"/api/tags":{"get":{"summary":"Get tags","description":"Get tags","responses":{"200":{"description":"Get tags","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Mihari_Entities_Tags"}}}}}},"tags":["tags"]}}},"components":{"schemas":{"postApiAlerts":{"type":"object","properties":{"ruleId":{"type":"string"},"artifacts":{"type":"array","items":{"type":"string"}}},"required":["ruleId","artifacts"],"description":"Create an alert"},"Mihari_Entities_Alert":{"type":"object","properties":{"id":{"type":"string","description":"String representation of the ID"},"ruleId":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"artifacts":{"type":"array","items":{"$ref":"#/components/schemas/Mihari_Entities_BaseArtifact"}},"tags":{"type":"array","items":{"$ref":"#/components/schemas/Mihari_Entities_Tag"}}},"required":["id","ruleId","createdAt","tags"],"description":"Mihari_Entities_Alert model"},"Mihari_Entities_BaseArtifact":{"type":"object","properties":{"id":{"type":"string","description":"String representation of the ID"},"data":{"type":"string"},"dataType":{"type":"string"},"source":{"type":"string"},"query":{"type":"string"},"tags":{"type":"array","items":{"type":"string"}}},"required":["id","data","dataType","source"]},"Mihari_Entities_Tag":{"type":"object","properties":{"id":{"type":"integer","format":"int32"},"name":{"type":"string"}},"required":["id","name"]},"Mihari_Entities_Message":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"description":"Mihari_Entities_Message model"},"Mihari_Entities_AlertsWithPagination":{"type":"object","properties":{"alerts":{"type":"array","items":{"$ref":"#/components/schemas/Mihari_Entities_Alert"}},"total":{"type":"integer","format":"int32"},"currentPage":{"type":"integer","format":"int32"},"pageSize":{"type":"integer","format":"int32"}},"required":["alerts","total","currentPage","pageSize"],"description":"Mihari_Entities_AlertsWithPagination model"},"Mihari_Entities_Artifact":{"type":"object","properties":{"id":{"type":"string","description":"String representation of the ID"},"data":{"type":"string"},"dataType":{"type":"string"},"source":{"type":"string"},"query":{"type":"string"},"tags":{"type":"array","items":{"type":"string"}},"metadata":{"type":"object"},"autonomousSystem":{"$ref":"#/components/schemas/Mihari_Entities_AutonomousSystem"},"geolocation":{"$ref":"#/components/schemas/Mihari_Entities_Geolocation"},"whoisRecord":{"$ref":"#/components/schemas/Mihari_Entities_WhoisRecord"},"reverseDnsNames":{"type":"array","items":{"$ref":"#/components/schemas/Mihari_Entities_ReverseDnsName"}},"dnsRecords":{"type":"array","items":{"$ref":"#/components/schemas/Mihari_Entities_DnsRecord"}},"cpes":{"type":"array","items":{"$ref":"#/components/schemas/Mihari_Entities_CPE"}},"ports":{"type":"array","items":{"$ref":"#/components/schemas/Mihari_Entities_Port"}}},"required":["id","data","dataType","source"],"description":"Mihari_Entities_Artifact model"},"Mihari_Entities_AutonomousSystem":{"type":"object","properties":{"asn":{"type":"integer","format":"int32"}},"required":["asn"]},"Mihari_Entities_Geolocation":{"type":"object","properties":{"country":{"type":"string"},"countryCode":{"type":"string"}},"required":["country","countryCode"]},"Mihari_Entities_WhoisRecord":{"type":"object","properties":{"domain":{"type":"string"},"createdOn":{"type":"string","format":"date"},"updatedOn":{"type":"string","format":"date"},"expiresOn":{"type":"string","format":"date"},"registrar":{"type":"object"},"contacts":{"type":"array","items":{"type":"object"}}},"required":["domain","contacts"]},"Mihari_Entities_ReverseDnsName":{"type":"object","properties":{"name":{"type":"string"}},"required":["name"]},"Mihari_Entities_DnsRecord":{"type":"object","properties":{"resource":{"type":"string"},"value":{"type":"string"}},"required":["resource","value"]},"Mihari_Entities_CPE":{"type":"object","properties":{"cpe":{"type":"string"}},"required":["cpe"]},"Mihari_Entities_Port":{"type":"object","properties":{"port":{"type":"integer","format":"int32"}},"required":["port"]},"Mihari_Entities_Config":{"type":"object","properties":{"name":{"type":"string"},"type":{"type":"string"},"values":{"type":"array","items":{"type":"string"}},"isConfigured":{"type":"boolean"}},"required":["name","type","values","isConfigured"],"description":"Mihari_Entities_Config model"},"Mihari_Entities_IPAddress":{"type":"object","properties":{"ip":{"type":"string"},"countryCode":{"type":"string"},"hostname":{"type":"string"},"loc":{"type":"string"},"asn":{"type":"integer","format":"int32"}},"required":["ip","countryCode","loc"],"description":"Mihari_Entities_IPAddress model"},"putApiRules":{"type":"object","properties":{"id":{"type":"string"},"yaml":{"type":"string"}},"required":["id","yaml"],"description":"Update a rule"},"Mihari_Entities_Rule":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"description":{"type":"string"},"yaml":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"tags":{"type":"array","items":{"$ref":"#/components/schemas/Mihari_Entities_Tag"}}},"required":["id","title","description","yaml","createdAt","updatedAt","tags"],"description":"Mihari_Entities_Rule model"},"postApiRules":{"type":"object","properties":{"yaml":{"type":"string"}},"required":["yaml"],"description":"Create a rule"},"Mihari_Entities_RulesWithPagination":{"type":"object","properties":{"rules":{"type":"array","items":{"$ref":"#/components/schemas/Mihari_Entities_Rule"}},"total":{"type":"integer","format":"int32"},"currentPage":{"type":"integer","format":"int32"},"pageSize":{"type":"integer","format":"int32"}},"required":["rules","total","currentPage","pageSize"],"description":"Mihari_Entities_RulesWithPagination model"},"Mihari_Entities_RuleIDs":{"type":"object","properties":{"ruleIds":{"type":"string"}},"required":["ruleIds"],"description":"Mihari_Entities_RuleIDs model"},"Mihari_Entities_Tags":{"type":"object","properties":{"tags":{"type":"string"}},"required":["tags"],"description":"Mihari_Entities_Tags model"}}}}},"searchIndex":{"store":["tag/alerts","tag/alerts/paths/~1api~1alerts/post","tag/alerts/paths/~1api~1alerts/get","tag/alerts/paths/~1api~1alerts~1{id}/delete","tag/artifacts","tag/artifacts/paths/~1api~1artifacts~1{id}/delete","tag/artifacts/paths/~1api~1artifacts~1{id}/get","tag/artifacts/paths/~1api~1artifacts~1{id}~1enrich/get","tag/configs","tag/configs/paths/~1api~1configs/get","tag/ip_addresses","tag/ip_addresses/paths/~1api~1ip_addresses~1{ip}/get","tag/rules","tag/rules/paths/~1api~1rules~1{id}/delete","tag/rules/paths/~1api~1rules~1{id}/get","tag/rules/paths/~1api~1rules/put","tag/rules/paths/~1api~1rules/post","tag/rules/paths/~1api~1rules/get","tag/rules/paths/~1api~1rules~1{id}~1run/get","tag/rules/paths/~1api~1rules~1ids/get","tag/tags","tag/tags/paths/~1api~1tags~1{id}/delete","tag/tags/paths/~1api~1tags/get"],"index":{"version":"2.3.9","fields":["title","description"],"fieldVectors":[["title/0",[0,1.218]],["description/0",[0,1.141,1,1.436]],["title/1",[0,0.932,2,1.503]],["description/1",[0,0.971,2,1.565,3,2.115]],["title/2",[0,0.932,4,1.503]],["description/2",[0,0.971,3,2.115,4,1.565]],["title/3",[0,0.932,5,0.932]],["description/3",[0,0.971,5,0.971,6,2.593]],["title/4",[7,1.218]],["description/4",[1,1.436,7,1.141]],["title/5",[5,0.932,7,0.932]],["description/5",[5,0.971,7,0.971,8,2.115]],["title/6",[7,1.218]],["description/6",[7,1.141,8,2.486]],["title/7",[7,0.932,9,2.031]],["description/7",[7,0.971,9,2.115,10,2.593]],["title/8",[11,1.964]],["description/8",[1,1.436,11,1.84]],["title/9",[11,1.964]],["description/9",[11,1.84,12,3.047]],["title/10",[13,2.654]],["description/10",[1,1.436,13,2.486]],["title/11",[14,2.031,15,2.031]],["description/11",[14,2.115,15,2.115,16,2.593]],["title/12",[17,0.44]],["description/12",[1,1.436,17,0.412]],["title/13",[5,0.932,17,0.336]],["description/13",[5,0.971,17,0.35,18,2.115]],["title/14",[17,0.44]],["description/14",[17,0.412,18,2.486]],["title/15",[17,0.336,19,2.031]],["description/15",[17,0.35,19,2.115,20,1.8]],["title/16",[2,1.503,17,0.336]],["description/16",[2,1.565,17,0.35,20,1.8]],["title/17",[4,1.503,17,0.336]],["description/17",[4,1.565,17,0.35,20,1.8]],["title/18",[17,0.336,21,2.031]],["description/18",[17,0.35,21,2.115,22,2.593]],["title/19",[17,0.336,23,2.031]],["description/19",[17,0.35,23,2.115,24,2.593]],["title/20",[25,1.533]],["description/20",[1,1.436,25,1.436]],["title/21",[5,0.932,25,1.173]],["description/21",[5,0.971,25,1.222,26,2.593]],["title/22",[25,1.533]],["description/22",[25,1.436,27,3.047]]],"invertedIndex":[["address",{"_index":15,"title":{"11":{}},"description":{"11":{}}}],["alert",{"_index":0,"title":{"0":{},"1":{},"2":{},"3":{}},"description":{"0":{},"1":{},"2":{},"3":{}}}],["api/alert",{"_index":3,"title":{},"description":{"1":{},"2":{}}}],["api/alerts/{id",{"_index":6,"title":{},"description":{"3":{}}}],["api/artifacts/{id",{"_index":8,"title":{},"description":{"5":{},"6":{}}}],["api/artifacts/{id}/enrich",{"_index":10,"title":{},"description":{"7":{}}}],["api/config",{"_index":12,"title":{},"description":{"9":{}}}],["api/ip_addresses/{ip",{"_index":16,"title":{},"description":{"11":{}}}],["api/rul",{"_index":20,"title":{},"description":{"15":{},"16":{},"17":{}}}],["api/rules/id",{"_index":24,"title":{},"description":{"19":{}}}],["api/rules/{id",{"_index":18,"title":{},"description":{"13":{},"14":{}}}],["api/rules/{id}/run",{"_index":22,"title":{},"description":{"18":{}}}],["api/tag",{"_index":27,"title":{},"description":{"22":{}}}],["api/tags/{id",{"_index":26,"title":{},"description":{"21":{}}}],["artifact",{"_index":7,"title":{"4":{},"5":{},"6":{},"7":{}},"description":{"4":{},"5":{},"6":{},"7":{}}}],["config",{"_index":11,"title":{"8":{},"9":{}},"description":{"8":{},"9":{}}}],["creat",{"_index":2,"title":{"1":{},"16":{}},"description":{"1":{},"16":{}}}],["delet",{"_index":5,"title":{"3":{},"5":{},"13":{},"21":{}},"description":{"3":{},"5":{},"13":{},"21":{}}}],["enrich",{"_index":9,"title":{"7":{}},"description":{"7":{}}}],["id",{"_index":23,"title":{"19":{}},"description":{"19":{}}}],["ip",{"_index":14,"title":{"11":{}},"description":{"11":{}}}],["ip_address",{"_index":13,"title":{"10":{}},"description":{"10":{}}}],["oper",{"_index":1,"title":{},"description":{"0":{},"4":{},"8":{},"10":{},"12":{},"20":{}}}],["rule",{"_index":17,"title":{"12":{},"13":{},"14":{},"15":{},"16":{},"17":{},"18":{},"19":{}},"description":{"12":{},"13":{},"14":{},"15":{},"16":{},"17":{},"18":{},"19":{}}}],["run",{"_index":21,"title":{"18":{}},"description":{"18":{}}}],["search",{"_index":4,"title":{"2":{},"17":{}},"description":{"2":{},"17":{}}}],["tag",{"_index":25,"title":{"20":{},"21":{},"22":{}},"description":{"20":{},"21":{},"22":{}}}],["updat",{"_index":19,"title":{"15":{}},"description":{"15":{}}}]],"pipeline":[]}},"options":{}};
|
439
439
|
|
440
440
|
var container = document.getElementById('redoc');
|
441
441
|
Redoc.hydrate(__redoc_state, container);
|
data/lib/mihari.rb
CHANGED
@@ -32,7 +32,7 @@ require "grape-entity"
|
|
32
32
|
require "addressable/uri"
|
33
33
|
require "awrence"
|
34
34
|
require "email_address"
|
35
|
-
require "
|
35
|
+
require "memo_wise"
|
36
36
|
require "parallel"
|
37
37
|
require "plissken"
|
38
38
|
require "public_suffix"
|
@@ -62,7 +62,7 @@ require "mihari/mixins/unwrap_error"
|
|
62
62
|
#
|
63
63
|
module Mihari
|
64
64
|
class << self
|
65
|
-
|
65
|
+
prepend MemoWise
|
66
66
|
|
67
67
|
#
|
68
68
|
# @return [Array<Mihari::Emitters::Base>]
|
@@ -70,7 +70,7 @@ module Mihari
|
|
70
70
|
def emitters
|
71
71
|
[]
|
72
72
|
end
|
73
|
-
|
73
|
+
memo_wise :emitters
|
74
74
|
|
75
75
|
#
|
76
76
|
# @return [Hash{String => Mihari::Enrichers::Base}]
|
@@ -87,7 +87,7 @@ module Mihari
|
|
87
87
|
def analyzers
|
88
88
|
[]
|
89
89
|
end
|
90
|
-
|
90
|
+
memo_wise :analyzers
|
91
91
|
|
92
92
|
#
|
93
93
|
# @return [Hash{String => Mihari::Analyzers::Base}]
|
@@ -104,7 +104,7 @@ module Mihari
|
|
104
104
|
def enrichers
|
105
105
|
[]
|
106
106
|
end
|
107
|
-
|
107
|
+
memo_wise :enrichers
|
108
108
|
|
109
109
|
#
|
110
110
|
# @return [Hash{String => Mihari::Enrichers::Base}]
|
@@ -127,7 +127,7 @@ module Mihari
|
|
127
127
|
SemanticLogger.add_appender(io: $stderr, formatter: :color)
|
128
128
|
SemanticLogger["Mihari"]
|
129
129
|
end
|
130
|
-
|
130
|
+
memo_wise :logger
|
131
131
|
|
132
132
|
def initialize_sentry
|
133
133
|
return if Mihari.config.sentry_dsn.nil?
|
@@ -135,8 +135,7 @@ module Mihari
|
|
135
135
|
|
136
136
|
Sentry.init do |config|
|
137
137
|
config.dsn = Mihari.config.sentry_dsn
|
138
|
-
|
139
|
-
config.traces_sample_rate = 0.5
|
138
|
+
config.traces_sample_rate = Mihari.config.sentry_trace_sample_rate
|
140
139
|
end
|
141
140
|
end
|
142
141
|
end
|
@@ -291,5 +290,5 @@ require "mihari/web/app"
|
|
291
290
|
# CLIs
|
292
291
|
require "mihari/cli/main"
|
293
292
|
|
294
|
-
# initialize Sentry
|
293
|
+
# initialize Sentry (if it's possible)
|
295
294
|
Mihari.initialize_sentry
|
data/mihari.gemspec
CHANGED
@@ -84,7 +84,7 @@ Gem::Specification.new do |spec|
|
|
84
84
|
spec.add_dependency "http", "5.1.1"
|
85
85
|
spec.add_dependency "jr-cli", "0.6.0"
|
86
86
|
spec.add_dependency "launchy", "2.5.2"
|
87
|
-
spec.add_dependency "
|
87
|
+
spec.add_dependency "memo_wise", "1.8.0"
|
88
88
|
spec.add_dependency "normalize_country", "0.3.2"
|
89
89
|
spec.add_dependency "parallel", "1.23.0"
|
90
90
|
spec.add_dependency "plissken", "2.0.1"
|
data/mkdocs.yml
CHANGED
data/requirements.txt
CHANGED
@@ -1,2 +1,2 @@
|
|
1
1
|
mkdocs==1.5.3
|
2
|
-
mkdocs-material==9.4.
|
2
|
+
mkdocs-material==9.4.10
|
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: 6.
|
4
|
+
version: 6.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Manabu Niseki
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-11-
|
11
|
+
date: 2023-11-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: better_errors
|
@@ -627,19 +627,19 @@ dependencies:
|
|
627
627
|
- !ruby/object:Gem::Version
|
628
628
|
version: 2.5.2
|
629
629
|
- !ruby/object:Gem::Dependency
|
630
|
-
name:
|
630
|
+
name: memo_wise
|
631
631
|
requirement: !ruby/object:Gem::Requirement
|
632
632
|
requirements:
|
633
633
|
- - '='
|
634
634
|
- !ruby/object:Gem::Version
|
635
|
-
version:
|
635
|
+
version: 1.8.0
|
636
636
|
type: :runtime
|
637
637
|
prerelease: false
|
638
638
|
version_requirements: !ruby/object:Gem::Requirement
|
639
639
|
requirements:
|
640
640
|
- - '='
|
641
641
|
- !ruby/object:Gem::Version
|
642
|
-
version:
|
642
|
+
version: 1.8.0
|
643
643
|
- !ruby/object:Gem::Dependency
|
644
644
|
name: normalize_country
|
645
645
|
requirement: !ruby/object:Gem::Requirement
|
@@ -1043,8 +1043,8 @@ files:
|
|
1043
1043
|
- lib/mihari/web/endpoints/tags.rb
|
1044
1044
|
- lib/mihari/web/middleware/connection_adapter.rb
|
1045
1045
|
- lib/mihari/web/middleware/error_notification_adapter.rb
|
1046
|
-
- lib/mihari/web/public/assets/index-
|
1047
|
-
- lib/mihari/web/public/assets/index-
|
1046
|
+
- lib/mihari/web/public/assets/index-216d49d1.js
|
1047
|
+
- lib/mihari/web/public/assets/index-4c8509ee.css
|
1048
1048
|
- lib/mihari/web/public/assets/mode-yaml-24faa242.js
|
1049
1049
|
- lib/mihari/web/public/favicon.ico
|
1050
1050
|
- lib/mihari/web/public/index.html
|