Collection of CheckMK checks (see https://checkmk.com/). All checks and plugins are provided as is. Absolutely no warranty. Send any comments to thl-cmk[at]outlook[dot]com

Skip to content
Snippets Groups Projects
Commit 202ea0e0 authored by thl-cmk's avatar thl-cmk :flag_na:
Browse files

update project

parent 0321f466
No related branches found
No related tags found
No related merge requests found
...@@ -27,6 +27,8 @@ ...@@ -27,6 +27,8 @@
# 2022-02-13: added options --api-key and --http-proxy # 2022-02-13: added options --api-key and --http-proxy
# 2022-02-24: removed deployment of the logpresso executable -> separate package log4j_executable.mkp # 2022-02-24: removed deployment of the logpresso executable -> separate package log4j_executable.mkp
# optimised code for config file generation # optimised code for config file generation
# 2022-05-06: fixed not enough values to unpack in exclude_paths bulk (THX to Rene Calmer[at]forum.checkmk.com)
#
from pathlib import Path from pathlib import Path
from typing import List from typing import List
...@@ -170,7 +172,7 @@ def get_cve_2021_44228_log4j_files(conf: List[any]) -> FileGenerator: ...@@ -170,7 +172,7 @@ def get_cve_2021_44228_log4j_files(conf: List[any]) -> FileGenerator:
path = path.strip(' ').strip("'").strip('"') path = path.strip(' ').strip("'").strip('"')
options_array.append(f'--exclude "{path}"') options_array.append(f'--exclude "{path}"')
elif 'exclude_paths_file' in options['exclude_paths']['exclude_paths']: elif 'exclude_paths_file' in options['exclude_paths']['exclude_paths']:
label, exclude_paths = options['exclude_paths'] label, exclude_paths = options['exclude_paths']['exclude_paths']
options_array.append(f'--exclude-config {config_path}cve_2021_44228_log4j_exclude.cfg') options_array.append(f'--exclude-config {config_path}cve_2021_44228_log4j_exclude.cfg')
if 'exclude_paths_pattern' in options['exclude_paths'].keys(): if 'exclude_paths_pattern' in options['exclude_paths'].keys():
for path in options['exclude_paths']['exclude_paths_pattern']: for path in options['exclude_paths']['exclude_paths_pattern']:
......
No preview for this file type
...@@ -37,7 +37,7 @@ ...@@ -37,7 +37,7 @@
'name': 'cve_2021_44228_log4j', 'name': 'cve_2021_44228_log4j',
'num_files': 9, 'num_files': 9,
'title': 'CVE-2021-44228-log4j scanner plugin', 'title': 'CVE-2021-44228-log4j scanner plugin',
'version': '20220309.v0.1.4', 'version': '20220506.v0.1.4a',
'version.min_required': '2.0.0', 'version.min_required': '2.0.0',
'version.packaged': '2021.09.20', 'version.packaged': '2021.09.20',
'version.usable_until': None} 'version.usable_until': None}
\ No newline at end of file
...@@ -78,17 +78,20 @@ check_metrics['cve_2021_44228_log4j'] = { ...@@ -78,17 +78,20 @@ check_metrics['cve_2021_44228_log4j'] = {
graph_info['cve_2021_44228_log4j_found'] = { graph_info['cve_2021_44228_log4j_found'] = {
'title': _('Files found'), 'title': _('Files found'),
'metrics': [ 'metrics': [
('files_mitigated', '-stack'), ('files_safe', '-stack'),
('files_skipped', '-stack'), ('files_skipped', '-stack'),
('files_safe', 'stack'), ('files_mitigated', '-stack'),
('files_potential_vulnerable', 'stack'),
('files_vulnerable', 'stack'), ('files_vulnerable', 'stack'),
('files_potential_vulnerable', 'stack'),
], ],
'scalars': [ 'scalars': [
('files_vulnerable:crit', _('crit')), ('files_vulnerable:crit', _('crit')),
('files_vulnerable:warn', _('warn')), ('files_vulnerable:warn', _('warn')),
], ],
'optional_metrics': ['files_skipped'], 'optional_metrics': [
'files_skipped',
'files_safe',
],
} }
graph_info['cve_2021_44228_log4j_scanned'] = { graph_info['cve_2021_44228_log4j_scanned'] = {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment