Skip to content

fix(detector): detect aliased bmm self output#258

Open
prasannakotyal wants to merge 1 commit intoSinatrasC:mainfrom
prasannakotyal:kg-blue-bmm-self-output-red-793
Open

fix(detector): detect aliased bmm self output#258
prasannakotyal wants to merge 1 commit intoSinatrasC:mainfrom
prasannakotyal:kg-blue-bmm-self-output-red-793

Conversation

@prasannakotyal
Copy link
Copy Markdown

Summary

  • add SELF_MATMUL_OUTPUT for aliased torch.bmm used on an unsqueezed input and its transpose
  • add sentinel replay coverage for the companion visible red batch
  • register the self-matmul pattern as a hard auto-filter rule

Target

KernelGuard-Red-Submission: 793

Validation

  • UV_CACHE_DIR=/tmp/uvcache uv run python -m py_compile kernelguard.py
  • red 793 sample: classification=hacked, should_filter=true, pattern SELF_MATMUL_OUTPUT
  • red 792/794/795/796 samples: classification=hacked, should_filter=true
  • UV_CACHE_DIR=/tmp/uvcache uv run python ../../kernelguard_bypasses/eval_blue_patch.py kernelguard.py clean fixtures remain should_filter=False

@prasannakotyal prasannakotyal temporarily deployed to kernelguard-api-control-plane May 7, 2026 15:39 — with GitHub Actions Inactive
@prasannakotyal prasannakotyal temporarily deployed to kernelguard-api-control-plane May 7, 2026 15:39 — with GitHub Actions Inactive
@prasannakotyal prasannakotyal temporarily deployed to kernelguard-api-control-plane May 7, 2026 15:39 — with GitHub Actions Inactive
@prasannakotyal prasannakotyal temporarily deployed to kernelguard-api-control-plane May 7, 2026 15:40 — with GitHub Actions Inactive
@prasannakotyal prasannakotyal temporarily deployed to kernelguard-api-control-plane May 7, 2026 15:40 — with GitHub Actions Inactive
@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 7, 2026

KernelGuard Blue Evaluation

@prasannakotyal prasannakotyal temporarily deployed to kernelguard-api-control-plane May 7, 2026 15:47 — with GitHub Actions Inactive
@prasannakotyal prasannakotyal temporarily deployed to kernelguard-api-control-plane May 7, 2026 15:47 — with GitHub Actions Inactive
@prasannakotyal prasannakotyal temporarily deployed to kernelguard-api-control-plane May 7, 2026 15:47 — with GitHub Actions Inactive
@prasannakotyal prasannakotyal temporarily deployed to kernelguard-api-control-plane May 7, 2026 15:47 — with GitHub Actions Inactive
@prasannakotyal prasannakotyal temporarily deployed to kernelguard-api-control-plane May 7, 2026 15:47 — with GitHub Actions Inactive
@prasannakotyal prasannakotyal temporarily deployed to kernelguard-api-control-plane May 7, 2026 15:47 — with GitHub Actions Inactive
@prasannakotyal prasannakotyal temporarily deployed to kernelguard-api-control-plane May 7, 2026 15:47 — with GitHub Actions Inactive
@prasannakotyal prasannakotyal temporarily deployed to kernelguard-api-control-plane May 7, 2026 15:48 — with GitHub Actions Inactive
@prasannakotyal prasannakotyal temporarily deployed to kernelguard-api-control-plane May 7, 2026 15:48 — with GitHub Actions Inactive
@prasannakotyal prasannakotyal temporarily deployed to kernelguard-api-control-plane May 7, 2026 15:48 — with GitHub Actions Inactive
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