Prompt-Injection Screening — PR #404 (NVIDIA/hyperflare-inference)
Key findings
- Screen result: All Clear. No prompt injection, no instruction-override text, no agent-directed content, and no covert code-execution or exfiltration mechanism exists anywhere in the 49 changed files or in the 11-comment discussion of PR #404 (
Add optional per-request activation steering for DeepSeek V4.1 cores, author jcartu, head8e5a1b0, open/ready-for-review, opened 2026-11-19, last updated 2026-11-25, +1794/−309, CI passed on head, review state: changes requested by yatesdr). - The two added files were read in full and are exactly what the description says: a local-file safetensors loader with strict validation (
ignition/recipes/deepseek41/steering.py, 112 lines) and plain pytest unit tests (tests/recipes/test_deepseek41_steering.py, 369 lines). No pickle, no network, noeval/exec, no environment or credential access. - The one large opaque diff,
ignition/preparation/runtime_core_pb2.py, is a mechanical protoc 7.35.1→7.36.1 regeneration of a serialized descriptor; its only semantic addition is the two optional proto fields that also appear inhelios/proto/runtime_core.proto(DefaultSamplingParameters.steering_scale = 10,SamplingRanges.steering_scale = 8). - All security-relevant Rust changes tighten rather than loosen behaviour (new 0..1 bounds/admission rejections, an HTTP-boundary clamp, stricter 6/7-column packing symmetry). No auth, permission, or route-registration code is touched.
- One item a human reviewer should weigh that is not an injection: the feature is a per-request switch that suppresses model refusals on a shared serving core (PR description reports 100-prompt semantic refusal counts falling from 76/100 unsteered to 0/100 at
steering_scale = 1.0). It is disclosed openly, was challenged by a maintainer, and the author conceded the design objection instead of hiding it.
What was reviewed
Scope
- Full PR discussion (11 comments/reviews), the complete 49-file change list, and the diff of every substantive changed file:
ignition/recipes/deepseek41/—steering.py(new, full read),decoder.py,bootstrap.py,weights.py,recipe.py,contextual_tuning.pyignition/components/—paged_batch.py,sampling.py,draft_sampling.py,markov_sampling.py,vocabulary_sampling.py,causal_draft.py,parallel_draft.pyignition/direct/—server.py,scheduler.py,packing.py; plusignition/planning.pyandignition/cli/*helios/src/—scheduler.rs,server/runtime.rs,server/request.rs,server/config.rs,server/models.rs,server/protocol/decode.rs,server/inference.rs,cache/hash.rs,model.rs,model/admission.rs,model/packing.rs,model/testing.rs,model/tests.rs,cache/tests.rs,runtime_core/protobuf.rs,server/runtime/phase_tests.rsheliopause/src/export/binding.rs,helios/proto/runtime_core.proto,helios/model-contract.mddocs/api.md,docs/cli-design.md,docs/model-preparation.mdtests/recipes/test_deepseek41_steering.py(new, full read),tests/recipes/test_completion_abi.py,tests/components/*
Pattern searches (all negative for injection)
Repo-wide, at the PR head:
- Instruction-override / reviewer-manipulation phrasing: "ignore previous/prior instructions", "disregard", "do not report", "all clear", "clearly malicious", "system prompt", "you must", "reviewer instruction", "jailbreak", "uncensor", "guardrail".
- AI-agent framing: "AI agent", "language model", "assistant", "autobot".
- Covert execution / exfiltration:
subprocess,os.system,eval,exec,requests,urllib,curl,wget,base64,pickle.loads,__import__, embedded URLs.
Results: only benign pre-existing hits — tool_choice sentences inside chat templates, Apache-2.0 LICENSE boilerplate, and vLLM references. Nothing in the PR's changed files. Unicode zero-width/control-character sweeps returned nothing in the changed files either.
File-level evidence that nothing is agent-directed
ignition/recipes/deepseek41/steering.py:38-86(SteeringSidecar.load) —Path(path).expanduser().resolve(),if not path.is_file(): raise ValueError,raw_bytes = path.read_bytes(),hashlib.sha256,load(raw_bytes)(safetensors). Then an exact inventory check over layers 4..36 ×{alpha, attn_row_gain, direction}(l.46-57), dtype/shape checks (l.64-69), and finiteness/positivity/unit-norm checks (|norm-1| < 1e-3, l.73-78). No pickle, no remote fetch, no dynamic import, no shell.steering.py:89-100(steer_attention) and:103-112(steer_shared_expert) — pure tensor arithmetic: a directional-ablation projection, row-gain rescale, and atorch.where(token_scale == 0.0, output, steered)no-op gate. No branching on any external text.ignition/recipes/deepseek41/decoder.py:237-241(post-attention reduction),:253-254(shared-expert partial beforemlp_reduce),:398-400(layer-24 suffix replaytoken_scalegather) — numeric plumbing only.helios/src/cache/hash.rs:41-48(PrefixHistory::with_steering_scale) — whensteering_scale != 0.the root Blake2b digest absorbsb"flare-steering-scale-v1\0"plussteering_scale.to_bits().to_le_bytes(); at0.0the historical digest is byte-identical, which is what preserves unsteered prefix-cache compatibility. Verified in code.helios/src/server/request.rs:530-538(sampling_number) — clamp to[0,1],-0.0canonicalisation to0.0; tests at l.895-922.helios/src/server/protocol/decode.rs:586-627— second spelling viachat_template_kwargs, duplicate-conflict detection, rejection on non-Chat/Completions endpoints; tests at l.985-1022.helios/src/model/packing.rs:176-190, 273-289, 506-527— two-way 6/7-column metadata/binding symmetry and packed-vs-plannedsteering_scaleequality. No capability-flag bypass exists.helios/src/model/admission.rs:74-80, 132-143— only adds a bounds rejection. Nothing loosened.heliopause/src/export/binding.rs:770-788— requires a zero default and exactly the 0..1 range; rejects otherwise. The same constraint is restated on load athelios/src/server/config.rs:119-125andhelios/src/runtime_core/protobuf.rs:89-110.ignition/components/sampling.py—_admission_validategains an in-kernel 0..1 steering check (l.743-752);PARAMETERS: tl.constexpr = 6remains the default across the score, admission, draft, markov and vocabulary-parallel kernels.- Docs additions —
docs/api.md:653-664,docs/cli-design.md:446,docs/model-preparation.md:570-583,helios/model-contract.md:69-73: all describe the feature; none is addressed to an automated reviewer or contains imperatives aimed at an agent. ignition/preparation/runtime_core_pb2.py— opaque regenerated descriptor; no readable strings beyond proto field/enum names; import performs only the standard protobuf builder.- Added-file inventory — exactly two added files, both reviewed in full. No
sitecustomize.py(not opened), noconftest.py(not opened) side effects, no new__init__.pyhooks, no.githubworkflow, no.githookschange, no new HTTP route, no auth/permission code.
Safety-relevant context (not an injection; flagged for the human reviewer)
The feature is, functionally, a per-request control that suppresses the served model's refusals:
- PR description, "Full-scale steering" bullet:
0/100semantic refusals (1/100keyword match) atsteering_scale = 1.0on the same core weights, versus90/100keyword refusals on the unsteered baseline; the semantic-classifier counts are76/100(baseline),75/100(steering enabled, omitted),69/100(explicit0.0), and0/100at1.0. - Reviewer yatesdr raised exactly this ("What the steering is for", comment 2026-11-20 14:47) plus a design Principle 1 objection about reading a per-request scalar inside a captured CUDA graph; jcartu accepted the Principle 1 objection (2026-11-21 17:29) and later repositioned the work as generic core-declared FP32 bindings in draft #505.
- A maintainer comment (yatesdr, 2026-11-21 18:01) endorses the direction and notes that earlier review text came from "the triage bot enforcing what it was told to enforce". That is an ordinary human disagreement inside a review thread — it contains no instruction to an automated agent and nothing in the PR responds to, or manipulates, an automated reviewer.
- Nothing is concealed: refusal metrics, the intended-use framing (config review at
0.0, authorized red-team at1.0), the +1794/−309 cost on shared paths, and the limitations (only thedeepseek41recipe; ~2–8%C=1decode throughput regression at1.0; one sidecar bound per core at export) are all stated in the description.
Non-blocking observations
steering.py:74-78validates alpha for finiteness and positivity but sets no upper bound, so a sidecar can carry an arbitrarily large per-layer alpha. Not a security boundary in this PR (the scale itself is clamped to[0,1]), but a robustness gap worth a follow-up.- The description's AI-disclosure section cites implausible model names ("Gemini 4 Carbon", "GPT-6.2 Astra", "Claude Fable 5.2", "Claude Opus 5.5"). This is sloppy provenance, not an attack, and it does not affect the screen result.
Open questions / what was not found
- No prompt injection, no injected instruction, no jailbreak content, no agent-directed text, and no exfiltration or remote-execution path was found in the diff, the added files, the docs, or the discussion.
- I did not execute the test suites or reproduce the 4×RTX PRO 6000 benchmarks; this is a security/provenance screen of the change and its discussion, not a correctness or performance review. The refusal-suppression mechanics themselves (measured 0/100 semantic refusals at
1.0) rest on the author's reported numbers and were not independently verified here.
Verdict: All Clear.