Skip to content

Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS

document why the mflux Popen call has no shell-injection surface

[._.]/ Adam Eivy60ef29a2d1fe
diff --git a/scripts/train_mflux_lora.py b/scripts/train_mflux_lora.py
index 3d06e4c012..3a1264dbb3 100644
--- a/scripts/train_mflux_lora.py
+++ b/scripts/train_mflux_lora.py
@@ -527,6 +527,10 @@ def run_segment(cmd, *, segment_target, state, last_reported, output_tail,
segment) — no boundary kill is armed.
"""
global CHILD
+ # `cmd` is always list-form (see build_command) and `shell` stays at its
+ # False default, so argv never reaches a shell — there is no injection
+ # surface here. Scanners periodically flag this line anyway; an explicit
+ # `shell=False` would be a no-op. See PR #2882 (closed).
CHILD = subprocess.Popen(
cmd, stdout=subprocess.PIPE, stderr=subprocess.STDOUT, text=True,
)