Skip to content

docs: document Windows sensor fields and variants (Refs #362) - #374

Open
SherlockOmss wants to merge 1 commit into
mainfrom
docs/362-windows-sensors
Open

SherlockOmss wants to merge 1 commit into
mainfrom
docs/362-windows-sensors

Conversation

@SherlockOmss

Copy link
Copy Markdown
Contributor

Refs #362, Windows zone. Removes the 16 #[allow(missing_docs)] // #362 under crates/sensors/windows and documents what they hid.

What

  • eventlog: the 11 EventLogCounters fields name the event ids that reach each counter (applocker_blocks sums four channels); the record types (LogonEvent, DefenderLogEvent, LogClearedRecord, TerminalSessionEvent, task, service, account, AppLocker, WDAC, Kerberos) document record_id, event_id and the remaining fields.
  • sockets: ListenerEntry::{pid, ppid, local}.
  • minifilter: Body (path format and truncation said once on the enum), its variant fields, Message::{pid, tid, counters, body} and every WireError variant and field.

Each doc was read against the parser or the code that fills the field (which element is read, the 0/empty/None fallback, time_created_ns unit, which ids a poll target filters). Existing docs were kept. The shared rule is said once on the type, not copied per field.

Verified (Linux host)

  • cargo +nightly fmt --all; cargo clippy -p sensor-windows-eventlog -p sensor-windows-sockets -p sensor-windows-minifilter --all-targets -- -D warnings; RUSTDOCFLAGS="-D warnings" cargo doc on the same three crates; tools/check-docs.py. All clean. No #[allow(missing_docs)] is left under crates/sensors/windows.

Not verified

  • The Windows build and the Windows CI job were not run on my host: the crates compile their portable parts on Linux, but cfg(windows) code was not compiled. This PR changes only doc comments.
  • No live Event Log capture was read for this change. Field meanings that rest on a capture (for example the 4720 and 4624 shapes) are the ones already recorded in the existing docs.
  • The raw-volume and FILETIME details were checked in wire.rs and events.rs, not against a running driver.

🤖 Generated with Claude Code

Removes the 16 `#[allow(missing_docs)] // #362` under crates/sensors/windows
(eventlog counters and record types, sockets `ListenerEntry`, minifilter
`Body`, `Message` and `WireError`) and documents what they hid. Each doc was
checked against the parser or the code that fills the field: which Event Log
element it reads, when it is empty, and which event ids reach each counter.

Docs only; no code change.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Signed-off-by: SherlockOmss <[email protected]>

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant