Skip to content

fix(pipe): bind loaded notices to process identity - #1

Closed
wmetcalf wants to merge 3 commits into
capemonfrom
fix/wmiprvse-existing-discovery
Closed

fix(pipe): bind loaded notices to process identity#1
wmetcalf wants to merge 3 commits into
capemonfrom
fix/wmiprvse-existing-discovery

Conversation

@wmetcalf

@wmetcalf wmetcalf commented Sep 4, 2026

Copy link
Copy Markdown
Owner

Build-validation PR for the WMI provider monitoring fix. Extends LOADED with a tagged process creation FILETIME so CAPEv2 can reject stale PID-reuse notifications while remaining compatible with older monitors.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 4, 2026

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review Completed 2026-09-04T22:06:34.868846Z 9f1292d PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 9f1292dc9e

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread capemon.c Outdated
if (GetProcessTimes(GetCurrentProcess(), &CreationTime, &ExitTime, &KernelTime, &UserTime)) {
CreationIdentity.LowPart = CreationTime.dwLowDateTime;
CreationIdentity.HighPart = CreationTime.dwHighDateTime;
pipe("LOADED:%d,i:%llu", GetCurrentProcessId(), (unsigned long long)CreationIdentity.QuadPart);

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Encode the creation identity with a supported pipe format

pipe() is not printf: _pipe_sprintf() only supports %z, %c, %Z, %F, %s, %S, %o, %O, %d, %x, and %p. Consequently %llu is emitted as -- UNKNOWN FORMAT STRING -- lu rather than consuming and serializing CreationIdentity.QuadPart, so every successful GetProcessTimes() call sends a malformed LOADED notice and the analyzer cannot validate the process identity.

Useful? React with 👍 / 👎.

@wmetcalf

wmetcalf commented Sep 7, 2026

Copy link
Copy Markdown
Owner Author

Superseded by upstream PR kevoreilly#197. The branch and successful MSBuild run 34073283202 are retained for review provenance.

@wmetcalf wmetcalf closed this Sep 7, 2026
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