Is Onetake safe?
- Python shell/command execution
- Python filesystem write/delete
- Python filesystem read
What to do: Nothing here argues against installing it. Grant the capabilities it lists only if you expect the tool to need them.
Onetake is an agent skill analyzed by SkillTotal's deterministic static scanner. The scan found no malicious indicators. It can: filesystem read, filesystem write and shell execution — capabilities are what the code can do, not a verdict on intent. Risk score 0/100 (low).
repo
Automated static-analysis result. It can contain false positives and false negatives, and is not a claim about the intent of Onetake's authors. Report a false positive.
Behavioral traits
How this component maps to the CSA agentic threat model. Descriptive — it never affects the risk score.
Findings (3)
The component can run operating-system commands or spawn processes.
subprocess.run(["ffmpeg", "-v", "error", "-y", "-i", video, "-vf", f"fps={fps},scale={width}:-1", f"{d}/f_%05d.png"], check=True)wh = subprocess.run(["ffprobe", "-v", "error", "-select_streams", "v:0", "-show_entries", "stream=width,height,avg_frame_rate", "-of", "csv=p=0", video], capture_output=True, text=True).stdout.strip().split(",")raw = subprocess.run(["ffmpeg", "-v", "error", "-i", video, "-vf", f"fps={sfps},scale={width}:{h}", "-f", "rawvideo", "-pix_fmt", "gray", "-"], capture_output=True, check=True).stdoutsubprocess.run(["ffmpeg", "-v", "error", "-y", "-i", video, "-vf", f"fps={fps},scale=426:-1,tile=6x4", f"{out}/sheet_%02d.png"], check=True)dur = float(subprocess.run(["ffprobe", "-v", "error", "-show_entries", "format=duration", "-of", "csv=p=0", video], capture_output=True, text=True).stdout.strip())
subprocess.run(["ffmpeg", "-v", "error", "-y", "-ss", f"{t:.2f}", "-i", video, "-frames:v", "1", f"{out}/frame_{i:02d}.png"], check=True)subprocess.run(["ffmpeg", "-v", "error", "-y", "-i", f"{out}/{name}.webm", "-vf", "fps=30", "-q:v", "2", f"{d}/%04d.jpg"], check=True)subprocess.run(cmd + [out], check=True)
r = subprocess.run(["ffmpeg", "-v", "error", "-y", "-i", video, "-vn", "-ac", "2", "-ar", "48000", wav], capture_output=True)
r = subprocess.run(["ffprobe", "-v", "error", "-select_streams", "v:0", "-show_entries", "stream=r_frame_rate", "-of", "csv=p=0", video], capture_output=True, text=True).stdout.strip()
subprocess.run(["ffmpeg", "-v", "quiet", "-y", "-i", wav, "-c:a", "aac", "-b:a", "160k", wav[:-4] + ".m4a"]); os.remove(wav)
return float(subprocess.run(["ffprobe", "-v", "error", "-show_entries", "format=duration", "-of", "csv=p=0", p], capture_output=True, text=True).stdout)
Why it matters: Powerful and often legitimate — confirm the commands aren't built from untrusted input.
Fix: Confirm the command and its arguments are fully controlled and not derived from untrusted input; avoid shell=True.
The component reads files from disk.
return json.loads(LOOKS.read_text())
look = json.loads(p.read_text())
s = pathlib.Path(p).read_text(errors="ignore")
if "look.js" not in comp.read_text(errors="ignore"):
cfg = json.load(open(a.config)); out = os.path.abspath(a.out); os.makedirs(out, exist_ok=True)
return json.load(open(p)) if os.path.exists(p) else None
return [l.strip() for l in open(p, encoding="utf-8") if l.strip()]
words = json.load(open(os.path.join(a.dir, "words.json"))); plan = json.load(open(os.path.join(a.dir, "plan.json")))
Why it matters: Usually legitimate, but worth confirming it can't be steered into reading sensitive files.
Fix: Confirm which files are read and that paths cannot be influenced by untrusted input to reach sensitive locations.
The component writes or deletes files on disk.
d = os.path.join(workdir, "_e"); shutil.rmtree(d, ignore_errors=True); os.makedirs(d)
shutil.rmtree(d, ignore_errors=True)
open(os.path.join(a.out, "energy.txt"), "w").write(m + "\n" + json.dumps({k: v for k, v in s.items() if k != "flow"}) + "\n")json.dump(s, open(os.path.join(a.out, "summary.json"), "w"), indent=1)
gim = Image.open(graph).convert("RGB"); os.remove(graph)out.write_text(js)
tmp.write_text(html)
pathlib.Path(a.out).write_text(txt + "\n")
open(os.path.join(a.out, "tracks.json"), "w"))
name = c["name"]; d = f"{out}/raw_{name}"; shutil.rmtree(d, ignore_errors=True)v = [f for f in os.listdir(d) if f.endswith(".webm")][0]; os.replace(f"{d}/{v}", f"{out}/{name}.webm"); shutil.rmtree(d)json.dump(log, open(f"{out}/paths.json", "w"), indent=1)for f in glob.glob(f"{d}/*.jpg"): os.remove(f)json.dump(info, open(f"{out}/info.json", "w"), indent=1)open(path, "wb").write(await grab(t))
open(path, "wb").write(first); st["still"] += 1
shutil.rmtree(fr, ignore_errors=True)
if not a.keep_frames: shutil.rmtree(fr, ignore_errors=True)
json.dump(meta, open(os.path.splitext(out)[0] + ".render.json", "w"), indent=1)
subprocess.run(["ffmpeg", "-v", "quiet", "-y", "-i", wav, "-c:a", "aac", "-b:a", "160k", wav[:-4] + ".m4a"]); os.remove(wav)
json.dump(out, open(os.path.join(a.dir, "words.json"), "w"), ensure_ascii=False)
json.dump(plan, open(os.path.join(a.dir, "plan.json"), "w")); print(json.dumps(plan))
json.dump(subs, open(os.path.join(a.dir, "subs.json"), "w"), ensure_ascii=False)
Why it matters: Usually legitimate, but worth confirming the paths can't be controlled by untrusted input.
Fix: Confirm which files are written/deleted and that paths cannot be influenced by untrusted input.
How attackers abuse these capabilities
Interactive labs on the attack class behind the rules above. They show the technique, not anything found in Onetake.
Check your own component
Run the same evidence-backed scan on any MCP server, agent skill, or package.
Scan your own componentHow we determine this: deterministic static analysis (regex + AST), evidence-anchored, no code execution. Methodology →