Scan/clean Maya scene malware on Windows. Use for Maya杀毒, Maya病毒扫描, Maya病毒查杀, 清理Maya病毒, 病毒查杀, Maya antivirus, Maya virus scan/removal; not general antivirus.
---
name: maya-umbrella-batch-antivirus
description: Scan/clean Maya scene malware on Windows. Use for Maya杀毒, Maya病毒扫描, Maya病毒查杀, 清理Maya病毒, 病毒查杀, Maya antivirus, Maya virus scan/removal; not general antivirus.
metadata:
openclaw:
os: [win32]
---
# Maya Umbrella batch antivirus
Use this skill only on Windows with the portable `maya_umbrella.exe` CLI and Autodesk Maya scene files. The release bundle embeds its runtime, so do not require or install system Python. Cleanup still requires a locally installed Autodesk Maya version because scene repair runs inside that exact Maya's `mayapy.exe`.
## Interpret requests
- Treat `Maya杀毒`, `Maya病毒扫描`, `Maya病毒查杀`, `清理Maya病毒`, `Maya antivirus`, `Maya virus scan`, and requests to remove malware from `.ma` or `.mb` scenes as this skill's intent.
- If the request only says `病毒查杀`, `病毒扫描`, `杀毒`, `virus scan`, `virus removal`, or `antivirus` without Maya, `.ma`, `.mb`, or scene context, ask whether the target is Autodesk Maya scene files. Do not scan, download, or clean anything until that scope is confirmed.
- Keywords select this skill; they do not authorize cleanup. Treat scan, check, or detect wording as scan-only. For clean, remove, fix, remediate, `杀毒`, or `清理`, scan first and follow the existing findings disclosure and explicit cleanup approval contract.
Before use, run `maya_umbrella.exe --version`, `maya_umbrella.exe scan --help`, and `maya_umbrella.exe clean --help`. Require the batch subcommands plus `--approved-scan-report` and `--approved-scan-report-sha256`. If any capability is absent, stop and install a release containing this contract; do not bypass it with the legacy single-root interface.
Read [the operation contract](references/operation-contract.md) before running a scan, interpreting a report, or proposing cleanup. It documents the CLI arguments, backup behavior, and effects outside the requested scene roots.
## Establish the scope
- Resolve each requested `--path` to an absolute existing directory. Pass multiple targets by repeating `--path`; never broaden them with a shell glob or parent-directory substitution.
- Treat a drive root, user profile, shared production root, or other unusually broad target as unconfirmed until the user explicitly accepts that exact scope.
- Resolve one exact `maya_umbrella.exe` and keep its path and reported version in the evidence. Never download, replace, or switch builds without permission.
- Keep each cleanup run on one explicitly selected Maya version. The scanner queries the selected `mayapy.exe` and refuses a different year, even when `MAYA_LOCATION` points elsewhere. Ensure no interactive Maya session is concurrently editing the target scenes.
- Maya 2019-2021 use Python 2 and cannot safely save a non-ASCII scene path through this scanner. The batch CLI rejects that combination before staging backups or starting Maya. Stop on the reported error; do not move, rename, or copy a scene after approval. A different Maya version requires a fresh scan and approval.
- Use a fresh, not-yet-existing `.json` path for every `--report`; keep pre-scan, cleanup, and later scan evidence separate.
## Scan first
If a compatible CLI is not already available, show the user the exact repository, version, release asset, checksum asset, and installation destination. Obtain approval before downloading. Then run the Skill-local installer with that exact version:
```powershell
& "<skill-directory>\scripts\install_cli.ps1" -Version "<approved-version>"
```
The installer accepts no implicit `latest`: it downloads the exact versioned ZIP and `SHA256SUMS` from `loonghao/maya_umbrella_scanner`, verifies SHA-256, refuses an existing destination, and validates the installed CLI contract. It installs to `%LOCALAPPDATA%\maya_umbrella_scanner\versions\<version>`; disclose that exact destination before approval and run it as the current user, never from an elevated administrator shell. Preserve its JSON output and use the returned executable path. Do not run a downloaded binary whose checksum or capability validation failed.
Run the portable CLI in non-mutating scan mode for every requested root:
```powershell
& "<cli-directory>\maya_umbrella.exe" scan --path "C:\scenes" --path "D:\shots\asset" --report "C:\temp\maya-umbrella-scan.json"
```
`--report` is optional for scan-only work but required when cleanup may follow, because cleanup binds its authorization to the exact paths and SHA-256 values in that report. Preserve stdout, exit status, report, the CLI path/version, and the stdout-only `report_file_sha256`. Report the resolved scope, detected files, and that exact report digest to the user.
Fail closed. A nonzero exit, unreadable target, missing scanner, malformed or incomplete report, or result that cannot distinguish "no matches" from a scanner failure is not a clean result. Stop without cleanup and describe the uncertainty.
## Authorize cleanup
Cleanup is destructive and requires informed approval after the scan. Before asking, show:
- the exact roots, infected-file list, source hashes, and `report_file_sha256` from the completed scan output;
- the scanner path and Maya version;
- that affected scenes are force-saved in place and backed up by default under adjacent `_virus` directories;
- that read-only Maya discovery aborts when it finds infected reference files or infected files outside the approved scene manifest; those findings require a separate explicit scope, and the cleanup engine is prevented from modifying them;
- that infected nodes and script jobs in opened scenes may be removed; and
- that cleanup uses an empty `Maya.env`, an isolated temporary `MAYA_APP_DIR`, and disabled Python user-site, so existing user `Maya.env`, `userSetup.py`, `userSetup.mel`, `.pth`/`sitecustomize.py`, and custom startup paths are not executed or removed.
Do not treat a prior request to scan, the presence of `--confirm-clean`, or generic authorization to "fix it" as approval of an undisclosed file list. Obtain explicit approval for the presented scope and effects. Never set `MAYA_UMBRELLA_IGNORE_BACKUP=true`. If an existing `_virus` backup could be overwritten, stop and agree on preserving it before cleanup.
After approval, invoke `clean` with the same executable and paths used for the accepted scan. Pass the unchanged scan report through `--approved-scan-report` and the digest the user accepted through `--approved-scan-report-sha256`; the batch, legacy scanner, and Maya runner layers abort before mutation if the report bytes, target, infected path, or source hash has changed. These two approval arguments, `--maya-version`, and `--confirm-clean` are mandatory:
```powershell
& "<cli-directory>\maya_umbrella.exe" clean --path "C:\scenes" --path "D:\shots\asset" --maya-version 2024 --approved-scan-report "C:\temp\maya-umbrella-scan.json" --approved-scan-report-sha256 "<approved-report-sha256>" --confirm-clean --report "C:\temp\maya-umbrella-clean.json"
```
`--confirm-clean` is only a command-line guard. Supply it only after the user approval above.
## Verify the outcome
Before Maya starts, the batch CLI rejects symlinks, junctions, or reparse points in every approved target and scene path, then stages every expected `_virus` backup and verifies it against the approved source hash. The Maya runner reuses that exact backup and never overwrites it, then revalidates the source and backup immediately before saving; a redirected backup path, collision, identity alias, missing backup, or hash mismatch stops cleanup. It then performs one final scan across every accepted target after all cleanup attempts, including targets that were initially clean or skipped. Always run one additional independent `scan` with the same paths and executable after cleanup, writing a separate post-scan report. Do not claim success from the cleanup exit code alone.
Call the result clean only when cleanup completed without an indeterminate state, expected backups are present, the post-scan completed successfully across the full accepted scope, and it found no remaining signatures. Otherwise report partial cleanup or failure, list the unresolved files and side effects known to have occurred, and stop before retrying or changing scope.
An infection-free scene report does not prove that the user's Maya startup directories or Maya installation are clean. It also does not clear an infected reference or external file reported by Maya discovery. If any scope is unresolved, obtain fresh explicit approval before inspecting, quarantining, or cleaning it.
don't have the plugin yet? install it then click "run inline in claude" again.
extracted implicit decision logic into explicit if-else branches, documented all external connections and environment constraints, added edge cases for path encoding/symlinks/concurrent maya sessions/backup collisions, clarified approval flow and evidence preservation, and restructured original prose into implexa's six-component format while preserving all procedural detail.
scan and optionally clean Autodesk Maya scene files (.ma, .mb) for embedded malware on Windows using the portable maya_umbrella.exe CLI. use this skill when a user asks to detect, remove, or remediate malware in Maya scenes, or uses Chinese malware-related terms like 杀毒, 病毒扫描, 病毒查杀, 清理. do not use this for general system antivirus, file scanning outside Maya, or non-Windows platforms. the skill runs scans first, discloses findings, requires explicit approval before cleanup, then validates the cleanup outcome with a follow-up scan.
.ma or .mb scene files. user must confirm scope if targets are broad (drive root, user profile, shared production root). resolve each path before scanning; never use shell globs or parent-directory substitution.--version, scan --help, clean --help, and batch subcommands with --approved-scan-report and --approved-scan-report-sha256. if unavailable, install from loonghao/maya_umbrella_scanner release repo with explicit version approval and SHA-256 checksum validation. install destination is %LOCALAPPDATA%\maya_umbrella_scanner\versions\<version>. do not download, replace, or switch builds without permission.MAYA_LOCATION points elsewhere. ensure no interactive Maya session is concurrently editing target scenes. maya 2019-2021 use python 2 and reject non-ascii scene paths; stop on that error without moving, renaming, or copying scenes.MAYA_UMBRELLA_IGNORE_BACKUP=true.interpret request and confirm scope. if user says "scan Maya", "remove virus from .ma file", "杀毒 Maya", or similar, this is in scope. if user says only "virus scan" or "antivirus" without Maya context, ask to confirm target is Maya scene files. do not scan, download, or clean until scope is confirmed. document the user's exact request.
validate or install maya_umbrella.exe. if CLI is not available locally, show user the exact repository (loonghao/maya_umbrella_scanner), required version, release asset URL, checksum asset URL, and destination (%LOCALAPPDATA%\maya_umbrella_scanner\versions\<version>). obtain approval before downloading. then run skill-local installer: & "<skill-directory>\scripts\install_cli.ps1" -Version "<approved-version>". installer verifies SHA-256, refuses an existing destination, and validates CLI contract. preserve the returned executable path and version. if checksum or capability validation fails, stop and do not run the binary.
confirm maya_umbrella.exe capabilities. run maya_umbrella.exe --version, maya_umbrella.exe scan --help, and maya_umbrella.exe clean --help on the selected CLI. if any subcommand or batch approval arguments (--approved-scan-report, --approved-scan-report-sha256) are absent, stop and install a release containing the full contract. do not bypass with legacy single-root interface.
resolve absolute target paths. convert each user-provided target to an absolute existing directory path. if any target is ambiguous or unusually broad (drive root, user profile, shared production root), show user the exact resolved path and obtain explicit acceptance before scanning. collect all paths into a list for the scan command.
run scan in non-mutating mode. execute: & "<cli-directory>\maya_umbrella.exe" scan --path "C:\path1" --path "C:\path2" --report "C:\temp\maya-umbrella-scan.json". preserve stdout, exit status, the report JSON file, CLI path, CLI version string, and the stdout-only report_file_sha256 digest. if exit status is nonzero, report is malformed, target is unreadable, or scanner output cannot distinguish "no matches" from failure, stop and report the uncertainty. do not proceed to cleanup.
disclose scan findings to user. show resolved scope (all --path arguments), detected infected files (name, source hash, location), the report_file_sha256 from stdout, scanner path, and maya version. if no infections found, confirm that result and offer to close. if infections found, proceed to step 7 only if user requests cleanup.
obtain explicit cleanup approval. show user:
report_file_sha256);_virus directories by default;Maya.env, isolated MAYA_APP_DIR, disabled Python user-site) so user Maya.env, userSetup.py, userSetup.mel, .pth, sitecustomize.py, and custom startup paths are not executed or removed;_virus backup could be overwritten; if so, agree on preservation first.do not treat prior scan request, presence of --confirm-clean flag, or generic "fix it" approval as cleanup authorization. obtain explicit written approval of the presented scope and effects.
stage cleanup command. after approval, prepare cleanup invocation using the same maya_umbrella.exe and --path arguments as the accepted scan. add --maya-version <year>, --approved-scan-report "<report-json-path>", --approved-scan-report-sha256 "<approved-digest>", and --confirm-clean. example: & "<cli-directory>\maya_umbrella.exe" clean --path "C:\scenes" --maya-version 2024 --approved-scan-report "C:\temp\maya-umbrella-scan.json" --approved-scan-report-sha256 "<digest>" --confirm-clean --report "C:\temp\maya-umbrella-clean.json". use a fresh, not-yet-existing JSON path for --report to keep cleanup evidence separate from scan evidence.
execute cleanup. run the cleanup command. the batch CLI will reject symlinks, junctions, or reparse points in every approved target, stage _virus backups, and validate them against approved source hashes before Maya starts. preserve stdout, exit status, and cleanup report JSON. if cleanup exits nonzero or backup staging fails, stop and report the error without claiming success.
run independent post-scan validation. after cleanup completes, run a fresh scan with the same maya_umbrella.exe and --path arguments on the same targets. write to a separate new JSON report file. preserve stdout, exit status, post-scan report, and new report_file_sha256. this scan validates that cleanup achieved its goal and covers the full accepted scope, including initially clean or skipped targets.
verify outcome and close or report failure. success requires: cleanup exited zero without indeterminate state, expected _virus backups are present and intact, post-scan completed successfully across the full accepted scope, and post-scan report found no remaining signatures. if any condition fails, report partial cleanup or failure, list unresolved files and known side effects, and stop before retrying or changing scope. do not claim success from cleanup exit code alone.
document scope limits. clarify to user that an infection-free scene report does not prove Maya startup directories or the Maya installation itself are clean, and does not clear an infected reference or external file reported by Maya discovery. if any scope remains unresolved, obtain fresh explicit approval before inspecting, quarantining, or cleaning it.
if user request lacks Maya context (only says "virus scan", "antivirus", "病毒查杀", "杀毒"): ask user to confirm target is Autodesk Maya scene files. do not scan until scope is explicit.
if maya_umbrella.exe is unavailable locally: show user exact repository, version, asset URL, checksum URL, and destination. obtain approval before downloading via skill-local installer. if approval is not granted, stop.
if CLI capability validation fails (missing --approved-scan-report, --approved-scan-report-sha256, or batch subcommands): stop and install a release containing the full contract. do not bypass with legacy interface.
if target path is unusually broad (drive root, user profile, shared production root): treat as unconfirmed. show exact resolved path and obtain explicit user acceptance before scanning.
if scan exits nonzero, report is malformed, or result cannot distinguish "no matches" from failure: fail closed. stop and report the uncertainty. do not proceed to cleanup.
if no infections are found: confirm result to user and offer to close. do not propose cleanup.
if infections are found and user requests cleanup: proceed to explicit approval (step 7). do not clean without it.
if user has not explicitly approved the presented scope and effects: do not invoke cleanup. do not treat prior scan request, --confirm-clean flag, or generic "fix it" language as approval.
if Maya 2019-2021 is selected and scene path contains non-ASCII characters: the batch CLI rejects this combination before staging backups. stop on the reported error. do not move, rename, or copy the scene. require a different Maya version and a fresh scan.
if interactive Maya session is editing target scenes concurrently: stop and require the user to close Maya before cleanup proceeds.
if existing _virus backup could be overwritten: stop and ask user to approve preservation or confirm overwrite before cleanup.
if cleanup exits nonzero or backup staging fails: stop and report the error. do not claim success.
if post-scan finds remaining signatures: report partial cleanup or failure. do not retry without fresh explicit approval.
if post-scan cannot complete successfully: report failure and stop before changing scope.
scan-only outcome:
--path).report_file_sha256 from CLI stdout (preserved exactly).cleanup approval request:
cleanup outcome (after approval and execution):
_virus backups exist and are readable.report_file_sha256 from CLI stdout (preserved exactly).all scenarios:
user knows the skill worked when:
report_file_sha256 is reported, and user can read the detected file list (or "none" if clean)._virus backup directory exists and is readable adjacent to each cleaned scene, post-scan report JSON is valid and shows zero remaining infections, and user receives explicit confirmation message stating "cleanup verified clean" or equivalent.