recordly

LOW
maintainer zxp19821005 0 votes scanned 2026-11-01 00:21:48.120785
View on AUR
Why flagged

The npm/yarn and npx usage is part of the build process for a legitimate project from a trusted GitHub source, installing only declared devDependencies and running internal build scripts, not executing 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-2507) reviewed the full PKGBUILD and judged it LOW (confidence 95%): The npm/yarn and npx usage is part of the build process for a legitimate project from a trusted GitHub source, installing only declared devDependencies and running internal build scripts, not executing arbitrary remote code.

2 higher static findings superseded - not the current verdict (shown for transparency)
Medium npm/yarn/pnpm install of an undeclared external package npm_install_external

Runs `npm/yarn/pnpm install <package>` for a package not in source=(), pulling unpinned, unreviewed code at build time. Severity downgraded: the package declares/looks like a Node.js consumer, where build-time installs are expected.

  • PKGBUILD:84 NODE_ENV=development npm add -D node-abi@latest
  • PKGBUILD:85 NODE_ENV=development npm add @babel/runtime
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:93 NODE_ENV=production npx tsc
  • PKGBUILD:94 NODE_ENV=production npx vite build --config vite.config.ts

PKGBUILD

4 offending line(s) highlighted
1# Maintainer: zxp19821005 <zxp19821005 at 163 dot com>
2pkgname=recordly
3_pkgname=Recordly
4pkgver=1.4.0
5_electronversion=43
6_nodeversion=24
7pkgrel=1
8pkgdesc="Open-source screen recorder and editor with auto-zoom, cursor effects, and polished video export。(Use system-wide electron)"
9arch=('any')
10url="https://recordly.dev/"
11_ghurl="https://github.com/webadderallorg/Recordly"
12license=('LicenseRef-custom')
13depends=(
14 "electron${_electronversion}"
15 'nodejs'
16 'ffmpeg'
17 'libxt'
18)
19makedepends=(
20 'npm'
21 'nvm'
22 'git'
23 'curl'
24 'yarn'
25 'jq'
26)
27source=(
28 "${pkgname}-${pkgver}.tar.gz::${_ghurl}/archive/refs/tags/v${pkgver}.tar.gz"
29 "${pkgname}.sh"
30)
31sha256sums=('19d07690bfc0b3ea5dd1e888807dd0a58c25ae279834e2490451f6f7db9addde'
32 'a774c2f54fbbeeaac3cefc0f7250796d30c86d27f0fd40b7eaf9c0fdb021623d')
33_ensure_local_nvm() {
34 local NVM_DIR="${srcdir}/.nvm"
35 source /usr/share/nvm/init-nvm.sh || [[ $? != 1 ]]
36 nvm install "${_nodeversion}"
37 nvm use "${_nodeversion}"
38}
39_set_build_env() {
40 export ELECTRON_DIST="/usr/lib/electron${_electronversion}"
41 export ELECTRON_SKIP_BINARY_DOWNLOAD=1
42 export SYSTEM_ELECTRON_VERSION="$(electron${_electronversion} -v | sed 's/v//g')"
43 export HOME="${srcdir}/.electron-gyp"
44 export NPM_CONFIG_CACHE="${srcdir}/.npm_cache"
45 export NPM_CONFIG_MAXSOCKETS=32
46 if [[ "$(curl -s ipinfo.io/country)" == *"CN"* ]]; then
47 {
48 export NPM_CONFIG_REGISTRY="https://registry.npmmirror.com"
49 export NODEJS_ORG_MIRROR="https://npmmirror.com/mirrors/node"
50 export ELECTRON_MIRROR="https://npmmirror.com/mirrors/electron/"
51 export ELECTRON_BUILDER_BINARIES_MIRROR="https://npmmirror.com/mirrors/electron-builder-binaries/"
52 }
53 find ./ -type f -name "package-lock.json" -exec sed -i "s/registry.npmjs.org/registry.npmmirror.com/g" {} +
54 fi
55}
56_get_app_dir() {
57 find "${srcdir}" -type f -name "resources.pak" -exec dirname {} + | head -n 1
58}
59_get_electron_version() {
60 _elec_ver=$(find "${srcdir}" -maxdepth 5 -name "package.json" ! -path "*/node_modules/*" \
61 -exec grep -l '"electron"' {} + | xargs -I{} jq -r '(.devDependencies.electron // .dependencies.electron) // empty' {} 2>/dev/null | head -1)
62 [[ -z "${_elec_ver}" ]] && return 1
63 echo -e "The electron version is: \033[1;31m${_elec_ver%%.*}\033[0m"
64}
65prepare() {
66 cd "${srcdir}/${_pkgname}-${pkgver}"
67 _get_electron_version
68 sed -i -e "
69 s/@electronversion@/${_electronversion}/g
70 s/@appname@/${pkgname}/g
71 s/@runname@/app.asar/g
72 s/@cfgdirname@/${_pkgname}/g
73 " "${srcdir}/${pkgname}.sh"
74 gendesk -q -f -n \
75 --pkgname="${pkgname}" \
76 --pkgdesc="${pkgdesc}" \
77 --categories="AudioVideo;Utility" \
78 --name="${_pkgname}" \
79 --exec="${pkgname} %U"
80 _set_build_env
81 _ensure_local_nvm
82 sed -i "s/\"electron\": \"[^\"]*\"/\"electron\": \"${SYSTEM_ELECTRON_VERSION}\"/g" package.json
83 find src -type f -exec sed -i "s/process.resourcesPath/\'\/usr\/lib\/${pkgname}\'/g" {} +
84 NODE_ENV=development npm add -D node-abi@latest
85 NODE_ENV=development npm add @babel/runtime
86 NODE_ENV=development npm install --legacy-peer-deps
87}
88build() {
89 cd "${srcdir}/${_pkgname}-${pkgver}"
90 _set_build_env
91 _ensure_local_nvm
92 NODE_ENV=production npm run build:platform-native-helpers
93 NODE_ENV=production npx tsc
94 NODE_ENV=production npx vite build --config vite.config.ts
95 NODE_ENV=production npm run normalize:electron-main-cjs
96 NODE_ENV=production npm run smoke:electron-main-cjs
97 NODE_ENV=production npm exec -c "electron-builder --linux dir -c.electronDist=${ELECTRON_DIST}"
98 local _app_dir=$(_get_app_dir)
99 rm -rf \
100 "${_app_dir}/resources/app.asar.unpacked/electron/native/bin/"{darwin-*,win32-*} \
101 "${_app_dir}/resources/app.asar.unpacked/node_modules/uiohook-napi/prebuilds/"{darwin-*,win32-*}
102 ln -sf "/usr/bin/ffmpeg" "${_app_dir}/resources/app.asar.unpacked/node_modules/ffmpeg-static/ffmpeg"
103 ln -sf "/usr/bin/ffprobe" "${_app_dir}/resources/app.asar.unpacked/node_modules/ffprobe-static/ffprobe"
104}
105package() {
106 install -Dm755 "${srcdir}/${pkgname}.sh" "${pkgdir}/usr/bin/${pkgname}"
107 install -Dm755 -d "${pkgdir}/usr/lib/${pkgname}"
108 local _app_dir=$(_get_app_dir)
109 cp -a "${_app_dir}/resources/"* "${pkgdir}/usr/lib/${pkgname}/"
110 rm -rf "${pkgdir}/usr/lib/${pkgname}/default_app.asar"
111 icon_sizes=(16x16 24x24 32x32 48x48 64x64 128x128 256x256 512x512 1024x1024)
112 for _icons in "${icon_sizes[@]}";do
113 install -Dm644 "${srcdir}/${_pkgname}-${pkgver}/icons/icons/png/${_icons}.png" \
114 "${pkgdir}/usr/share/icons/hicolor/${_icons}/apps/${pkgname}.png"
115 done
116 install -Dm644 "${srcdir}/${_pkgname}-${pkgver}/${pkgname}.desktop" -t "${pkgdir}/usr/share/applications"
117 install -Dm644 "${srcdir}/${_pkgname}-${pkgver}/LICENSE.md" -t "${pkgdir}/usr/share/licenses/${pkgname}"
118}
119

Scan history

Scanned at (UTC)SeverityRules
2026-11-01 00:21:48 Low 3
2026-10-31 00:07:41 Low 3
2026-10-30 00:29:30 Low 3
2026-10-29 00:13:55 Low 3
2026-10-28 00:06:54 Low 3
2026-10-27 00:23:28 Low 3
2026-10-26 00:12:40 Low 3
2026-10-25 00:20:48 Low 3
2026-10-24 00:14:55 Low 3
2026-10-23 00:02:19 Low 3
2026-10-22 00:13:10 Low 3
2026-10-21 00:12:50 Low 3
2026-10-20 00:10:31 Low 3
2026-10-19 00:03:55 Low 3
2026-10-18 00:06:55 Low 3
2026-10-17 00:21:55 Low 3
2026-10-16 00:12:47 Low 3
2026-10-15 00:28:05 Low 3
2026-10-14 00:06:47 Low 3
2026-10-13 00:23:45 Low 3

Report a package

Reports go to the AURWatch maintainer (one person) and are read by hand. No login required.

0 / 4000
Your suggestion