Add Windows event knowledge resources: sigma://events/windows and sigma://events/windows/{channel}/{event_id} - #1
Draft
thomaspatzke with Copilot wants to merge 3 commits into
Draft
Conversation
…ma://events/windows/{channel}/{event_id}
Agent-Logs-Url: https://github.com/SigmaHQ/sigma-mcp-server/sessions/74163c56-0de9-4be3-b43b-b417a71cef52
Co-authored-by: thomaspatzke <1845601+thomaspatzke@users.noreply.github.com>
Agent-Logs-Url: https://github.com/SigmaHQ/sigma-mcp-server/sessions/74163c56-0de9-4be3-b43b-b417a71cef52 Co-authored-by: thomaspatzke <1845601+thomaspatzke@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add Windows log source event descriptions as knowledge resources
Add Windows event knowledge resources: sigma://events/windows and sigma://events/windows/{channel}/{event_id}
Apr 23, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
LLMs writing Sigma rules for Windows log sources had no structured access to Windows event documentation, limiting their ability to reason about specific event fields and channels.
New resources
sigma://events/windows— Fetches the GitHub directory listing fromduckxing/windows-itpro-docs/windows/keep-secure, then fetches eachevent-{id}.mdand parses its YAML front matter + embedded event XML. Returns a sorted list of:[ { "event_id": "4624", "title": "4624(S) An account was successfully logged on. (Windows 10)", "description": "Describes security event 4624(S) ...", "channel": "security", "resource_url": "sigma://events/windows/security/4624" } ]sigma://events/windows/{channel}/{event_id}— Returns the full Markdown documentation for a specific event (description, XML schema, field meanings, security monitoring recommendations). Thechannelsegment is cosmetic/organisational and maps to the Sigmaservicefield; lookup is byevent_idalone. Both resources share the same_spec_cache, so the overview pre-warms detail lookups.New internals
_parse_win_event_front_matter(markdown)— extracts YAML front matter key/value pairs (title,description,ms.pagetype, etc.)_extract_win_event_channel(markdown)— finds<Channel>…</Channel>in the embedded event XML and returns it lower-cased_WIN_EVENTS_BASE_URL/_WIN_EVENTS_INDEX_URLfor the upstream raw content and GitHub API endpointsWarning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
https://api.github.com/repos/duckxing/windows-itpro-docs/contents/windows/keep-secure/home/REDACTED/work/_temp/ghcca-node/node/bin/node /home/REDACTED/work/_temp/ghcca-node/node/bin/node --enable-source-maps /home/REDACTED/work/_temp/copilot-developer-action-main/dist/index.js(http block)If you need me to access, download, or install something from one of these locations, you can either:
Original prompt
Created from VS Code.