---
canonical: "https://firewall.lpm.dev/npm/@kortyx/hooks/v/0.22.0"
markdown: "https://firewall.lpm.dev/npm/@kortyx/hooks/v/0.22.0.md"
package: "@kortyx/hooks"
report_status: "published"
title: "@kortyx/hooks@0.22.0 npm security report"
verdict: "clean"
version: "0.22.0"
---

# @kortyx/hooks@0.22.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
**Allowed — no malicious behavior detected** — 6 low-signal patterns reviewed and cleared.

- **Verdict:** Clean
- **Product-default install policy:** Allow
- **Firewall policy:** No policy match
- **Public report status:** Published
- **Threat category:** None published
- **Selected version:** 0.22.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: clean; recommendation: mark clean. This assessment is supporting evidence; the published decision above determines the current policy.

Static inspection of package.json, dist/internal.js, and dist/index.js found a normal hook library with no install lifecycle or malicious execution primitives. The scanner's dependency-bridge hint is explained by an ordinary declared @kortyx/core import.

## Latest scan
- **Scanner version:** rust-scanner-worker-schema-1
- **Recorded final verdict:** Clean
- **Recorded analysis confidence:** 96.0%
- **Started:** 2026-09-11T08:15:56.631Z
- **Finished:** 2026-09-11T08:16:44.674Z
- **Download time:** 256 ms
- **Static scan time:** 355 ms
- **AI review time:** 47432 ms
- **Total time:** 48043 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 confirmed malicious attack surface is established. The package provides runtime workflow hooks and delegates model requests to an application-provided provider.

- **Trigger:** An application explicitly imports and invokes the exported hooks.

- **Impact:** No unconsented installation, persistence, file access, or direct exfiltration behavior was found.

- **Review source:** ai\_review

- **Reviewed:** 2026-09-11T08:16:44.674Z

### AI review details

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

- **Mechanism:** Caller-controlled workflow and model-provider integration.

- **Rationale:** Static inspection of package.json, dist/internal.js, and dist/index.js found a normal hook library with no install lifecycle or malicious execution primitives. The scanner's dependency-bridge hint is explained by an ordinary declared @kortyx/core import.

### Review decision

- **Verdict:** Clean

- **Confidence:** 96.0%

- **Recommended action:** mark\_clean

- **Intent class:** Benign

- **False-positive risk:** Low

- **Evidence for AI clean decision:** The manifest defines only development and test scripts, with no npm install lifecycle hook., The flagged internal module imports only crypto and the declared Kortyx core dependency., Model execution is delegated to a caller-supplied provider rather than a hardcoded network endpoint.

- **Evidence against:** No child-process, shell, file-system, environment-harvesting, dynamic-code, or direct network API use appears in the shipped JavaScript., There is no self-dependency, install-time execution, persistence mechanism, or project configuration mutation.

## Affected versions and remediation

This report applies to @kortyx/hooks@0.22.0.

- No action is needed for @kortyx/hooks@0.22.0. Pin the version in your lockfile and check new releases as they are scanned.

## Public findings

These are automated scan signals. The review checked each one and found no malicious behavior, so all of them are cleared.

### 1. Low: Scripts Present (cleared)
- **Status:** Cleared by review: an automated scan signal, not a confirmed behavior
- **Category:** Manifest
- **Confidence:** 100.0%

Package declares npm scripts.

### 2. High: Copied Package Dependency Bridge (cleared)
- **Status:** Cleared by review: an automated scan signal, not a confirmed behavior
- **Category:** Source
- **Confidence:** 83.0%
- **Path:** dist/internal.js
- **Public source:** [View source](<https://unpkg.com/@kortyx/hooks@0.22.0/dist/internal.js>)

Package metadata claims a different repository identity while copied source loads a runtime dependency bridge.

Public source snippet (untrusted):

```javascript
package = @kortyx/hooks; repositoryIdentity = kortyx; dependency = @kortyx/core
L27: var import_node_crypto = require("crypto");
L28: var import_core = require("@kortyx/core");
L29: var toError = (value) => value instanceof Error ? value : new Error(String(value));
```

### 3. Medium: Structural Risk Force Deep Review (cleared)
- **Status:** Cleared by review: an automated scan signal, not a confirmed behavior
- **Category:** Artifact Inventory
- **Confidence:** 40.0%

Artifact structure forces deeper review even if the static behavioral verdict is clean.

### 4. Low: Suspicious Lifecycle Evidence (cleared)
- **Status:** Cleared by review: an automated scan signal, not a confirmed behavior
- **Category:** Manifest
- **Confidence:** 96.0%
- **Path:** package.json
- **Public source:** [View source](<https://unpkg.com/@kortyx/hooks@0.22.0/package.json>)

The manifest defines only development and test scripts, with no npm install lifecycle hook.

Public source snippet (untrusted):

```json
"scripts": {
    "build": "tsup",
    "predev": "tsc -p tsconfig.build.json",
    "dev": "tsc --watch",
    "lint": "biome check src",
    "test": "vitest run && pnpm -s type-check",
    "coverage": "vitest run --coverage && pnpm -s type-check",
    "test:watch": "vitest",
    "type-check": "tsc --noEmit -p tsconfig.test.json"
  }
```

### 5. Low: Suspicious Dependency Evidence (cleared)
- **Status:** Cleared by review: an automated scan signal, not a confirmed behavior
- **Category:** Dependency
- **Confidence:** 96.0%
- **Path:** dist/internal.js
- **Public source:** [View source](<https://unpkg.com/@kortyx/hooks@0.22.0/dist/internal.js>)

The flagged internal module imports only crypto and the declared Kortyx core dependency.

Public source snippet (untrusted):

```javascript
// src/reason-engine.ts
var import_node_crypto = require("crypto");
var import_core = require("@kortyx/core");
var toError = (value) => value instanceof Error ? value : new Error(String(value));
var createRuntimeId = () => {
  try {
    return (0, import_node_crypto.randomUUID)();
  } catch {
    return `${Date.now()}-${Math.random().toString(36).slice(2)}`;
  }
};
```

### 6. Low: Ai Review Evidence (cleared)
- **Status:** Cleared by review: an automated scan signal, not a confirmed behavior
- **Category:** Ai Review
- **Confidence:** 96.0%
- **Path:** dist/internal.js
- **Public source:** [View source](<https://unpkg.com/@kortyx/hooks@0.22.0/dist/internal.js>)

Model execution is delegated to a caller-supplied provider rather than a hardcoded network endpoint.

Public source snippet (untrusted):

```javascript
async function runReasonEngine(args) {
  const stream = args.stream ?? args.model.options?.streaming ?? true;
  const emit = args.emit ?? true;
  const temperature = args.temperature ?? args.model.options?.temperature ?? args.defaultTemperature;
  const maxOutputTokens = args.maxOutputTokens ?? args.model.options?.maxOutputTokens;
  const stopSequences = args.stopSequences ?? args.model.options?.stopSequences;
  const abortSignal = args.abortSignal ?? args.model.options?.abortSignal;
  const reasoning = args.reasoning ?? args.model.options?.reasoning;
  const responseFormat = args.response
```

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

- **Dependencies:** 4
- **Optional dependencies:** 0
- **Peer dependencies:** 0
- **Development dependencies:** 5
- **Published dependency-graph edges:** 4

### Published dependency entries
- @kortyx/core 0.8.0 (Dependency)
- @kortyx/providers 0.5.0 (Dependency)
- @kortyx/telemetry-contracts 0.5.0 (Dependency)
- zod ^4.3.6 (Dependency)

## Package metadata
- **Package:** @kortyx/hooks
- **Ecosystem:** npm
- **Version:** 0.22.0
- **License:** Apache-2.0
- **Version published:** 2026-09-11T08:12:21.793Z
- **Package first seen:** 2026-09-11T08:16:44.674Z
- **Package last seen:** 2026-11-06T19:25:04.580Z
- **Known versions:** 29
- **Latest version:** 0.35.8
- **Appeal under review:** No
- **Description:** Lifecycle hooks and extension points for Kortyx.
- **Author:** Kortyx
- **Maintainers:** neddl
- **Keywords:** ai, agent, agents, orchestration, framework, hooks, kortyx
- **Artifact files:** 11
- **Artifact unpacked size:** 352,680 bytes
- **Artifact signatures:** 2
- **Attestations:** Yes
- **Provenance:** https://slsa.dev/provenance/v1

## References
- [HTML security report](<https://firewall.lpm.dev/npm/@kortyx/hooks/v/0.22.0>)
- [Repository](<https://github.com/kortyx-io/kortyx>)
- [Homepage](<https://kortyx.io/>)
- [Issues](<https://github.com/kortyx-io/kortyx/issues>)
