---
canonical: "https://firewall.lpm.dev/npm/@things-factory/integration-lmd/v/10.1.226"
markdown: "https://firewall.lpm.dev/npm/@things-factory/integration-lmd/v/10.1.226.md"
package: "@things-factory/integration-lmd"
report_status: "published"
title: "@things-factory/integration-lmd@10.1.226 npm security report"
verdict: "suspicious"
version: "10.1.226"
---

# @things-factory/integration-lmd@10.1.226 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:** Matched warn-list
- **Public report status:** Published
- **Threat category:** Credential Exfiltration
- **Selected version:** 10.1.226
- **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.

Source inspection confirms that the registered Citylink shipment flow sends a stored Xero bearer token to a fixed, different host over plain HTTP. Because the recipient’s authorization and ownership are unresolved and no unrelated use is shown, this warrants a warning rather than a publish block.

## Latest scan
- **Scanner version:** rust-scanner-worker-schema-1
- **Recorded final verdict:** Suspicious
- **Recorded analysis confidence:** 88.0%
- **Started:** 2026-10-27T16:16:58.472Z
- **Finished:** 2026-10-27T16:17:51.602Z
- **Download time:** 1540 ms
- **Static scan time:** 166 ms
- **AI review time:** 51423 ms
- **Total time:** 53130 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:** The Citylink shipment flow forwards a stored Xero bearer token and account identifier to a fixed plain HTTP endpoint. The source does not establish that this recipient is authorized to receive Xero credentials, so the transfer presents unresolved credential exposure risk.

- **Trigger:** An application caller invokes the registered Citylink shipment request API.

- **Impact:** The recipient can observe the bearer token in transit and may be able to use it to access the associated Xero account; source does not establish subsequent use.

- **Evidence paths:** package.json, dist-server/controllers/citylink/platform-action.js, dist-server/controllers/citylink/citylink.js, dist-server/controllers/citylink/apis/shipment-request/create-shipment-request.js, dist-server/controllers/lmd-api/decorators.js, dist-server/entities/last-mile-delivery.js, dist-server/controllers/etrax/platform-action.js

- **Review source:** ai\_review

- **Reviewed:** 2026-10-27T16:17:51.602Z

### AI review details

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

- **Mechanism:** The Citylink platform action passes the stored access token and account identifier to its client, which sends them in request headers to the configured-in-source IP endpoint.

- **Rationale:** Source inspection confirms that the registered Citylink shipment flow sends a stored Xero bearer token to a fixed, different host over plain HTTP. Because the recipient’s authorization and ownership are unresolved and no unrelated use is shown, this warrants a warning rather than a publish block.

- **Files touched:** dist-server/controllers/citylink/platform-action.js, dist-server/controllers/citylink/citylink.js, dist-server/controllers/citylink/apis/shipment-request/create-shipment-request.js, dist-server/controllers/lmd-api/decorators.js, dist-server/entities/last-mile-delivery.js

- **Network endpoints:** http://202.133.101.28:8889/CitylinkService.svc/rest, https://login.xero.com/identity/connect/authorize

### Review decision

- **Verdict:** Suspicious

- **Confidence:** 88.0%

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

- **Intent class:** Dangerous Capability

- **False-positive risk:** Medium

- **Evidence for warning:** The package registers a Citylink shipment API that sends shipment requests through its platform action., The Citylink action supplies a stored access token and account identifier to the client., The client builds requests for a fixed plain HTTP IP endpoint and sends the bearer token and account identifier with them., The Citylink authorization URL uses Xero, while the package routes requests to a different host; source does not establish that host as an authorized Xero recipient., The entity stores access and refresh tokens for the integration account.

- **Evidence against:** The transfer is reached through the registered shipment API, and the package sends shipment requests to that same endpoint., The inspected source does not establish that the endpoint is controlled by the package publisher or that the token is collected for unrelated use.

## Affected versions and remediation

This report applies to @things-factory/integration-lmd@10.1.226.

- Review the evidence and your use of @things-factory/integration-lmd@10.1.226 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. Medium: Dynamic Require
- **Category:** Source
- **Confidence:** 75.0%
- **Path:** dist-server/migrations/index.js
- **Public source:** [View source](<https://unpkg.com/@things-factory/integration-lmd@10.1.226/dist-server/migrations/index.js>)

Package source references dynamic require/import behavior.

Public source snippet (untrusted):

```javascript
L3: exports.migrations = void 0;
L4: const glob = require('glob');
L5: const path = require('path');
```

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

Package source references network APIs.

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

Package source contains high-entropy string patterns.

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

Package source contains URL literals.

### 6. High: Known Malware Source Similarity
- **Category:** Static
- **Confidence:** 97.0%
- **Path:** dist-server/controllers/citylink/platform-action.js
- **Public source:** [View source](<https://unpkg.com/@things-factory/integration-lmd@10.1.226/dist-server/controllers/citylink/platform-action.js>)

Source file is highly similar to a previously finalized malicious package; route for source-aware review.

Public source snippet (untrusted):

```javascript
matchType = normalized_sha256
matchedPackage = @things-factory/integration-lmd@10.1.215
matchedPath = dist-[redacted]-action.js
matchedIdentity = npm:[redacted]:10.1.215
similarity = 1.000
summary = normalized source hash matched finalized malicious source
```

### 7. High: Known Malware Source Similarity
- **Category:** Static
- **Confidence:** 97.0%
- **Path:** dist-server/controllers/etrax/platform-action.js
- **Public source:** [View source](<https://unpkg.com/@things-factory/integration-lmd@10.1.226/dist-server/controllers/etrax/platform-action.js>)

Source file is highly similar to a previously finalized malicious package; route for source-aware review.

Public source snippet (untrusted):

```javascript
matchType = normalized_sha256
matchedPackage = @things-factory/integration-lmd@10.1.215
matchedPath = dist-[redacted]-action.js
matchedIdentity = npm:[redacted]:10.1.215
similarity = 1.000
summary = normalized source hash matched finalized malicious source
```

### 8. High: Known Malware Source Fingerprint Signature
- **Category:** Supply Chain
- **Confidence:** 94.0%
- **Path:** dist-server/controllers/citylink/platform-action.js
- **Public source:** [View source](<https://unpkg.com/@things-factory/integration-lmd@10.1.226/dist-server/controllers/citylink/platform-action.js>)

Source fingerprint signature matches a known malicious package signature; route for source-aware review.

Public source snippet (untrusted):

```javascript
matchType = malicious_source_fingerprint_signature
signature = 04eafe4b6eb89cf3
signatureType = suspicious_hashes
sourceLabel = final_verdict:malicious
matchedPackage = @things-factory/integration-lmd@10.1.215
matchedPath = dist-[redacted]-action.js
matchedIdentity = npm:[redacted]:10.1.215
similarity = 1.000
shingleOverlap = 35
summary = package final verdict is malicious
```

### 9. Medium: Ai Review Evidence
- **Category:** Ai Review
- **Confidence:** 88.0%
- **Path:** dist-server/controllers/citylink/apis/shipment-request/create-shipment-request.js
- **Public source:** [View source](<https://unpkg.com/@things-factory/integration-lmd@10.1.226/dist-server/controllers/citylink/apis/shipment-request/create-shipment-request.js>)

The package registers a Citylink shipment API that sends shipment requests through its platform action.

Public source snippet (untrusted):

```javascript
function createShipmentRequest() {
    return {
        method: 'post',
        path: '/requestShipment',
        denormalize(req) {
            return req;
        },
        normalize(res)
```

### 10. Medium: Ai Review Evidence
- **Category:** Ai Review
- **Confidence:** 88.0%
- **Path:** dist-server/controllers/lmd-api/decorators.js
- **Public source:** [View source](<https://unpkg.com/@things-factory/integration-lmd@10.1.226/dist-server/controllers/lmd-api/decorators.js>)

The package registers a Citylink shipment API that sends shipment requests through its platform action.

Public source snippet (untrusted):

```javascript
const api = (target, property, descriptor) => {
    const method = descriptor.value;
    descriptor.value = async function (lastMile, request) {
        const LastMileAPI = this;
        var { platform } = lastMile;
        var { action: platformAction, apis } = LastMileAPI.getPlatform(platform);
        var m = apis[method.name];
        if (!m) {
            throw Error(`Last Mile Delivery Platform '${platform}' doesn't have API ${method.name}`);
        }
        var { path, method: httpMethod = 'post', denormal
```

### 11. Medium: Ai Review Evidence
- **Category:** Ai Review
- **Confidence:** 88.0%
- **Path:** dist-server/controllers/citylink/platform-action.js
- **Public source:** [View source](<https://unpkg.com/@things-factory/integration-lmd@10.1.226/dist-server/controllers/citylink/platform-action.js>)

The Citylink action supplies a stored access token and account identifier to the client.

Public source snippet (untrusted):

```javascript
const action = async ({ lastMile, method = 'get', path, request }) => {
    const client = new citylink_1.Citylink({
        apiKey,
        apiSecret,
        accessToken: lastMile.accessToken,
        tenantId: lastMile.accountId,
        callback
    });
    const { resource = {}, payload = {} } = request;
    path = substitu
```

### 12. Medium: Ai Review Evidence
- **Category:** Ai Review
- **Confidence:** 88.0%
- **Path:** dist-server/controllers/citylink/citylink.js
- **Public source:** [View source](<https://unpkg.com/@things-factory/integration-lmd@10.1.226/dist-server/controllers/citylink/citylink.js>)

The client builds requests for a fixed plain HTTP IP endpoint and sends the bearer token and account identifier with them.

Public source snippet (untrusted):

```javascript
const ENDPOINT = 'http://202.133.101.28:8889/CitylinkService.svc/rest';
const debug = require('debug')('things-factory:integration-lmd:citylink');
class Citylink {
    constructor(config) {
        this.config = {
            ...config
        };
    }
    buildAuthURL(nonce) {
        const scopes = 'offline_access openid profile email accounting.transactions accounting.settings';
        const { apiKey, callback: redirectUrl } = this.config;
        return `https://login.xero.com/identity/conn
```

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

- **Dependencies:** 14
- **Optional dependencies:** 0
- **Peer dependencies:** 0
- **Development dependencies:** 8
- **Published dependency-graph edges:** 14

### Published dependency entries
- @operato/data-grist ^10.0.0 (Dependency)
- @things-factory/apptool-ui ^10.1.226 (Dependency)
- @things-factory/auth-ui ^10.1.226 (Dependency)
- @things-factory/biz-base ^10.1.226 (Dependency)
- @things-factory/code-ui ^10.1.226 (Dependency)
- @things-factory/context-ui ^10.1.221 (Dependency)
- @things-factory/i18n-base ^10.1.226 (Dependency)
- @things-factory/integration-ui ^10.1.226 (Dependency)
- @things-factory/more-ui ^10.1.221 (Dependency)
- @things-factory/resource-ui ^10.1.226 (Dependency)
- @things-factory/setting-ui ^10.1.226 (Dependency)
- @things-factory/shell ^10.1.208 (Dependency)
- debug ^4.1.1 (Dependency)
- node-fetch ^2.6.0 (Dependency)

## Package metadata
- **Package:** @things-factory/integration-lmd
- **Ecosystem:** npm
- **Version:** 10.1.226
- **License:** MIT
- **Version published:** 2026-10-27T16:15:50.417Z
- **Package first seen:** 2026-07-12T06:23:18.486Z
- **Package last seen:** 2026-11-04T09:22:19.351Z
- **Known versions:** 74
- **Latest version:** 10.1.250
- **Appeal under review:** No
- **Description:** Module for managing last mile delivery partner integration
- **Author:** heartyoh \<heartyoh@hatiolab.com\>
- **Maintainers:** woo\_ram, jyp220, heartyoh, horwengliang95, nalshya113, shortstop, youngwook, wengliang95
- **Artifact files:** 174
- **Artifact unpacked size:** 433,856 bytes
- **Artifact signatures:** 2
- **Attestations:** No

## References
- [HTML security report](<https://firewall.lpm.dev/npm/@things-factory/integration-lmd/v/10.1.226>)
- [Repository](<https://github.com/hatiolab/things-factory>)
