Injection / unwanted-agentic-behavior screen — NVIDIA/hyperflare-inference PR #231
Key findings
Result: All Clear. No prompt injection, hidden instruction, encoded payload, social-engineering lure, or other content aimed at causing unwanted agentic behavior was found anywhere in PR #231 — not in the description, the diff, the six changed files, the commit metadata, or the three PR comments.
- Description and comments are ordinary engineering text. "Race a Triton tile kernel against cuBLAS for GLM's BF16 head projections" (
read_item 231,pr_comments) reads as a kernel-performance write-up (behavior, measurements, validation, limitations). The three comments are all by the author,original-el8: a kernel-perf categorization note, a merge-conflict notice onignition/components/linear.py, and a repository-split note pointing the recipe portion atlocal-inference-lab/hyperflare-recipesas a follow-up. None addresses an AI agent, asks for approvals, or asks anyone to run something outside the diff. - No instruction-like or exfiltration phrasing in any changed file. A
search_codesweep at refpr/231forignore (all|any)?(previous|prior|above)|disregard|system prompt|you are an (ai|assistant|agent)|exfiltrat|base64|os.system|__import__|eval(|exec(|curl |wget |api[_-]?key|secret(case-insensitive) overignition/components/bf16_bmm.pyreturned no matches; the sweep foragent|autobot|claude|copilot|assistant|reviewer|approve|inject|ignoreoverbf16_bmm.pyandtests/components/*test_bf16_bmm*also returned no matches. - No hidden text. A
[^ -~]sweep acrossbf16_bmm.py,test_bf16_bmm_cuda.py,ignition/preparation/tuning.py,tests/preparation/test_toolchain.pyandlinear.pyfound exactly one non-ASCII byte: the·middle dot inside a pre-existing progress-display string atignition/preparation/tuning.py:533, which is not part of this diff. No zero-width joiners, no bidi overrides, no homoglyph tricks. - Nothing executes untrusted text, shells out to the network, or writes files. The single string-execution site in the change is
subprocess.run([sys.executable, "-c", source])intests/preparation/test_toolchain.py, wheresourceis a self-contained assertion script embedded in the test itself (printsCUDAOptions.extern_libs/ hash identity and asserts on them). Nocurl,wget,pip install,os.system,requests,socket, or file-write call appears in the diff (pr_diff). - Ordinary but non-malicious review concerns, reported below for completeness: an import-time side effect in
ignition/preparation/tuning.py, and a mutation of a third-party private registry inignition/components/bf16_bmm.py. Both are disclosed in the PR description and are design/process risks, not security findings.
Scope and method
Screen target: PR #231, base main, head 0ba78eb, 6 files, +373/−16, no reviews at time of screening, CI failing on head. Author original-el8, repository association COLLABORATOR.
What was read, in full:
| Artifact | Where |
|---|---|
| PR description, measurements, validation, limitations, discussion | read_item 231 |
| Conversation (3 comments, all author) | pr_comments |
| File list and per-file line counts | pr_files |
| Complete diff (two sequential passes) | pr_diff |
ignition/components/bf16_bmm.py (new file) |
lines 1–184 |
ignition/components/linear.py |
lines 1–110 |
ignition/preparation/tuning.py |
lines 1–140 |
tests/components/test_bf16_bmm_cuda.py |
lines 1–123 |
tests/components/test_bf16_bmm.py |
via diff, 44 lines |
tests/preparation/test_toolchain.py |
lines 1–84 |
| Commit history at the PR head | search_history, ref pr/231 |
The commit history check shows only the author's two commits on top of Luke Alonso's 91cfb369, and list_files at the PR head shows no new binary or non-source artifacts added by the diff — so there is no smuggled payload hiding in a changed-but-unreadable file.
Sweeps performed (with exact patterns)
- Instruction/payload phrasing —
search_codeatpr/231,ignore_case, pathignition/components/bf16_bmm.py:ignore (all|any)?(previous|prior|above)|disregard|system prompt|you are an (ai|assistant|agent)|exfiltrat|base64|os.system|__import__|eval(|exec(|curl |wget |api[_-]?key|secret→ no matches. - Agent-directed wording — same ref, paths
ignition/components/bf16_bmm.pyandtests/components/*test_bf16_bmm*:agent|autobot|claude|copilot|assistant|reviewer|approve|inject|ignore→ no matches. - Hidden characters —
search_codepattern[^ -~]over the five changed source/test files → onlyignition/preparation/tuning.py:533(a·in pre-existing display code, outside the diff).
What the changed code actually does (no-trust walk-through)
ignition/components/bf16_bmm.py(new, 1–184). Module docstring, a_TILEStile table, a_tacticsgenerator, a@triton.jit_bmm_kernel,_launch,compile_bmm, aState.run, atorch.library.custom_op("flare::bf16_bmm")wrapper,query_from_call,prepared_stateanddeclare_bmm. It is CUDA-kernel plumbing: no network access, no subprocess, noeval/exec, no dynamic import of external data, no file I/O. Validation moved here fromlinear.pyand rejects misaligned bases and non-contiguous rows atbf16_bmm.py:149-152.ignition/components/linear.py(1–110).BatchedUnquantizedProjection(69–86) now delegates tobf16_bmm.declare_bmm/execute; the previous local_bmm_outcustom op remains at 89–96. The relocations are mechanical.ignition/preparation/tuning.py(1–140)._prepare_compiler_toolchain()(47–63) is now invoked at module scope at line 66 and removed fromRecordedPreparationSession.__init__anddeclare(). Its callees areignition.runtime_patches.apply()and Inductor's_set_triton_libdevice_path— CPU-side monkey-patching described in the PR ("prepares the compiler toolchain … at import instead of at session construction"). Disclosed, and it does not reach outside the process.- Tests.
tests/components/test_bf16_bmm.py(44 lines) andtest_bf16_bmm_cuda.py(1–123) are numeric/ULP-equality and CUDA-graph-replay tests over the kernel.tests/preparation/test_toolchain.py(1–84) adds an"import"case and runs a subprocess-cscript that only asserts onCUDAOptionsextern_libsand hash identity; the embedded source is self-contained and does nothing else.
Non-malicious but reviewable (design / process, reported as risk only)
These are named here so the report is not read as "nothing worth a reviewer's attention"; none is evidence of injection.
- Import-time side effects in
ignition/preparation/tuning.py:66. Importingignition.preparation.tuningnow runs_prepare_compiler_toolchain()—ignition.runtime_patches.apply()(which monkey-patches Triton/torch internals, perignition/runtime_patches/__init__.py:90-129) plus Inductor's_set_triton_libdevice_path— for every importer, including test collection. This is a real blast-radius question, acknowledged in the PR description, and it is an ordering requirement for the new CUDA tests rather than a covert capability. - Private-registry mutation at
ignition/components/bf16_bmm.py:108. The kernel is added to b12x'scompile_plan._NATIVE_JITSso compile workers evict its deferred planning entries. Disclosed in the PR limitations ("b12x evicts only kernels defined in its own modules otherwise"). Fragile coupling to another project's internals, not a security issue. - Validation relocation. Strided-batch validation moved from
BatchedUnquantizedProjection.__init__intobf16_bmm.query_from_call(linear.py:76-82), which is also the path that builds the query, so coverage is retained but its location changed — worth a reviewer's confirmation that no call path bypasses it. - Stale head / failing CI. A PR comment dated 2026-11-13 reports an unresolved merge conflict in
ignition/components/linear.pyagainstmainat97cfeb0, so the head is stale; CI on the head commit fails (orientation packet). Neither is a security signal, and the conflict is in a file whose real content I read at the head.
Open questions and what could not be verified
- CI failure cause not determined. CI on head
0ba78ebis failing, but I screened for injected content rather than diagnosing the build; whether the failure is the merge conflict, the GPU-gated tests, or something else is unchecked. - No local execution. Nothing in this diff was run. The claims that "every tile is bitwise equal to
torch.bmm" and the GB10 timing table come from the PR description and were not reproduced; they are performance/correctness claims, not injection risks, so they were not verified. - Linked follow-up repository not inspected. The comment pointing the recipe portion at
local-inference-lab/hyperflare-recipeswas treated as a triage note; I did not audit that repository. If the follow-up work there is in scope for a future screen, it is a separate target. - Base-branch drift. The PR is 18 days old with an unresolved conflict, so a re-screen at merge time would be worthwhile — a stale head can acquire new content before merge.
- Nothing else outstanding. No malicious item was found; per the task's instruction, the turn ends with the "All Clear" verdict rather than a "Clearly Malicious" escalation.