Cage:为 Claude 特化的轻量化虚拟机,彻底杜绝网络泄露。多平台适配,支持多账号管理、远程部署、移动端操控。
This report summarizes scanner evidence for Lee-xeo/Claude-Cage, a Go project with 5,560 GitHub stars. SynthScan examined 353,816 lines of code across 2301 source files, recording 552 pattern matches distributed across 15 syntactic categories. The legacy adjusted pattern signal is 2.3 (Low pattern signal); it is not an authorship estimate.
Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.
Use each vector to guide manual verification of the underlying findings.
Payload schema: 1.0.0 · Engine: 2.0.0 · Scoring: heuristic-density-v1 · Scan date: 2026-11-15.
Can maintainers explain intent, assumptions, and trade-offs? 426 finding(s).
Are imports declared and package/API names verified? 51 finding(s).
Are wrappers, guards, and repeated structures necessary? 231 finding(s).
Which changes need focused human review? 552 finding(s).
Run additional scans to build a history of the legacy pattern signal. Score changes are not a measure of AI adoption or code quality.
Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.
This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.
The scanner identified 552 distinct pattern matches across 15 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.
Reading the findings table: The Severity column indicates the configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | runtime.example.sh | 1 | #!/bin/bash | COMMENT |
| LOW | runtime.example.sh | 21 | COMMENT | |
| LOW | runtime.example.sh | 41 | # gh auth setup-git | COMMENT |
| LOW | runtime.example.sh | 61 | # pattern, in "$PWD/.claude/skills/project-skills" (which fails under | COMMENT |
| LOW | runtime.example.sh | 81 | # The command output is displayed at the bottom of the Claude Code interface. | COMMENT |
| LOW | assets.go | 1 | // Package agentvm holds the files of this repository the binary embeds. | COMMENT |
| LOW | agent-vm.setup.sh | 1 | #!/usr/bin/env bash | COMMENT |
| LOW | agent-vm.setup.sh | 141 | COMMENT | |
| LOW | agent-vm.setup.sh | 341 | # npm retries interrupted package transfers and verifies registry integrity. | COMMENT |
| LOW | agent-vm.setup.sh | 461 | esac | COMMENT |
| LOW | agent-vm.setup.sh | 621 | # Usage: configure_mcp <server-name> <command> [arg...] | COMMENT |
| LOW | agent-vm.sh | 1 | #!/usr/bin/env bash | COMMENT |
| LOW | tests/installer.sh | 1 | #!/usr/bin/env bash | COMMENT |
| LOW | internal/cli/code.go | 201 | tty := ui.IsTerminal(os.Stdin) && ui.IsTerminal(os.Stdout) | COMMENT |
| LOW | internal/cli/probe.go | 21 | COMMENT | |
| LOW | internal/vm/vm.go | 101 | // when it asks for any free one (Debian's ip_local_port_range). Never | COMMENT |
| LOW | internal/vm/vm.go | 121 | COMMENT | |
| LOW | internal/vmname/vmname.go | 21 | const OldPrefix = "agent-vm-" | COMMENT |
| LOW | internal/workbench/projects.go | 281 | } | COMMENT |
| LOW | internal/netguard/netguard.go | 21 | // FileName is the policy's file in agent-vm's state folder. | COMMENT |
| LOW | desktop/linux/cage-desktop.c | 1 | /* Native Linux host for the shared Cage workbench. */ | COMMENT |
| LOW | www/public/install.sh | 1 | #!/bin/sh | COMMENT |
| LOW | third_party/lima/cmd/limactl/shell.go | 401 | if runtime.GOOS == "windows" { | COMMENT |
| LOW | third_party/lima/cmd/limactl/shell.go | 901 | // | COMMENT |
| LOW | third_party/lima/hack/update-template-macos.sh | 41 | HELP | COMMENT |
| LOW | third_party/lima/hack/toolexec-for-codesign.sh | 1 | #!/bin/sh | COMMENT |
| LOW | third_party/lima/hack/update-template-ubuntu.sh | 61 | ["daily"]=https://cloud-images.ubuntu.com/daily/ | COMMENT |
| LOW | third_party/lima/hack/update-template-ubuntu.sh | 301 | echo "${version}" | COMMENT |
| LOW | third_party/lima/hack/update-template-ubuntu.sh | 321 | # ``` | COMMENT |
| LOW | third_party/lima/hack/calculate-cache.sh | 1 | #!/usr/bin/env bash | COMMENT |
| LOW | third_party/lima/hack/calculate-cache.sh | 21 | # 3. detect size of image, kernel, initrd, and nerdctl (responses from remote are cached for faster iteration) | COMMENT |
| LOW | third_party/lima/hack/calculate-cache.sh | 61 | export LIMA_HOME | COMMENT |
| LOW | third_party/lima/hack/calculate-cache.sh | 141 | } | COMMENT |
| LOW | third_party/lima/hack/calculate-cache.sh | 161 | # "macOS-49aa50a4872ded07ebf657c0eaf9e44ecc0c174d033a97c537ecd270f35b462f": 813179462, | COMMENT |
| LOW | third_party/lima/hack/inject-cmdline-to-template.sh | 1 | #!/usr/bin/env bash | COMMENT |
| LOW | third_party/lima/hack/update-template-debian.sh | 221 | # debian_url_spec_from_location https://cloud.debian.org/images/cloud/bookworm/latest/debian-12-genericcloud-amd64.qcow2 | COMMENT |
| LOW | third_party/lima/hack/update-template-debian.sh | 261 | COMMENT | |
| LOW | third_party/lima/hack/update-template-debian.sh | 301 | COMMENT | |
| LOW | third_party/lima/hack/cache-common-inc.sh | 1 | #!/usr/bin/env bash | COMMENT |
| LOW | third_party/lima/hack/cache-common-inc.sh | 281 | # image-path=.download/by-url-sha256/ae988d797c6de06b9c8a81a2b814904151135ccfd4616c22948057f6280477e8 | COMMENT |
| LOW | third_party/lima/hack/cache-common-inc.sh | 301 | # containerd-path=.download/by-url-sha256/21cc8dfa548ea8a678135bd6984c9feb9f8a01901d10b11bb491f6f4e7537158 | COMMENT |
| LOW | third_party/lima/hack/test-selinux.sh | 21 | ## but it might break for other work loads if the process is running with | COMMENT |
| LOW | third_party/lima/hack/update-template-opensuse.sh | 161 | [[ -n ${latest_version_info} ]] || return | COMMENT |
| LOW | third_party/lima/hack/update-template.sh | 101 | # validate_url checks if the URL is valid and prints the location if it is. | COMMENT |
| LOW | third_party/lima/hack/update-template.sh | 141 | # - ${distribution}_cache_key_for_image_kernel | COMMENT |
| LOW | third_party/lima/hack/ltag/dockerfile.txt | 1 | # SPDX-FileCopyrightText: Copyright The Lima Authors | COMMENT |
| LOW | third_party/lima/hack/ltag/bash.txt | 1 | # SPDX-FileCopyrightText: Copyright The Lima Authors | COMMENT |
| LOW | third_party/lima/hack/ltag/makefile.txt | 1 | # SPDX-FileCopyrightText: Copyright The Lima Authors | COMMENT |
| LOW | third_party/lima/templates/k8s.yaml | 1 | # Deploy kubernetes via kubeadm. | COMMENT |
| LOW | third_party/lima/templates/faasd.yaml | 1 | # Deploy faasd (which installs a bundled containerd). | COMMENT |
| LOW | third_party/lima/templates/k0s.yaml | 1 | # Deploy kubernetes via k0s (which installs a bundled containerd). | COMMENT |
| LOW | third_party/lima/templates/windows.yaml | 41 | # script: | | COMMENT |
| LOW | third_party/lima/templates/k3s.yaml | 1 | # Deploy kubernetes via k3s (which installs a bundled containerd). | COMMENT |
| LOW | third_party/lima/templates/windows-2025.yaml | 21 | arch: "x86_64" | COMMENT |
| LOW | third_party/lima/templates/windows-2025.yaml | 41 | # skipDefaultDependencyResolution: false | COMMENT |
| LOW | third_party/lima/templates/windows-11.yaml | 41 | # script: | | COMMENT |
| LOW | third_party/lima/templates/default.yaml | 1 | # ===================================================================== # | COMMENT |
| LOW | third_party/lima/templates/default.yaml | 21 | # an optional `variant` (e.g. "server", "minimal", "genericcloud"), and an optional `archVariant` | COMMENT |
| LOW | third_party/lima/templates/default.yaml | 41 | # CPUs | COMMENT |
| LOW | third_party/lima/templates/default.yaml | 61 | # - location: "~" | COMMENT |
| 131 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | ui/src/macos-project-approval.jsx | 13 | export function InitializationProjectApproval({ workspace, jobRunning, onClose, onApproved = onClose }) { | CODE |
| LOW | ui/src/agent-native.js | 99 | export function createAgentNativeConsumer({ api, native, nativeAvailable, getContext, storage, reload, getOrigin = () => | CODE |
| LOW | ui/src/agent-native.js | 159 | export function installAgentNativeConsumer(dependencies, environment = globalThis) { | CODE |
| LOW | tests/sftp/fs_suite.py | 109 | def append_two_fds_interleaved(d): | CODE |
| LOW | tests/sftp/fs_suite.py | 197 | def truncate_after_chmod_readonly(d): | CODE |
| LOW | tests/sftp/fs_suite.py | 299 | def order_write_then_ftruncate(d): | CODE |
| LOW | tests/sftp/fs_suite.py | 313 | def order_write_then_fstat_and_read(d): | CODE |
| LOW | tests/sftp/fs_suite.py | 553 | def replace_open_file_atomic_save(d): | CODE |
| LOW | tests/sftp/fs_suite.py | 663 | def tool_patch_and_sed_inplace(d): | CODE |
| LOW | tests/sftp/fs_suite.py | 672 | def tool_git_worktree_outside_dotgit(d): | CODE |
| LOW | tests/sftp/fs_suite.py | 691 | def tool_python_logging_append(d): | CODE |
| LOW | internal/cage/desktop-downloads.test.py | 43 | def test_chromium_partial_is_not_published_until_final_rename(self): | CODE |
| LOW | internal/cage/desktop-downloads.test.py | 58 | def test_direct_export_waits_for_close_and_preserves_existing_file(self): | CODE |
| LOW | internal/cage/desktop-downloads.test.py | 74 | def test_cancel_discards_partial_and_empty_download_completes_by_rename(self): | CODE |
| LOW | internal/cage/desktop-downloads.test.py | 90 | def test_failed_copy_can_retry_after_restart_but_incomplete_cannot(self): | CODE |
| LOW | internal/cage/desktop-downloads.test.py | 111 | def test_invalid_names_and_symlinks_never_copy_arbitrary_files(self): | CODE |
| LOW | internal/cage/desktop-downloads.test.py | 124 | def test_real_portal_savefile_response_and_cancel_openfile(self): | CODE |
| LOW | internal/cage/save-download.test.py | 34 | def test_atomic_publish_does_not_overwrite_existing_file_or_symlink(self): | CODE |
| LOW⚡ | internal/cage/save-download.test.py | 46 | def test_write_failure_keeps_source_and_publishes_no_partial_file(self): | CODE |
| LOW⚡ | internal/cage/save-download.test.py | 55 | def test_symlink_download_directory_is_refused(self): | CODE |
| LOW⚡ | internal/cage/save-download.test.py | 63 | def test_cleanup_does_not_delete_replaced_source(self): | CODE |
| LOW | internal/cage/save-download.test.py | 75 | def test_only_fixed_guid_and_leaf_names_are_accepted(self): | CODE |
| LOW | internal/cage/save-download.test.py | 84 | def test_cleanup_keeps_source_modified_after_copy(self): | CODE |
| LOW⚡ | internal/cage/claude-account.test.py | 126 | def test_duplicate_login_recovery_preserves_credentials_on_failed_verification(self): | STRING |
| LOW⚡ | internal/cage/claude-account.test.py | 132 | def test_duplicate_login_recovery_preserves_credentials_on_verification_error(self): | STRING |
| LOW⚡ | internal/cage/claude-account.test.py | 139 | def test_duplicate_login_recovery_preserves_replacement_at_publication(self): | STRING |
| LOW | internal/cage/claude-account.test.py | 57 | def test_isolated_cli_snapshot_and_subject_bound_quota(self): | STRING |
| LOW | internal/cage/claude-account.test.py | 98 | def test_duplicate_login_recovers_missing_credentials_without_moving_history(self): | STRING |
| LOW | internal/cage/claude-account.test.py | 112 | def test_duplicate_login_recovery_refuses_other_identities_and_existing_credentials(self): | STRING |
| LOW | internal/cage/claude-account.test.py | 156 | def test_duplicate_login_recovery_does_not_remove_a_concurrent_replacement(self): | STRING |
| LOW | internal/cage/claude-account.test.py | 171 | def test_duplicate_login_recovery_preserves_valid_original_and_rejects_unsafe_source(self): | STRING |
| LOW | internal/cage/claude-account.test.py | 188 | def test_duplicate_login_recovery_command_exports_only_status(self): | STRING |
| LOW | internal/cage/claude-account.test.py | 197 | def test_duplicate_login_recovery_command_copies_missing_login(self): | STRING |
| LOW | internal/cage/claude-account.test.py | 220 | def test_missing_window_keeps_its_observation_time(self): | STRING |
| LOW | internal/cage/claude-account.test.py | 237 | def test_cli_arguments_and_existing_statusline(self): | STRING |
| LOW | internal/cage/claude-account.test.py | 248 | def test_official_process_receives_no_controller_flags_and_callbacks_still_work(self): | STRING |
| LOW | internal/cage/claude-account.test.py | 266 | def test_callback_state_does_not_enter_its_process_environment(self): | STRING |
| LOW | internal/cage/claude-account.test.py | 274 | def test_installed_account_symlink_finds_its_versioned_runtime(self): | STRING |
| LOW | internal/cage/claude-account.test.py | 286 | def test_default_reuses_the_existing_configuration_and_pin(self): | STRING |
| LOW | internal/cage/claude-account.test.py | 315 | def test_local_skills_instructions_and_memory_share_without_credentials(self): | STRING |
| LOW | internal/cage/claude-account.test.py | 338 | def test_conflicting_shared_resource_preserves_both_versions(self): | STRING |
| LOW | internal/cage/claude-account.test.py | 354 | def test_existing_project_memory_is_backed_up_and_remains_shared(self): | STRING |
| LOW | internal/cage/claude-account.test.py | 369 | def test_mobile_settings_remain_anonymous_when_adding_shared_defaults(self): | STRING |
| LOW | internal/cage/claude-account.test.py | 382 | def test_cancel_login_closes_browser_even_when_cli_fails(self): | STRING |
| LOW | internal/cage/claude-account.test.py | 391 | def test_login_callback_retains_account_without_passing_controller_flags(self): | STRING |
| LOW | internal/cage/claude-account.test.py | 448 | def test_official_usage_windows_are_subject_bound_and_independently_cached(self): | STRING |
| LOW | internal/cage/claude-account.test.py | 497 | def test_legacy_control_windows_and_row_fallback(self): | STRING |
| LOW | internal/cage/claude-account.py | 486 | def shared_launch_arguments_locked(base, args, settings_fd): | CODE |
| LOW⚡ | internal/cage/display-governor.test.py | 36 | def test_rate_follows_time_since_input(self): | CODE |
| LOW⚡ | internal/cage/display-governor.test.py | 43 | def test_wakes_exactly_at_the_next_change(self): | CODE |
| LOW⚡ | internal/cage/display-governor.test.py | 48 | def test_only_its_own_modes_are_governed(self): | CODE |
| LOW⚡ | internal/cage/display-governor.test.py | 54 | def test_mode_has_the_requested_refresh_rate(self): | CODE |
| LOW⚡ | internal/cage/display-governor.test.py | 61 | def test_full_rate_returns_to_the_size_owners_mode(self): | CODE |
| LOW⚡ | internal/cage/display-governor.test.py | 68 | def test_full_rate_never_restores_another_size(self): | CODE |
| LOW⚡ | internal/cage/display-governor.test.py | 75 | def test_activity_without_a_path_listens_nowhere(self): | CODE |
| LOW⚡ | internal/cage/display-governor.test.py | 80 | def test_activity_replaces_a_stale_socket_and_drops_closed_clients(self): | CODE |
| LOW | internal/cage/display-governor.test.py | 98 | def test_raw_key_reads_the_keycode(self): | CODE |
| LOW | internal/cage/display-governor.test.py | 193 | def test_unattended_display_slows_and_input_restores_it(self): | CODE |
| LOW | internal/cage/display-governor.test.py | 209 | def test_a_write_to_the_activity_socket_is_viewer_input(self): | CODE |
| LOW | internal/cage/display-governor.test.py | 237 | def test_caret_probe_key_is_not_viewer_input(self): | CODE |
| 96 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | internal/cage/display-governor.py | 348 | except Exception: | CODE |
| HIGH | internal/cage/claude-account.py | 495 | except (OSError, subprocess.SubprocessError): | CODE |
| HIGH | internal/cage/claude-account.py | 339 | except (OSError, ValueError, TypeError, AttributeError, subprocess.SubprocessError): | CODE |
| HIGH | internal/cage/shared-clipboard.py | 490 | except EOFError: | CODE |
| HIGH | internal/cage/shared-clipboard.py | 154 | except ProcessLookupError: | CODE |
| HIGH | internal/cage/native-ime.py | 335 | except (OSError, ValueError): | CODE |
| HIGH | internal/cage/save-download.py | 29 | except FileExistsError: | CODE |
| HIGH | internal/cage/save-download.py | 59 | except FileNotFoundError: | CODE |
| HIGH | internal/cage/client_runtime.py | 48 | except FileExistsError: | CODE |
| HIGH | internal/workbench/mobile_cli_identity.py | 146 | except FileNotFoundError: | CODE |
| HIGH | internal/workbench/mobile_cli_identity.py | 390 | except FileExistsError: | CODE |
| HIGH | internal/workbench/safety_probe.py | 73 | except ValueError: | CODE |
| HIGH | internal/workbench/safety_probe.py | 105 | except OSError: | CODE |
| HIGH | internal/workbench/safety_probe.py | 115 | except (OSError, ValueError, ImportError): | CODE |
| HIGH | internal/workbench/safety_probe.py | 174 | except (OSError, subprocess.SubprocessError): | CODE |
| HIGH | internal/workbench/safety_probe.py | 186 | except OSError: | CODE |
| HIGH | internal/workbench/safety_probe.py | 121 | except Exception: # unknown zone, missing tzdata or zoneinfo module | CODE |
| HIGH | internal/workbench/macos_resources.py | 85 | except OSError: | CODE |
| HIGH | internal/workbench/macos_resources.py | 89 | except OSError: | CODE |
| HIGH | internal/workbench/native_component_probe.py | 50 | except (OSError, ValueError, AttributeError): | CODE |
| HIGH | internal/workbench/cli_channel.py | 490 | except (OSError, ValueError, AttributeError): | CODE |
| HIGH | internal/workbench/cli_channel.py | 522 | except ProcessLookupError: | CODE |
| HIGH | internal/workbench/mobile_cli_supervisor.py | 62 | except ProcessLookupError: | CODE |
| HIGH | internal/workbench/mobile_cli_supervisor.py | 39 | except ProcessLookupError: | CODE |
| HIGH | internal/workbench/mobile_cli_supervisor.py | 127 | except BlockingIOError: | CODE |
| HIGH | internal/workbench/guest-session.py | 24 | except OSError: | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | tests/sftp/fs_suite.py | 123 | r = subprocess.run(["bash", "-c", "printf 'a\\n' >> f && seq 1 500 >> f && echo z >> f"], cwd=d) | CODE |
| HIGH | tests/sftp/fs_suite.py | 646 | r = subprocess.run(f"tar -C {src} -cf - . | (mkdir {d}/out && tar -C {d}/out -xpf -)", shell=True, | CODE |
| HIGH⚡ | internal/cage/novnc-patch.py | 40 | this._cageKeyboardTarget = target || this._canvas; | CODE |
| HIGH⚡ | internal/cage/novnc-patch.py | 49 | (this._cageKeyboardTarget || this._canvas).focus(options); | CODE |
| HIGH⚡ | internal/cage/novnc-patch.py | 53 | (this._cageKeyboardTarget || this._canvas).blur(); | CODE |
| HIGH⚡ | internal/cage/novnc-patch.py | 59 | const result = (this._cageInputChain || Promise.resolve()).then(action); | CODE |
| HIGH⚡ | internal/cage/novnc-patch.py | 62 | if (this._cageInputChain === result) this._cageInputChain = null; | CODE |
| HIGH | internal/cage/novnc-patch.py | 79 | const id = 'cage-input-' + (this._cageInputSequence = (this._cageInputSequence || 0) + 1); | CODE |
| HIGH | internal/cage/novnc-patch.py | 81 | this._cageInputFence = null; | CODE |
| HIGH | internal/cage/novnc-patch.py | 99 | if (value.png || value.files || value.fileSelection) return this._cageRunInput(() => pasteImage(value)); | CODE |
| HIGH | internal/cage/novnc-patch.py | 118 | const id = 'cage-paste-' + (this._cagePasteSequence = (this._cagePasteSequence || 0) + 1); | CODE |
| HIGH | internal/cage/novnc-patch.py | 120 | if (this._cagePasteJob?.id === id) this._cagePasteJob = null; | CODE |
| HIGH | internal/cage/novnc-patch.py | 146 | if (keysym >= 0xffe1 && keysym <= 0xffee) { | CODE |
| HIGH⚡ | internal/cage/novnc-patch.py | 171 | if (input && payload === input.id) { | CODE |
| HIGH⚡ | internal/cage/novnc-patch.py | 173 | this._cageInputFence = null; | CODE |
| HIGH⚡ | internal/cage/novnc-patch.py | 179 | if (job && job.phase === 'fence' && payload === job.id) { | CODE |
| HIGH | internal/cage/novnc-patch.py | 194 | if (job && job.phase === 'keys' && payload === job.id + '-keys') { | CODE |
| HIGH | internal/cage/novnc-patch.py | 196 | this._cagePasteJob = null; | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | runtime.example.sh | 2 | # ============================================================================= | COMMENT |
| MEDIUM | runtime.example.sh | 4 | # ============================================================================= | COMMENT |
| MEDIUM⚡ | runtime.example.sh | 23 | # ============================================================================= | COMMENT |
| MEDIUM⚡ | runtime.example.sh | 25 | # ============================================================================= | COMMENT |
| MEDIUM⚡ | runtime.example.sh | 34 | # ============================================================================= | COMMENT |
| MEDIUM⚡ | runtime.example.sh | 36 | # ============================================================================= | COMMENT |
| MEDIUM⚡ | runtime.example.sh | 44 | # ============================================================================= | COMMENT |
| MEDIUM⚡ | runtime.example.sh | 46 | # ============================================================================= | COMMENT |
| MEDIUM⚡ | runtime.example.sh | 65 | # ============================================================================= | COMMENT |
| MEDIUM⚡ | runtime.example.sh | 67 | # ============================================================================= | COMMENT |
| MEDIUM⚡ | runtime.example.sh | 76 | # ============================================================================= | COMMENT |
| MEDIUM⚡ | runtime.example.sh | 78 | # ============================================================================= | COMMENT |
| MEDIUM | tests/setup-script.sh | 29 | # ============================================================================= | COMMENT |
| MEDIUM | tests/setup-script.sh | 31 | # ============================================================================= | COMMENT |
| MEDIUM | tests/setup-script.sh | 134 | # ============================================================================= | COMMENT |
| MEDIUM | tests/setup-script.sh | 136 | # ============================================================================= | COMMENT |
| MEDIUM | tests/setup-script.sh | 168 | # ============================================================================= | COMMENT |
| MEDIUM | tests/setup-script.sh | 170 | # ============================================================================= | COMMENT |
| MEDIUM | tests/setup-script.sh | 196 | # ============================================================================= | COMMENT |
| MEDIUM | tests/setup-script.sh | 198 | # ============================================================================= | COMMENT |
| MEDIUM | tests/setup-script.sh | 213 | # ============================================================================= | COMMENT |
| MEDIUM | tests/setup-script.sh | 215 | # ============================================================================= | COMMENT |
| MEDIUM | tests/setup-script.sh | 277 | # ============================================================================= | COMMENT |
| MEDIUM | tests/setup-script.sh | 279 | # ============================================================================= | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/sftp/fs_suite.py | 143 | CODE | |
| LOW | tests/sftp/fs_suite.py | 513 | CODE | |
| LOW | tests/sftp/fs_suite.py | 700 | CODE | |
| LOW | tests/sftp/fs_suite.py | 789 | CODE | |
| LOW | internal/cage/desktop-downloads.py | 65 | CODE | |
| LOW | internal/cage/desktop-downloads.py | 106 | CODE | |
| LOW | internal/cage/desktop-downloads.py | 150 | CODE | |
| LOW | internal/cage/display-governor.py | 204 | CODE | |
| LOW | internal/cage/display-governor.py | 264 | CODE | |
| LOW | internal/cage/claude-account.py | 186 | CODE | |
| LOW | internal/cage/claude-account.py | 245 | CODE | |
| LOW | internal/cage/claude-account.py | 377 | CODE | |
| LOW | internal/cage/claude-account.py | 394 | CODE | |
| LOW | internal/cage/claude-account.py | 486 | CODE | |
| LOW | internal/cage/claude-account.py | 406 | CODE | |
| LOW | internal/cage/claude-account.py | 416 | CODE | |
| LOW | internal/cage/shared-clipboard.py | 242 | CODE | |
| LOW | internal/cage/shared-clipboard.py | 306 | CODE | |
| LOW | internal/cage/shared-clipboard.py | 500 | CODE | |
| LOW | internal/cage/shared-clipboard.py | 147 | CODE | |
| LOW | internal/cage/shared-clipboard.py | 460 | CODE | |
| LOW | internal/cage/tool-download.py | 53 | CODE | |
| LOW | internal/cage/tool-download.py | 86 | CODE | |
| LOW | internal/cage/tool-download.py | 125 | CODE | |
| LOW | internal/cage/image-input.py | 85 | CODE | |
| LOW | internal/cage/guest-wait-services.py | 8 | CODE | |
| LOW | internal/cage/desktop-files.py | 117 | CODE | |
| LOW | internal/cage/desktop-files.py | 215 | CODE | |
| LOW | internal/cage/desktop-files.py | 250 | CODE | |
| LOW | internal/cage/desktop-files.py | 424 | CODE | |
| LOW | internal/cage/save-download.py | 20 | CODE | |
| LOW | internal/cage/editor-migrate.py | 29 | CODE | |
| LOW | internal/cage/phone-desktop/view.py | 96 | CODE | |
| LOW | internal/cage/phone-desktop/view.py | 176 | CODE | |
| LOW | internal/cage/phone-desktop/view.py | 323 | CODE | |
| LOW | internal/workbench/mobile_cli_identity.py | 127 | CODE | |
| LOW | internal/workbench/mobile_cli_identity.py | 153 | CODE | |
| LOW | internal/workbench/mobile_cli_identity.py | 324 | CODE | |
| LOW | internal/workbench/windows_ccs_context_test.py | 23 | CODE | |
| LOW | internal/workbench/native_component_probe.py | 10 | CODE | |
| LOW | internal/workbench/cache_maintenance.py | 59 | CODE | |
| LOW | internal/workbench/cache_maintenance.py | 107 | CODE | |
| LOW | internal/workbench/cache_maintenance.py | 428 | CODE | |
| LOW | internal/workbench/cache_maintenance.py | 64 | CODE | |
| LOW | internal/workbench/cache_maintenance.py | 255 | CODE | |
| LOW | internal/workbench/windows_cli_platform.py | 253 | CODE | |
| LOW | internal/workbench/windows_cli_channel_test.py | 37 | CODE | |
| LOW | internal/workbench/linux-desktop-visibility.py | 23 | CODE | |
| LOW | internal/workbench/cli_channel.py | 140 | CODE | |
| LOW | internal/workbench/cli_channel.py | 175 | CODE | |
| LOW | internal/workbench/cli_channel.py | 229 | CODE | |
| LOW | internal/workbench/cli_channel.py | 284 | CODE | |
| LOW | internal/workbench/cli_channel.py | 537 | CODE | |
| LOW | internal/workbench/cli_channel.py | 805 | CODE | |
| LOW | internal/workbench/cli_channel.py | 927 | CODE | |
| LOW | internal/workbench/cli_channel.py | 815 | CODE | |
| LOW | internal/workbench/mobile_cli_supervisor.py | 65 | CODE | |
| LOW | scripts/update-hostname-catalog.py | 41 | CODE | |
| LOW | scripts/update-hostname-catalog.py | 104 | CODE | |
| LOW | scripts/guest-os/macos-cli.py | 17 | CODE | |
| 3 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | internal/workbench/claude_accounts_test.go | 94 | first := claudeGuestSnapshot{LoggedIn: true, Email: "Work@example.org", Organization: "work", Quota: &claudeQuota{ | CODE |
| LOW⚡ | internal/workbench/claude_accounts_test.go | 117 | first.Email = "new@example.org" | CODE |
| LOW⚡ | internal/workbench/claude_accounts_test.go | 119 | if list.Accounts[0].Status != "changed" || list.Accounts[0].Quota == nil || list.Accounts[0].Email != "work@example.org | CODE |
| LOW⚡ | internal/workbench/claude_accounts_test.go | 127 | {ID: strings.Repeat("a", 24), Label: "A", Enabled: true, Status: "ready", Email: "a@example.org"}, | CODE |
| LOW⚡ | internal/workbench/claude_accounts_test.go | 128 | {ID: strings.Repeat("b", 24), Label: "B", Enabled: true, Status: "ready", Email: "b@example.org"}, | CODE |
| LOW | internal/workbench/claude_accounts_test.go | 143 | ids[0]: {claudeQuota: q, Identity: claudeIdentityHash("a@example.org", "")}, | CODE |
| LOW | internal/workbench/claude_accounts_test.go | 144 | ids[1]: {claudeQuota: q, Identity: claudeIdentityHash("someoneelse@example.org", "")}, | CODE |
| LOW | internal/workbench/claude_accounts_test.go | 252 | list.Accounts[0].Email = "original@example.org" | CODE |
| LOW | internal/workbench/claude_accounts_discovery_test.go | 23 | a := claudeGuestSnapshot{LoggedIn: true, Email: "a@example.org", Organization: "personal", Quota: &claudeQuota{Observed | CODE |
| LOW | internal/workbench/claude_accounts_discovery_test.go | 24 | b := claudeGuestSnapshot{LoggedIn: true, Email: "b@example.org", Organization: "work"} | CODE |
| LOW | internal/workbench/claude_accounts_discovery_test.go | 101 | read := claudeGuestSnapshot{LoggedIn: true, Email: "managed@example.org", Organization: "team"} | CODE |
| LOW | internal/workbench/claude_accounts_discovery_test.go | 105 | {ID: strings.Repeat("b", 24), Source: "default", Email: "old@example.org", Organization: "team", Enabled: true, Status | CODE |
| LOW | internal/workbench/claude_accounts_discovery_test.go | 150 | current = claudeGuestSnapshot{LoggedIn: true, Email: "real@example.org", Organization: "work", Plan: "pro"} | CODE |
| LOW | internal/workbench/claude_accounts_discovery_test.go | 197 | current = claudeGuestSnapshot{LoggedIn: true, Email: "same@example.org"} | CODE |
| LOW | internal/workbench/claude_accounts_discovery_test.go | 223 | reading := claudeGuestSnapshot{LoggedIn: true, Email: "same@example.org", Organization: "work", Plan: "pro"} | CODE |
| LOW | internal/workbench/claude_accounts_discovery_test.go | 284 | reading := claudeGuestSnapshot{LoggedIn: true, Email: "same@example.org", Organization: "work"} | CODE |
| LOW | internal/workbench/claude_accounts_discovery_test.go | 297 | return claudeGuestSnapshot{LoggedIn: true, Email: "other@example.org", Organization: "work"}, nil | CODE |
| LOW | internal/workbench/claude_accounts_discovery_test.go | 336 | reading := claudeGuestSnapshot{LoggedIn: true, Email: "same@example.org", Organization: "work"} | CODE |
| LOW | internal/workbench/claude_accounts_discovery_test.go | 428 | a := claudeGuestSnapshot{LoggedIn: true, Email: "a@example.org", Organization: "home"} | CODE |
| LOW | internal/workbench/claude_accounts_discovery_test.go | 429 | b := claudeGuestSnapshot{LoggedIn: true, Email: "b@example.org", Organization: "work"} | CODE |
| LOW | internal/workbench/claude_accounts_usage_test.go | 22 | list.Accounts = append(list.Accounts, claudeAccount{ID: id, Source: "managed", Status: "ready", Email: id + "@example. | CODE |
| LOW | internal/workbench/claude_accounts_usage_test.go | 31 | return claudeGuestSnapshot{LoggedIn: true, Email: id + "@example.org"}, nil | CODE |
| LOW | internal/workbench/claude_accounts_usage_test.go | 47 | email := id + "@example.org" | CODE |
| LOW | internal/workbench/claude_accounts_usage_test.go | 70 | r.Email = "wrong@example.org" | CODE |
| LOW | internal/workbench/claude_accounts_usage_test.go | 115 | a := claudeGuestSnapshot{LoggedIn: true, Email: "a@example.org", Organization: "team"} | CODE |
| LOW | internal/workbench/claude_accounts_usage_test.go | 143 | current = claudeGuestSnapshot{LoggedIn: true, Email: "b@example.org"} | CODE |
| LOW | internal/workbench/claude_accounts_usage_test.go | 176 | return claudeGuestSnapshot{LoggedIn: true, Email: id + "@example.org", UsageStatus: "unavailable"}, nil | CODE |
| LOW | internal/workbench/claude_accounts_usage_test.go | 246 | return claudeGuestSnapshot{LoggedIn: true, Email: id + "@example.org", UsageStatus: "unavailable"}, nil | CODE |
| LOW | internal/workbench/claude_accounts_usage_test.go | 276 | candidate := claudeGuestSnapshot{LoggedIn: true, Email: "default@example.org", Quota: history} | CODE |
| LOW | internal/managedproxy/platform_windows_test.go | 17 | if err := os.WriteFile(core, []byte("placeholder"), 0700); err != nil { | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/sftp/fs_suite.py | 737 | except Exception as e: # noqa: BLE001 | CODE |
| LOW | tests/sftp/fs_suite.py | 752 | except Exception: # noqa: BLE001 | CODE |
| MEDIUM | tests/sftp/fs_suite.py | 734 | def _child(fn, d, q): | CODE |
| LOW | internal/cage/desktop-downloads.py | 99 | except Exception: | CODE |
| LOW | internal/cage/desktop-downloads.py | 136 | except Exception as error: | CODE |
| LOW | internal/cage/desktop-downloads.py | 167 | except Exception as error: | CODE |
| MEDIUM | internal/cage/desktop-downloads.py | 150 | def save(self, item): | CODE |
| LOW | internal/cage/display-governor.py | 318 | except Exception: | CODE |
| LOW | internal/cage/display-governor.py | 348 | except Exception: | CODE |
| LOW | internal/cage/image-input.py | 127 | except Exception as error: | CODE |
| LOW | internal/cage/desktop-files.py | 170 | except Exception: | CODE |
| LOW | internal/cage/desktop-files.py | 292 | except Exception as error: | CODE |
| LOW | internal/cage/desktop-files.py | 487 | except Exception: | CODE |
| LOW | internal/cage/desktop-files.py | 502 | except Exception as error: | CODE |
| MEDIUM | internal/cage/desktop-files.py | 424 | def method(self, _connection, sender, path, _interface, method, parameters, invo | CODE |
| LOW | internal/cage/save-download.py | 124 | except Exception as error: | CODE |
| LOW | internal/cage/save-download.py | 156 | except Exception as error: | CODE |
| LOW | internal/cage/editor-migrate.py | 65 | except Exception as error: | CODE |
| LOW | internal/cage/phone-desktop/control.py | 131 | except Exception: | CODE |
| LOW | internal/cage/phone-desktop/view.py | 422 | except Exception: | CODE |
| MEDIUM | internal/cage/phone-desktop/view.py | 267 | def focus(self, win, role): | CODE |
| LOW | internal/workbench/safety_probe.py | 121 | except Exception: # unknown zone, missing tzdata or zoneinfo module | CODE |
| LOW | internal/workbench/device_check.go | 247 | except Exception: | CODE |
| LOW | internal/workbench/windows_cli_platform.py | 111 | except Exception: | CODE |
| MEDIUM | internal/workbench/windows_cli_platform.py | 42 | def process_live(pid): | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | third_party/lima/hack/toolexec-for-codesign.sh | 32 | # Check if the command is a linker command. | COMMENT |
| LOW | third_party/lima/hack/toolexec-for-codesign.sh | 55 | # Print the output of the command and exit with the result of the command. | COMMENT |
| LOW | third_party/lima/hack/update-template.sh | 204 | # Check if the distribution has the required functions | COMMENT |
| LOW | third_party/lima/hack/bats/helpers/limactl.bash | 21 | # Close file handles 3 and 4 so the host agent doesn't block BATS from exiting. | COMMENT |
| LOW | …/cidata.TEMPLATE.d/boot.Linux/00-reboot-if-required.sh | 10 | # Check if cloud-init forgot to reboot_if_required | COMMENT |
| LOW | …ata.TEMPLATE.d/boot.Linux/00-check-rtc-and-wait-ntp.sh | 58 | # Print the result of NTP synchronization | COMMENT |
| LOW | …/cidata/cidata.TEMPLATE.d/boot.Linux/05-lima-mounts.sh | 8 | # Check if mount type is virtiofs and vm type as vz | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | third_party/lima/hack/bats/helpers/limactl.bash | 4 | # Create a dummy Lima instance for testing purposes. It cannot be started because it doesn't have an actual image. | COMMENT |
| MEDIUM | …rty/lima/pkg/driver/vz/boot.Linux/05-rosetta-volume.sh | 59 | # Create the symlink as expected by the configuration to enable Rosetta AOT caching | COMMENT |
| MEDIUM | third_party/lima/pkg/hostagent/hostagent.go | 297 | # This file is created by Lima, but not used by Lima itself currently. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | third_party/sshocker/pkg/reversesshfs/reversesshfs.go | 28 | DriverOpensshSftpServer = Driver("openssh-sftp-server") // More robust and secure. Recommended. | CODE |
| MEDIUM | third_party/sshocker/pkg/reversesshfs/reversesshfs.go | 310 | # FIXME: not really robust | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | internal/workbench/windows_ccs_context_test.py | 10 | CODE | |
| LOW | internal/workbench/cli_channel.py | 9 | CODE | |
| LOW | scripts/shared-clipboard-guest-smoke.py | 9 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | third_party/lima/cmd/limactl/tunnel.go | 44 | // TODO: implement l2tp, ikev2, masque, ... | COMMENT |
| LOW | third_party/lima/pkg/mcp/msi/filesystem.go | 99 | // TODO: implement Replace | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | third_party/lima/templates/windows-2025.yaml | 12 | # Windows server does not require TPM by default. If you turn TPM on, you can use some security features like BitLocker | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | third_party/lima/hack/toolexec-for-codesign.sh | 14 | # Usage: | COMMENT |