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

# sera-code@0.1.4 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 25 findings warrant review before installing.

- **Verdict:** Suspicious
- **Product-default install policy:** Warn
- **Firewall policy:** Matched warn-list
- **Public report status:** Published
- **Threat category:** Unknown
- **Selected version:** 0.1.4
- **Selected version is latest:** Yes
- **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 interactive CLI automatically checks for and installs newer releases of itself from npm, with SERA\_NO\_AUTO\_UPDATE=1 as an off-switch. This matches the policy’s warning case for self-updating a package from the npm registry, but the reviewed source does not show a concrete attack.

## Latest scan
- **Scanner version:** rust-scanner-worker-schema-1
- **Recorded final verdict:** Suspicious
- **Recorded analysis confidence:** 94.0%
- **Started:** 2026-11-22T18:43:45.938Z
- **Finished:** 2026-11-22T18:45:17.597Z
- **Download time:** 755 ms
- **Static scan time:** 21592 ms
- **AI review time:** 69310 ms
- **Total time:** 91659 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 CLI can automatically replace sera-code with a newer npm release.

- **Trigger:** Default interactive CLI startup, at most once every six hours; SERA\_NO\_AUTO\_UPDATE=1 disables the automatic check.

- **Impact:** A later package release can be installed without a separate update command, creating a self-update risk; the reviewed source does not establish malicious behavior in that later release.

- **Evidence paths:** bin/sera.mjs, lib/update.js

- **Review source:** ai\_review

- **Reviewed:** 2026-11-22T18:45:17.597Z

### AI review details

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

- **Mechanism:** It queries the sera-code latest-version endpoint on the npm registry and invokes npm to install sera-code globally when a newer stable version is found.

- **Rationale:** The interactive CLI automatically checks for and installs newer releases of itself from npm, with SERA\_NO\_AUTO\_UPDATE=1 as an off-switch. This matches the policy’s warning case for self-updating a package from the npm registry, but the reviewed source does not show a concrete attack.

- **Files touched:** agentDir/update-check.json, global npm prefix installation of sera-code

- **Network endpoints:** https://registry.npmjs.org/sera-code/latest

### Review decision

- **Verdict:** Suspicious

- **Confidence:** 94.0%

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

- **Intent class:** Dangerous Capability

- **False-positive risk:** Medium

- **Evidence for warning:** On an interactive default CLI start, the program checks for updates unless SERA\_NO\_AUTO\_UPDATE=1., The update check uses the npm registry endpoint for sera-code, and a newer version is installed globally with npm., The updater records its last check under the agent directory and installs only when it detects a newer version.

- **Evidence against:** The install hook runs Windows setup only and has a SERA\_SKIP\_WIN\_SETUP=1 opt-out., The Windows setup obtains Git for Windows releases and checks the release digest when provided; the reviewed source does not show unrelated data collection or a credential leak.

## Affected versions and remediation

This report applies to sera-code@0.1.4.

- Review the evidence and your use of sera-code@0.1.4 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. High: Install Time Lifecycle Scripts
- **Category:** Manifest
- **Confidence:** 90.0%
- **Path:** package.json
- **Public source:** [View source](<https://unpkg.com/sera-code@0.1.4/package.json>)

Package defines install-time lifecycle scripts.

Public source snippet (untrusted):

```json
scripts.postinstall = node lib/postinstall.js
```

### 2. Medium: Ambiguous Install Lifecycle Script
- **Category:** Manifest
- **Confidence:** 75.0%
- **Path:** package.json
- **Public source:** [View source](<https://unpkg.com/sera-code@0.1.4/package.json>)

Install-time lifecycle script is not statically allowlisted and needs review.

Public source snippet (untrusted):

```json
scripts.postinstall = node lib/postinstall.js
```

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

Package declares npm scripts.

### 4. High: Child Process
- **Category:** Source
- **Confidence:** 85.0%
- **Path:** sera-core/skills/hallmark/scripts/sloplint-render.mjs
- **Public source:** [View source](<https://unpkg.com/sera-code@0.1.4/sera-core/skills/hallmark/scripts/sloplint-render.mjs>)

Package source references child process execution.

Public source snippet (untrusted):

```javascript
L116: try {
L117: const { execSync } = await import('node:child_process');
L118: const g = execSync('npm root -g', { encoding: 'utf8', stdio: ['ignore', 'pipe', 'ignore'] }).trim();
```

### 5. High: Shell
- **Category:** Source
- **Confidence:** 85.0%
- **Path:** sera-core/src/app-master.ts\#virtual:normalized:round1
- **Public source:** [View source](<https://unpkg.com/sera-code@0.1.4/sera-core/src/app-master.ts%23virtual%3Anormalized%3Around1>)

Package source references shell execution.

Public source snippet (untrusted):

```text
L114: if (platform === "win32") {
L115: if (/[&|^<>"%\r\n`]/.test(target)) throw new Error("open_app: yolda güvenli olmayan karakter var.");\n\t\treturn { cmd: "cmd.exe", args: ["/d", "/c", "start", "", target], target }...
L116: }),
```

### 6. Low: Eval
- **Category:** Source
- **Confidence:** 45.0%
- **Path:** sera-core/skills/ambalaj-tasarim/dieline.mjs
- **Public source:** [View source](<https://unpkg.com/sera-code@0.1.4/sera-core/skills/ambalaj-tasarim/dieline.mjs>)

Package source references a known benign dynamic code generation pattern.

Public source snippet (untrusted):

```javascript
L9: const src = readFileSync(join(dirname(fileURLToPath(import.meta.url)), "sera-pack.js"), "utf8");
L10: new Function(src).call(globalThis);
L11: const P = globalThis.SeraPack;
```

### 7. Medium: Dynamic Require
- **Category:** Source
- **Confidence:** 75.0%
- **Path:** sera-core/skills/hallmark/scripts/sloplint.mjs
- **Public source:** [View source](<https://unpkg.com/sera-code@0.1.4/sera-core/skills/hallmark/scripts/sloplint.mjs>)

Package source references dynamic require/import behavior.

Public source snippet (untrusted):

```javascript
L4151: else try {
L4152: const mod = await import(new URL('./sloplint-render.mjs', import.meta.url).href);
L4153: const extra = await mod.renderCheck([...htmlFiles, ...opts.urls], { genre: opts.genre, postureByFile, heroPostureByFile, photoShapeByFile, jobByFile, stage: opts.stage, selectors: ...
```

### 8. Low: Weak Crypto
- **Category:** Source
- **Confidence:** 64.0%
- **Path:** sera-core/skills/hallmark/scripts/sloplint.mjs
- **Public source:** [View source](<https://unpkg.com/sera-code@0.1.4/sera-core/skills/hallmark/scripts/sloplint.mjs>)

Package source references weak cryptographic algorithms.

Public source snippet (untrusted):

```javascript
L26: function usage() {
L27: console.error('usage: node sloplint.mjs <file-or-dir ...> [--genre editorial|modern-minimal|atmospheric|playful] [--scope page|component|app] [--stage hero|page] [--json] [--render...
L28: console.error('--before records what the target says and does (.hallmark/before.json, screenshots in .hallmark/before); --kept checks a redesign against that record');
...
L791: 
L792: const rel = (f) => f.startsWith(process.cwd()) ? f.slice(process.cwd().length + 1) : f;
L793: const trunc = (s, n = 72) => (s.length > n ? s.slice(0, n - 1) + '…' : s);
...
L3926: LIBRARY = new Map();
L3927: try { for (const p of JSON.parse(readFileSync(join(dirname(fileURLToPath(import.meta.url)), 'photos.json'), 'utf8')).photos) { LIBRARY.set(p.file.split('/').pop(), p); LIBRARY.set(...
L3928
```

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

Package source references network APIs.

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

Package source references environment variables.

### 11. Medium: Install Persistence
- **Category:** Source
- **Confidence:** 75.0%
- **Path:** sera-core/src/github-agent-schedule.ts
- **Public source:** [View source](<https://unpkg.com/sera-code@0.1.4/sera-core/src/github-agent-schedule.ts>)

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

Public source snippet (untrusted):

```typescript
L2: * GitHub ajani icin kalici arka plan izleyici: Sera kapaliyken de calisir.
L3: *  - Windows: Gorev Zamanlayici (schtasks, kullanici duzeyi, YONETICI GEREKTIRMEZ), oturum aciksa her 5 dk.
L4: *    Pencere cakmasin diye wscript //B ile gizli calisan kucuk .vbs sarmalayici.
...
L16: opts?: { input?: string; timeoutMs?: number },
L17: ) => Promise<{ code: number; stdout: string; stderr: string }>;
L18: 
...
L71: const plistPath = (s: ScheduleSpec) =>
L72: join(s.launchAgentsDir ?? join(homedir(), "Library", "LaunchAgents"), `${LAUNCHD_LABEL}.plist`);
L73: 
...
L82: writeFileSync(join(s.home, "tick.vbs"), vbsContent(s));
L83: const r = await exec("schtasks", windowsCreateArgs(s), { timeoutMs: 30_000 });
L84: return { ok: r.code === 0, detail: (r.stdout + r.stderr).trim().slice(0, 300) };
```

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

Package source references filesystem APIs.

### 13. High: Same File Env Network Execution
- **Category:** Source
- **Confidence:** 85.0%
- **Path:** dist/bundle/chunks/chunk-EDSQGWII.js
- **Public source:** [View source](<https://unpkg.com/sera-code@0.1.4/dist/bundle/chunks/chunk-EDSQGWII.js>)

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

Public source snippet (untrusted):

```javascript
L13: `+mind+"}":"{"+partial.join(",")+"}",gap=mind,v}}typeof JSON2.stringify!="function"&&(JSON2.stringify=function(value,replacer,space){var i;if(gap="",indent="",typeof space=="number...
L14: `,r:"\r",t:"	"},text,error=function(m){throw{name:"SyntaxError",message:m,at,text}},next=function(c){return c&&c!==ch&&error("Expected '"+c+"' instead of '"+ch+"'"),ch=text.charAt(...
L15: Supported algorithms are:
...
L24: ${credentialScope}
L25: `+await options.crypto.sha256DigestHex(canonicalRequest),signingKey=await getSigningKey(options.crypto,options.securityCredentials.secretAccessKey,dateStamp,options.region,serviceN...
L26: To learn more about authentication and Google APIs, visit:
```

### 14. Critical: Hardcoded Runtime Data Exfiltration
- **Category:** Source
- **Confidence:** 94.0%
- **Path:** dist/bundle/chunks/kimi-coding.js
- **Public source:** [View source](<https://unpkg.com/sera-code@0.1.4/dist/bundle/chunks/kimi-coding.js>)

Source sends credentials or rich application records to a package-controlled external receiver enabled by default.

Public source snippet (untrusted):

```javascript
Source sends the broad process environment to a literal external destination.
L1: import { createRequire as __piCreateRequire } from "node:module"; const require = __piCreateRequire(import.meta.url);
L2: var __require=(x=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(x,{get:(a,b)=>(typeof require<"u"?require:a)[b]}):x)(function(x){if(typeof require<"u")return require.apply(...
```

### 15. High: Command Output Exfiltration
- **Category:** Source
- **Confidence:** 82.0%
- **Path:** dist/bundle/chunks/chunk-EDSQGWII.js
- **Public source:** [View source](<https://unpkg.com/sera-code@0.1.4/dist/bundle/chunks/chunk-EDSQGWII.js>)

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

Public source snippet (untrusted):

```javascript
L13: `+mind+"}":"{"+partial.join(",")+"}",gap=mind,v}}typeof JSON2.stringify!="function"&&(JSON2.stringify=function(value,replacer,space){var i;if(gap="",indent="",typeof space=="number...
L14: `,r:"\r",t:"	"},text,error=function(m){throw{name:"SyntaxError",message:m,at,text}},next=function(c){return c&&c!==ch&&error("Expected '"+c+"' instead of '"+ch+"'"),ch=text.charAt(...
L15: Supported algorithms are:
...
L24: ${credentialScope}
L25: `+await options.crypto.sha256DigestHex(canonicalRequest),signingKey=await getSigningKey(options.crypto,options.securityCredentials.secretAccessKey,dateStamp,options.region,serviceN...
L26: To learn more about authentication and Google APIs, visit:
```

### 16. High: Sandbox Evasion Gated Capability
- **Category:** Source
- **Confidence:** 84.0%
- **Path:** dist/bundle/chunks/chunk-GSGPISRE.js
- **Public source:** [View source](<https://unpkg.com/sera-code@0.1.4/dist/bundle/chunks/chunk-GSGPISRE.js>)

Source gates dangerous network, credential, or execution behavior behind CI, host, platform, time, or geo fingerprint checks.

Public source snippet (untrusted):

```javascript
L1: import { createRequire as __piCreateRequire } from "node:module"; const require = __piCreateRequire(import.meta.url);
L2: import{getBinDir}from"./chunk-BSS6T6KQ.js";import{accessSync,constants}from"node:fs";import{delimiter,join,win32}from"node:path";import{spawn,spawnSync}from"child_process";function...
L3: powershell -ExecutionPolicy Bypass -c "irm https://ssera.online/kur.ps1 | iex"
L4: Diger secenekler: Git for Windows kur (https://git-scm.com/download/win), bash'i PATH'e ekle ya da settings.json'da shellPath ver.
...
L7: ${paths.map(p=>`  ${p}`).join(`
L8: `)}`)}if(shellPathExists("/bin/bash"))return getBashShellConfig("/bin/bash");let bashOnPath=findExecutableOnPath("bash");return bashOnPath?getBashShellConfig(bashOnPath):{shell:"sh...
```

### 17. High: Cloud Metadata Access
- **Category:** Source
- **Confidence:** 84.0%
- **Path:** dist/bundle/chunks/chunk-EDSQGWII.js
- **Public source:** [View source](<https://unpkg.com/sera-code@0.1.4/dist/bundle/chunks/chunk-EDSQGWII.js>)

Source reaches cloud instance metadata or link-local credential endpoints.

Public source snippet (untrusted):

```javascript
L1: import { createRequire as __piCreateRequire } from "node:module"; const require = __piCreateRequire(import.meta.url);
L2: import{retryProviderRequest}from"./chunk-PMRZO46Y.js";import{getJsonSchemaToolParameters,resolveJsonSchemaStrictSampling,transformMessages}from"./chunk-TLNP2BSO.js";import{sanitize...
L3: `)||message,code,status},res.data.error)}return Object.assign({message,code,status},res.data.error)}}return{message,code:res.status,status:res.statusText}}};exports.GaxiosError=Gax...
L4: Content-Type: ${partContentType}\r
...
L13: `+mind+"}":"{"+partial.join(",")+"}",gap=mind,v}}typeof JSON2.stringify!="function"&&(JSON2.stringify=function(value,replacer,space){var i;if(gap="",indent="",typeof space=="number...
L14: `,r:"\r",t:"	"},text,error=function(m){throw{name:"SyntaxError",m
```

### 18. High: Cross File Remote Execution Context
- **Category:** Source
- **Confidence:** 72.0%
- **Path:** dist/bundle/chunks/chunk-BSS6T6KQ.js
- **Public source:** [View source](<https://unpkg.com/sera-code@0.1.4/dist/bundle/chunks/chunk-BSS6T6KQ.js>)

Source spawns a local helper that also contains network and dynamic execution context; review data flow before blocking.

Public source snippet (untrusted):

```javascript
Cross-file remote execution chain: dist/bundle/chunks/chunk-BSS6T6KQ.js spawns dist/bundle/chunks/codemode-worker.js; helper contains network access plus dynamic code execution.
L1: import { createRequire as __piCreateRequire } from "node:module"; const require = __piCreateRequire(import.meta.url);
L2: import{__commonJS,__require,__toESM}from"./chunk-JXWJOIH4.js";var require_windows=__commonJS({"node_modules/isexe/windows.js"(exports,module){module.exports=isexe;isexe.sync=sync;v...
```

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

Package source contains high-entropy string patterns.

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

Package source references telemetry or analytics APIs.

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

Package source contains URL literals.

### 22. Medium: Ships Build Helper
- **Category:** Artifact Inventory
- **Confidence:** 70.0%
- **Path:** sera-core/skills/teardown/sfx/dsp.py
- **Public source:** [View source](<https://unpkg.com/sera-code@0.1.4/sera-core/skills/teardown/sfx/dsp.py>)

Package ships non-JavaScript build or shell helper files.

Public source snippet (untrusted):

```python
path = sera-core/skills/teardown/sfx/dsp.py
kind = build_helper
sizeBytes = 13741
magicHex = [redacted]
```

### 23. Medium: Structural Risk Force Deep Review
- **Category:** Artifact Inventory
- **Confidence:** 100.0%

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

### 24. High: Semantic Analysis Limited
- **Category:** Scanner Coverage
- **Confidence:** 100.0%
- **Path:** dist/bundle/chunks/chunk-EMXTNOOJ.js
- **Public source:** [View source](<https://unpkg.com/sera-code@0.1.4/dist/bundle/chunks/chunk-EMXTNOOJ.js>)

A bounded semantic-analysis stage reached its safety limit; remaining detectors completed, but this package requires AI review.

Public source snippet (untrusted):

```javascript
stage = ast_semantic_analysis; reason = ast_path_work_budget_exceeded; limitedFiles = 3
```

### 25. Critical: Previous Version Dangerous Delta
- **Category:** Supply Chain
- **Confidence:** 93.0%
- **Path:** dist/bundle/chunks/chunk-GSGPISRE.js
- **Public source:** [View source](<https://unpkg.com/sera-code@0.1.4/dist/bundle/chunks/chunk-GSGPISRE.js>)

This package version adds a dangerous source file absent from the previous stored version; route for source-aware review.

Public source snippet (untrusted):

```javascript
matchType = previous_version_dangerous_delta
matchedPackage = sera-code@0.1.3
matchedIdentity = npm:c2VyYS1jb2Rl:0.1.3
similarity = 0.750
summary = stored previous version shares package body but lacks this dangerous source file
```

## Dependencies and install lifecycle
- **Lifecycle scripts present:** Yes
- **Published lifecycle scripts:** postinstall
- **Dependencies:** 3
- **Optional dependencies:** 2
- **Peer dependencies:** 0
- **Development dependencies:** 0
- **Published dependency-graph edges:** 5

### Published dependency entries
- @anthropic-ai/sandbox-runtime 0.0.81 (Dependency)
- @silvia-odwyer/photon-node 0.3.4 (Dependency)
- jiti 2.7.0 (Dependency)
- playwright-core 1.64.1 (OptionalDependency)
- pptxgenjs 4.0.1 (OptionalDependency)

## Package metadata
- **Package:** sera-code
- **Ecosystem:** npm
- **Version:** 0.1.4
- **License:** MIT
- **Version published:** 2026-11-22T18:42:47.705Z
- **Package first seen:** 2026-11-16T21:45:25.585Z
- **Package last seen:** 2026-11-22T18:45:17.597Z
- **Known versions:** 5
- **Latest version:** 0.1.4
- **Appeal under review:** No
- **Description:** Sera - terminalde kod ajani. Kurulum: npm i -g sera-code, sonra: sera login
- **Maintainers:** sera-code
- **Keywords:** sera, coding-agent, cli, ai
- **Runtime engines:** node: \>=22.19.0
- **Artifact files:** 759
- **Artifact unpacked size:** 21,296,386 bytes
- **Artifact signatures:** 2
- **Attestations:** No

## References
- [HTML security report](<https://firewall.lpm.dev/npm/sera-code/v/0.1.4>)
- [Homepage](<https://ssera.online/>)
