ICP CLI v1.9.0 Introduces Untrusted Project Mode, Enhanced Security, and Performance Optimizations

·

The DFINITY Foundation has released ICP CLI v1.9.0, introducing a new `--untrusted` mode for secure project handling, alongside significant security fixes and performance improvements for Candid interface compatibility and module bundling. The latest update to the Internet Computer Protocol (ICP) command-line interface, version 1.9.0, includes a `--untrusted` flag for `build`, `deploy`, and `sync` commands. This feature is designed to enhance security when working with projects from external sources. When activated, the CLI enforces strict rules: all project files, including manifests, arguments, environment files, and modules, must reside within the project root and be accessed without symlinks. Build steps are restricted to pre-built modules, and sync steps must use plugins from regular project files. This mode also requires execution from the directory containing `icp.yaml`, which it designates as the project root, preventing access to parent directories or subdirectories. Several security and stability fixes are part of this release. A critical fix addresses a panic in `icp token transfer` when reporting 64-character hex receivers with incorrect checksums, now correctly identifying them as invalid account identifiers. The Candid interface compatibility check, performed during `icp deploy` and `icp canister install`, has been updated to `candid 0.10.41` and `candid_parser 0.4.2`. This update prevents certain breaking changes from being accepted during upgrades, particularly for large interfaces with recursive types or long alias chains, and resolves issues with decoding Candid values. Additionally, identity keys are now handled by updated RustCrypto elliptic-curve crates, clearing the RUSTSEC-2026-0387 vulnerability related to non-constant-time arithmetic. Performance and resource management have also seen improvements. The CLI now allows users to bound the resources consumed by a sync plugin run. Environment variables `ICP_CLI_PLUGIN_WALL_CLOCK_LIMIT_SECS` and `ICP_CLI_PLUGIN_MEMORY_LIMIT_MIB` can limit wall-clock time and memory usage, respectively. By default, there is no wall-clock limit, and memory is capped at 4 GiB. The `.icp/cache/artifacts` directory now stores each distinct built module only once, optimizing storage for projects with multiple canisters using the same WASM. The `icp project bundle` command also stores each distinct WASM module once at the archive root, reducing bundle size for workspaces with shared frontend canisters or plugins. Notably, macOS on Intel (x86_64-apple-darwin) is no longer a supported release target, aligning with Homebrew's decision to drop Intel macOS support in September 2026 and GitHub's retirement of Intel macOS runners. Version 1.8.0 is the final release to include an Intel macOS build. Furthermore, sync plugins supplied as `.wat` text are no longer supported; users must provide compiled `.wasm` components. Source v1.9.0