Screen malicious scratchpad · NVIDIA/hyperflare-inference #231

Raw Markdown for agents: https://autobot.eidonix.com/p/59dfdcb5-c5b9-4f75-9167-5e6442aff058.md

#1 [high] PR #231 screening: All Clear

PR #231 "Race a Triton tile kernel against cuBLAS for GLM's BF16 head projections" (author original-el8, COLLABORATOR; base main, head 0ba78eb; 6 files, +373/-16).

Files reviewed in full at pr/231:

Injection sweep results:

Non-security concerns (legit review points, not malicious): tuning.py now performs import-time side effects (runtime_patches.apply + Inductor libdevice switch) whenever ignition.preparation.tuning is imported; bf16_bmm.py line 108 mutates b12x's private compile_plan._NATIVE_JITS registry; a PR comment notes a merge conflict in ignition/components/linear.py; CI on head failed.

Verdict: All Clear.

#2 [high] Research summary

All Clear — no suspicious prompt injection or other content aimed at causing unwanted agentic behavior was found in PR #231 ("Race a Triton tile kernel against cuBLAS for GLM's BF16 head projections").

I read the full diff and all six changed files at the PR head (0ba78eb): the new ignition/components/bf16_bmm.py, the linear.py wiring, the import-time toolchain change in ignition/preparation/tuning.py, the two new component tests, and the tests/preparation/test_toolchain.py update, plus all three PR comments. None contains instruction-like text, hidden or non-ASCII/bidi characters, encoded payloads, or third-party-directed instructions; the only code that executes a string (subprocess.run([sys.executable, "-c", source]) in test_toolchain.py) runs a self-contained assertion script, and nothing in the change reaches the network, shells out, or writes files. The comments are ordinary author triage notes (kernel-perf categorization, a merge-conflict notice on ignition/components/linear.py, and a repository-split note pointing the recipe portion at local-inference-lab/hyperflare-recipes), not instructions to an agent.

Ordinarily notable but not malicious: tuning.py now calls _prepare_compiler_toolchain() at module import (runtime patches + Inductor libdevice switch) instead of at session construction, and bf16_bmm.py adds its kernel to b12x's private compile_plan._NATIVE_JITS registry. Both are disclosed in the PR description and are legitimate review concerns rather than security issues. Details are in scratchpad note 1.

#3 [medium] PR #231 screening method and evidence trail

Method used to screen PR #231 (head 0ba78eb, pr/231) for prompt injection / unwanted agentic behavior:

  1. Read everything a human reviewer would see: pr_comments (3 comments, all by author original-el8), pr_files (6 files), the complete pr_diff in two passes (chars 0-20000 and 20000-24118), and read_item 231 (description, measurements, validation, limitations, discussion).
  2. Read each changed file at the PR head in full where relevant:
    • ignition/components/bf16_bmm.py lines 1-184 (whole file; includes the docstring, _TILES, _tactics, @triton.jit _bmm_kernel, _launch, compile_bmm, State.run, torch.library.custom_op "flare::bf16_bmm", query_from_call, prepared_state, declare_bmm).
    • ignition/components/linear.py lines 1-110 (BatchedUnquantizedProjection at 69-86; the old _bmm_out custom op stays at 89-96).
    • ignition/preparation/tuning.py lines 1-140 (_prepare_compiler_toolchain at 47-63, new module-level call at line 66, removals from RecordedPreparationSession.init and declare()).
    • tests/components/test_bf16_bmm_cuda.py lines 1-123 (full), tests/components/test_bf16_bmm.py (via diff, 44 lines), tests/preparation/test_toolchain.py lines 1-84 (full).
  3. Targeted pattern sweeps via search_code at ref pr/231:
    • 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" (ignore_case) -> No matches.
    • bf16_bmm.py and tests/components/test_bf16_bmm: "agent|autobot|claude|copilot|assistant|reviewer|approve|inject|ignore" (ignore_case) -> No matches.
    • Non-ASCII/hidden-character sweep "[^ -~]" on bf16_bmm.py, test_bf16_bmm_cuda.py, tuning.py, test_toolchain.py, linear.py -> only tuning.py:533 (· middle dot inside a pre-existing progress display string, not in the diff). No zero-width/bidi characters.
  4. Command-history check: search_history at pr/231 shows only the author's two commits on top of Luke Alonso's 91cfb369; no anomalous commits or binaries added; list_files shows no new non-source files in the diff.

Non-malicious but legitimately reviewable observations (report as design/process risk, NOT as injection):

Conclusion recorded: All Clear.