Screen malicious scratchpad · NVIDIA/hyperflare-inference #574

Raw Markdown for agents: https://autobot.eidonix.com/p/9e1f3742-c3c0-4b93-b9a2-e18c5e62df9a.md

#1 [high] PR 574 injection screening — All Clear

PR #574 (NVIDIA/hyperflare-inference), head 628f361, 2 files, +54/-1, open, no comments/reviews, no CI checks. Author fordbmorris (no repo association); commit authored by "woooflet"; description signs off "Discord: woooflet".

Files:

  1. ignition/preparation/forward_metadata.py:42 — one-line change to _uses_custom_object_state: module prefix tuple ('ignition.', 'b12x.') -> ('ignition.', 'b12x.', 'hyperflare_recipes.'). Pure string prefix check; no import of hyperflare_recipes, so tests/preparation/test_core_boundary.py (lines 39-58, ast import scan) stays satisfied.
  2. tests/preparation/test_guard_code.py:252-302 — added _UnpicklableHandle, _RecipeKernelOwner (module set to hyperflare_recipes.*), _RecipeForward, and test_guard_pickler_strips_unguarded_attributes_from_recipe_objects. Test registers a synthetic module in sys.modules via monkeypatch (cleaned up), asserts roundtrip/parity/guard invalidation. No network, no file writes outside tmp, no exec outside the pre-existing subprocess test at lines 59-88.

Screening performed:

Non-security observations (benign, not injection):

Conclusion: no suspicious prompt injection or other items aimed at causing unwanted agentic behavior. Assessment: All Clear.

#2 [high] Research summary

Screened PR #574 (2 files, +54/-1: ignition/preparation/forward_metadata.py and tests/preparation/test_guard_code.py) for prompt injection and other attempts to induce unwanted agentic behavior.

No malicious or suspicious content found. The diff is exactly the claimed change: the _uses_custom_object_state module-prefix tuple at forward_metadata.py:42 gains 'hyperflare_recipes.', which is a plain string-prefix check requiring no import (so test_core_boundary.py's AST import scan stays satisfied), plus one self-contained test at test_guard_code.py:252-302 that registers a synthetic hyperflare_recipes module via monkeypatch and asserts pickle roundtrip, output parity, and guard invalidation.

Verified: no HTML comments or zero-width/control characters; no eval/exec/os.system/curl/base64/network/credential or filesystem access introduced (the only subprocess/exec in the file are pre-existing, in an unrelated cached-guard-source test at lines 59-88); no workflow, CI, dependency, or config files touched; PR discussion empty; no instruction-like text in code, docstrings, comments, or assertion messages. The description's "please run CI on the rebased tip" is a normal reviewer caveat, not a directive to an agent.

Two benign reviewer notes recorded in the scratchpad (not security issues): the sibling predicate at ignition/preparation/rebuild_manifest.py:365 still checks only ('b12x.', 'ignition.'), leaving extracted recipe objects unwalked there; and the new test mutates _RecipeKernelOwner.__module__ at class level before the monkeypatch, a harmless post-test side effect.

Assessment: All Clear.

#3 [medium] PR 574 — benign reviewer notes and screening evidence checklist

Companion to entry 1 (PR #574, head 628f361, 2 files, +54/-1).

Benign observations to surface separately from the security verdict (NOT injections, NOT malicious):

  1. Inconsistent predicate: ignition/preparation/rebuild_manifest.py:365 still uses type(value).__module__.startswith(('b12x.', 'ignition.')) when walking prepared objects for tensor paths. The PR widens only forward_metadata.py:42, so objects defined under hyperflare_recipes.* are still not walked in rebuild manifest path discovery — a possible coverage/consistency gap worth raising with the author.
  2. Test hygiene: tests/preparation/test_guard_code.py:283 sets _RecipeKernelOwner.__module__ = module_name at class level (a module-global mutation) while the sys.modules insertion at line 285 is monkeypatched; the class attribute change persists after the test. Harmless ordering/cleanup nit.

Backwards-compat/behavioral observation supporting "no weakening of guards": the new branch only converts unguarded attributes to torch._dynamo.guards._Missing (see ignition/preparation/aot.py:157-166, state dict comprehension keyed on id(value) in self.guard_tree_values), so traced/guarded attributes keep exact-equality guard checks. The new test asserts guard invalidation on a guarded scalar (True -> False -> True).

Negative-result checklist (things checked and found absent, supporting All Clear):

Verdict for the report: All Clear.