Add ignore sregex for rootcheck and registry_ignore_sregex

This commit is contained in:
Pablo 2019-07-04 17:24:16 +02:00 committed by Adri Valle
parent 59a26496d4
commit 8f1dcb4339
4 changed files with 138 additions and 1 deletions

View File

@ -48,7 +48,7 @@
<th class="wz-text-left">Sregex</th>
</thead>
<tbody class="wz-word-wrap">
<tr ng-repeat="sreg in currentConfig['syscheck-syscheck'].syscheck.ignore_regex">
<tr ng-repeat="sreg in currentConfig['syscheck-syscheck'].syscheck.ignore_sregex">
<td>{{sreg}}</td>
</tr>
</tbody>
@ -99,6 +99,24 @@
</tbody>
</table>
</div>
<!-- Configuration block -->
<div class="wz-padding-top-10" ng-if="currentConfig['syscheck-syscheck'].syscheck.registry_ignore_sregex">
<table class="table table-striped table-condensed" style="table-layout: fixed !important;">
<thead class="wz-text-bold">
<th class="wz-text-left">Entry</th>
<th class="wz-text-left">Arch</th>
</thead>
<tbody class="wz-word-wrap">
<tr ng-repeat="registry in currentConfig['syscheck-syscheck'].syscheck.registry_ignore_sregex">
<td>{{registry.entry}}</td>
<td>{{registry.arch}}</td>
</tr>
</tbody>
</table>
</div>
<!-- End configuration block -->
</md-card-content>

View File

@ -0,0 +1,116 @@
<!-- Ignored card -->
<md-card class="wz-md-card" ng-if="((agent || {}).os || {}).platform !== 'windows' && !JSONContent && !XMLContent && configurationSubTab === 'pm-ignored' && currentConfig && currentConfig['syscheck-rootcheck'] && currentConfig['syscheck-rootcheck'].rootcheck && currentConfig['syscheck-rootcheck'].rootcheck.ignore && currentConfig['syscheck-rootcheck'].rootcheck.ignore.length">
<md-card-content>
<div layout="row" layout-align="start center">
<div>
<span class="font-size-16">Ignored files and directories</span>
<div class="wz-margin-top-10">
<span class="md-subheader small">These files and directories are ignored from the rootcheck scan</span>
</div>
</div>
<span flex></span>
<span ng-class="JSONContent ? 'wz-text-active' : ''" class="wz-text-link small" ng-click="getJSON()">JSON</span>
<span class="small">&nbsp;&centerdot;&nbsp;</span>
<span ng-class="XMLContent ? 'wz-text-active' : ''" class="wz-text-link small" ng-click="getXML()">XML</span>
</div>
<md-divider class="wz-margin-top-10"></md-divider>
<!-- Configuration block -->
<div class="wz-padding-top-10">
<table class="table table-striped table-condensed" style="table-layout: fixed !important;">
<thead class="wz-text-bold">
<th class="wz-text-left">Path</th>
</thead>
<tbody class="wz-word-wrap">
<tr ng-repeat="path in currentConfig['syscheck-rootcheck'].rootcheck.ignore">
<td>{{path}}</td>
</tr>
</tbody>
</table>
</div>
<md-divider class="wz-margin-top-10"></md-divider>
<!-- Configuration block -->
<div class="wz-padding-top-10" ng-if="currentConfig['syscheck-rootcheck'].rootcheck.ignore_sregex">
<table class="table table-striped table-condensed" style="table-layout: fixed !important;">
<thead class="wz-text-bold">
<th class="wz-text-left">Sregex</th>
</thead>
<tbody class="wz-word-wrap">
<tr ng-repeat="sreg in currentConfig['syscheck-rootcheck'].rootcheck.ignore_sregex">
<td>{{sreg}}</td>
</tr>
</tbody>
</table>
</div>
<!-- End configuration block -->
</md-card-content>
</md-card>
<!-- End ignored card -->
<wz-no-config
flex
error="'not-present'"
ng-if="((agent || {}).os || {}).platform === 'windows' && configurationSubTab === 'pm-ignored' && currentConfig && currentConfig['syscheck-rootcheck'] && currentConfig['syscheck-rootcheck'].rootcheck && !currentConfig['syscheck-rootcheck'].rootcheck.registry && !currentConfig['syscheck-rootcheck'].rootcheck.registry_ignore"></wz-no-config>
<!-- End no configuration section -->
<md-card class="wz-md-card" ng-if="((agent || {}).os || {}).platform === 'windows' && configurationSubTab === 'pm-ignored' && !JSONContent && !XMLContent && currentConfig && currentConfig['syscheck-rootcheck'] && currentConfig['syscheck-rootcheck'].rootcheck && (currentConfig['syscheck-rootcheck'].rootcheck.registry || currentConfig['syscheck-rootcheck'].rootcheck.registry_ignore)">
<md-card-content>
<div layout="row" layout-align="start center">
<div>
<span class="font-size-16">Ignored</span>
<div class="wz-margin-top-10">
<span class="md-subheader small">A list of registry entries that will be ignored</span>
</div>
</div>
<span flex></span>
<span ng-class="JSONContent ? 'wz-text-active' : ''" class="wz-text-link small" ng-click="getJSON()">JSON</span>
<span class="small">&nbsp;&centerdot;&nbsp;</span>
<span ng-class="XMLContent ? 'wz-text-active' : ''" class="wz-text-link small" ng-click="getXML()">XML</span>
</div>
<md-divider class="wz-margin-top-10"></md-divider>
<!-- Configuration block -->
<div class="wz-padding-top-10">
<table class="table table-striped table-condensed" style="table-layout: fixed !important;">
<thead class="wz-text-bold">
<th class="wz-text-left">Entry</th>
<th class="wz-text-left">Arch</th>
</thead>
<tbody class="wz-word-wrap">
<tr ng-repeat="registry in currentConfig['syscheck-rootcheck'].rootcheck.registry_ignore">
<td>{{registry.entry}}</td>
<td>{{registry.arch}}</td>
</tr>
</tbody>
</table>
</div>
<!-- Configuration block -->
<div class="wz-padding-top-10" ng-if="currentConfig['syscheck-rootcheck'].rootcheck.registry_ignore_sregex">
<table class="table table-striped table-condensed" style="table-layout: fixed !important;">
<thead class="wz-text-bold">
<th class="wz-text-left">Entry</th>
<th class="wz-text-left">Arch</th>
</thead>
<tbody class="wz-word-wrap">
<tr ng-repeat="registry in currentConfig['syscheck-rootcheck'].rootcheck.registry_ignore_sregex">
<td>{{registry.entry}}</td>
<td>{{registry.arch}}</td>
</tr>
</tbody>
</table>
</div>
<!-- End configuration block -->
</md-card-content>
</md-card>

View File

@ -31,6 +31,8 @@
</md-nav-item>
<md-nav-item class="wz-nav-item" md-nav-click="switchConfigurationSubTab('pm-unix')" name="pm-unix">System audit
</md-nav-item>
<md-nav-item class="wz-nav-item" md-nav-click="switchConfigurationSubTab('pm-ignored')" name="pm-ignored">Ignored
</md-nav-item>
<md-nav-item class="wz-nav-item" md-nav-click="switchConfigurationSubTab('pm-sca')" name="pm-sca">SCA</md-nav-item>
</md-nav-bar>
<!-- End Policy monitoring navigation bar -->

View File

@ -1,6 +1,7 @@
include ./policy-monitoring.head
include ./pm-general.html
include ./pm-unix.html
include ./pm-ignored.html
include ./pm-sca.html
include ./policy-monitoring.foot
include ../../../footer.foot