mirror of
https://github.com/valitydev/wazuh-kibana-app.git
synced 2024-11-07 02:15:24 +00:00
195 lines
12 KiB
HTML
195 lines
12 KiB
HTML
<md-content flex layout="column" ng-if="tab === 'fim' && tabView === 'panels'" ng-show="!showSyscheckFiles" ng-class="{'no-opacity': resultState !== 'ready' || !rendered}"
|
|
layout-align="start">
|
|
<div layout="row" layout-padding class="wz-padding-top-0">
|
|
<span flex></span>
|
|
<span ng-click="switchSyscheckFiles()" class="btn pull-right wz-button">Show files</span>
|
|
</div>
|
|
<!-- View: Panels -->
|
|
<div layout="row" class="height-300">
|
|
|
|
<md-card flex class="wz-md-card" ng-class="{'fullscreen': expandArray[0]}">
|
|
<md-card-content class="wazuh-column">
|
|
<div layout="row">
|
|
<span class="wz-headline-title">Most active users</span>
|
|
<span flex></span>
|
|
<span class="wz-text-link" ng-click="expand(0)"><i class="fa fa-fw fa-expand"></i></span>
|
|
</div>
|
|
<md-divider class="wz-margin-top-10"></md-divider>
|
|
<kbn-vis id="Wazuh-App-Agents-FIM-Users" vis-id="'Wazuh-App-Agents-FIM-Users'">
|
|
</md-card-content>
|
|
</md-card>
|
|
<md-card flex class="wz-md-card" ng-class="{'fullscreen': expandArray[1]}">
|
|
<md-card-content class="wazuh-column">
|
|
<div layout="row">
|
|
<span class="wz-headline-title">Actions</span>
|
|
<span flex></span>
|
|
<span class="wz-text-link" ng-click="expand(1)"><i class="fa fa-fw fa-expand"></i></span>
|
|
</div>
|
|
<md-divider class="wz-margin-top-10"></md-divider>
|
|
<kbn-vis id="Wazuh-App-Agents-FIM-Actions" vis-id="'Wazuh-App-Agents-FIM-Actions'">
|
|
</md-card-content>
|
|
</md-card>
|
|
|
|
<md-card flex="40" class="wz-md-card" ng-class="{'fullscreen': expandArray[2]}">
|
|
<md-card-content class="wazuh-column">
|
|
<div layout="row">
|
|
<span class="wz-headline-title">Events</span>
|
|
<span flex></span>
|
|
<span class="wz-text-link" ng-click="expand(2)"><i class="fa fa-fw fa-expand"></i></span>
|
|
</div>
|
|
<md-divider class="wz-margin-top-10"></md-divider>
|
|
<kbn-vis id="Wazuh-App-Agents-FIM-Events" vis-id="'Wazuh-App-Agents-FIM-Events'"></kbn-vis>
|
|
</md-card-content>
|
|
</md-card>
|
|
|
|
</div>
|
|
|
|
<div layout="row" class="height-230">
|
|
<md-card flex="33" class="wz-md-card" ng-class="{'fullscreen': expandArray[3]}">
|
|
<md-card-content class="wazuh-column">
|
|
<div layout="row">
|
|
<span class="wz-headline-title">Files added</span>
|
|
<span flex></span>
|
|
<span class="wz-text-link" ng-click="expand(3)"><i class="fa fa-fw fa-expand"></i></span>
|
|
</div>
|
|
<md-divider class="wz-margin-top-10"></md-divider>
|
|
<kbn-vis id="Wazuh-App-Agents-FIM-Files-added" vis-id="'Wazuh-App-Agents-FIM-Files-added'"></kbn-vis>
|
|
</md-card-content>
|
|
</md-card>
|
|
<md-card flex="33" class="wz-md-card" ng-class="{'fullscreen': expandArray[4]}">
|
|
<md-card-content class="wazuh-column">
|
|
<div layout="row">
|
|
<span class="wz-headline-title">Files modified</span>
|
|
<span flex></span>
|
|
<span class="wz-text-link" ng-click="expand(4)"><i class="fa fa-fw fa-expand"></i></span>
|
|
</div>
|
|
<md-divider class="wz-margin-top-10"></md-divider>
|
|
<kbn-vis id="Wazuh-App-Agents-FIM-Files-modified" vis-id="'Wazuh-App-Agents-FIM-Files-modified'"></kbn-vis>
|
|
</md-card-content>
|
|
</md-card>
|
|
<md-card flex="33" class="wz-md-card" ng-class="{'fullscreen': expandArray[5]}">
|
|
<md-card-content class="wazuh-column">
|
|
<div layout="row">
|
|
<span class="wz-headline-title">Files deleted</span>
|
|
<span flex></span>
|
|
<span class="wz-text-link" ng-click="expand(5)"><i class="fa fa-fw fa-expand"></i></span>
|
|
</div>
|
|
<md-divider class="wz-margin-top-10"></md-divider>
|
|
<kbn-vis id="Wazuh-App-Agents-FIM-Files-deleted" vis-id="'Wazuh-App-Agents-FIM-Files-deleted'"></kbn-vis>
|
|
</md-card-content>
|
|
</md-card>
|
|
</div>
|
|
|
|
<div layout="row" layout-align="space-between stretch" class="height-570">
|
|
<md-card flex class="wz-md-card" ng-class="{'fullscreen': expandArray[6]}">
|
|
<md-card-content class="wazuh-column">
|
|
<div layout="row">
|
|
<span class="wz-headline-title">Alerts summary</span>
|
|
<span flex></span>
|
|
<span class="wz-text-link" ng-click="expand(6)"><i class="fa fa-fw fa-expand"></i></span>
|
|
</div>
|
|
<md-divider class="wz-margin-top-10"></md-divider>
|
|
<kbn-vis vis-id="'Wazuh-App-Agents-FIM-Alerts-summary'"></kbn-vis>
|
|
</md-card-content>
|
|
</md-card>
|
|
</div>
|
|
</md-content>
|
|
|
|
<md-content flex layout="column" ng-if="tab === 'fim' && tabView === 'panels' && showSyscheckFiles" layout-align="start">
|
|
<div layout="row" layout-padding class="wz-padding-top-0">
|
|
<span flex></span>
|
|
<span ng-click="switchSyscheckFiles()" class="btn pull-right wz-button">Show alerts</span>
|
|
</div>
|
|
|
|
<div layout="row" class="wz-margin-top-10 wz-margin-right-8 wz-margin-left-8" ng-if="showSyscheckFiles && (!agent || !agent.os)">
|
|
<div flex class="euiCallOut euiCallOut--warning">
|
|
<div class="euiCallOutHeader">
|
|
<svg class="euiIcon euiIcon--medium euiCallOutHeader__icon" aria-hidden="true" xmlns="http://www.w3.org/2000/svg"
|
|
xmlns:xlink="http://www.w3.org/1999/xlink" width="16" height="16" viewBox="0 0 16 16">
|
|
<defs>
|
|
<path id="help-a" d="M13.6 12.186l-1.357-1.358c-.025-.025-.058-.034-.084-.056.53-.794.84-1.746.84-2.773a4.977 4.977 0 0 0-.84-2.772c.026-.02.059-.03.084-.056L13.6 3.813a6.96 6.96 0 0 1 0 8.373zM8 15A6.956 6.956 0 0 1 3.814 13.6l1.358-1.358c.025-.025.034-.057.055-.084C6.02 12.688 6.974 13 8 13a4.978 4.978 0 0 0 2.773-.84c.02.026.03.058.056.083l1.357 1.358A6.956 6.956 0 0 1 8 15zm-5.601-2.813a6.963 6.963 0 0 1 0-8.373l1.359 1.358c.024.025.057.035.084.056A4.97 4.97 0 0 0 3 8c0 1.027.31 1.98.842 2.773-.027.022-.06.031-.084.056l-1.36 1.358zm5.6-.187A4 4 0 1 1 8 4a4 4 0 0 1 0 8zM8 1c1.573 0 3.019.525 4.187 1.4l-1.357 1.358c-.025.025-.035.057-.056.084A4.979 4.979 0 0 0 8 3a4.979 4.979 0 0 0-2.773.842c-.021-.027-.03-.059-.055-.084L3.814 2.4A6.957 6.957 0 0 1 8 1zm0-1a8.001 8.001 0 1 0 .003 16.002A8.001 8.001 0 0 0 8 0z"></path>
|
|
</defs>
|
|
<use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#help-a" fill-rule="evenodd"></use>
|
|
</svg>
|
|
<span class="euiCallOutHeader__title">This agent is never connected.</span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div layout="row" class="wz-padding-top-0" ng-if="agent && agent.os && agent.os.platform === 'windows'">
|
|
<md-card flex="" class="wz-md-card _md flex">
|
|
<md-card-content>
|
|
<span class="wz-headline-title"><i class="fa fa-fw fa-windows"></i> Windows registry</span>
|
|
<md-divider class="wz-margin-top-10"></md-divider>
|
|
<div layout="row" class="wz-margin-top-10">
|
|
<input placeholder="Filter registry..." ng-model="registrySearch" type="text" class="kuiLocalSearchInput ng-empty ng-pristine ng-scope ng-touched ng-valid height-30"
|
|
aria-invalid="false" wz-enter="searchSyscheckFile(registrySearch,{name:'type',value:'registry'})">
|
|
<button type="submit" aria-label="Search" class="kuiLocalSearchButton height-30" ng-click="searchSyscheckFile(registrySearch,{name:'type',value:'registry'})">
|
|
<span class="fa fa-search" aria-hidden="true"></span>
|
|
</button>
|
|
</div>
|
|
<div layout="row" ng-if="agent && !load" class="wz-margin-top-10 wz-margin-bottom-40-inv">
|
|
<wz-table flex path="'/syscheck/' + agent.id" implicit-filter="[{name:'type',value:'registry'}]"
|
|
row-sizes="[6,6,6]" extra-limit="true" keys="['file','sha1','md5']">
|
|
</wz-table>
|
|
</div>
|
|
<div layout="row" layout-padding>
|
|
<span flex></span>
|
|
<a class="small" id="btnDownload" ng-click="downloadCsv('/syscheck/' + agent.id, 'fim-registry.csv', [{name:'type',value:'registry'}])">Formatted
|
|
<i aria-hidden="true" class="fa fa-fw fa-download"></i></a>
|
|
</div>
|
|
</md-card-content>
|
|
</md-card>
|
|
</div>
|
|
|
|
<div layout="row" class="wz-padding-top-0" ng-if="agent && agent.os && agent.os.platform === 'windows'">
|
|
<md-card flex="" class="wz-md-card _md flex">
|
|
<md-card-content>
|
|
<span class="wz-headline-title"><i class="fa fa-fw fa-file-o"></i> Files</span>
|
|
<md-divider class="wz-margin-top-10"></md-divider>
|
|
<div layout="row" class="wz-margin-top-10">
|
|
<input placeholder="Filter files..." ng-model="filesSearch" type="text" class="kuiLocalSearchInput ng-empty ng-pristine ng-scope ng-touched ng-valid height-30"
|
|
aria-invalid="false" wz-enter="searchSyscheckFile(filesSearch,{name:'type',value:'file'})">
|
|
<button type="submit" aria-label="Search" class="kuiLocalSearchButton height-30" ng-click="searchSyscheckFile(filesSearch,{name:'type',value:'file'})">
|
|
<span class="fa fa-search" aria-hidden="true"></span>
|
|
</button>
|
|
</div>
|
|
<div layout="row" ng-if="agent && !load" class="wz-margin-top-10 wz-margin-bottom-40-inv">
|
|
<wz-table flex path="'/syscheck/' + agent.id" implicit-filter="[{name:'type',value:'file'}]"
|
|
row-sizes="[6,6,6]" extra-limit="true" keys="['file','size','uname','perm','sha1','sha256','uid','mtime','md5']">
|
|
</wz-table>
|
|
</div>
|
|
<div layout="row" layout-padding>
|
|
<span flex></span>
|
|
<a class="small" id="btnDownload" ng-click="downloadCsv('/syscheck/' + agent.id, 'fim-files.csv', [{name:'type',value:'file'}])">Formatted
|
|
<i aria-hidden="true" class="fa fa-fw fa-download"></i></a>
|
|
</div>
|
|
</md-card-content>
|
|
</md-card>
|
|
</div>
|
|
|
|
<div layout="row" class="wz-padding-top-0" ng-if="agent && agent.os && agent.os.platform !== 'windows'">
|
|
<md-card flex="" class="wz-md-card _md flex">
|
|
<md-card-content>
|
|
<span class="wz-headline-title"><i class="fa fa-fw fa-file-o"></i> Files</span>
|
|
<md-divider class="wz-margin-top-10"></md-divider>
|
|
<div layout="row" class="wz-margin-top-10">
|
|
<input placeholder="Filter files..." ng-model="filesSearch" type="text" class="kuiLocalSearchInput ng-empty ng-pristine ng-scope ng-touched ng-valid height-30"
|
|
aria-invalid="false" wz-enter="searchSyscheckFile(filesSearch)">
|
|
<button type="submit" aria-label="Search" class="kuiLocalSearchButton height-30" ng-click="searchSyscheckFile(filesSearch)">
|
|
<span class="fa fa-search" aria-hidden="true"></span>
|
|
</button>
|
|
</div>
|
|
<div layout="row" ng-if="agent && !load" class="wz-margin-top-10 wz-margin-bottom-40-inv">
|
|
<wz-table flex path="'/syscheck/' + agent.id" row-sizes="[12,10,8]" extra-limit="true" keys="['file','size','inode','gname','uname','perm','sha1','sha256','uid','gid','mtime','md5']">
|
|
</wz-table>
|
|
</div>
|
|
<div layout="row" layout-padding>
|
|
<span flex></span>
|
|
<a class="small" id="btnDownload" ng-click="downloadCsv('/syscheck/' + agent.id, 'fim-files.csv')">Formatted
|
|
<i aria-hidden="true" class="fa fa-fw fa-download"></i></a>
|
|
</div>
|
|
</md-card-content>
|
|
</md-card>
|
|
</div>
|
|
</md-content> |