Skills/PyPI/sn1per-mcp

sn1per-mcp@0.9.0

CAUTION· not started

Publisher claims: "Run scoped, authorized Sn1per pentest, recon and attack surface scans from AI agents; read findings." Observed in sandbox: no network, touches nothing outside the project, writes no memory.

Registry PyPI (MCP server)Publisher 1n3 · publishing for 32 daysInstalls 133Last detonated 1 h ago

Coverage

Not started: dependency install failed; the server itself was not observed.
Tested
the dependency install step · every file read, file written and host contacted by what ran
Not tested
server startup · the tool list · tool behavior

What this means for the label: Caution here covers what ran. The server's tools were not exercised with a real credential, so nothing about their behavior is asserted; the credential summary below says what to do with that.

Before you give it your token

It will ask for
no credential variables read in the code
Where it talks to
sn1persecurity.com (its own)Also app.test — not the publisher's domain; check what for before connecting.
What the honeypot saw
no credential files read · no network
What we could not test
server startup · the tool list · tool behavior

Connect it under the guard. Not started: dependency install failed; the server itself was not observed. The code names no credential variable and talks to sn1persecurity.com, its own; the guard pins the network to what the honeypot saw and logs every call.

$vet-skills run --net declared -- uvx sn1per-mcp

Never paste a credential into a chat, a ticket or a report, including ours. How the guard holds it.

Is [email protected] safe to install?

KillerSkills ran it in the KillerSkills honeypot sandbox (2 scenarios; not started: dependency install failed; the server itself was not observed) on 2026-11-18 and scored it 74/100 (Caution). It is not known to be malicious, but it has behaviour or code a security policy should decide on before install. Notable findings: Privileged sudo command; Privileged sudo command; Privileged sudo command. Summary: no network, touches nothing outside the project, writes no memory.

Behavior trace

Honeypot run · 1 s · 2 scenarios · 0 deviations
t+CategoryObserved action
0.0sprocessno install scripts in bundle
0.1sprocessdependency install exit 1 ·
0.1sclaimednot started: dependency install failed (exit 1); the server itself was not observed
0.1sprocessscript backend runs setup only
0.1sprocessno install scripts to re-run

Static findings

HIGH
Privileged sudo commandsrc/sniper_mcp/plugins.py:47 · Privileged sudo command — agent may execute with elevated privileges"Plugins run inside the Sn1per MCP Server process with the same user, the same sudo "Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.
AST05
HIGH
Privileged sudo commandsrc/sniper_mcp/proc.py:10 · Privileged sudo command — agent may execute with elevated privilegesA scan that runs through sudo is started by the terminal holder (D.5, L.6): thisFix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.
AST05
HIGH
Privileged sudo commandsrc/sniper_mcp/proc.py:40 · Privileged sudo command — agent may execute with elevated privileges# for the holder to report the pid of the sudo process it started.Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.
AST05
HIGH
Privileged sudo commandsrc/sniper_mcp/jobs.py:1020 · Privileged sudo command — agent may execute with elevated privileges# The recorded process, the sudo process the terminal holder started (it outlivesFix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.
AST05
HIGH
Privileged sudo commandsrc/sniper_mcp/jobs.py:666 · Privileged sudo command — agent may execute with elevated privileges# L.6: sudo gets a controlling terminal from the terminal holder, so aFix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.
AST05
HIGH
Privileged sudo commandsrc/sniper_mcp/edition.py:104 · Privileged sudo command — agent may execute with elevated privilegesreturn f"sudo chown root:root {self.realpath}"Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.
AST05
HIGH
Privileged sudo commandsrc/sniper_mcp/jobs.py:454 · Privileged sudo command — agent may execute with elevated privileges"""The sudo process the terminal holder started (L.6), when its start time is knownFix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.
AST05
HIGH
Privileged sudo commandsrc/sniper_mcp/proc.py:12 · Privileged sudo command — agent may execute with elevated privilegespseudo-terminal. Without a terminal sudo does not apply ``use_pty`` and relays aFix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.
AST05
HIGH
Privileged sudo commandsrc/sniper_mcp/proc.py:14 · Privileged sudo command — agent may execute with elevated privileges11.x scan (whose body runs in a subshell piped to ``tee``). With one, sudo runs theFix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.
AST05
HIGH
Privileged sudo commandsrc/sniper_mcp/proc.py:11 · Privileged sudo command — agent may execute with elevated privilegesmodule run as ``python -m sniper_mcp.proc``, which gives sudo a controllingFix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.
AST05
HIGH
Privileged sudo commandsrc/sniper_mcp/paths.py:53 · Privileged sudo command — agent may execute with elevated privileges# Preferred sudo binary (D.5); `shutil.which("sudo")` is the fallback.Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.
AST05
HIGH
Privileged sudo commandsrc/sniper_mcp/jobs.py:718 · Privileged sudo command — agent may execute with elevated privileges# L.6: "terminal" when pid is the terminal holder and front_pid the sudoFix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.
AST05
HIGH
Privileged sudo commandsrc/sniper_mcp/edition.py:179 · Privileged sudo command — agent may execute with elevated privilegesreturn f"sudo ln -s {cli_realpath} {paths.ENGINE_PATH_HINT_LINK}"Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.
AST05
HIGH
Privileged sudo commandsrc/sniper_mcp/jobs.py:848 · Privileged sudo command — agent may execute with elevated privilegesalive = True # the terminal holder is gone but sudo still runs the scan (L.6)Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.
AST05
HIGH
Privileged sudo commandserver.json:139 · Privileged sudo command — agent may execute with elevated privileges"hostRequirements": "Runs beside a local Sn1per install (CE 9.x or the 11.x engine). Scan and delete tools need root through a passwordless sudo rule for the Sn1per CLI; read tools run unprivileged.",Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.
AST05
MEDIUM
Python subprocess execution detectedtests/test_guard.py:251 · Python subprocess execution detectedsubprocess.run(["tool"], env=env, check=True, timeout=60, **kwargs)Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Python subprocess execution detectedtests/test_guard.py:57 · Python subprocess execution detected (subprocess.Popen via from)StalePopen([realpaths.SNIPER_SHARE_CLI, "-t", "app.example", "-m", "stealth"])Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Python subprocess execution detectedtests/test_guard.py:383 · Python subprocess execution detected"relative-entry": lambda: subprocess.run(Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
HIGH
Access to sensitive file pathssrc/sniper_mcp/tools/status.py:59 · Access to sensitive file paths — SSH keys, AWS credentials, env files, or system files'Add a sudoers drop-in with "sudo visudo -f /etc/sudoers.d/sn1per-mcp" containing this 'Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.
AST05
MEDIUM
Python subprocess execution detectedsrc/sniper_mcp/proc.py:313 · Python subprocess execution detectedchild = subprocess.Popen(command, stdin=subprocess.DEVNULL, close_fds=True,Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Python subprocess execution detectedsrc/sniper_mcp/proc.py:385 · Python subprocess execution detectedproc = subprocess.Popen(Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Python subprocess execution detectedtests/test_guard.py:280 · Python subprocess execution detectedsubprocess.Popen(["tool"], env={"PATH": "bin"}, cwd=str(c_dir),Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
HIGH
Privileged sudo commandsrc/sniper_mcp/tools/status.py:52 · Privileged sudo command — agent may execute with elevated privileges'Add a sudoers drop-in with "sudo visudo -f /etc/sudoers.d/sn1per-mcp" containing this 'Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.
AST05
MEDIUM
Python subprocess execution detectedsrc/sniper_mcp/proc.py:235 · Python subprocess execution detectedprocess = subprocess.Popen(Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
HIGH
Privileged sudo commandsrc/sniper_mcp/tools/status.py:140 · Privileged sudo command — agent may execute with elevated privileges"""Root, or a trusted sudo whose passwordless rule allows the CLI (L.2, D.5).Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.
AST05
MEDIUM
Python subprocess execution detectedtests/test_guard.py:301 · Python subprocess execution detectedsubprocess.run(["bin/tool"], cwd=str(c_dir), check=True, timeout=60,Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
HIGH
Privileged sudo commandsrc/sniper_mcp/tools/status.py:85 · Privileged sudo command — agent may execute with elevated privileges# so the not_root refusal (SNIPER_NEEDS_SUDO=false, not root) shows not_checked: sudoFix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.
AST05
MEDIUM
Python subprocess execution detectedsrc/sniper_mcp/proc.py:459 · Python subprocess execution detectedproc = subprocess.Popen(Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
HIGH
Access to sensitive file pathssrc/sniper_mcp/tools/status.py:52 · Access to sensitive file paths — SSH keys, AWS credentials, env files, or system files'Add a sudoers drop-in with "sudo visudo -f /etc/sudoers.d/sn1per-mcp" containing this 'Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.
AST05
MEDIUM
Python subprocess execution detectedtests/test_cli.py:189 · Python subprocess execution detectedresult = subprocess.run([sys.executable, "-m", "sniper_mcp", "--version"],Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Python subprocess execution detectedscripts/mcp-call.py:153 · Python subprocess execution detectedproc = subprocess.Popen(command, stdin=subprocess.PIPE, stdout=subprocess.PIPE,Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Python subprocess execution detectedtests/test_guard.py:170 · Python subprocess execution detectedassert subprocess.run([realpaths.TRUE_BIN], check=False).returncode == 0Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Python subprocess execution detectedtests/test_guard.py:387 · Python subprocess execution detected"empty-entry": lambda: subprocess.run(Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
HIGH
Privileged sudo commandsrc/sniper_mcp/tools/scan.py:573 · Privileged sudo command — agent may execute with elevated privilegesf"them from a shell with: sudo kill {listed}")Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.
AST05
MEDIUM
Python subprocess execution detectedtests/test_guard.py:90 · Python subprocess execution detectedsubprocess.Popen([sys.executable, "-I", "-c", "pass"], env=env)Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
HIGH
Privileged sudo commandsrc/sniper_mcp/tools/scan.py:574 · Privileged sudo command — agent may execute with elevated privilegesreturn text + (f" (or their whole sessions with: sudo pkill -TERM -s {groups})"Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.
AST05
MEDIUM
Python subprocess execution detectedsrc/sniper_mcp/proc.py:155 · Python subprocess execution detectedreturn subprocess.Popen(Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Python subprocess execution detectedtests/guard/hook.py:1269 · Python subprocess execution detected"fork_exec outside an approved subprocess.Popen (multiprocessing, a direct "Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
HIGH
Privileged sudo commandsrc/sniper_mcp/tools/status.py:59 · Privileged sudo command — agent may execute with elevated privileges'Add a sudoers drop-in with "sudo visudo -f /etc/sudoers.d/sn1per-mcp" containing this 'Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.
AST05
MEDIUM
Python subprocess execution detectedtests/test_guard.py:292 · Python subprocess execution detectedsubprocess.Popen(["bin/tool"], cwd=str(a_dir), preexec_fn=lambda: os.chdir(c_dir))Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Python subprocess execution detectedtests/test_guard.py:78 · Python subprocess execution detectedos.execv(realpaths.TRUE_BIN, [realpaths.TRUE_BIN])Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Python subprocess execution detectedtests/test_guard.py:255 · Python subprocess execution detectedsubprocess.run(["tool"], env=env, check=False, timeout=60, **kwargs)Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Python subprocess execution detectedtests/test_guard.py:62 · Python subprocess execution detectedsubprocess.Popen([realpaths.TRUE_BIN, realpaths.SNIPER_SHARE_CLI])Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
HIGH
Privileged sudo commandsrc/sniper_mcp/tools/status.py:99 · Privileged sudo command — agent may execute with elevated privilegesreturn ToolError("cli_untrusted", "The Sn1per CLI is not owned by root, so a sudo "Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.
AST05
MEDIUM
OS command execution function call detectedtests/test_guard.py:76 · OS command execution function call detectedos.system("true")Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.
AST05
MEDIUM
Python subprocess execution detectedtests/test_guard.py:49 · Python subprocess execution detectedsubprocess.Popen([realpaths.SUDO_BIN, "-n", "true"])Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Python subprocess execution detectedtests/test_guard.py:83 · Python subprocess execution detectedsubprocess.Popen([sys.executable, "-c", "pass"], env={"PATH": "/nonexistent"})Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Python subprocess execution detectedtests/test_guard.py:385 · Python subprocess execution detected"dot-relative-entry": lambda: subprocess.run(Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Python subprocess execution detectedtests/test_guard.py:284 · Python subprocess execution detectedsubprocess.Popen(["tool"], env={"PATH": f"{iso.tmp / 'A' / 'bin'}:"},Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Python subprocess execution detectedtests/test_guard.py:218 · Python subprocess execution detectedchild = subprocess.Popen([sys.executable, "-c", "pass"], cwd=str(iso.tmp),Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
HIGH
Privileged sudo commandsrc/sniper_mcp/tools/destructive.py:105 · Privileged sudo command — agent may execute with elevated privileges"shell: sudo sniper -w {workspace} -d")Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.
AST05
MEDIUM
Python subprocess execution detectedtests/test_guard.py:103 · Python subprocess execution detectedsubprocess.Popen([sys.executable, *argv], env=iso.child_env())Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Python subprocess execution detectedtests/test_guard.py:67 · Python subprocess execution detectedos.posix_spawn(realpaths.TRUE_BIN, [realpaths.TRUE_BIN], {})Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Python subprocess execution detectedtests/test_cli.py:198 · Python subprocess execution detectedresult = subprocess.run([sys.executable, "-m", "sniper_mcp"], env=env, input="",Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Python subprocess execution detectedtests/test_guard.py:108 · Python subprocess execution detectedresult = subprocess.run([sys.executable, "--check-hash-based-pycs", "default", "-c", code],Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Python exec or eval of computed codetests/guard/hook.py:1200 · Python exec or eval of computed codeto exec (a missing interpreter, no shebang) would fall through to theFix: Put hosts, commands and strings in plain source. Decoding at runtime looks identical to malware and costs points on its own.
AST05
HIGH
Privileged sudo commandsrc/sniper_mcp/tools/destructive.py:180 · Privileged sudo command — agent may execute with elevated privilegesf"{problem}.", f"sudo chmod go-w {path}")Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.
AST05
MEDIUM
Python subprocess execution detectedtests/test_guard.py:216 · Python subprocess execution detectedchild = subprocess.Popen([realpaths.TRUE_BIN], cwd=str(iso.tmp), start_new_session=True)Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Python subprocess execution detectedtests/test_guard.py:672 · Python subprocess execution detected"str-and-bytes-path": lambda: subprocess.Popen(Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Python subprocess execution detectedtests/test_guard.py:563 · Python subprocess execution detected"n3c-path-like-argument-fork-exec": lambda: subprocess.run(Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Python subprocess execution detectedtests/test_guard.py:677 · Python subprocess execution detected"bytes-subclass-argument": lambda: subprocess.Popen(Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Python subprocess execution detectedtests/test_guard.py:934 · Python subprocess execution detectedreturn subprocess.run([grep, "-c", "ran", secret], close_fds=False,Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Python subprocess execution detectedtests/test_guard.py:918 · Python subprocess execution detectedreturn subprocess.run([grep, "-c", "ran", pathlib.PosixPath(inside)],Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Python subprocess execution detectedtests/test_guard.py:460 · Python subprocess execution detectedresult = subprocess.run([sys.executable, "-c", _OUTSIDE_PROBE, str(outside),Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Python subprocess execution detectedtests/test_guard.py:675 · Python subprocess execution detected"path-like-argument": lambda: subprocess.Popen([true_bin, _PathLike(str(iso.tmp))]),Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Python subprocess execution detectedtests/test_guard.py:401 · Python subprocess execution detected"link-through-proc-self-cwd": lambda: subprocess.run([link], cwd="/", timeout=30),Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Python subprocess execution detectedtests/test_guard.py:415 · Python subprocess execution detectedsubprocess.run([grep, "-c", "ran", "/proc/self/fd/0/" + relative + "/tool"],Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Python subprocess execution detectedtests/test_guard.py:697 · Python subprocess execution detectedsubprocess.run([stub, "pathlib"], cwd=iso.tmp, check=True, timeout=60)Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Python subprocess execution detectedtests/test_guard.py:671 · Python subprocess execution detected"environb": lambda: subprocess.Popen([true_bin], env=os.environb),Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Python subprocess execution detectedtests/test_guard.py:681 · Python subprocess execution detected"path-like-cwd": lambda: subprocess.Popen([true_bin], cwd=_PathLike(str(iso.tmp))),Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Python subprocess execution detectedtests/test_guard.py:674 · Python subprocess execution detected"int-value": lambda: subprocess.Popen([true_bin], env={**path, "X": 1}),Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
OS command execution function call detectedtests/test_guard.py:997 · OS command execution function call detectedpatch_environ_decodevalue(once(lambda: os.system(mark + " x6")))Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.
AST05
MEDIUM
Python subprocess execution detectedtests/test_guard.py:408 · Python subprocess execution detected"grep-reads-through-thread-self-cwd-dotdot": lambda: subprocess.run(Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Python subprocess execution detectedtests/test_guard.py:566 · Python subprocess execution detected"n3s-path-like-argument-posix-spawn": lambda: subprocess.run(Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Python subprocess execution detectedtests/test_guard.py:419 · Python subprocess execution detectedlambda fd: subprocess.run(["/proc/self/fd/0"], stdin=fd, timeout=30))),Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Python subprocess execution detectedtests/test_guard.py:402 · Python subprocess execution detected"grep-reads-through-proc-self-cwd": lambda: subprocess.run(Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Python subprocess execution detectedtests/test_guard.py:518 · Python subprocess execution detectedf"run = subprocess.run([{mark!r}, {name!r}], timeout=30).returncode\\n"Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Python subprocess execution detectedtests/test_guard.py:907 · Python subprocess execution detectedreturn subprocess.run([grep, "-c", "ran", poisoned(inside, secret)],Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
OS command execution function call detectedtests/test_guard.py:966 · OS command execution function call detectedreturn os.system(mark + " x1")Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.
AST05
MEDIUM
Python subprocess execution detectedtests/test_guard.py:399 · Python subprocess execution detected"proc-self-cwd-path-entry": lambda: subprocess.run(Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Python subprocess execution detectedtests/test_guard.py:421 · Python subprocess execution detectedlambda: with_fd(outside_bin, lambda fd: subprocess.run(Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Python subprocess execution detectedtests/test_guard.py:405 · Python subprocess execution detected"grep-reads-through-proc-self-cwd-dotdot": lambda: subprocess.run(Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Python subprocess execution detectedtests/test_guard.py:786 · Python subprocess execution detectedf" run = subprocess.run([{mark!r}, {tag!r}], timeout=30).returncode\\n"Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Python subprocess execution detectedtests/test_guard.py:521 · Python subprocess execution detectedreturn subprocess.run([sys.executable, *flags, "-c", code], capture_output=True,Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Python subprocess execution detectedtests/test_guard.py:790 · Python subprocess execution detecteddone = subprocess.run([sys.executable, *flags, "-c", code], capture_output=True,Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Python subprocess execution detectedtests/test_guard.py:606 · Python subprocess execution detectedresult = subprocess.run([sys.executable, "-c", _DIVERGENCE_PROBE, str(outside),Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
OS command execution function call detectedtests/test_guard.py:969 · OS command execution function call detectedreturn os.system(mark + " x1r")Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.
AST05
MEDIUM
Python subprocess execution detectedtests/test_guard.py:393 · Python subprocess execution detected"preexec-with-cwd": lambda: subprocess.run(Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Python subprocess execution detectedtests/test_guard.py:910 · Python subprocess execution detectedreturn subprocess.run([grep, "-c", "ran", poisoned(inside, secret)], cwd=root,Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Python subprocess execution detectedtests/test_guard.py:679 · Python subprocess execution detected"path-like-executable": lambda: subprocess.Popen(Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Python subprocess execution detectedtests/test_guard.py:1009 · Python subprocess execution detectedreturn os.posix_spawn(true, [Shown("x")], {})Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Python subprocess execution detectedtests/test_guard.py:395 · Python subprocess execution detected"proc-self-cwd-executable": lambda: subprocess.run(Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Python subprocess execution detectedtests/test_guard.py:391 · Python subprocess execution detected"preexec-partial": lambda: subprocess.run(Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Python subprocess execution detectedtests/test_guard.py:669 · Python subprocess execution detected"dict-subclass": lambda: subprocess.Popen(Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Python subprocess execution detectedtests/test_guard.py:389 · Python subprocess execution detected"preexec-chdir-sudo": lambda: subprocess.run(Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Python subprocess execution detectedtests/test_guard.py:397 · Python subprocess execution detected"proc-thread-self-cwd-executable": lambda: subprocess.run(Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Python subprocess execution detectedtests/test_guard.py:1014 · Python subprocess execution detectedreturn os.posix_spawn(true, [Hidden("x")], {})Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
OS command execution function call detectedtests/test_guard.py:1007 · OS command execution function call detectedos.system(mark + " x7")Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.
AST05
MEDIUM
Python subprocess execution detectedtests/test_guard.py:699 · Python subprocess execution detectedsubprocess.run([str(stub), "posix-spawn-shape"], close_fds=False, check=True, timeout=60)Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Python subprocess execution detectedtests/test_guard.py:703 · Python subprocess execution detectedresult = subprocess.run([sys.executable, "-c", code], cwd=iso.tmp, env=env,Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
OS command execution function call detectedtests/test_guard.py:1024 · OS command execution function call detectedos.system(mark + " " + attack[:3].rstrip("-"))Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.
AST05
MEDIUM
Python subprocess execution detectedtests/test_guard.py:698 · Python subprocess execution detectedsubprocess.run([os.fsencode(str(stub)), b"bytes"], env=os.environ, check=True, timeout=60)Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Python subprocess execution detectedtests/test_guard.py:1028 · Python subprocess execution detectedchild = subprocess.Popen([sleep, "30"], cwd=root)Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Python subprocess execution detectedtests/test_guard.py:998 · Python subprocess execution detectedreturn subprocess.run([true], env=os.environ, cwd=root, timeout=30)Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Python subprocess execution detectedtests/test_guard.py:938 · Python subprocess execution detectedreturn subprocess.run([grep, "-c", "ran", secret], cwd=root,Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Python subprocess execution detectedtests/test_guard.py:411 · Python subprocess execution detected"grep-reads-through-a-link-then-dotdot": lambda: subprocess.run(Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Python subprocess execution detectedtests/test_guard.py:676 · Python subprocess execution detected"str-subclass-argument": lambda: subprocess.Popen([true_bin, _Str("x")]),Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Python subprocess execution detectedtests/test_guard.py:1002 · Python subprocess execution detectedsubprocess.run([true], env=os.environ, cwd=root, timeout=30)Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Python subprocess execution detectedtests/test_guard.py:1471 · Python subprocess execution detectedresult = subprocess.run(Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
File permission modification commandsrc/sniper_mcp/edition.py:102 · File permission modification command — agent changes file ownership/permissions"""The ``cli_untrusted`` hint (C.2 step 1): chown only a file root placed."""Fix: Request the narrowest permission that works; replace wildcards with the exact paths or hosts.
AST05
MEDIUM
Python subprocess execution detectedtests/test_guard.py:1579 · Python subprocess execution detectedlambda: subprocess.Popen(["tool"], cwd=str(iso.tmp),Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Process kill commandsrc/sniper_mcp/tools/scan.py:573 · Process kill command — agent can terminate processesf"them from a shell with: sudo kill {listed}")Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.
AST05
MEDIUM
Python subprocess execution detectedtests/test_guard.py:1507 · Python subprocess execution detectedseen = subprocess.run([str(stub)], cwd=str(iso.tmp), capture_output=True, text=True,Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Python subprocess execution detectedtests/test_guard.py:1217 · Python subprocess execution detectedreturn subprocess.run([sys.executable, "-c", _SUBVERSION_PROBE, attack, str(outside),Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Python subprocess execution detectedtests/test_guard.py:1567 · Python subprocess execution detectedlambda: subprocess.Popen(["tool"], cwd=str(iso.tmp), env={"PATH": via_cwd}),Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Python subprocess execution detectedtests/test_guard.py:1578 · Python subprocess execution detectedlambda: subprocess.Popen([via_stdin]),Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Python subprocess execution detectedtests/test_guard.py:1581 · Python subprocess execution detectedlambda: subprocess.Popen([str(stub)], cwd=via_stdin),Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Python subprocess execution detectedtests/test_guard.py:1568 · Python subprocess execution detectedlambda: subprocess.Popen([realpaths.TRUE_BIN, os.path.join(via_cwd, "tool")]),Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Process kill commandsrc/sniper_mcp/tools/scan.py:569 · Process kill command — agent can terminate processesf"them with: kill -9 {listed}")Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.
AST05
MEDIUM
Python subprocess execution detectedtests/test_guard.py:1646 · Python subprocess execution detectedcontrol = subprocess.run([sys.executable, "-c", code], cwd=str(iso.tmp),Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Python subprocess execution detectedtests/test_guard.py:1605 · Python subprocess execution detectedsubprocess.Popen([realpaths.TRUE_BIN, argument])Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Python subprocess execution detectedtests/test_guard.py:1575 · Python subprocess execution detectedlambda: subprocess.Popen([realpaths.TRUE_BIN, os.path.join(via_stdin, "tool")]),Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
File permission modification commandsrc/sniper_mcp/edition.py:71 · File permission modification command — agent changes file ownership/permissions"not group- or world-writable. Do not chown the current file to root: other local "Fix: Request the narrowest permission that works; replace wildcards with the exact paths or hosts.
AST05
MEDIUM
Python subprocess execution detectedtests/test_guard.py:1576 · Python subprocess execution detectedlambda: subprocess.Popen([realpaths.TRUE_BIN,Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Python subprocess execution detectedtests/test_guard.py:1887 · Python subprocess execution detectedchild = subprocess.Popen([realpaths.SLEEP_BIN, "30"], start_new_session=True)Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Python subprocess execution detectedtests/test_guard.py:1569 · Python subprocess execution detectedlambda: subprocess.Popen([os.path.join(proc, "self", "root", str(stub).lstrip("/"))]),Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Python subprocess execution detectedtests/test_guard.py:2003 · Python subprocess execution detectedsubprocess.Popen([{realpaths.SUDO_BIN!r}, "-n", "true"])Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Python subprocess execution detectedtests/test_guard.py:1676 · Python subprocess execution detectedos.posix_spawn(sys.executable, argv, env)Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Python subprocess execution detectedtests/test_guard.py:1705 · Python subprocess execution detectedsubprocess.Popen([sys.executable, "-c", "pass"], env=env)Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Python subprocess execution detectedtests/test_guard.py:1797 · Python subprocess execution detectedsubprocess.Popen([str(named_sudo)])Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Python subprocess execution detectedtests/test_guard.py:1713 · Python subprocess execution detectedsubprocess.Popen([realpaths.TRUE_BIN], env=env)Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Python subprocess execution detectedtests/test_guard.py:1501 · Python subprocess execution detectedunseen = subprocess.run([str(stub)], cwd=str(iso.tmp), capture_output=True, text=True,Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
File permission modification commandsrc/sniper_mcp/tools/destructive.py:180 · File permission modification command — agent changes file ownership/permissionsf"{problem}.", f"sudo chmod go-w {path}")Fix: Request the narrowest permission that works; replace wildcards with the exact paths or hosts.
AST05
MEDIUM
Python subprocess execution detectedtests/test_guard.py:1813 · Python subprocess execution detectedresult = subprocess.run(Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Python subprocess execution detectedtests/test_guard.py:1096 · Python subprocess execution detecteddone_run = subprocess.run([grep, "", "secret.txt"], env=os.environ,Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Python subprocess execution detectedtests/test_guard.py:1574 · Python subprocess execution detectedlambda: subprocess.Popen([realpaths.TRUE_BIN, os.path.join(str(link_dir), "..", "x")]),Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Python subprocess execution detectedtests/test_guard.py:2388 · Python subprocess execution detectedresult = subprocess.run([sys.executable, "-c", code], env=env,Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Python subprocess execution detectedtests/test_guard.py:1931 · Python subprocess execution detectedreturn subprocess.run([str(path), *args], env=env, cwd="/", capture_output=True,Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Python subprocess execution detectedtests/test_guard.py:1655 · Python subprocess execution detectedchild = subprocess.Popen(argv, cwd=str(iso.tmp), start_new_session=True,Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Python subprocess execution detectedtests/test_guard.py:1566 · Python subprocess execution detectedlambda: subprocess.Popen([os.path.join(via_cwd, "tool")], cwd=str(iso.tmp)),Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Python subprocess execution detectedtests/test_guard.py:1659 · Python subprocess execution detectedos.posix_spawn(sys.executable, argv, {"PATH": realpaths.MINIMAL_ENV_PATH})Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Python subprocess execution detectedtests/test_guard.py:2398 · Python subprocess execution detectedresult = subprocess.run(Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Python subprocess execution detectedtests/test_guard.py:1582 · Python subprocess execution detectedlambda: subprocess.Popen([str(stub)], cwd=os.path.join(via_cwd, "..")),Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Python subprocess execution detectedtests/test_guard.py:1644 · Python subprocess execution detectedsubprocess.Popen([sys.executable, "-c", code], cwd=str(iso.tmp), env=env)Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Python subprocess execution detectedtests/test_guard.py:2385 · Python subprocess execution detectedf" subprocess.Popen([{realpaths.SUDO_BIN!r}, '-n', 'true'])\\n"Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Python subprocess execution detectedtests/test_guard.py:2014 · Python subprocess execution detectedresult = subprocess.run(Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Python subprocess execution detectedtests/test_guard.py:1460 · Python subprocess execution detectedresult = subprocess.run([sys.executable, "-c", CODE, planter], env=env,Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Python subprocess execution detectedtests/test_guard.py:1792 · Python subprocess execution detectedsubprocess.Popen([realpaths.TRUE_BIN, str(link)])Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Python subprocess execution detectedtests/test_guard.py:1771 · Python subprocess execution detectedresult = subprocess.run([sys.executable, "-c", code], env=env, capture_output=True,Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Python subprocess execution detectedtests/test_guard.py:1979 · Python subprocess execution detectedsubprocess.Popen([realpaths.SUDO_BIN, "-n", "true"])Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
File permission modification commandsrc/sniper_mcp/edition.py:104 · File permission modification command — agent changes file ownership/permissionsreturn f"sudo chown root:root {self.realpath}"Fix: Request the narrowest permission that works; replace wildcards with the exact paths or hosts.
AST05
MEDIUM
Python subprocess execution detectedtests/test_guard.py:1671 · Python subprocess execution detectedresult = subprocess.run(argv, env=env, close_fds=False, capture_output=True, text=True,Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Python subprocess execution detectedtests/test_guard.py:1572 · Python subprocess execution detectedlambda: subprocess.Popen([realpaths.TRUE_BIN,Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
File permission modification commandsrc/sniper_mcp/tools/status.py:98 · File permission modification command — agent changes file ownership/permissions# The chown hint names the path only when root placed the file (C.2 step 1).Fix: Request the narrowest permission that works; replace wildcards with the exact paths or hosts.
AST05
MEDIUM
Python subprocess execution detectedtests/test_guard.py:1570 · Python subprocess execution detectedlambda: subprocess.Popen([realpaths.TRUE_BIN, "-r", "-c", "x", top_level_loot],Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Privileged sudo commandtests/test_jobs.py:606 · Privileged sudo command — agent may execute with elevated privileges"""Until the holder's sudo has started the 11.x-shaped stub: stub sudo, the stubFix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.
AST05
MEDIUM
Privileged sudo commandtests/test_plugins.py:27 · Privileged sudo command — agent may execute with elevated privileges"Plugins run inside the Sn1per MCP Server process with the same user, the same sudo "Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.
AST05
MEDIUM
Process kill commandtests/conftest.py:326 · Process kill command — agent can terminate processes# O.5 P1-04 / L.6: no test ever runs the engine's task deletion (-dt) or a killFix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.
AST05
MEDIUM
URL with embedded credentialstests/test_targets.py:30 · URL with embedded credentials — may be phishing or credential leaking(["http://user:[email protected]/", "http://@app.example/"], "invalid_target"),Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.
AST07
MEDIUM
HTTP URL with a raw public IP addresstests/test_modes.py:236 · HTTP URL with a raw public IP address — a hard-coded destination that domain-based monitoring cannot name("stealth", "http://192.0.2.10/", None),Fix: Replace encoded or assembled strings with plain literals and remove undeclared network calls.
AST07
MEDIUM
Privileged sudo commandtests/test_proc.py:223 · Privileged sudo command — agent may execute with elevated privileges"""D.5: resolved once; a sudo that appears on PATH later is not picked up."""Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.
AST05
MEDIUM
Privileged sudo commandtests/guard/hook.py:1136 · Privileged sudo command — agent may execute with elevated privilegesreturn f"executable {exe_path!r} names a real Sn1per or sudo binary", NoneFix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.
AST05
MEDIUM
File permission modification commandtests/test_results.py:107 · File permission modification command — agent changes file ownership/permissionsfor refused in (results.failure("sniper_scan", "cli_untrusted", "m", f"chown {path}",Fix: Request the narrowest permission that works; replace wildcards with the exact paths or hosts.
AST05
MEDIUM
Privileged sudo commandtests/test_jobs.py:673 · Privileged sudo command — agent may execute with elevated privilegesstub sudo relays SIGTERM to its direct child only, and the pipeline body survives."""Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.
AST05
MEDIUM
Privileged sudo commandtests/test_edition.py:534 · Privileged sudo command — agent may execute with elevated privileges# Scanning off: no sudo preflight, so no stub records the undecodable argv.Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.
AST05
MEDIUM
Unicode escape sequence detectedtests/test_targets.py:69 · Unicode escape sequence detected — may contain obfuscated payloads("\uff11\uff19\uff12\uff0e\uff10\uff0e\uff12\uff0e\uff11\uff10", "192.0.2.10", targets.IPV4),Fix: Put hosts, commands and strings in plain source. Decoding at runtime looks identical to malware and costs points on its own.
AST07
MEDIUM
File permission modification commandtests/test_edition.py:647 · File permission modification command — agent changes file ownership/permissions"""S2 fix round 2: the cli_untrusted hint was always "sudo chown root:rootFix: Request the narrowest permission that works; replace wildcards with the exact paths or hosts.
AST05
MEDIUM
Process kill commandtests/test_proc.py:255 · Process kill command — agent can terminate processes"""After the timeout kill, a process the kill cannot reach (a root engine under sudo)Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.
AST05
MEDIUM
Privileged sudo commandtests/test_modes.py:276 · Privileged sudo command — agent may execute with elevated privilegessudo = ["/usr/bin/sudo", "-n", "--"]Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.
AST05
MEDIUM
URL with embedded credentialstests/test_redact.py:314 · URL with embedded credentials — may be phishing or credential leaking("1.2http://u:[email protected]", "1.2http://u:[REDACTED:password]@h.app.example"),Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.
AST07
MEDIUM
Unicode escape sequence detectedtests/test_scope.py:105 · Unicode escape sequence detected — may contain obfuscated payloads("\uff11\uff19\uff12\uff0e\uff10\uff0e\uff12\uff0e\uff11\uff10", "192.0.2.10"),Fix: Put hosts, commands and strings in plain source. Decoding at runtime looks identical to malware and costs points on its own.
AST07
MEDIUM
File type combined with upload actiontests/test_plugins.py:359 · File type combined with upload action — agent may exfiltrate local data files"credentials/pairs.txt": "excluded", "output/dc.kirbi": "excluded",Fix: Remove the call, or declare the host in frontmatter and explain in the README what is sent and why.
AST07
MEDIUM
URL using a raw public IP addresstests/secret_factory.py:115 · URL using a raw public IP address — may bypass domain-based filteringadd(Sample(28, "secret", "[+] http://192.0.2.10/?apikey=" + "k6" * 8, ("k6" * 8,)))Fix: Replace encoded or assembled strings with plain literals and remove undeclared network calls.
AST07
MEDIUM
Unicode escape sequence detectedtests/test_targets.py:35 · Unicode escape sequence detected — may contain obfuscated payloads"\uff11\uff12\uff17\uff0e\uff10\uff0e\uff10\uff0e\uff10\uff58\uff11"],Fix: Put hosts, commands and strings in plain source. Decoding at runtime looks identical to malware and costs points on its own.
AST07
MEDIUM
Access to sensitive file pathstests/guard/hook.py:363 · Access to sensitive file paths — SSH keys, AWS credentials, env files, or system files# protected root (for example ~/.ssh) would widen strict mode (O.7).Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.
AST05
MEDIUM
Bidirectional text override characters detectedtests/test_plugins.py:338 · Bidirectional text override characters detected — may hide content directionassert ctx.sanitize("a\x1b[31mb‮") == "ab<U+202E>"Fix: Replace encoded or assembled strings with plain literals and remove undeclared network calls.
AST07
MEDIUM
Privileged sudo commandtests/test_jobs.py:617 · Privileged sudo command — agent may execute with elevated privileges"""sudo gets a controlling terminal (the condition for use_pty), and the holderFix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.
AST05
MEDIUM
Privileged sudo commandtests/test_jobs.py:689 · Privileged sudo command — agent may execute with elevated privilegesassert record["pid"] not in outcome.remaining_pids # sudo itself went awayFix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.
AST05
MEDIUM
Privileged sudo commandtests/test_edition.py:660 · Privileged sudo command — agent may execute with elevated privilegesassert payload["error"]["hint"] == f"sudo chown root:root {iso.cli_path}"Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.
AST05
MEDIUM
File permission modification commandtests/test_edition.py:554 · File permission modification command — agent changes file ownership/permissions# (Community Edition after a scan, whose init runs chmod 777 -Rf on it) any local userFix: Request the narrowest permission that works; replace wildcards with the exact paths or hosts.
AST05
MEDIUM
Privileged sudo commandtests/guard/hook.py:1109 · Privileged sudo command — agent may execute with elevated privilegesreturn f"argv element {element!r} names a real Sn1per or sudo binary", NoneFix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.
AST05
MEDIUM
HTTP URL with a raw public IP addresstests/secret_factory.py:115 · HTTP URL with a raw public IP address — a hard-coded destination that domain-based monitoring cannot nameadd(Sample(28, "secret", "[+] http://192.0.2.10/?apikey=" + "k6" * 8, ("k6" * 8,)))Fix: Replace encoded or assembled strings with plain literals and remove undeclared network calls.
AST07
MEDIUM
Privileged sudo commandtests/test_guard.py:1927 · Privileged sudo command — agent may execute with elevated privileges# --- INCIDENT row (4): stub sudo and stub CLIs exit 97 outside the temp root ------Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.
AST05
MEDIUM
Privileged sudo commandtests/test_status.py:173 · Privileged sudo command — agent may execute with elevated privileges"""H.5: not_needed means running as root; a non-root no-sudo server is not_checked."""Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.
AST05
MEDIUM
Privileged sudo commandtests/test_edition.py:647 · Privileged sudo command — agent may execute with elevated privileges"""S2 fix round 2: the cli_untrusted hint was always "sudo chown root:rootFix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.
AST05
MEDIUM
Privileged sudo commandtests/test_modes.py:5 · Privileged sudo command — agent may execute with elevated privilegesGolden argv for every mode of both dialects runs through the stub sudo andFix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.
AST05
MEDIUM
File type combined with upload actiontests/test_lootfs.py:92 · File type combined with upload action — agent may exfiltrate local data filesassert found == ["deep/a/b/c.txt", "nmap/nmap-app.example.txt", "output/notes.txt"]Fix: Remove the call, or declare the host in frontmatter and explain in the README what is sent and why.
AST07
MEDIUM
Privileged sudo commandtests/conftest.py:247 · Privileged sudo command — agent may execute with elevated privileges"""Behaviour knobs read by the stub CLI and stub sudo (O.3); replaces the defaults."""Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.
AST05
MEDIUM
Privileged sudo commandtests/test_edition.py:649 · Privileged sudo command — agent may execute with elevated privilegesroot-owned, the file the sudo rule then runs as root. The chown hint is given onlyFix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.
AST05
MEDIUM
File permission modification commandtests/test_state.py:47 · File permission modification command — agent changes file ownership/permissionsreal_chmod = os.chmodFix: Request the narrowest permission that works; replace wildcards with the exact paths or hosts.
AST05
MEDIUM
Privileged sudo commandtests/test_audit.py:354 · Privileged sudo command — agent may execute with elevated privilegesassert iso.calls() == [] # not even the sudo preflight (F.9 step 9 precedes step 10)Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.
AST05
MEDIUM
URL using a raw public IP addresstests/test_parsers.py:296 · URL using a raw public IP address — may bypass domain-based filtering"http://192.0.2.10 [200 OK] Country[RESERVED][ZZ], HTML5, HTTPServer[nginx/1.29.7], "Fix: Replace encoded or assembled strings with plain literals and remove undeclared network calls.
AST07
MEDIUM
Privileged sudo commandtests/test_jobs.py:652 · Privileged sudo command — agent may execute with elevated privileges"""The 11.x CLI runs its scan body in a subshell piped to tee. With a terminal, sudoFix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.
AST05
MEDIUM
File permission modification commandtests/test_edition.py:655 · File permission modification command — agent changes file ownership/permissions# Root placed the file, but it belongs to someone else: chown is the fix.Fix: Request the narrowest permission that works; replace wildcards with the exact paths or hosts.
AST05
MEDIUM
Privileged sudo commandtests/test_guard.py:1606 · Privileged sudo command — agent may execute with elevated privilegesassert "names a real Sn1per or sudo binary" in record.violations[0].detailFix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.
AST05
MEDIUM
HTTP URL with a raw public IP addresstests/test_parsers.py:296 · HTTP URL with a raw public IP address — a hard-coded destination that domain-based monitoring cannot name"http://192.0.2.10 [200 OK] Country[RESERVED][ZZ], HTML5, HTTPServer[nginx/1.29.7], "Fix: Replace encoded or assembled strings with plain literals and remove undeclared network calls.
AST07
MEDIUM
URL using a raw public IP addresstests/test_modes.py:236 · URL using a raw public IP address — may bypass domain-based filtering("stealth", "http://192.0.2.10/", None),Fix: Replace encoded or assembled strings with plain literals and remove undeclared network calls.
AST07
MEDIUM
Access to sensitive file pathstests/test_guard.py:1735 · Access to sensitive file paths — SSH keys, AWS credentials, env files, or system filesroot inside a protected root (for example ~/.ssh) would widen strict mode."""Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.
AST05
MEDIUM
HTTP URL with a raw public IP addresstests/test_redact.py:366 · HTTP URL with a raw public IP address — a hard-coded destination that domain-based monitoring cannot name(f"[+] http://192.0.2.10/?apikey={SECRET}", "[+] http://192.0.2.10/?apikey=[REDACTED:secret]"),Fix: Replace encoded or assembled strings with plain literals and remove undeclared network calls.
AST07
MEDIUM
File permission modification commandtests/test_edition.py:660 · File permission modification command — agent changes file ownership/permissionsassert payload["error"]["hint"] == f"sudo chown root:root {iso.cli_path}"Fix: Request the narrowest permission that works; replace wildcards with the exact paths or hosts.
AST05
MEDIUM
File permission modification commandtests/test_edition.py:649 · File permission modification command — agent changes file ownership/permissionsroot-owned, the file the sudo rule then runs as root. The chown hint is given onlyFix: Request the narrowest permission that works; replace wildcards with the exact paths or hosts.
AST05
MEDIUM
Privileged sudo commandtests/test_guard.py:229 · Privileged sudo command — agent may execute with elevated privilegescandidate, so a later PATH entry (a real sudo or sniper on a host) never runs.Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.
AST05
MEDIUM
URL using a raw public IP addresstests/test_redact.py:366 · URL using a raw public IP address — may bypass domain-based filtering(f"[+] http://192.0.2.10/?apikey={SECRET}", "[+] http://192.0.2.10/?apikey=[REDACTED:secret]"),Fix: Replace encoded or assembled strings with plain literals and remove undeclared network calls.
AST07
MEDIUM
Privileged sudo commandtests/test_edition.py:237 · Privileged sudo command — agent may execute with elevated privilegesassert d.engine_path_hint() == f"sudo ln -s {iso.cli_path} /usr/local/bin/sniper"Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.
AST05
MEDIUM
Privileged sudo commandtests/test_guard.py:2011 · Privileged sudo command — agent may execute with elevated privileges# The inner session's blocked sudo is also written to the child file belowFix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.
AST05
LOW
Authorization escalation languageREADME.md:154 · Authorization escalation language · informational: not an instruction fileThe Sn1per MCP Server lets an AI agent launch active security scans. Scans send traffic to the target, can be intrusive, and run with root privileges through sudo.Fix: Remove the text that addresses the agent rather than the reader; describe behavior, do not instruct.
AST01
LOW
Dynamic module loadingtests/test_paths.py:19 · Dynamic module loadingmodule = importlib.util.module_from_spec(spec)Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.
AST05
LOW
Authorization escalation languagedocs/tools.md:148 · Authorization escalation language · informational: not an instruction file… return a job handle immediately; the scan keeps running in the background with root privileges and sends traffic to the target. Only call this for targets the operator has e…Fix: Remove the text that addresses the agent rather than the reader; describe behavior, do not instruct.
AST01
MEDIUM
Access to sensitive file pathstests/test_targets.py:23 · Access to sensitive file paths — SSH keys, AWS credentials, env files, or system files(["http://-o/etc/passwd"], "invalid_target"),Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.
AST05
MEDIUM
Access to sensitive file pathstests/test_targets.py:22 · Access to sensitive file paths — SSH keys, AWS credentials, env files, or system files(["/", "/etc/passwd"], "invalid_target"),Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.
AST05
LOW
Authorization escalation languageREADME.md:32 · Authorization escalation language · informational: not an instruction file…or a passwordless sudo rule for the Sn1per CLI. That rule is equivalent to full root access for the user it names; read the [security model](https://github.com/1N3/sn1per-…Fix: Remove the text that addresses the agent rather than the reader; describe behavior, do not instruct.
AST01
MEDIUM
Access to sensitive file pathstests/test_targets.py:21 · Access to sensitive file paths — SSH keys, AWS credentials, env files, or system files(["-oN/tmp/x", "-iL/etc/shadow", "-osniper", "-", "-d"], "invalid_target"),Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.
AST05
MEDIUM
Access to sensitive file pathstests/test_targets.py:220 · Access to sensitive file paths — SSH keys, AWS credentials, env files, or system files@pytest.mark.parametrize("target", ["-iL/etc/shadow", "-oN/tmp/x", "\uff0diL/etc/shadow",Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.
AST05
LOW
Authorization escalation languagedocs/install.md:119 · Authorization escalation language · informational: not an instruction file… **Warning:** a passwordless sudo rule for the Sn1per CLI is equivalent to full root access for the user it names. The CLI reads configuration files as root and Sn1per Com…Fix: Remove the text that addresses the agent rather than the reader; describe behavior, do not instruct.
AST01
LOW
Dynamic module loadingtests/guard/hook.py:205 · Dynamic module loadingmodule = importlib.util.module_from_spec(spec)Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.
AST05
LOW
Dynamic module loadingtests/test_paths.py:20 · Dynamic module loading (importlib.loader.exec_module via provenance)spec.loader.exec_module(module)Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.
AST05
LOW
Dynamic module loadingtests/guard/hook.py:206 · Dynamic module loading (importlib.loader.exec_module via provenance)spec.loader.exec_module(module)Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.
AST05
LOW
Authorization escalation languageREADME.md:147 · Authorization escalation language · informational: not an instruction file- The passwordless sudo rule for the Sn1per CLI is equivalent to full root access for that user.Fix: Remove the text that addresses the agent rather than the reader; describe behavior, do not instruct.
AST01
LOW
Authorization escalation languagedocs/security-model.md:48 · Authorization escalation language · informational: not an instruction file…ent.** A passwordless sudo rule for the Sn1per CLI gives the user it names full root access, because the CLI sources arbitrary files as root (its configuration files and, …Fix: Remove the text that addresses the agent rather than the reader; describe behavior, do not instruct.
AST01

Cost to the agent

Instructions loaded
≈60 tok
1 file · 81 in bundle
Tool list per prompt
≈0 tok
0 tools · 0 per tool
Handshake
no reply
launch to tools/list, stdio
Undocumented tools
0
description under 20 chars · avg 0

Tokens estimated at four characters each. The tool list is re-read by the agent on every turn, so it is the number to compare between servers that do the same job: ranked across the index.

Known vulnerabilities

No advisories in OSV for sn1per-mcp@0.9.0 as of 58 min ago. This is the package itself, not its dependencies.

What would make this Verified

6 points to 80 · weights: behavior 45%, static 25%, prompt 15%, publisher 15%
  1. Unclaimed publisher≈ +8 on the totalClaim 1n3: a verified publisher gets +50 on publisher trust. It is free and usually instant with GitHub sign-in.
  2. Privileged sudo command≈ +4 on the totalBuild commands from fixed arguments; do not interpolate untrusted strings into a shell.
  3. Access to sensitive file paths≈ +4 on the totalStop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.
  4. Python subprocess execution detected≈ +2 on the totalBuild commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
  5. OS command execution function call detected≈ +2 on the totalBuild commands from fixed arguments; do not interpolate untrusted strings into a shell.
  6. Python exec or eval of computed code≈ +2 on the totalPut hosts, commands and strings in plain source. Decoding at runtime looks identical to malware and costs points on its own.
Publish a new version to PyPI, then queue it here. Not your skill? Claim the handle to get verdict changes by email.Claim 1n3Propose a patch to the maintainer