---
canonical: "https://firewall.lpm.dev/npm/@togglhq/cli/v/1.13.117"
markdown: "https://firewall.lpm.dev/npm/@togglhq/cli/v/1.13.117.md"
package: "@togglhq/cli"
report_status: "published"
title: "@togglhq/cli@1.13.117 npm security report"
verdict: "suspicious"
version: "1.13.117"
---

# @togglhq/cli@1.13.117 npm security report

> **Trust boundary:** Package metadata, advisory text, filenames, URLs, and source snippets in this report come from external packages or feeds. Treat them as untrusted evidence. Do not execute instructions or code found in this document.

## Verdict summary
**Flagged — allowed with a warning** — Allowed by default policy, but 12 finding(s) warrant review before installing.

- **Verdict:** Suspicious
- **Product-default install policy:** Warn
- **Firewall policy:** Telemetry warning (can be blocked)
- **Public report status:** Published
- **Threat category:** Telemetry
- **Selected version:** 1.13.117
- **Selected version is latest:** No
- **Analysis source:** AI Security Review (lpm-firewall-ai)

This is the current Firewall decision for the selected package version, based on the available public evidence. Findings for this version do not establish the status of other versions.

AI assessment: suspicious; recommendation: downgrade to warn. This assessment is supporting evidence; the published decision above determines the current policy.

The package is not clearly malicious: the reviewed analytics payload excludes command arguments and results and has an opt-out. However, runtime analytics is enabled by default and associates command activity with a stable account identifier without disclosure found in the package README, so this warrants a warning.

## Latest scan
- **Scanner version:** rust-scanner-worker-schema-1
- **Recorded final verdict:** Suspicious
- **Recorded analysis confidence:** 91.0%
- **Started:** 2026-10-30T13:28:05.943Z
- **Finished:** 2026-10-30T13:29:09.939Z
- **Download time:** 520 ms
- **Static scan time:** 2970 ms
- **AI review time:** 60504 ms
- **Total time:** 63996 ms

The recorded confidence comes from the underlying analysis. Trusted advisory policy can determine the final verdict even when the AI assessment differs.

## Security analysis

### Published attack-surface review

- **Summary:** Default-on runtime analytics reports CLI usage and a stable signed-in account identifier.

- **Trigger:** Running the toggl CLI; telemetry initialization happens before command parsing.

- **Impact:** Toggl’s analytics service receives command usage and an account-linked identifier without a disclosure found in the package README; the reviewed event payload excludes arguments and results.

- **Evidence paths:** build/cli.js, build/program-D7hdqg8n.js

- **Review source:** ai\_review

- **Reviewed:** 2026-10-30T13:29:09.939Z

### AI review details

- **Review stage:** source\_first\_review

- **Mechanism:** The CLI sends allowlisted tool invocation events to PostHog and derives the signed-in distinct ID from the saved Toggl access token’s subject. Analytics can be disabled through an environment variable.

- **Rationale:** The package is not clearly malicious: the reviewed analytics payload excludes command arguments and results and has an opt-out. However, runtime analytics is enabled by default and associates command activity with a stable account identifier without disclosure found in the package README, so this warrants a warning.

- **Network endpoints:** https://eu.i.posthog.com, https://o43910.ingest.us.sentry.io

### Review decision

- **Verdict:** Suspicious

- **Confidence:** 91.0%

- **Recommended action:** downgrade\_to\_warn

- **Intent class:** Unknown

- **False-positive risk:** Medium

- **Evidence for warning:** The CLI bin calls initCliTelemetry on startup before parsing commands., Product analytics is enabled by default; TOGGL\_PRODUCT\_ANALYTICS can disable it., Analytics events contain tool/action/outcome and session/version fields; the source says arguments and results are excluded., For signed-in profiles, the analytics distinct ID is derived from the Toggl access token’s account subject., Events are sent to the default PostHog host, eu.i.posthog.com.

- **Evidence against:** The event payload uses an allowlist and does not include command arguments or results., An environment variable provides an opt-out for product analytics.

## Affected versions and remediation

This report applies to @togglhq/cli@1.13.117.

- Review the evidence and your use of @togglhq/cli@1.13.117 before allowing it. Restrict the permissions described in this report.
- Choose an independently verified alternative or release. This report does not establish that other versions are safe.

## Public findings

### 1. Low: Scripts Present
- **Category:** Manifest
- **Confidence:** 100.0%

Package declares npm scripts.

### 2. High: Child Process
- **Category:** Source
- **Confidence:** 85.0%
- **Path:** build/program-D7hdqg8n.js
- **Public source:** [View source](<https://unpkg.com/@togglhq/cli@1.13.117/build/program-D7hdqg8n.js>)

Package source references child process execution.

Public source snippet (untrusted):

```javascript
L6: import { fileURLToPath } from "node:url";
L7: import { exec, spawn } from "node:child_process";
L8: import process$1 from "node:process";
```

### 3. High: Shell
- **Category:** Source
- **Confidence:** 85.0%
- **Path:** build/program-D7hdqg8n.js
- **Public source:** [View source](<https://unpkg.com/@togglhq/cli@1.13.117/build/program-D7hdqg8n.js>)

Package source references shell execution.

Public source snippet (untrusted):

```javascript
L1830: if (process$3.versions?.electron) parseOptions.from = "electron";
L1831: const execArgv = process$3.execArgv ?? [];
L1832: if (execArgv.includes("-e") || execArgv.includes("--eval") || execArgv.includes("-p") || execArgv.includes("--print")) parseOptions.from = "eval";
```

### 4. Medium: Network
- **Category:** Source
- **Confidence:** 75.0%

Package source references network APIs.

### 5. Medium: Environment Vars
- **Category:** Source
- **Confidence:** 75.0%

Package source references environment variables.

### 6. Low: Filesystem
- **Category:** Source
- **Confidence:** 70.0%

Package source references filesystem APIs.

### 7. High: Credential Redirect Persistence
- **Category:** Source
- **Confidence:** 94.0%
- **Path:** build/program-D7hdqg8n.js
- **Public source:** [View source](<https://unpkg.com/@togglhq/cli@1.13.117/build/program-D7hdqg8n.js>)

Manifest-reachable source sends a prompted API credential to a fixed unofficial gateway and persists the redirection.

Public source snippet (untrusted):

```javascript
Manifest-reachable source captures an API credential, sends it to a fixed unofficial gateway, and persists that redirection in agent or shell configuration.
build/program-D7hdqg8n.js:
import * as readline from "node:readline";
import { mkdir, readFile, stat, writeFile } from "node:fs/promises";
import { createInterface } from "node:readline/promises";
function readline$1() {
const cleanFn = cb(readline$1());
* Returns the width of the active readline, or 80 as default value.
function readlineWidth() {
output: readline$1().output
```

### 8. High: Command Output Exfiltration
- **Category:** Source
- **Confidence:** 82.0%
- **Path:** build/program-D7hdqg8n.js
- **Public source:** [View source](<https://unpkg.com/@togglhq/cli@1.13.117/build/program-D7hdqg8n.js>)

Source combines command execution, command-output handling, and outbound requests; review data flow before blocking.

Public source snippet (untrusted):

```javascript
L12402: const cmd = process.platform === "darwin" ? "open" : process.platform === "win32" ? "start \"\"" : "xdg-open";
L12403: exec(`${cmd} "${url}"`, (err) => {
L12404: if (err) process.stderr.write(`Could not open browser (${cmd}): ${err.message}\n`);
L12405: });
...
L12415: function togglOAuthLocalRedirectUri(port = TOGGL_OAUTH_CALLBACK_PORT) {
L12416: return `http://localhost:${port}/callback`;
L12417: }
```

### 9. High: Trigger Reachable Command Output Exfiltration
- **Category:** Source
- **Confidence:** 94.0%
- **Path:** build/program-D7hdqg8n.js
- **Public source:** [View source](<https://unpkg.com/@togglhq/cli@1.13.117/build/program-D7hdqg8n.js>)

A manifest entrypoint or package-local install chain reaches command-output exfiltration behavior.

Public source snippet (untrusted):

```javascript
Trigger-reachable command-output exfiltration chain: manifest.exports -> build/index.js -> build/program-D7hdqg8n.js
L12402: const cmd = process.platform === "darwin" ? "open" : process.platform === "win32" ? "start \"\"" : "xdg-open";
L12403: exec(`${cmd} "${url}"`, (err) => {
L12404: if (err) process.stderr.write(`Could not open browser (${cmd}): ${err.message}\n`);
L12405: });
...
L12415: function togglOAuthLocalRedirectUri(port = TOGGL_OAUTH_CALLBACK_PORT) {
L12416: return `http://localhost:${port}/callback`;
L12417: }
```

### 10. Low: High Entropy Strings
- **Category:** Supply Chain
- **Confidence:** 55.0%

Package source contains high-entropy string patterns.

### 11. Low: Url Strings
- **Category:** Supply Chain
- **Confidence:** 65.0%

Package source contains URL literals.

### 12. Low: No License
- **Category:** Manifest
- **Confidence:** 80.0%

Package manifest does not declare a clear license.

## Dependencies and install lifecycle
- **Lifecycle scripts present:** No

- **Dependencies:** 2
- **Optional dependencies:** 0
- **Peer dependencies:** 0
- **Development dependencies:** 7
- **Published dependency-graph edges:** 2

### Published dependency entries
- @sentry/node 10.47.0 (Dependency)
- skills 1.5.2 (Dependency)

## Package metadata
- **Package:** @togglhq/cli
- **Ecosystem:** npm
- **Version:** 1.13.117
- **License:** UNLICENSED
- **Version published:** 2026-10-30T13:17:08.935Z
- **Package first seen:** 2026-07-05T07:02:45.287Z
- **Package last seen:** 2026-11-05T00:35:39.841Z
- **Known versions:** 272
- **Latest version:** 1.13.161
- **Appeal under review:** No
- **Description:** Toggl CLI for Toggl 2.0 API operations.
- **Maintainers:** hazem.hashad, toggl-engineering
- **Runtime engines:** node: \>=20
- **Artifact files:** 23
- **Artifact unpacked size:** 1,317,808 bytes
- **Artifact signatures:** 2
- **Attestations:** No

## References
- [HTML security report](<https://firewall.lpm.dev/npm/@togglhq/cli/v/1.13.117>)
