ansible-safe-mcp@r1
CAUTION· install onlyPublisher claims: "Run Ansible from Claude with commit-confirmed safety: every change arms a revert timer on the host (Linux, OpenWrt) or holds MikroTik Safe Mode, and is kept only after a fresh connection proves the host still works. Reads run as an unprivileged account; playbook versions are approved once." In our sandbox: Bundled scripts ran with no arguments; no agent task scenario for this bundle.
Coverage
Bundled scripts ran with no arguments; no agent task scenario for this bundle.- Tested
- install scripts, with decoy credentials in place · second launch with the clock 45 days ahead · 8 of 14 bundled scripts run with no arguments (the rest were not run: per-bundle cap), with decoy credentials in the environment · every file read, file written and host contacted by what ran
- Not tested
- use of the skill by an agent
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.
Behavior
In our sandbox run on 2026-11-23, ansible-safe-mcp@r1 read 1 file and called no hosts, and its code names 18 environment variables. Coverage: install only.
Files read
- ~/Library/Application Support/Claude/claude_desktop_config.json
Hosts called
None recorded.
Environment variables its code names
ACTION, APP, ASM_ANSIBLE_BIN, ASM_APPROVAL_KEYFILE, ASM_APPROVER, ASM_COLLECTIONS, ASM_MASK_DOMAINS, ASM_PROGRESS, ASM_PROJECT, ASM_STATE, ASM_TEST_PLAN_DELAY, ASM_TEST_SHORT_WINDOWS, CFG, CODEX_CFG, NAME, PROJECT, SSH_AUTH_SOCK, VENV
Names only, read from the code. We never hold a value.
Tools offered
No tool list recorded.
Changes since the prior version
No prior version with a result to compare.
What we did not test
- use of the skill by an agent
| Run date | 2026-11-23 |
| Coverage | install only |
| Engine | 1.9.2, script@linux |
| Reproduce | npx -y vet-skills try ansible-safe-mcp |
| This record | behavior.json, behavior.md, signed attestation |
This is a record of what one version did in the runs we made. It is evidence, not a certificate.
Before you give it your token
- It will ask for
SSH_AUTH_SOCKConfiguration, not credentials: ACTION, APP, ASM_ANSIBLE_BIN, ASM_APPROVAL_KEYFILE, ASM_APPROVER, ASM_COLLECTIONS, ASM_MASK_DOMAINS, ASM_PROGRESS, ASM_PROJECT, ASM_STATE, ASM_TEST_PLAN_DELAY, ASM_TEST_SHORT_WINDOWS, CFG, CODEX_CFG, NAME, PROJECT, VENV- Where it talks to
- no vendor host named in the codeAlso apple.com — not the publisher's domain; check what for before connecting.
- What we saw when it ran
- no credential files read · no network
- What we could not test
- use of the skill by an agent
Connect it with a scoped credential, under the guard, and read the third-party hosts first. The code names apple.com as well as its own vendor. The guard injects SSH_AUTH_SOCK only into requests to the host you bind (and its subdomains) and refuses the rest.
Never paste a credential into a chat, a ticket or a report, including ours. How the guard holds it.
Is ansible-safe-mcp@r1 safe to install?
KillerSkills ran it in the KillerSkills honeypot sandbox (3 scenarios; bundled scripts ran with no arguments; no agent task scenario for this bundle) on 2026-11-23 and scored it 61/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; Access to sensitive file paths. Summary: no network, touches nothing outside the project, writes no memory.
Behavior trace
Honeypot run · 1 s · 3 scenariosStatic findings
p = subprocess.run(q, capture_output=True, text=True)Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.p = subprocess.run(cmd, capture_output=True, text=True, timeout=40, stdin=subprocess.DEVNULL)Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.p = subprocess.run(shlex.split(cfg.approver), input=json.dumps({'title': title, 'text': text}), text=True,Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.fp = subprocess.run(['ssh-keygen', '-lf', kh], capture_output=True, text=True).stdout.strip()Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.…wo accounts per host. `look` uses one that can't change the system: on Linux no sudo beyond a short list of read commands (`/etc/sudoers.d/ansible-safe-look`: docker…Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.- They run as **root** on Linux, macOS and Synology (`sudo -n bash`, script on stdin), as the device's account onFix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.…an't change the system: on Linux no sudo beyond a short list of read commands (`/etc/sudoers.d/ansible-safe-look`: docker ps/logs/inspect/images/stats, journalctl `--no-pag…Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.paths.update(['/etc/passwd', '/etc/shadow', '/etc/group', '/etc/gshadow'])Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.subprocess.run(['git', 'init', '-q'], cwd=self.project, capture_output=True)Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.p = subprocess.run(q, capture_output=True, text=True)Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.p = subprocess.run(['osascript'] + script + ['--', text[:2500], title[:120]], capture_output=True, text=True,Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.subprocess.run(['security', 'add-generic-password', '-s', 'ansible-safe-mcp', '-a', 'approvals',Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.'[ -e $D/last ] && echo "last=$(sudo -n cat $D/last 2>/dev/null || cat $D/last 2>/dev/null)"; true',Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.POSIX_SSH = ('macos', 'synology') # sudo hosts changed with raw commands over SSH (macOS: often no Python; DSM: too old)Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.'containers': 'sudo -n docker ps -a 2>&1 | head -50',Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.'logs': '{ sudo -n journalctl --no-pager -n 200 -p warning 2>/dev/null || tail -n 200 /var/log/messages; }',Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.LOOK_SUDOERS = '/etc/sudoers.d/ansible-safe-look'Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.| Your keys | The server uses your SSH agent and never reads `~/.ssh` itself. |Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.p = subprocess.run(cmd, cwd=cfg.project, env=ansible_env(cfg), capture_output=True, text=True,Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.p = subprocess.run(cmd, cwd=cfg.project, env=env, capture_output=True, text=True, timeout=60,Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.'key_file': S('add: private key path for both accounts, e.g. ~/.ssh/ops. Default: your SSH agent'),Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.inside = subprocess.run(['git', 'rev-parse', '--is-inside-work-tree'], cwd=self.project,Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.| Your keys | The server uses your SSH agent and never reads `~/.ssh` itself. |Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.'containers': 'sudo -n docker ps -a --format json 2>/dev/null || docker ps -a --format json',Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.mkdir -p /etc/asm-dir && echo orig > /etc/asm-dir/a && rm -f /etc/asm-dir/bFix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.p = subprocess.run(ssh_base(host, user, known_hosts, key) + [command], capture_output=True, text=True,Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.t, e = tool('hands', hosts='box', why='Clear a stale lock file', steps=['rm -f /etc/asm-stale.lock'],Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell."sudo -n journalctl -n 1 2>&1 | head -1; ls -l /etc/sudoers.d/ansible-safe-look")Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.[ -f "$G/timer.pid" ] && kill -0 "$(cat "$G/timer.pid")" 2>/dev/null && alive=yesFix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell."sudo -n docker ps -a 2>&1 | grep -c 'password is required'; sudo -n docker run --rm x 2>&1 | head -1; "Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.srv = subprocess.Popen([sys.executable, os.path.join(ROOT, 'server', 'ansible_safe_mcp.py')], env=env,Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.'Authorization: Bearer abcdefghijk.lmn\nhttps://user:[email protected]/x\n'Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.- ansible.builtin.shell: cat ~/.ssh/id_ed25519Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.t, e = tool('look', hosts='box', command="sudo -n docker ps -a >/dev/null 2>&1; echo dps=$?; "Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.subprocess.run([sys.executable, '-c', code], env=env, cwd=os.path.join(HERE, '..', 'server'), check=True,Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.mkdir -p "$HOME/.config/claude-mcp/backups"; chmod 700 "$HOME/.config/claude-mcp/backups"Fix: Request the narrowest permission that works; replace wildcards with the exact paths or hosts.proc = subprocess.Popen(cmd, cwd=self.cfg.project, env=ansible_env(self.cfg, progress),Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.p = subprocess.run(ssh_base(host, user, known_hosts, key) + [command], capture_output=True,Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.'set -e', 'umask 077', 'mkdir -p %s && chmod 755 %s' % (D, D),Fix: Request the narrowest permission that works; replace wildcards with the exact paths or hosts.kill -TERM -- "-$p" 2>/dev/null || kill -TERM "$p" 2>/dev/nullFix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.mkdir -p "$DEST"; chmod 700 "$DEST"Fix: Request the narrowest permission that works; replace wildcards with the exact paths or hosts.subprocess.run(['git', 'add', '-A', '--'] + roots, cwd=self.cfg.project, capture_output=True)Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.subprocess.run(['git', 'init', '-q'], cwd=outer, check=True)Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.[ -d "$APP" ] && chmod -R u+w "$APP" && rm -rf "$APP"Fix: Request the narrowest permission that works; replace wildcards with the exact paths or hosts.- ansible.builtin.shell: cat ~/.ssh/id_ed25519Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.subprocess.run(['chown', '-R', 'owrt', '/tmp/fakeowrt'])Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.subprocess.run(['git', 'ls-files', '--error-unmatch', r], cwd=self.cfg.project,Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.cp -p "$CFG" "$BK"; chmod 600 "$BK"; ok "Backed up the Claude config to $BK"Fix: Request the narrowest permission that works; replace wildcards with the exact paths or hosts.subprocess.run(['git', '-c', 'user.name=ansible-safe-mcp', '-c', 'user.email=ansible-safe-mcp@localhost',Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.'chmod 700 %s/guard.sh' % D, 'mkdir -p %s' % req,Fix: Request the narrowest permission that works; replace wildcards with the exact paths or hosts.self.proc = subprocess.Popen(self.cmd, stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.STDOUT,Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.spec.loader.exec_module(mod)Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.chmod 644 "$D/timer.pid"Fix: Request the narrowest permission that works; replace wildcards with the exact paths or hosts.chmod 644 "$u"Fix: Request the narrowest permission that works; replace wildcards with the exact paths or hosts.[ -f "$G/timer.pid" ] && kill "$(cat "$G/timer.pid")" 2>/dev/nullFix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell."sudo -n journalctl -n 1 2>&1 | head -1; ls -l /etc/sudoers.d/ansible-safe-look")Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.note() { echo "$*" > "$D/last"; chmod 644 "$D/last"; }Fix: Request the narrowest permission that works; replace wildcards with the exact paths or hosts.t, e = tool('look', hosts='box', command="echo '{{ 7*7 }}'; id -un; sudo -n true 2>&1 | head -1")Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.[ -d "$APP" ] && { chmod -R u+w "$APP"; rm -rf "$APP"; ok "removed $APP"; }Fix: Request the narrowest permission that works; replace wildcards with the exact paths or hosts.- ansible.builtin.shell: cat ~/.ssh/id_ed25519Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.mod = importlib.util.module_from_spec(spec)Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.p = subprocess.run(ssh_base(host, user, known_hosts, key) + [command], capture_output=True, text=True,Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.chown root:wheel "$PLIST" 2>/dev/null; chmod 644 "$PLIST"Fix: Request the narrowest permission that works; replace wildcards with the exact paths or hosts.t, e = tool('backup', hosts='box', paths=['/etc/../etc/shadow'])Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.p = subprocess.run([cfg.playbook_bin, path, '--syntax-check', '-e', '@' + vf], cwd=cfg.project,Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.p = subprocess.run(ssh_base(host, user, known_hosts, key) + [command], capture_output=True,Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.p = subprocess.run([sys.executable, os.path.join(HERE, '..', 'server', 'ansible_safe_mcp.py')], env=env,Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.subprocess.run(['userdel', '-r', 'asmlook2'], capture_output=True)Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.t, e = tool('hands', hosts='box', why='Clear a stale lock file', steps=['rm -f /etc/asm-stale.lock'])Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.Cost to the agent
Tokens estimated at four characters each. Skills load their instruction text when triggered; the figure is what that costs.
Known vulnerabilities
Vulnerability advisories (OSV) cover npm and PyPI packages; this registry has no advisory database.
What would make this Verified
19 points to 80 · weights: behavior 45%, static 25%, prompt 15%, publisher 15%- Unclaimed publisher≈ +8 on the totalClaim mureev: a verified publisher gets +50 on publisher trust. It is free and usually instant with GitHub sign-in.
- Touches files outside the project≈ +7 on the totalKeep reads and writes inside the working directory, or declare the exact paths in `filesystem:` and explain why in the README.
- Privileged sudo command≈ +4 on the totalBuild commands from fixed arguments; do not interpolate untrusted strings into a shell.
- 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.
- Reads credential paths from the home directory≈ +4 on the totalStop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.
- Python subprocess execution detected≈ +2 on the totalBuild commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.