Loading npm security reports…
Loading npm security reports…
papilot@0.12.1: npm security report – allowed | LPM Firewall
Allowed — no malicious behavior detected
22 low-signal patterns reviewed and cleared.
AI security reviewscanned on Nov 21, 2026, 06:43 UTC · by lpm-firewall-ai The flagged behaviors fit Papilot’s documented CLI, agent-provider, update, and optional service features. Credential routing and persistence triggers inspected are consistent with those functions; the Unicode and bundle scanner hints did not yield evidence of reachable malicious behavior.
Static reason
High-risk behavior combination matched malicious policy.; previous stored version diff introduced dangerous source
Trigger
The CLI starts the workspace; service persistence requires the explicit `service install` command. Agent integrations run when selected for use.
Impact
No malicious impact identified.
Mechanism
Inspected credentials are used with their configured provider, while update downloads are restricted to GitHub release hosts or a configured local source.
Network endpoints5
registry.npmjs.org github.com *.githubusercontent.com open.bigmodel.cn api.z.ai
public snapshot
Evidence for AI clean decision
The manifest exposes a CLI entry point and declares no install lifecycle scripts. Codex is installed on first use through npm as a stated Papilot feature. The launchd persistence setup runs only for the explicit `papilot service install` command. GLM keys are passed to the matching Zhipu endpoint; the code says Anthropic keys are excluded. Papilot’s Claude integration uses the host’s Claude login or configured API key and says it does not read or store the credential. The update downloader restricts release downloads to HTTPS GitHub hosts or a configured local source. Behavioral surface
Source Child process · Crypto · Dynamic require · Environment variables · Filesystem · Network · Shell · Web socket
Supply chain High entropy strings · Minified · Possible obfuscation · URL strings
Manifest No manifest risk signals triggered.
Scanned 217 files · 11.4 MB of source
50 external domains referenced
127.0.0.1 agentclientprotocol.com api.anthropic.com api.crossref.org api.github.com api.openai.com api.z.ai arxiv.org blueoakcouncil.org cgit.ghostscript.com chatgpt.com creativecommons.org ctan.org daringfireball.net dblp.org doi.org example.com export.arxiv.org foo.bar fsf.org generativelanguage.googleapis.com git-scm.com github.com info.arxiv.org js.foundation kael.me mathiasbynens.be mozilla.org nfriedly.com nodejs.org ns.adobe.com open.bigmodel.cn overleaf.com papilot.ai phitex.org pi.dev qoder.com raw.githubusercontent.com react.dev registry.npmjs.org scripts.sil.org sindresorhus.com tug.org www.apache.org www.apple.com www.cloudflare.com www.ctan.org www.gnu.org www.gust.org.pl www.ietf.org Findings1 critical · 9 high · 7 medium · 5 low Source & flagged code15 flagged The lines the automated scan flagged. The review checked them and cleared this version.
High Child processCleared
Package source references child process execution.
bin/papilot.mjs View on unpkg · L2 Code excerpt · 3 lines 2 // The papilot command: starts the workspace, or adds the example paper first.
3 import { spawn, spawnSync } from 'node:child_process' ;
4 import { existsSync, readdirSync, readFileSync } from 'node:fs' ;
High Entrypoint build divergenceCleared
Manifest entrypoint contains risky behavior absent from dist/build output.
bin/papilot.mjs View on unpkg · L2 Code excerpt · 11 lines Manifest entrypoint (manifest.bin) carries capability families absent from dist/build output: environment+network, execution+network
2 // The papilot command: starts the workspace, or adds the example paper first.
3 import { spawn, spawnSync } from 'node:child_process' ;
4 import { existsSync, readdirSync, readFileSync } from 'node:fs' ;
⋯
13
14 papilot Start Papilot at http://127.0.0.1:7274
15 papilot doctor Check the environment; use doctor --help for options
⋯
23
24 let pkg = JSON.parse (readFileSync (new URL ('../package.json' , import .meta.url), 'utf8' ));
25 const packageRoot = fileURLToPath ( ( , .meta.url));
bin/agent-paths.mjs#virtual:normalized:round1 View file High ShellCleared
Package source references shell execution.
bin/agent-paths.mjs#virtual:normalized:round1 View on unpkg · L74 Code excerpt · 3 lines 74 // has not been registered. Query only after ordinary lookup fails; explicit
75 // paths and other agents never start PowerShell. Read again on Reconnect so an
76 // install, move or uninstall does not leave a cached executable behind.
Medium Dynamic requireCleared
Package source references dynamic require/import behavior.
bin/doctor.mjs View on unpkg · L70 Code excerpt · 3 lines 70 function installedModule (name, directory = root) {
71 const require = createRequire (path.join (directory, 'package.json' ));
72 try { return require.resolve (name); } catch {}
Low Weak cryptoCleared
Package source references weak cryptographic algorithms.
src/server/app.ts View on unpkg · L201 Code excerpt · 8 lines 201 if (!options.updates || !/^\/(api|review)\//.test(request.url) || /^\/api\/(?:updates(?:\/|$)|health(?:\?|$)|events(?:\?|$)|state(?:\?|$))/.test(request.url)) return;
202 if (options.updates.restarting) return reply.code (503 ).header ('Retry-After' , '3' ).send ({ error: 'Papilot is restarting after an update. Please wait a moment.' });
203 const release = options.updates.enter (); updateRequests.set (request, release); reply.raw.once ('close' , release);
⋯
353 // get an empty 304 instead of every task again to download and parse.
High Trigger reachable persistenceCleared
A manifest entrypoint or package-local install chain reaches persistence behavior.
scripts/service.ts View on unpkg · L3 Medium Install persistenceCleared
Source writes installer persistence such as shell profile or service configuration.
scripts/service.ts View on unpkg · L3 Shared code excerpt · 2 findings · 12 lines Trigger-reachable persistence chain: manifest.bin -> bin/papilot.mjs -> scripts/service.ts
3 import os from 'node:os' ;
4 import { execFileSync } from 'node:child_process' ;
5 import { ROOT, DATA } from '../src/server/paths.ts' ;
⋯
7
8 if (process.platform !== 'darwin' ) ( );
High Same file environment network executionCleared
A single source file combines environment access, network access, and code or shell execution; review context before blocking.
src/server/update-install.ts View on unpkg · L2 Code excerpt · 7 lines 2 import path from 'node:path' ;
3 import net from 'node:net' ;
4 import { execFile, spawn } from 'node:child_process' ;
5 import { createHash } from 'node:crypto' ;
⋯
13 export const DEV_REPOSITORY = 'https://github.com/PapilotAI/papilot.git' ;
14 const git = async (args: string[], cwd: string) => ( (execFile)( , args, { cwd, timeout: , maxBuffer: * , env: { ...process.env, GIT_TERMINAL_PROMP...
High Sandbox evasion gated capabilityCleared
Source gates dangerous network, credential, or execution behavior behind CI, host, platform, time, or geo fingerprint checks.
src/server/agents.ts View on unpkg · L1 Code excerpt · 9 lines 1 import { randomUUID } from 'node:crypto' ;
2 import { execFile, type ChildProcess } from 'node:child_process' ;
3 import { createInterface } from 'node:readline' ;
⋯
65 protected account (): unknown { return { account: null , requiresOpenaiAuth: false }; }
66 protected models (): unknown { return { data: [] }; }
67 protected limits (): unknown { throw ( ); }
Critical Trojan source unicodeCleared
Source contains bidi control or invisible Unicode characters associated with Trojan Source attacks.
dist/assets/pdf-view-DXeGmHk1.js View on unpkg · L56 Code excerpt · 2 lines 56 contains invisible/control Unicode U+2068 (first strong isolate)
`);[this._pageContents[r],this._pageDiffs[r],this._hasDiacritics[r]]=$u(i.join(` `))}catch(e){if(n!==this._pdfDocument){a();return}console.error(` Unable to get text content for page ${r+1 }`,e),[this._pageContents[r],this._pageDiffs[r],this._
Medium Ships WASM moduleCleared
Package ships WebAssembly modules.
engine/src/render/synctex.wasm View on unpkg Scanner record · 4 lines path = engine/src/render/synctex.wasm
kind = wasm_module
sizeBytes = 476263
magicHex = [redacted]
examples/papilot-paper/preview/main.synctex.gz View file Medium Ships compressed blobCleared
Package ships compressed or archive-like blobs.
examples/papilot-paper/preview/main.synctex.gz View on unpkg Scanner record · 4 lines path = examples/papilot-paper/preview/main.synctex.gz
kind = compressed_blob
sizeBytes = 257193
magicHex = [redacted]
dist/assets/Adobe-GB1-UCS2-BA083yIo.bcmap View file High Ships high entropy blobCleared
Package ships high-entropy non-source blobs.
dist/assets/Adobe-GB1-UCS2-BA083yIo.bcmap View on unpkg Scanner record · 4 lines path = dist/assets/Adobe-GB1-UCS2-BA083yIo.bcmap
kind = high_entropy_blob
sizeBytes = 33974
magicHex = [redacted]
High Previous version dangerous deltaCleared
This package version adds a dangerous source file absent from the previous stored version; route for source-aware review.
engine/src/server.ts View on unpkg Scanner record · 5 lines matchType = previous_version_dangerous_delta
matchedPackage = papilot@0.12.0
matchedIdentity = npm:cGFwaWxvdA:0.12.0
similarity = 0.925
summary = stored previous version shares package body but lacks this dangerous source file
Package metadata 7 findings
Medium Network Cleared
Medium Environment variables Cleared
Medium Structural risk force deep review Cleared
Low Scripts present Cleared
Low High entropy strings Cleared
new
URL
'..'
import
26 const installedPackage = () => JSON.parse (readFileSync (path.join (activeInstallation (packageRoot, process.env.PAPI
354 const tag = `"${createHash('sha1').update(body).digest('base64url')}"` ;
355 reply.header ('ETag' , tag);
637 const value = await workspace.reviewWrite (current.id, true , async () => {
638 const response = await fetch (client.url + route, { method
throw
new
Error
'This service installer is for macOS. On other systems run npm start with your process manager.'
9 const label = 'local.papilot' ;
10 const domain = `gui/${process.getuid!()}` ;
11 const file = path.join (os.homedir (), 'Library/LaunchAgents' , label + '.plist' );
12 if (process.argv[2 ] === 'stop' ) {
13 execFileSync ('launchctl' , ['bootout' , `${domain}/${label}` ], { stdio: 'inherit' });
14 } else if (process.argv[2 ] === 'install' ) {
await
promisify
'git'
120000
1024
1024
15 export const loaderFor = (root: string) => createRequire (path.join (root, 'package.json' )).resolve ('tsx/esm' );
new
Error
'This agent does not report usage.'
132 const CLAUDE_KEY = 'Claude needs an Anthropic API key: Anthropic does not allow a Claude subscription login through the Claude Agent SDK. Start Papilot with ANTHROPIC_API_KEY set t...
133 export function claudeConfigured (env: NodeJS.ProcessEnv = process.env) {
134 return Boolean (env.ANTHROPIC_API_KEY || env.ANTHROPIC_AUTH_TOKEN || env.CLAUDE_CODE_USE_BEDROCK || env.CLAUD
High Semantic analysis limitedCleared
A bounded semantic-analysis stage reached its safety limit; remaining detectors completed, but this package requires AI review.
src/server/agents.ts View on unpkg Scanner record · 1 line stage = ast_semantic_analysis; reason = ast_trace_path_limit_exceeded; limitedFiles = 1