deepseek-free-api-git
maintainer Neboer
· 0 votes
· scanned 2026-08-03 00:08:14.047287
LOW
View on AUR ↗
Why flagged
The npx command is used to run @vercel/ncc, a legitimate bundler, on the project's own built code; this is a standard build step, not execution of arbitrary remote code.
Triggered rules
LOW
AI review downgraded a static finding
llm_review
The static rules flagged this MEDIUM, but an AI model (qwen/qwen3-235b-a22b-07-25) reviewed the full PKGBUILD and judged it LOW (confidence 95%): The npx command is used to run @vercel/ncc, a legitimate bundler, on the project's own built code; this is a standard build step, not execution of arbitrary remote code.
1 higher static finding superseded - not the current verdict (shown for transparency)
MEDIUM
npx/bunx/deno executes a remote package
remote_code_tool
`npx`/`bunx`/`pnpm dlx`/`deno run <url>` downloads AND runs a remote package at build time — the moral equivalent of piping a download into a shell. Severity downgraded: Node.js consumer context.
-
PKGBUILD:41
npx --yes @vercel/ncc build dist/index.js --minify --out ncc-dist --asset-builds
PKGBUILD
1 offending line(s) highlighted
1
# Maintainer: Neboer <rubinposter@gmail.com>
2
pkgname=deepseek-free-api-git
3
pkgver=0.0.21
4
pkgrel=2
5
pkgdesc="DeepSeek V3 Free Service API"
6
arch=('x86_64')
7
url="https://github.com/LLM-Red-Team/deepseek-free-api"
8
license=('GPL-3.0-only')
9
depends=('nodejs')
10
makedepends=('yarn' 'npm')
11
backup=('etc/deepseek-free-api/config.env' 'etc/deepseek-free-api/system.yml')
12
provides=("deepseek-free-api")
13
conflicts=("deepseek-free-api")
14
options=()
15
source=("git+https://github.com/LLM-Red-Team/deepseek-free-api.git"
16
"deepseek-free-api.sysusers"
17
"deepseek-free-api.service"
18
"config.env"
19
"system.yml")
20
21
sha256sums=('SKIP'
22
'4806233295ce40630f0bdd9226ef27eab8083594d8faf5f01ceb5900f636acd6'
23
'8d1115e202ec9f2be8d163c6fc149dac56d1c5d3a522ec9df2140822d6b51d02'
24
'c91381085b14292783c04b178f8c457f13b249b5ee4039e32a07cc398a2d8576'
25
'b4025f93844adbb98df9d877e6ce092f63ddf8fb50cf53167e1f9192164eedb0')
26
27
pkgver() {
28
cd "$srcdir/deepseek-free-api"
29
local v
30
v="$(git describe --tags)"
31
v="${v#v}"
32
printf %s "${v//-/+}"
33
}
34
35
build() {
36
cd "$srcdir/deepseek-free-api"
37
38
# Build in release mode. Do not use --prod, as it will not install tsup, this is a mistake.
39
yarn install --frozen-lockfile
40
yarn run build
41
npx --yes @vercel/ncc build dist/index.js --minify --out ncc-dist --asset-builds
42
}
43
44
package() {
45
cd "$srcdir/deepseek-free-api"
46
47
# Install the binary
48
mkdir -p "$pkgdir/usr/lib/deepseek-free-api"
49
50
install -Dm644 "ncc-dist/index.js" "$pkgdir/usr/lib/deepseek-free-api"
51
install -Dm644 "package.json" "$pkgdir/usr/lib/deepseek-free-api/package.json"
52
# install -Dm644 "*.wasm" "$pkgdir/usr/lib/deepseek-free-api"
53
find . -name '*.wasm' -maxdepth 1 -exec install -Dm644 {} "$pkgdir/usr/lib/deepseek-free-api" \;
54
55
# skip node_modules, as it is not needed for the package. we have already use ncc to bundle the package.
56
# cp -r "node_modules" "$pkgdir/usr/lib/deepseek-free-api"
57
cp -r "public" "$pkgdir/usr/lib/deepseek-free-api"
58
59
# create config dir, will install config files here.
60
mkdir -p "$pkgdir/usr/lib/deepseek-free-api/configs/prod"
61
62
63
# Install the LICENSE and README
64
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/deepseek-free-api/LICENSE"
65
install -Dm644 README.md "$pkgdir/usr/share/doc/deepseek-free-api/README.md"
66
67
# Install the configuration file
68
install -Dm644 "$srcdir/config.env" "$pkgdir/etc/deepseek-free-api/config.env"
69
install -Dm644 "$srcdir/system.yml" "$pkgdir/etc/deepseek-free-api/system.yml"
70
# Create a symbolic link for system.yml
71
ln -s "/etc/deepseek-free-api/system.yml" "$pkgdir/usr/lib/deepseek-free-api/configs/prod/system.yml"
72
73
74
# Install User, Service
75
install -Dm644 "$srcdir/deepseek-free-api.sysusers" "$pkgdir/usr/lib/sysusers.d/deepseek-free-api.conf"
76
install -Dm644 "$srcdir/deepseek-free-api.service" "$pkgdir/usr/lib/systemd/system/deepseek-free-api.service"
77
}
78
Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 2026-08-03 00:08:14 | LOW | 2 |
| 2026-08-02 00:16:08 | LOW | 2 |
| 2026-08-01 00:11:18 | LOW | 2 |
| 2026-07-31 00:14:10 | LOW | 2 |
| 2026-07-30 00:17:23 | LOW | 2 |
| 2026-07-29 00:25:53 | LOW | 2 |
| 2026-07-28 00:07:28 | LOW | 2 |
| 2026-07-27 00:24:32 | LOW | 2 |
| 2026-07-26 00:07:32 | LOW | 2 |
| 2026-07-25 00:13:44 | LOW | 2 |
| 2026-07-24 00:02:28 | LOW | 2 |
| 2026-07-23 00:14:47 | LOW | 2 |
| 2026-07-22 00:29:32 | LOW | 2 |
| 2026-07-21 00:24:15 | LOW | 2 |
| 2026-07-20 00:19:49 | LOW | 2 |
| 2026-07-19 00:17:08 | LOW | 2 |
| 2026-07-18 00:14:48 | LOW | 2 |
| 2026-07-17 00:06:16 | LOW | 2 |
| 2026-07-16 00:05:41 | LOW | 2 |
| 2026-07-15 00:09:25 | LOW | 2 |