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

# agency-lang@0.15.0 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 as AI-agent capability risk** — Allowed by default with warning: agent-facing configuration or capability changes need review before use.

- **Verdict:** Suspicious
- **Product-default install policy:** Warn
- **Firewall policy:** Warn-only AI-agent capability risk
- **Public report status:** Published
- **Threat category:** AI-agent capability abuse
- **Selected version:** 0.15.0
- **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.

This is not malicious behavior: the relevant mutations are explicit, named CLI features and no install hook exists. Per firewall policy, explicit user-command mutation of an AI-agent control surface warrants a warning.

## Latest scan
- **Scanner version:** rust-scanner-worker-schema-1
- **Recorded final verdict:** Suspicious
- **Recorded analysis confidence:** 91.0%
- **Started:** 2026-08-15T23:21:20.479Z
- **Finished:** 2026-08-15T23:23:06.053Z
- **Download time:** 1003 ms
- **Static scan time:** 10068 ms
- **AI review time:** 94502 ms
- **Total time:** 105574 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:** No install-time attack surface was found. Explicit CLI commands can configure a Codex MCP server or create a scheduled local agent.

- **Trigger:** User runs \`agency mcp setup codex\` or \`agency schedule add\`.

- **Impact:** Can modify Codex MCP configuration or register a launchd job for a user-selected agent.

- **Evidence paths:** package.json, dist/scripts/agency.js, dist/lib/mcp/setup.js, dist/lib/cli/schedule/index.js, dist/lib/cli/schedule/backends/launchd.js, dist/lib/stdlib/oauth.js

- **Review source:** ai\_review

- **Reviewed:** 2026-08-15T23:23:06.053Z

### AI review details

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

- **Mechanism:** User-invoked agent configuration and scheduled-agent setup.

- **Rationale:** This is not malicious behavior: the relevant mutations are explicit, named CLI features and no install hook exists. Per firewall policy, explicit user-command mutation of an AI-agent control surface warrants a warning.

- **Files touched:** ~/.codex/config.toml, ~/Library/LaunchAgents/com.agency.schedule.\<name\>.plist

### Review decision

- **Verdict:** Suspicious

- **Confidence:** 91.0%

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

- **Intent class:** Dangerous Capability

- **False-positive risk:** Medium

- **Evidence for warning:** Explicit \`mcp setup codex\` configures Codex with this package's MCP server., The setup routine writes an MCP section to the user's Codex config., Explicit \`schedule add\` can install and load a launchd agent.

- **Evidence against:** package.json has no preinstall, install, or postinstall lifecycle hook., Configuration and persistence changes are reachable only through named CLI commands., No reviewed source showed credential harvesting, stealth exfiltration, remote payload loading, or destructive behavior.

## Affected versions and remediation

This report applies to agency-lang@0.15.0.

- Review the evidence and your use of agency-lang@0.15.0 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:** dist/lib/optimize/workspace.js
- **Public source:** [View source](<https://unpkg.com/agency-lang@0.15.0/dist/lib/optimize/workspace.js>)

Package source references child process execution.

Public source snippet (untrusted):

```javascript
L6: /** Mint a fresh cache-partition token. */
L7: fork() {
L8: this.counter += 1;
```

### 3. High: Shell
- **Category:** Source
- **Confidence:** 85.0%
- **Path:** dist/lib/runtime/ipc.js
- **Public source:** [View source](<https://unpkg.com/agency-lang@0.15.0/dist/lib/runtime/ipc.js>)

Package source references shell execution.

Public source snippet (untrusted):

```javascript
L379: env: { ...process.env, AGENCY_IPC: "1" },
L380: execArgv: [`--max-old-space-size=${memoryMb}`],
L381: ...(args.cwd ? { cwd: args.cwd } : {}),
```

### 4. Medium: Dynamic Require
- **Category:** Source
- **Confidence:** 75.0%
- **Path:** dist/scripts/agency.js
- **Public source:** [View source](<https://unpkg.com/agency-lang@0.15.0/dist/scripts/agency.js>)

Package source references dynamic require/import behavior.

Public source snippet (untrusted):

```javascript
L480: .action(async (file, opts) => {
L481: const result = await runSecretsImport(file, opts, getConfigContext(), {
L482: stdinIsTty: process.stdin.isTTY === true,
```

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

Package source references network APIs.

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

Package source references environment variables.

### 7. Medium: Install Persistence
- **Category:** Source
- **Confidence:** 75.0%
- **Path:** dist/lib/cli/schedule/backends/launchd.js
- **Public source:** [View source](<https://unpkg.com/agency-lang@0.15.0/dist/lib/cli/schedule/backends/launchd.js>)

Source writes installer persistence such as shell profile or service configuration.

Public source snippet (untrusted):

```javascript
L1: import { execFileSync } from "child_process";
L2: import * as fs from "fs";
...
L6: import renderPlist from "../../../templates/cli/schedule/plist.js";
L7: const PLIST_DIR = path.join(os.homedir(), "Library", "LaunchAgents");
L8: function plistPath(name) {
...
L63: agentDir: path.dirname(entry.agentFile),
L64: path: process.env.PATH ?? "/usr/local/bin:/usr/bin:/bin",
L65: home: os.homedir(),
...
L70: fs.mkdirSync(PLIST_DIR, { recursive: true });
L71: // Unload first if already loaded (launchctl load fails on already-loaded plists)
L72: if (fs.existsSync(dest)) {
```

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

Package source references filesystem APIs.

### 9. High: Same File Env Network Execution
- **Category:** Source
- **Confidence:** 85.0%
- **Path:** dist/lib/stdlib/oauth.js
- **Public source:** [View source](<https://unpkg.com/agency-lang@0.15.0/dist/lib/stdlib/oauth.js>)

A single source file combines environment access, network access, and code or shell execution; review context before blocking.

Public source snippet (untrusted):

```javascript
L1: import http from "http";
L2: import crypto from "crypto";
...
L5: import path from "path";
L6: import { execFile } from "child_process";
L7: import { getEncryptionKey, encrypt, decrypt } from "./oauthEncryption.js";
...
L11: function getTokenDir() {
L12: return process.env.AGENCY_OAUTH_TOKEN_DIR || path.join(os.homedir(), ".agency", "oauth");
L13: }
```

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

Package source contains high-entropy string patterns.

### 11. Low: Telemetry
- **Category:** Supply Chain
- **Confidence:** 70.0%

Package source references telemetry or analytics APIs.

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

Package source contains URL literals.

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

- **Dependencies:** 15
- **Optional dependencies:** 0
- **Peer dependencies:** 0
- **Development dependencies:** 9
- **Published dependency-graph edges:** 15

### Published dependency entries
- chokidar ^4 (Dependency)
- cli-highlight ^2.1.11 (Dependency)
- diff-match-patch ^1.0.5 (Dependency)
- esbuild ^0.27.4 (Dependency)
- highlight.js ^10.7.1 (Dependency)
- nanoid ^5.1.6 (Dependency)
- picomatch ^4.0.4 (Dependency)
- prompts ^2.4.2 (Dependency)
- smoltalk ^0.11.0 (Dependency)
- tarsec 0.5.3 (Dependency)
- typestache ^0.6.0 (Dependency)
- vscode-languageserver ^9.0.1 (Dependency)
- vscode-languageserver-protocol ^3.17.5 (Dependency)
- vscode-languageserver-textdocument ^1.0.12 (Dependency)
- zod ^4.3.5 (Dependency)

## Package metadata
- **Package:** agency-lang
- **Ecosystem:** npm
- **Version:** 0.15.0
- **License:** MIT
- **Version published:** 2026-08-12T13:57:35.618Z
- **Package first seen:** 2026-07-08T17:04:58.734Z
- **Package last seen:** 2026-11-04T02:56:37.540Z
- **Known versions:** 40
- **Latest version:** 0.38.0
- **Appeal under review:** No
- **Description:** The Agency language
- **Author:** Aditya Bhargava
- **Maintainers:** egonschiele
- **Runtime engines:** node: \>=22.13.0
- **Artifact files:** 2223
- **Artifact unpacked size:** 18,215,960 bytes
- **Artifact signatures:** 1
- **Attestations:** No

## References
- [HTML security report](<https://firewall.lpm.dev/npm/agency-lang/v/0.15.0>)
- [Repository](<https://github.com/egonSchiele/agency-lang>)
- [Homepage](<https://github.com/egonSchiele/agency-lang#readme>)
- [Issues](<https://github.com/egonSchiele/agency-lang/issues>)
