sigma-mcp-server 0.2.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- sigma/mcp/__init__.py +0 -0
- sigma/mcp/config.py +71 -0
- sigma/mcp/coverage.py +218 -0
- sigma/mcp/data/windows_event_index.json +247 -0
- sigma/mcp/index.py +367 -0
- sigma/mcp/index_manager.py +358 -0
- sigma/mcp/knowledge/__init__.py +1 -0
- sigma/mcp/knowledge/correlation.py +257 -0
- sigma/mcp/knowledge/logsources.py +438 -0
- sigma/mcp/knowledge/specification.py +185 -0
- sigma/mcp/knowledge/windows_events.py +79 -0
- sigma/mcp/main.py +22 -0
- sigma/mcp/naming.py +137 -0
- sigma/mcp/pipelines.py +532 -0
- sigma/mcp/prompts.py +151 -0
- sigma/mcp/py.typed +0 -0
- sigma/mcp/reference_data.py +160 -0
- sigma/mcp/repo.py +175 -0
- sigma/mcp/resources.py +221 -0
- sigma/mcp/server.py +41 -0
- sigma/mcp/tools/__init__.py +1 -0
- sigma/mcp/tools/index.py +200 -0
- sigma/mcp/tools/pipelines.py +131 -0
- sigma/mcp/tools/rules.py +343 -0
- sigma/mcp/validation.py +188 -0
- sigma/mcp/workflows.py +181 -0
- sigma_mcp_server-0.2.0.dist-info/METADATA +368 -0
- sigma_mcp_server-0.2.0.dist-info/RECORD +31 -0
- sigma_mcp_server-0.2.0.dist-info/WHEEL +4 -0
- sigma_mcp_server-0.2.0.dist-info/entry_points.txt +3 -0
- sigma_mcp_server-0.2.0.dist-info/licenses/LICENSE +21 -0
sigma/mcp/__init__.py
ADDED
|
File without changes
|
sigma/mcp/config.py
ADDED
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
"""Runtime configuration read from environment variables.
|
|
2
|
+
|
|
3
|
+
All values are read on every call (not at import time), so tests and
|
|
4
|
+
embedding applications can change them without reloading modules.
|
|
5
|
+
"""
|
|
6
|
+
|
|
7
|
+
from __future__ import annotations
|
|
8
|
+
|
|
9
|
+
import os
|
|
10
|
+
import sys
|
|
11
|
+
from datetime import timedelta
|
|
12
|
+
from pathlib import Path
|
|
13
|
+
|
|
14
|
+
ENV_DATA_DIR = "SIGMA_MCP_DATA_DIR"
|
|
15
|
+
"""Directory for downloaded SigmaHQ rules and the rule index."""
|
|
16
|
+
|
|
17
|
+
ENV_NO_WARMUP = "SIGMA_MCP_NO_WARMUP"
|
|
18
|
+
"""Set to ``1``/``true``/``yes`` to skip building the rule index at startup."""
|
|
19
|
+
|
|
20
|
+
ENV_INDEX_MAX_AGE_DAYS = "SIGMA_MCP_INDEX_MAX_AGE_DAYS"
|
|
21
|
+
"""Age in days after which the rule index is refreshed at startup (``0`` = never)."""
|
|
22
|
+
|
|
23
|
+
DEFAULT_INDEX_MAX_AGE_DAYS = 7.0
|
|
24
|
+
|
|
25
|
+
_APP_DIR_NAME = "sigma-mcp-server"
|
|
26
|
+
_TRUE_VALUES = {"1", "true", "yes", "on"}
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
def data_dir() -> Path:
|
|
30
|
+
"""Return the directory where the server keeps downloaded data.
|
|
31
|
+
|
|
32
|
+
``SIGMA_MCP_DATA_DIR`` takes precedence. Otherwise the platform's user
|
|
33
|
+
cache directory is used: ``%LOCALAPPDATA%`` on Windows,
|
|
34
|
+
``~/Library/Caches`` on macOS and ``$XDG_CACHE_HOME`` (default
|
|
35
|
+
``~/.cache``) elsewhere.
|
|
36
|
+
"""
|
|
37
|
+
configured = os.environ.get(ENV_DATA_DIR)
|
|
38
|
+
if configured:
|
|
39
|
+
return Path(configured).expanduser()
|
|
40
|
+
home = Path.home()
|
|
41
|
+
if sys.platform == "win32":
|
|
42
|
+
local_app_data = os.environ.get("LOCALAPPDATA")
|
|
43
|
+
base = Path(local_app_data) if local_app_data else home / "AppData" / "Local"
|
|
44
|
+
elif sys.platform == "darwin":
|
|
45
|
+
base = home / "Library" / "Caches"
|
|
46
|
+
else:
|
|
47
|
+
xdg_cache = os.environ.get("XDG_CACHE_HOME")
|
|
48
|
+
base = Path(xdg_cache) if xdg_cache else home / ".cache"
|
|
49
|
+
return base / _APP_DIR_NAME
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
def warmup_enabled() -> bool:
|
|
53
|
+
"""Return ``False`` when ``SIGMA_MCP_NO_WARMUP`` is set to a true value."""
|
|
54
|
+
return os.environ.get(ENV_NO_WARMUP, "").strip().lower() not in _TRUE_VALUES
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
def index_max_age() -> timedelta | None:
|
|
58
|
+
"""Return the maximum age of the rule index before it is refreshed.
|
|
59
|
+
|
|
60
|
+
Returns ``None`` when automatic refreshing is disabled
|
|
61
|
+
(``SIGMA_MCP_INDEX_MAX_AGE_DAYS=0`` or a negative value). Values that
|
|
62
|
+
cannot be parsed fall back to :data:`DEFAULT_INDEX_MAX_AGE_DAYS`.
|
|
63
|
+
"""
|
|
64
|
+
raw = os.environ.get(ENV_INDEX_MAX_AGE_DAYS)
|
|
65
|
+
try:
|
|
66
|
+
days = float(raw) if raw else DEFAULT_INDEX_MAX_AGE_DAYS
|
|
67
|
+
except ValueError:
|
|
68
|
+
days = DEFAULT_INDEX_MAX_AGE_DAYS
|
|
69
|
+
if days <= 0:
|
|
70
|
+
return None
|
|
71
|
+
return timedelta(days=days)
|
sigma/mcp/coverage.py
ADDED
|
@@ -0,0 +1,218 @@
|
|
|
1
|
+
"""How well a processing pipeline covers the SigmaHQ rules.
|
|
2
|
+
|
|
3
|
+
The analysis runs the pipeline with pySigma on small probe rules instead of
|
|
4
|
+
reading the pipeline YAML, so every kind of condition (logsource, field name
|
|
5
|
+
and detection item conditions, condition expressions, negation) and every
|
|
6
|
+
transformation is evaluated exactly as a backend would.
|
|
7
|
+
|
|
8
|
+
For each logsource in the rule index:
|
|
9
|
+
|
|
10
|
+
1. A probe rule with that logsource is processed. The logsource is
|
|
11
|
+
``unsupported`` if the pipeline raises an error for it (typically a
|
|
12
|
+
``rule_failure`` transformation), ``covered`` if at least one
|
|
13
|
+
transformation applies that does not also apply to an unrelated
|
|
14
|
+
logsource, and ``uncovered`` otherwise.
|
|
15
|
+
2. For every field used by at least ``field_threshold`` of the logsource's
|
|
16
|
+
rules, a probe rule using only that field is processed. The field is
|
|
17
|
+
``mapped`` (renamed, with the new names), ``unmapped`` (passed through
|
|
18
|
+
unchanged), ``unsupported`` (the pipeline raises an error, typically a
|
|
19
|
+
``detection_item_failure``) or ``dropped`` (removed from the rule).
|
|
20
|
+
|
|
21
|
+
Probe rules compare each field with the placeholder value ``x``.
|
|
22
|
+
Transformations whose conditions depend on specific values are therefore not
|
|
23
|
+
reflected in the field results.
|
|
24
|
+
"""
|
|
25
|
+
|
|
26
|
+
from __future__ import annotations
|
|
27
|
+
|
|
28
|
+
from dataclasses import dataclass, field
|
|
29
|
+
from typing import Any
|
|
30
|
+
|
|
31
|
+
from sigma.exceptions import SigmaError
|
|
32
|
+
from sigma.rule import SigmaRule
|
|
33
|
+
|
|
34
|
+
from sigma.mcp.index import LogsourceStats, RuleIndex
|
|
35
|
+
from sigma.mcp.pipelines import ParsedPipeline, detection_fields, run_pipeline
|
|
36
|
+
|
|
37
|
+
DEFAULT_FIELD_THRESHOLD = 0.05
|
|
38
|
+
"""Fields used by fewer than 5 % of a logsource's rules are not checked."""
|
|
39
|
+
|
|
40
|
+
_PROBE_FIELD = "SigmaMcpCoverageProbe"
|
|
41
|
+
_PROBE_DETECTION = "probe"
|
|
42
|
+
_UNRELATED_LOGSOURCE = {"product": "sigma-mcp-coverage-probe"}
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
@dataclass
|
|
46
|
+
class LogsourceCoverage:
|
|
47
|
+
"""Coverage of one logsource."""
|
|
48
|
+
|
|
49
|
+
stats: LogsourceStats
|
|
50
|
+
status: str
|
|
51
|
+
"""``covered``, ``uncovered`` or ``unsupported``."""
|
|
52
|
+
message: str | None = None
|
|
53
|
+
transformations: list[str] = field(default_factory=list)
|
|
54
|
+
mapped: dict[str, list[str]] = field(default_factory=dict)
|
|
55
|
+
unmapped: list[str] = field(default_factory=list)
|
|
56
|
+
unsupported: dict[str, str] = field(default_factory=dict)
|
|
57
|
+
dropped: list[str] = field(default_factory=list)
|
|
58
|
+
|
|
59
|
+
def to_json(self) -> dict[str, Any]:
|
|
60
|
+
"""Return a JSON-serialisable representation."""
|
|
61
|
+
data: dict[str, Any] = {
|
|
62
|
+
"key": self.stats.key,
|
|
63
|
+
"product": self.stats.product,
|
|
64
|
+
"category": self.stats.category,
|
|
65
|
+
"service": self.stats.service,
|
|
66
|
+
"rule_count": self.stats.rule_count,
|
|
67
|
+
"status": self.status,
|
|
68
|
+
"transformations": self.transformations,
|
|
69
|
+
"fields": {
|
|
70
|
+
"mapped": self.mapped,
|
|
71
|
+
"unmapped": self.unmapped,
|
|
72
|
+
"unsupported": self.unsupported,
|
|
73
|
+
"dropped": self.dropped,
|
|
74
|
+
},
|
|
75
|
+
}
|
|
76
|
+
if self.message is not None:
|
|
77
|
+
data["message"] = self.message
|
|
78
|
+
return data
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
def _probe_rule(logsource: dict[str, str], field_name: str) -> SigmaRule:
|
|
82
|
+
return SigmaRule.from_dict(
|
|
83
|
+
{
|
|
84
|
+
"title": "sigma-mcp-server coverage probe",
|
|
85
|
+
"logsource": logsource,
|
|
86
|
+
"detection": {
|
|
87
|
+
_PROBE_DETECTION: {field_name: "x"},
|
|
88
|
+
"condition": _PROBE_DETECTION,
|
|
89
|
+
},
|
|
90
|
+
}
|
|
91
|
+
)
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
def _logsource_of(stats: LogsourceStats) -> dict[str, str]:
|
|
95
|
+
return {
|
|
96
|
+
key: value
|
|
97
|
+
for key, value in (
|
|
98
|
+
("product", stats.product),
|
|
99
|
+
("category", stats.category),
|
|
100
|
+
("service", stats.service),
|
|
101
|
+
)
|
|
102
|
+
if value
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
def expected_fields(stats: LogsourceStats, threshold: float) -> list[str]:
|
|
107
|
+
"""Fields used by at least *threshold* of the logsource's rules, most used first."""
|
|
108
|
+
if stats.rule_count == 0:
|
|
109
|
+
return []
|
|
110
|
+
return [
|
|
111
|
+
name
|
|
112
|
+
for name, count in stats.top_fields()
|
|
113
|
+
if count / stats.rule_count >= threshold
|
|
114
|
+
]
|
|
115
|
+
|
|
116
|
+
|
|
117
|
+
def _check_field(
|
|
118
|
+
parsed: ParsedPipeline,
|
|
119
|
+
logsource: dict[str, str],
|
|
120
|
+
field_name: str,
|
|
121
|
+
result: LogsourceCoverage,
|
|
122
|
+
) -> None:
|
|
123
|
+
try:
|
|
124
|
+
rule = _probe_rule(logsource, field_name)
|
|
125
|
+
except SigmaError as exc:
|
|
126
|
+
result.unsupported[field_name] = f"Not a valid Sigma field name: {exc}"
|
|
127
|
+
return
|
|
128
|
+
outcome = run_pipeline(parsed.pipeline, rule)
|
|
129
|
+
if outcome.error is not None:
|
|
130
|
+
result.unsupported[field_name] = outcome.error
|
|
131
|
+
return
|
|
132
|
+
targets = parsed.pipeline.field_mappings.get(field_name)
|
|
133
|
+
# Only the probe detection counts: transformations like add_condition add
|
|
134
|
+
# detections with fields of their own.
|
|
135
|
+
probe = rule.detection.detections.get(_PROBE_DETECTION)
|
|
136
|
+
final = detection_fields(probe) if probe is not None else set()
|
|
137
|
+
if targets and set(targets) != {field_name}:
|
|
138
|
+
result.mapped[field_name] = sorted(targets)
|
|
139
|
+
elif final == {field_name}:
|
|
140
|
+
result.unmapped.append(field_name)
|
|
141
|
+
elif not final:
|
|
142
|
+
result.dropped.append(field_name)
|
|
143
|
+
else:
|
|
144
|
+
result.mapped[field_name] = sorted(final)
|
|
145
|
+
|
|
146
|
+
|
|
147
|
+
def analyze_logsource(
|
|
148
|
+
parsed: ParsedPipeline,
|
|
149
|
+
stats: LogsourceStats,
|
|
150
|
+
generic_items: set[int],
|
|
151
|
+
threshold: float,
|
|
152
|
+
) -> LogsourceCoverage:
|
|
153
|
+
"""Analyse one logsource (see the module documentation)."""
|
|
154
|
+
logsource = _logsource_of(stats)
|
|
155
|
+
outcome = run_pipeline(parsed.pipeline, _probe_rule(logsource, _PROBE_FIELD))
|
|
156
|
+
specific = [n for n in outcome.applied if n not in generic_items]
|
|
157
|
+
if outcome.error is not None:
|
|
158
|
+
return LogsourceCoverage(
|
|
159
|
+
stats=stats,
|
|
160
|
+
status="unsupported",
|
|
161
|
+
message=outcome.error,
|
|
162
|
+
transformations=[parsed.labels[n] for n in specific],
|
|
163
|
+
)
|
|
164
|
+
result = LogsourceCoverage(
|
|
165
|
+
stats=stats,
|
|
166
|
+
status="covered" if specific else "uncovered",
|
|
167
|
+
transformations=[parsed.labels[n] for n in specific],
|
|
168
|
+
)
|
|
169
|
+
for field_name in expected_fields(stats, threshold):
|
|
170
|
+
_check_field(parsed, logsource, field_name, result)
|
|
171
|
+
return result
|
|
172
|
+
|
|
173
|
+
|
|
174
|
+
def analyze_coverage(
|
|
175
|
+
parsed: ParsedPipeline,
|
|
176
|
+
index: RuleIndex,
|
|
177
|
+
field_threshold: float = DEFAULT_FIELD_THRESHOLD,
|
|
178
|
+
logsource_filter: str = "",
|
|
179
|
+
) -> list[LogsourceCoverage]:
|
|
180
|
+
"""Analyse every logsource of *index*, most used logsource first.
|
|
181
|
+
|
|
182
|
+
Args:
|
|
183
|
+
parsed: The pipeline to analyse.
|
|
184
|
+
index: The rule index providing logsources and field statistics.
|
|
185
|
+
field_threshold: Minimum share of a logsource's rules a field must
|
|
186
|
+
appear in to be checked (0–1).
|
|
187
|
+
logsource_filter: Case-insensitive substring of logsource keys to
|
|
188
|
+
restrict the analysis to.
|
|
189
|
+
"""
|
|
190
|
+
generic = run_pipeline(
|
|
191
|
+
parsed.pipeline, _probe_rule(_UNRELATED_LOGSOURCE, _PROBE_FIELD)
|
|
192
|
+
)
|
|
193
|
+
generic_items = set(generic.applied)
|
|
194
|
+
if generic.failed_item is not None:
|
|
195
|
+
generic_items.add(generic.failed_item)
|
|
196
|
+
needle = logsource_filter.strip().lower()
|
|
197
|
+
selected = sorted(
|
|
198
|
+
(s for k, s in index.logsources.items() if not needle or needle in k.lower()),
|
|
199
|
+
key=lambda s: (-s.rule_count, s.key),
|
|
200
|
+
)
|
|
201
|
+
return [
|
|
202
|
+
analyze_logsource(parsed, stats, generic_items, field_threshold)
|
|
203
|
+
for stats in selected
|
|
204
|
+
]
|
|
205
|
+
|
|
206
|
+
|
|
207
|
+
def summarize(results: list[LogsourceCoverage]) -> dict[str, Any]:
|
|
208
|
+
"""Count logsources and rules per status."""
|
|
209
|
+
logsources = {"covered": 0, "uncovered": 0, "unsupported": 0}
|
|
210
|
+
rules = dict(logsources)
|
|
211
|
+
for result in results:
|
|
212
|
+
logsources[result.status] += 1
|
|
213
|
+
rules[result.status] += result.stats.rule_count
|
|
214
|
+
return {
|
|
215
|
+
"logsources": logsources,
|
|
216
|
+
"rules": rules,
|
|
217
|
+
"total_rules": sum(rules.values()),
|
|
218
|
+
}
|
|
@@ -0,0 +1,247 @@
|
|
|
1
|
+
{
|
|
2
|
+
"security": {
|
|
3
|
+
"1100": "The event logging service has shut down.",
|
|
4
|
+
"1102": "The audit log was cleared.",
|
|
5
|
+
"1104": "The security log is now full.",
|
|
6
|
+
"1105": "Event log automatic backup.",
|
|
7
|
+
"1108": "The event logging service encountered an error while processing an incoming event published from %1.",
|
|
8
|
+
"4608": "Windows is starting up.",
|
|
9
|
+
"4610": "An authentication package has been loaded by the Local Security Authority.",
|
|
10
|
+
"4611": "A trusted logon process has been registered with the Local Security Authority.",
|
|
11
|
+
"4612": "Internal resources allocated for the queuing of audit messages have been exhausted, leading to the loss of some audits.",
|
|
12
|
+
"4614": "A notification package has been loaded by the Security Account Manager.",
|
|
13
|
+
"4615": "Invalid use of LPC port.",
|
|
14
|
+
"4616": "The system time was changed.",
|
|
15
|
+
"4618": "A monitored security event pattern has occurred.",
|
|
16
|
+
"4621": "Administrator recovered system from CrashOnAuditFail.",
|
|
17
|
+
"4622": "A security package has been loaded by the Local Security Authority.",
|
|
18
|
+
"4624": "An account was successfully logged on.",
|
|
19
|
+
"4625": "An account failed to log on.",
|
|
20
|
+
"4626": "User/Device claims information.",
|
|
21
|
+
"4627": "Group membership information.",
|
|
22
|
+
"4634": "An account was logged off.",
|
|
23
|
+
"4647": "User initiated logoff.",
|
|
24
|
+
"4648": "A logon was attempted using explicit credentials.",
|
|
25
|
+
"4649": "A replay attack was detected.",
|
|
26
|
+
"4656": "A handle to an object was requested.",
|
|
27
|
+
"4657": "A registry value was modified.",
|
|
28
|
+
"4658": "The handle to an object was closed.",
|
|
29
|
+
"4660": "An object was deleted.",
|
|
30
|
+
"4661": "A handle to an object was requested.",
|
|
31
|
+
"4662": "An operation was performed on an object.",
|
|
32
|
+
"4663": "An attempt was made to access an object.",
|
|
33
|
+
"4664": "An attempt was made to create a hard link.",
|
|
34
|
+
"4670": "Permissions on an object were changed.",
|
|
35
|
+
"4671": "An application attempted to access a blocked ordinal through the TBS.",
|
|
36
|
+
"4672": "Special privileges assigned to new logon.",
|
|
37
|
+
"4673": "A privileged service was called.",
|
|
38
|
+
"4674": "An operation was attempted on a privileged object.",
|
|
39
|
+
"4675": "SIDs were filtered.",
|
|
40
|
+
"4688": "A new process has been created.",
|
|
41
|
+
"4689": "A process has exited.",
|
|
42
|
+
"4690": "An attempt was made to duplicate a handle to an object.",
|
|
43
|
+
"4691": "Indirect access to an object was requested.",
|
|
44
|
+
"4692": "Backup of data protection master key was attempted.",
|
|
45
|
+
"4693": "Recovery of data protection master key was attempted.",
|
|
46
|
+
"4694": "Protection of auditable protected data was attempted.",
|
|
47
|
+
"4695": "Unprotection of auditable protected data was attempted.",
|
|
48
|
+
"4696": "A primary token was assigned to process.",
|
|
49
|
+
"4697": "A service was installed in the system.",
|
|
50
|
+
"4698": "A scheduled task was created.",
|
|
51
|
+
"4699": "A scheduled task was deleted.",
|
|
52
|
+
"4700": "A scheduled task was enabled.",
|
|
53
|
+
"4701": "A scheduled task was disabled.",
|
|
54
|
+
"4702": "A scheduled task was updated.",
|
|
55
|
+
"4703": "A user right was adjusted.",
|
|
56
|
+
"4704": "A user right was assigned.",
|
|
57
|
+
"4705": "A user right was removed.",
|
|
58
|
+
"4706": "A new trust was created to a domain.",
|
|
59
|
+
"4707": "A trust to a domain was removed.",
|
|
60
|
+
"4713": "Kerberos policy was changed.",
|
|
61
|
+
"4714": "Encrypted data recovery policy was changed.",
|
|
62
|
+
"4715": "The audit policy (SACL) on an object was changed.",
|
|
63
|
+
"4716": "Trusted domain information was modified.",
|
|
64
|
+
"4717": "System security access was granted to an account.",
|
|
65
|
+
"4718": "System security access was removed from an account.",
|
|
66
|
+
"4719": "System audit policy was changed.",
|
|
67
|
+
"4720": "A user account was created.",
|
|
68
|
+
"4722": "A user account was enabled.",
|
|
69
|
+
"4723": "An attempt was made to change an account's password.",
|
|
70
|
+
"4724": "An attempt was made to reset an account's password.",
|
|
71
|
+
"4725": "A user account was disabled.",
|
|
72
|
+
"4726": "A user account was deleted.",
|
|
73
|
+
"4731": "A security-enabled local group was created.",
|
|
74
|
+
"4732": "A member was added to a security-enabled local group.",
|
|
75
|
+
"4733": "A member was removed from a security-enabled local group.",
|
|
76
|
+
"4734": "A security-enabled local group was deleted.",
|
|
77
|
+
"4735": "A security-enabled local group was changed.",
|
|
78
|
+
"4738": "A user account was changed.",
|
|
79
|
+
"4739": "Domain Policy was changed.",
|
|
80
|
+
"4740": "A user account was locked out.",
|
|
81
|
+
"4741": "A computer account was created.",
|
|
82
|
+
"4742": "A computer account was changed.",
|
|
83
|
+
"4743": "A computer account was deleted.",
|
|
84
|
+
"4749": "A security-disabled global group was created.",
|
|
85
|
+
"4750": "A security-disabled global group was changed.",
|
|
86
|
+
"4751": "A member was added to a security-disabled global group.",
|
|
87
|
+
"4752": "A member was removed from a security-disabled global group.",
|
|
88
|
+
"4753": "A security-disabled global group was deleted.",
|
|
89
|
+
"4764": "A group\u2019s type was changed.",
|
|
90
|
+
"4765": "SID History was added to an account.",
|
|
91
|
+
"4766": "An attempt to add SID History to an account failed.",
|
|
92
|
+
"4767": "A user account was unlocked.",
|
|
93
|
+
"4768": "A Kerberos authentication ticket (TGT) was requested.",
|
|
94
|
+
"4769": "A Kerberos service ticket was requested.",
|
|
95
|
+
"4770": "A Kerberos service ticket was renewed.",
|
|
96
|
+
"4771": "Kerberos pre-authentication failed.",
|
|
97
|
+
"4772": "A Kerberos authentication ticket request failed.",
|
|
98
|
+
"4773": "A Kerberos service ticket request failed.",
|
|
99
|
+
"4774": "An account was mapped for logon.",
|
|
100
|
+
"4775": "An account could not be mapped for logon.",
|
|
101
|
+
"4776": "The computer attempted to validate the credentials for an account.",
|
|
102
|
+
"4777": "The domain controller failed to validate the credentials for an account.",
|
|
103
|
+
"4778": "A session was reconnected to a Window Station.",
|
|
104
|
+
"4779": "A session was disconnected from a Window Station.",
|
|
105
|
+
"4780": "The ACL was set on accounts which are members of administrators groups.",
|
|
106
|
+
"4781": "The name of an account was changed.",
|
|
107
|
+
"4782": "The password hash an account was accessed.",
|
|
108
|
+
"4793": "The Password Policy Checking API was called.",
|
|
109
|
+
"4794": "An attempt was made to set the Directory Services Restore Mode administrator password.",
|
|
110
|
+
"4798": "A user's local group membership was enumerated.",
|
|
111
|
+
"4799": "A security-enabled local group membership was enumerated.",
|
|
112
|
+
"4800": "The workstation was locked.",
|
|
113
|
+
"4801": "The workstation was unlocked.",
|
|
114
|
+
"4802": "The screen saver was invoked.",
|
|
115
|
+
"4803": "The screen saver was dismissed.",
|
|
116
|
+
"4816": "RPC detected an integrity violation while decrypting an incoming message.",
|
|
117
|
+
"4817": "Auditing settings on object were changed.",
|
|
118
|
+
"4818": "Proposed Central Access Policy does not grant the same access permissions as the current Central Access Policy.",
|
|
119
|
+
"4819": "Central Access Policies on the machine have been changed.",
|
|
120
|
+
"4826": "Boot Configuration Data loaded.",
|
|
121
|
+
"4864": "A namespace collision was detected.",
|
|
122
|
+
"4865": "A trusted forest information entry was added.",
|
|
123
|
+
"4866": "A trusted forest information entry was removed.",
|
|
124
|
+
"4867": "A trusted forest information entry was modified.",
|
|
125
|
+
"4902": "The Per-user audit policy table was created.",
|
|
126
|
+
"4904": "An attempt was made to register a security event source.",
|
|
127
|
+
"4905": "An attempt was made to unregister a security event source.",
|
|
128
|
+
"4906": "The CrashOnAuditFail value has changed.",
|
|
129
|
+
"4907": "Auditing settings on object were changed.",
|
|
130
|
+
"4908": "Special Groups Logon table modified.",
|
|
131
|
+
"4909": "The local policy settings for the TBS were changed.",
|
|
132
|
+
"4910": "The group policy settings for the TBS were changed.",
|
|
133
|
+
"4911": "Resource attributes of the object were changed.",
|
|
134
|
+
"4912": "Per User Audit Policy was changed.",
|
|
135
|
+
"4913": "Central Access Policy on the object was changed.",
|
|
136
|
+
"4928": "An Active Directory replica source naming context was established.",
|
|
137
|
+
"4929": "An Active Directory replica source naming context was removed.",
|
|
138
|
+
"4930": "An Active Directory replica source naming context was modified.",
|
|
139
|
+
"4931": "An Active Directory replica destination naming context was modified.",
|
|
140
|
+
"4932": "Synchronization of a replica of an Active Directory naming context has begun.",
|
|
141
|
+
"4933": "Synchronization of a replica of an Active Directory naming context has ended.",
|
|
142
|
+
"4934": "Attributes of an Active Directory object were replicated.",
|
|
143
|
+
"4935": "Replication failure begins.",
|
|
144
|
+
"4936": "Replication failure ends.",
|
|
145
|
+
"4937": "A lingering object was removed from a replica.",
|
|
146
|
+
"4944": "The following policy was active when the Windows Firewall started.",
|
|
147
|
+
"4945": "A rule was listed when the Windows Firewall started.",
|
|
148
|
+
"4946": "A change has been made to Windows Firewall exception list. A rule was added.",
|
|
149
|
+
"4947": "A change has been made to Windows Firewall exception list. A rule was modified.",
|
|
150
|
+
"4948": "A change has been made to Windows Firewall exception list. A rule was deleted.",
|
|
151
|
+
"4949": "Windows Firewall settings were restored to the default values.",
|
|
152
|
+
"4950": "A Windows Firewall setting has changed.",
|
|
153
|
+
"4951": "A rule has been ignored because its major version number was not recognized by Windows Firewall.",
|
|
154
|
+
"4952": "Parts of a rule have been ignored because its minor version number was not recognized by Windows Firewall. The other parts of the rule will be enforced.",
|
|
155
|
+
"4953": "Windows Firewall ignored a rule because it could not be parsed.",
|
|
156
|
+
"4954": "Windows Firewall Group Policy settings have changed. The new settings have been applied.",
|
|
157
|
+
"4956": "Windows Firewall has changed the active profile.",
|
|
158
|
+
"4957": "Windows Firewall did not apply the following rule.",
|
|
159
|
+
"4958": "Windows Firewall did not apply the following rule because the rule referred to items not configured on this computer.",
|
|
160
|
+
"4964": "Special groups have been assigned to a new logon.",
|
|
161
|
+
"4985": "The state of a transaction has changed.",
|
|
162
|
+
"5024": "The Windows Firewall Service has started successfully.",
|
|
163
|
+
"5025": "The Windows Firewall Service has been stopped.",
|
|
164
|
+
"5027": "The Windows Firewall Service was unable to retrieve the security policy from the local storage. The service will continue enforcing the current policy.",
|
|
165
|
+
"5028": "The Windows Firewall Service was unable to parse the new security policy. The service will continue with currently enforced policy.",
|
|
166
|
+
"5029": "The Windows Firewall Service failed to initialize the driver. The service will continue to enforce the current policy.",
|
|
167
|
+
"5030": "The Windows Firewall Service failed to start.",
|
|
168
|
+
"5031": "The Windows Firewall Service blocked an application from accepting incoming connections on the network.",
|
|
169
|
+
"5032": "Windows Firewall was unable to notify the user that it blocked an application from accepting incoming connections on the network.",
|
|
170
|
+
"5033": "The Windows Firewall Driver has started successfully.",
|
|
171
|
+
"5034": "The Windows Firewall Driver was stopped.",
|
|
172
|
+
"5035": "The Windows Firewall Driver failed to start.",
|
|
173
|
+
"5037": "The Windows Firewall Driver detected critical runtime error. Terminating.",
|
|
174
|
+
"5038": "Code integrity determined that the image hash of a file is not valid. The file could be corrupt due to unauthorized modification or the invalid hash could indicate a potential disk device error.",
|
|
175
|
+
"5039": "A registry key was virtualized.",
|
|
176
|
+
"5051": "A file was virtualized.",
|
|
177
|
+
"5056": "A cryptographic self-test was performed.",
|
|
178
|
+
"5057": "A cryptographic primitive operation failed.",
|
|
179
|
+
"5058": "Key file operation.",
|
|
180
|
+
"5059": "Key migration operation.",
|
|
181
|
+
"5060": "Verification operation failed.",
|
|
182
|
+
"5061": "Cryptographic operation.",
|
|
183
|
+
"5062": "A kernel-mode cryptographic self-test was performed.",
|
|
184
|
+
"5063": "A cryptographic provider operation was attempted.",
|
|
185
|
+
"5064": "A cryptographic context operation was attempted.",
|
|
186
|
+
"5065": "A cryptographic context modification was attempted.",
|
|
187
|
+
"5066": "A cryptographic function operation was attempted.",
|
|
188
|
+
"5067": "A cryptographic function modification was attempted.",
|
|
189
|
+
"5068": "A cryptographic function provider operation was attempted.",
|
|
190
|
+
"5069": "A cryptographic function property operation was attempted.",
|
|
191
|
+
"5070": "A cryptographic function property modification was attempted.",
|
|
192
|
+
"5136": "A directory service object was modified.",
|
|
193
|
+
"5137": "A directory service object was created.",
|
|
194
|
+
"5138": "A directory service object was undeleted.",
|
|
195
|
+
"5139": "A directory service object was moved.",
|
|
196
|
+
"5140": "A network share object was accessed.",
|
|
197
|
+
"5141": "A directory service object was deleted.",
|
|
198
|
+
"5142": "A network share object was added.",
|
|
199
|
+
"5143": "A network share object was modified.",
|
|
200
|
+
"5144": "A network share object was deleted.",
|
|
201
|
+
"5145": "A network share object was checked to see whether client can be granted desired access.",
|
|
202
|
+
"5148": "The Windows Filtering Platform has detected a DoS attack and entered a defensive mode; packets associated with this attack will be discarded.",
|
|
203
|
+
"5149": "The DoS attack has subsided and normal processing is being resumed.",
|
|
204
|
+
"5150": "The Windows Filtering Platform blocked a packet.",
|
|
205
|
+
"5151": "A more restrictive Windows Filtering Platform filter has blocked a packet.",
|
|
206
|
+
"5152": "The Windows Filtering Platform blocked a packet.",
|
|
207
|
+
"5153": "A more restrictive Windows Filtering Platform filter has blocked a packet.",
|
|
208
|
+
"5154": "The Windows Filtering Platform has permitted an application or service to listen on a port for incoming connections.",
|
|
209
|
+
"5155": "The Windows Filtering Platform has blocked an application or service from listening on a port for incoming connections.",
|
|
210
|
+
"5156": "The Windows Filtering Platform has permitted a connection.",
|
|
211
|
+
"5157": "The Windows Filtering Platform has blocked a connection.",
|
|
212
|
+
"5158": "The Windows Filtering Platform has permitted a bind to a local port.",
|
|
213
|
+
"5159": "The Windows Filtering Platform has blocked a bind to a local port.",
|
|
214
|
+
"5168": "SPN check for SMB/SMB2 failed.",
|
|
215
|
+
"5376": "Credential Manager credentials were backed up.",
|
|
216
|
+
"5377": "Credential Manager credentials were restored from a backup.",
|
|
217
|
+
"5378": "The requested credentials delegation was disallowed by policy.",
|
|
218
|
+
"5447": "A Windows Filtering Platform filter has been changed.",
|
|
219
|
+
"5632": "A request was made to authenticate to a wireless network.",
|
|
220
|
+
"5633": "A request was made to authenticate to a wired network.",
|
|
221
|
+
"5712": "A Remote Procedure Call (RPC) was attempted.",
|
|
222
|
+
"5888": "An object in the COM+ Catalog was modified.",
|
|
223
|
+
"5889": "An object was deleted from the COM+ Catalog.",
|
|
224
|
+
"5890": "An object was added to the COM+ Catalog.",
|
|
225
|
+
"6144": "Security policy in the group policy objects has been applied successfully.",
|
|
226
|
+
"6145": "One or more errors occurred while processing security policy in the group policy objects.",
|
|
227
|
+
"6281": "Code Integrity determined that the page hashes of an image file are not valid. The file could be improperly signed without page hashes or corrupt due to unauthorized modification. The invalid hashes could indicate a potential disk device error.",
|
|
228
|
+
"6400": "BranchCache: Received an incorrectly formatted response while discovering availability of content.",
|
|
229
|
+
"6401": "BranchCache: Received invalid data from a peer. Data discarded.",
|
|
230
|
+
"6402": "BranchCache: The message to the hosted cache offering it data is incorrectly formatted.",
|
|
231
|
+
"6403": "BranchCache: The hosted cache sent an incorrectly formatted response to the client.",
|
|
232
|
+
"6404": "BranchCache: Hosted cache could not be authenticated using the provisioned SSL certificate.",
|
|
233
|
+
"6405": "BranchCache: %2 instance(s) of event id %1 occurred.",
|
|
234
|
+
"6406": "%1 registered to Windows Firewall to control filtering for the following: %2.",
|
|
235
|
+
"6407": "1%.",
|
|
236
|
+
"6408": "Registered product %1 failed and Windows Firewall is now controlling the filtering for %2.",
|
|
237
|
+
"6409": "BranchCache: A service connection point object could not be parsed.",
|
|
238
|
+
"6410": "Code integrity determined that a file does not meet the security requirements to load into a process.",
|
|
239
|
+
"6416": "A new external device was recognized by the System.",
|
|
240
|
+
"6419": "A request was made to disable a device.",
|
|
241
|
+
"6420": "A device was disabled.",
|
|
242
|
+
"6421": "A request was made to enable a device.",
|
|
243
|
+
"6422": "A device was enabled.",
|
|
244
|
+
"6423": "The installation of this device is forbidden by system policy.",
|
|
245
|
+
"6424": "The installation of this device was allowed, after having previously been forbidden by policy."
|
|
246
|
+
}
|
|
247
|
+
}
|