oicq
The PKGBUILD fetches and installs 'oicq@1' directly from the npm registry at build/install time with no pinned integrity hash, no declared source, and no checksum verification. The version specifier 'oicq@1' resolves to the latest 1.x release at the time of installation, meaning the installed code can change between builds without any PKGBUILD update. This is a genuine supply-chain concern: any compromise of the npm package or a version bump within the 1.x range would silently deliver different (potentially malicious) executed JavaScript to users. The source array is empty and noextract references a file that is never actually fetched, making integrity verification impossible. This is a real medium-severity supply-chain risk, not a false positive.
Triggered rules
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:21
npm i oicq@1 -g \
llm_review
An AI model (anthropic/claude-4.6-sonnet-20260217) reviewed this and agrees it is MEDIUM (confidence 85%): The PKGBUILD fetches and installs 'oicq@1' directly from the npm registry at build/install time with no pinned integrity hash, no declared source, and no checksum verification. The version specifier 'oicq@1' resolves to the latest 1.x release at the time of installation, meaning the installed code can change between builds without any PKGBUILD update. This is a genuine supply-chain concern: any compromise of the npm package or a version bump within the 1.x range would silently deliver different (potentially malicious) executed JavaScript to users. The source array is empty and noextract references a file that is never actually fetched, making integrity verification impossible. This is a real medium-severity supply-chain risk, not a false positive.
PKGBUILD
1 offending line(s) highlighted# Maintainer: liolok <aur@liolok.com>
# Maintainer: Mike Yuan <me@yhndnzj.com>
pkgname=oicq
pkgver=2.1.9
pkgrel=1
pkgdesc="Tecent chat bot in nodejs"
arch=('any')
url="https://www.npmjs.com/package/$pkgname"
license=('MPL-2.0')
depends=('nodejs')
makedepends=('npm')
optdepends=()
source=()
noextract=($pkgname-$pkgver.tgz)
package() {
npm i oicq@1 -g \
--prefix "$pkgdir/usr" \
--cache "$srcdir/npm-cache"
# Non-deterministic race in npm gives 777 permissions to random directories.
# See https://github.com/npm/cli/issues/1103 for details.
find "${pkgdir}/usr" -type d -exec chmod 755 {} +
# install -dm755 "${pkgdir}/usr/bin"
# cat <<EOF >> "${pkgdir}/usr/bin/oicq"
# "#!/usr/bin/env node
# 'use strict';
# require('/usr/lib/node_modules/oicq/lib')();"
# EOF
# chmod 755 "${pkgdir}/usr/bin/oicq"
# npm gives ownership of ALL FILES to build user
# https://bugs.archlinux.org/task/63396
chown --recursive root:root "${pkgdir}"
}
Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 2026-11-01 00:21:48 | Medium | 2 |
| 2026-10-31 00:07:41 | Medium | 2 |
| 2026-10-30 00:29:30 | Medium | 2 |
| 2026-10-29 00:13:55 | Medium | 2 |
| 2026-10-28 00:06:54 | Medium | 2 |
| 2026-10-27 00:23:28 | Medium | 2 |
| 2026-10-26 00:12:40 | Medium | 2 |
| 2026-10-25 00:20:48 | Medium | 2 |
| 2026-10-24 00:14:55 | Medium | 2 |
| 2026-10-23 00:02:19 | Medium | 2 |
| 2026-10-22 00:13:10 | Medium | 2 |
| 2026-10-21 00:12:50 | Medium | 2 |
| 2026-10-20 00:10:31 | Medium | 2 |
| 2026-10-19 00:03:55 | Medium | 2 |
| 2026-10-18 00:06:55 | Medium | 2 |
| 2026-10-17 00:21:55 | Medium | 2 |
| 2026-10-16 00:12:47 | Medium | 2 |
| 2026-10-15 00:28:05 | Medium | 2 |
| 2026-10-14 00:06:47 | Medium | 2 |
| 2026-10-13 00:23:45 | Medium | 2 |