clonewall
Find what an AI reverse-engineering agent can lift from your app, and fix what lasts first.
Agent toolkits such as REA (Reverse Engineer Anything) let a coding agent drive
Ghidra, JADX, Frida, a browser and network captures, trace one feature of a shipped app, and rebuild it. clonewall is
the defensive side: a CLI, an MCP server and an agent skill that audit your own web, Android, iOS and desktop apps
for what such an agent would get, and rank the fixes by what actually holds.
npx clonewall scan . # your source
npx clonewall scan app-release.apk # what you ship (.apk, .aab, .ipa, .xapk, .asar, or a build folder)
clonewall is not affiliated with REA. It has no runtime dependencies and only reads files; it never sends your code
anywhere.
Status: 0.1.0 is on GitHub but not yet published to npm. Until it is, swap clonewall for
github:aizen-technology/clonewall in any npx command, for example npx github:aizen-technology/clonewall scan ..
The Claude Code plugin works now because it runs from the repository.
Ways to use it
One package, four ways in. They all run the same scanner and read the same guides.
flowchart LR
repo["clonewall<br/>(npm package / GitHub repo)"]
repo --> cli["CLI<br/>clonewall scan"]
repo --> mcp["MCP server<br/>clonewall mcp"]
repo --> skill["Agent skill<br/>harden-against-cloning"]
repo --> plugin["Plugin manifests<br/>Claude Code · Codex · Cursor"]
cli --> you["You, in a terminal"]
cli --> ci["CI: SARIF to GitHub code scanning"]
mcp --> agents["Any MCP client:<br/>Claude Code, Codex, Cursor, Gemini CLI"]
skill --> agents
plugin --> agents
| Use it as |
What you get |
Install |
| CLI |
Scan a folder or a shipped artefact and get text, JSON, Markdown or SARIF |
npx clonewall scan . |
| CI step |
Fail the build on high findings and show them in GitHub code scanning |
CI |
| MCP server |
Tools scan_project, list_checks and hardening_guide for any agent |
MCP server only |
| Agent skill |
A full audit: the scan, plus the checks a scan cannot do, written up as a report |
npx clonewall setup |
| Claude Code plugin |
The skill and MCP server together, from this repository |
Claude Code plugin |
| Library |
import { scan } from 'clonewall' returns the findings as an object |
npm i clonewall |
For a full audit, use the skill with the MCP server. The scan finds what is in the files; the skill makes the agent check
what the files cannot show:
sequenceDiagram
participant You
participant Agent
participant Skill as harden-against-cloning skill
participant MCP as clonewall MCP server
You->>Agent: "Use harden-against-cloning to audit this project."
Agent->>Skill: load the audit workflow
Agent->>MCP: hardening_guide("audit-workflow")
Agent->>MCP: scan_project(path)
MCP-->>Agent: findings tagged seen / inferred / unknown, with the cloning step each cuts
Agent->>Agent: manual checks: response vs screen, cross-account access, client-side logic, server-side token checks
Agent-->>You: report ranked by lasting / raises the cost / buys time
What it believes
Anything the client can see, the client can copy. Independent testing in 2026 found that agents never broke strong
obfuscation; they went around it by running the code instead of reading it (Quarkslab), and layered obfuscation raised
their cost only about 2–5x (Elastic). What an agent cannot get around is a server it has to keep asking: REA's own
ledger will not call a rebuilt feature verified without replaying it against the real service. So clonewall tags each
finding with the step of a clone it cuts, and sorts every fix into three tiers:
- Lasting: logic, prompts, models and secrets on the server, responses that carry only what the screen shows,
per-object authorization and row-level security, per-user quotas, cross-account anomaly alerts.
- Raises the cost: attestation verified on the server and bound to the request (Play Integrity, App Attest),
bot challenges verified with siteverify, replay-resistant tokens, canary records and watermarks.
- Buys time: no source maps or symbols, minification, targeted obfuscation, anti-tamper that fails silently,
Electron fuses, certificate pinning.
Install
Any agent, one command
npx clonewall setup # or: npx clonewall setup --dry-run
Installs the harden-against-cloning skill into ~/.agents/skills (and ~/.claude/skills if you use Claude Code),
then registers the MCP server with every agent it finds: Claude Code, Codex, Cursor and Gemini CLI. Existing config is
kept; running it twice changes nothing.
Claude Code plugin
/plugin marketplace add aizen-technology/clonewall
/plugin install clonewall@clonewall
MCP server only
{
"mcpServers": {
"clonewall": { "command": "npx", "args": ["-y", "clonewall", "mcp"] }
}
}
Tools: scan_project (static scan of a folder), list_checks, hardening_guide (threat model, audit workflow and
per-platform guides).
Use
Ask your agent:
Use harden-against-cloning to audit this project.
The skill runs the static scan, then walks the agent through the checks a scan cannot do: comparing each API response
with what its screen renders, trying one user's session against another's objects, listing logic that runs on the
client, and confirming attestation and bot tokens are verified on the server. It tags every finding seen,
inferred or unknown, and writes a report from a template.
Or run the CLI yourself:
npx clonewall scan . # human-readable
npx clonewall scan .next/static # scan what actually shipped
npx clonewall scan dist/app-release.apk # read an APK, AAB, IPA, XAPK or asar in place
npx clonewall scan "release/win-unpacked" # an installed Electron app: reads app.asar and the binary's fuse wire
npx clonewall scan . --format md -o audit.md
npx clonewall scan . --platform android --min-severity medium
npx clonewall guide threat-model # also: audit-workflow, web, backend, android, ios, desktop, agents, legal
Scan build output as well as source: a shipped bundle, APK, IPA or Electron app is what the attacker starts from.
Archives are read in place; nothing is extracted to disk.
CI
- run: npx -y clonewall scan . --fail-on high --format sarif -o clonewall.sarif
- uses: github/codeql-action/upload-sarif@v3
if: always()
with:
sarif_file: clonewall.sarif
Exit codes: 0 clean (or below --fail-on), 1 a finding at or above --fail-on, 2 a usage error.
Checks
74 checks. Evidence: seen means the problem is in the files; inferred means a pattern suggests it; unknown
means the code does not show the defence, which may still live in a gateway, WAF or another repo. Severity shown is the
default; a finding can be raised (a secret in shipped output is critical) or lowered (an explorer UI is low).
The cloning steps: 1 acquire the app · 2 unpack it · 3 recover source · 4 map the API · 5 attach at runtime · 6 capture and replay traffic · 7 pull data and reuse the backend · 8 verify the clone against you.