hivision-id-photos-modnet
The package downloads pretrained model files (ONNX/MNN) from the project's own GitHub releases and Hugging Face; these are non-executable data files used by the application, so the worst case of a swapped source is data tampering, not code execution.
Triggered rules
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 package downloads pretrained model files (ONNX/MNN) from the project's own GitHub releases and Hugging Face; these are non-executable data files used by the application, so the worst case of a swapped source is data tampering, not code execution.
1 higher static finding superseded - not the current verdict (shown for transparency)
source_untrusted_domain
One or more source=() URLs point to a host outside the trusted allowlist (github.com, gitlab.com, codeberg.org, pypi.org, …).
-
PKGBUILD:13
"rmbg-1.4.onnx::https://huggingface.co/briaai/RMBG-1.4/resolve/main/onnx/model.onnx?download=true"
PKGBUILD
1 offending line(s) highlighted# Maintainer: devome <evinedeng@hotmail.com>
pkgname=hivision-id-photos-modnet
pkgver=1.0
pkgrel=2
pkgdesc="HivisionIDPhotos pretrained model (portrait matting)"
arch=("any")
url="https://github.com/Zeyi-Lin/HivisionIDPhotos"
license=("Apache-2.0")
source=("modnet_photographic_portrait_matting.onnx::${url}/releases/download/pretrained-model/modnet_photographic_portrait_matting.onnx"
"mnn_hivision_modnet.mnn::${url}/releases/download/pretrained-model/mnn_hivision_modnet.mnn"
"hivision_modnet.onnx::${url}/releases/download/pretrained-model/hivision_modnet.onnx"
"rmbg-1.4.onnx::https://huggingface.co/briaai/RMBG-1.4/resolve/main/onnx/model.onnx?download=true"
"birefnet-v1-lite.onnx::https://github.com/ZhengPeng7/BiRefNet/releases/download/v1/BiRefNet-general-bb_swin_v1_tiny-epoch_232.onnx")
sha256sums=('07c308cf0fc7e6e8b2065a12ed7fc07e1de8febb7dc7839d7b7f15dd66584df9'
'44cd8c229f605173765f670df0d533885c643e2d88b09e25dd4e7892b484256a'
'7e0cb9a2a841b426dd0daf1a788ec398dab059bc039041d62b15636c0783bc56'
'8cafcf770b06757c4eaced21b1a88e57fd2b66de01b8045f35f01535ba742e0f'
'5600024376f572a557870a5eb0afb1e5961636bef4e1e22132025467d0f03333')
package() {
install -Dm644 *.onnx *.mnn -t "${pkgdir}/usr/share/hivision-id-photos/hivision/creator/weights"
}
Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 2026-09-17 00:27:14 | Low | 2 |
| 2026-09-16 00:03:17 | Low | 2 |
| 2026-09-15 00:25:31 | Low | 2 |
| 2026-09-14 00:27:57 | Low | 2 |
| 2026-09-13 00:19:54 | Low | 2 |
| 2026-09-12 00:25:17 | Low | 2 |
| 2026-09-11 00:19:22 | Low | 2 |
| 2026-09-10 00:22:44 | Low | 2 |
| 2026-09-09 00:04:09 | Low | 2 |
| 2026-09-08 00:18:08 | Low | 2 |
| 2026-09-07 00:30:15 | Low | 2 |
| 2026-09-06 00:17:06 | Low | 2 |
| 2026-09-05 00:16:27 | Low | 2 |
| 2026-09-04 00:03:13 | Low | 2 |
| 2026-09-03 00:15:47 | Low | 2 |
| 2026-09-02 00:02:31 | Low | 2 |
| 2026-09-01 00:11:19 | Low | 2 |
| 2026-08-31 00:19:57 | Low | 2 |
| 2026-08-30 00:04:14 | Low | 2 |
| 2026-08-29 00:29:17 | Low | 2 |