Skip to content

feat(protocol): add custom TCP/UDP/IPC/XPC and auth-flow capture - #448

Merged
morluto merged 1 commit into
mainfrom
codex/custom-protocol-capture-365
Jul 28, 2026
Merged

morluto merged 1 commit into
mainfrom
codex/custom-protocol-capture-365

Conversation

@morluto

@morluto morluto commented Jul 28, 2026 •

Copy link
Copy Markdown
Owner

Summary

Add support for custom TCP and UDP framing, local IPC, Unix sockets, named pipes, XPC, and authentication/token lifecycle metadata.

Closes #365.

Changes

  • Transport types: TCP, UDP, IPC, Unix socket, named pipe, XPC
  • Protocol frames: Captured with direction, source/destination process identity, endpoint addresses, and decoded content
  • Authentication flows: Stage tracking (init, challenge, response, token exchange, renewal, revocation, failure, success) with correlation IDs
  • Token lifecycle: issued, refreshed, expired, revoked, renewed
  • Credential detection: Fields are detected and redacted by default
  • Utility functions: Filter by transport type, protocol, auth success/failure; compute auth flow duration; correlate process identity

Verification

npm run typecheck   # passes
npx vitest run tests/customProtocolCapture.test.ts  # 9 tests pass

Acceptance criteria

  • ✅ Direction, process identity, endpoint, and source-code correlations are preserved
  • ✅ Secret redaction is enforced (credentials detected and redacted by default)

@cursor

cursor Bot commented Jul 28, 2026

Copy link
Copy Markdown

Bugbot is not enabled for your account, so this pull request was not reviewed.

Enable Bugbot in the Cursor dashboard to get automatic reviews on future PRs.

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

Add support for custom TCP and UDP framing, local IPC, Unix sockets,
named pipes, XPC, and authentication/token lifecycle metadata (#365).

- customProtocolCapture.ts: domain schemas for custom protocol
  frames with transport types (TCP, UDP, IPC, Unix socket, named
  pipe, XPC), frame direction, process identity correlation, and
  decoded content.
- Authentication flow events with stage tracking (init, challenge,
  response, token exchange, renewal, revocation, failure, success).
- Token lifecycle events (issued, refreshed, expired, revoked,
  renewed).
- Credential detection and redaction by default.
- Filters for transport type, protocol, and auth success/failure.

Closes #365
@morluto
morluto force-pushed the codex/custom-protocol-capture-365 branch from b8ff8f6 to 6fa6f9b Compare July 28, 2026 05:41
@morluto
morluto merged commit 1fb22b4 into main Jul 28, 2026
13 checks passed
@morluto
morluto deleted the codex/custom-protocol-capture-365 branch July 28, 2026 06:52
darsrc pushed a commit to darsrc/rea that referenced this pull request Oct 10, 2026
…ture-365

feat(protocol): add custom TCP/UDP/IPC/XPC and auth-flow capture
@morluto morluto added enhancement New feature or request area: runtime Process capture and runtime observation labels Oct 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: runtime Process capture and runtime observation enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add custom TCP/UDP/IPC/XPC and authentication-flow capture

1 participant