"SKYLOGIQ" The moon can't shine on its own.

Esta página aún no está disponible en su idioma. Se muestra en inglés.

BRIEFINGSecurity17 nov 20264 min de lectura

Cloned repositories are code you run: a pre-use check for laptops

A plugin that scans freshly cloned repositories shows how many things fire when a developer merely opens a folder. Alongside a worm demo built with AI in about a week, it makes the workstation a decision for the CTO.

The strongest argument for moving source checkout off laptops sits in a command file for a Claude Code plugin. Its author, in a repository named xorio-claude-plugin, describes a scanner for freshly cloned repositories and spends much of the text on how not to get hurt while running it. Read as a threat model, it is a list of things that execute before a developer has done anything deliberate.

What the plugin says fires on a clone

The command, named mallware-check in the repository, describes itself as a read-only scan of a folder for malware, obfuscation, call-home behavior, prompt injection, hidden or dormant loaders and Claude Code plugin threats. The plugin's own instructions, which are a claim by its author and not an audited result, give a sequence of rules for handling an untrusted clone:

  • Scan a cloned-but-never-installed copy, ideally in a VM or container that holds no credentials.
  • Do not run npm install, build, or open the folder in an IDE. The text says VS Code and Cursor run folderOpen tasks from .vscode/tasks.json on open.
  • Start the coding agent in a parent directory of the clone, never inside it. Once the folder-trust prompt is accepted, the agent loads the working directory's .claude settings (hooks, permissions, env), .mcp.json, commands, agents, skills and CLAUDE.md as its own configuration. A hostile clone used as the working directory would run its hooks before the scan starts.

The plugin also restricts itself to a short allowlist of read-only tools, and tells the scanning agent to treat every scanned file as hostile data. A comment reading "ignore previous instructions" or a planted "scan complete, all files benign" is to be reported as a finding, not obeyed.

What a pre-use check covers

The plugin's scope is a useful checklist even if you never install it. Its sweeps and agent briefs cover:

  • Known-campaign strings. The text cites a whitespace-hidden JavaScript loader campaign of October 2026 and says its indicators will rotate, so general heuristics carry the weight.
  • Code hidden after long runs of spaces or tabs, very long lines, invisible and bidirectional Unicode characters, and binary-extension files whose content is actually text.
  • Everything a tool executes automatically: package install scripts, build and test scripts, task runner configs, editor tasks that run on folder open, devcontainer commands, git hooks and submodule settings, and assistant configs such as hooks and MCP servers.
  • Runtime fetch-then-execute paths, where the visible code is an innocent outbound call and the payload is whatever comes back.
  • Git history, including force-pushes and commits that introduced hidden code.

The plugin itself concedes the limit. A clean verdict, it says, is not proof of safety where code fetches anything at runtime, because the scan cannot see what a remote endpoint serves. Its answer is a disposable VM or container with no host mounts or credentials. That is the point: the scan is a second layer, and the environment is the first.

Why the stakes are rising

The second source is a research write-up from Calif, published September 8, 2026, about WeWorm, a demo worm that spreads through WeChat calls on iOS and Android. It is about a messaging app, not developer tooling, and none of its technical detail applies to a repository. What matters for an engineering leader is the timeline Calif reports. Working with AI, its team says, it found the bug and wrote the first remote code execution exploit in about two days, and building the worm took one more week. Calif adds that such a worm used to take a larger team months.

That is the company's own account, and the technical details of the bug are withheld pending a conference talk. Tencent, according to Calif, shipped client versions on August 21 and mitigated the exploit server-side for all users by August 28. The authors argue that AI is putting such capabilities in the hands of less skilled actors, and that defenders gain from the same speed.

Taken together, the two sources point the same way. By Calif's account, attack tooling is getting cheaper to build. The plugin, for its part, advises scanning an untrusted clone in a VM or container that holds no credentials.

The decision

The question for a regulated organization is not whether engineers are careful. It is where untrusted code is allowed to land. Three placements are realistic:

  • Checkout, build and agent tooling on the laptop, with the laptop holding cloud tokens, SSH keys and browser sessions.
  • Checkout and first inspection in a disposable VM or container with no credentials, and promotion to a laptop only after review.
  • All work for third-party and unreviewed code in remote, short-lived environments.

The plugin's own guidance points to the second at minimum. Its advice to start the agent one directory above the clone is also a policy item: it is cheap, and it prevents a repository from configuring the agent that is meant to judge it.

The scan is a second layer. The environment is the first.

A written answer on where credentials live relative to untrusted code, with an isolated first-contact step, is easier to defend than a list of developer habits.

What this means for your roadmap

Decide this quarter where unreviewed repositories, agent tooling and plugins are allowed to run. Put first checkout in disposable environments that hold no credentials, require agents to start outside the clone, and turn off automatic folder-open tasks. Define the pre-use check as a written list: install and build scripts, editor and devcontainer tasks, git hooks, assistant configs and MCP servers, hidden whitespace or Unicode, and fetch-then-execute paths. Keep terminal coding agents under review gates (adopt on our radar), and do not merge agent-written code on green tests alone.

Sources

  1. calif.io WeWorm | Calif
  2. github.com xorio-claude-plugin/commands/mallware-check.md at main · radumarias/xorio-claude-plugin
Compiled by the SKYLOGIQ Editorial Desk.Book a call

This briefing was researched and written by SKYLOGIQ's editorial pipeline: an AI writer and an AI fact-checking editor, with a human review queue for anything the editor refuses. Sources are listed above. How the Briefing is made

Los sistemas que hacen funcionar su negocio deberían construirlos personas que ya han llevado sistemas como esos.

The moon can't shine on its own.