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-11-01 00:21:48 | Low | 2 |
| 2026-10-31 00:07:41 | Low | 2 |
| 2026-10-30 00:29:30 | Low | 2 |
| 2026-10-29 00:13:55 | Low | 2 |
| 2026-10-28 00:06:54 | Low | 2 |
| 2026-10-27 00:23:28 | Low | 2 |
| 2026-10-26 00:12:40 | Low | 2 |
| 2026-10-25 00:20:48 | Low | 2 |
| 2026-10-24 00:14:55 | Low | 2 |
| 2026-10-23 00:02:19 | Low | 2 |
| 2026-10-22 00:13:10 | Low | 2 |
| 2026-10-21 00:12:50 | Low | 2 |
| 2026-10-20 00:10:31 | Low | 2 |
| 2026-10-19 00:03:55 | Low | 2 |
| 2026-10-18 00:06:55 | Low | 2 |
| 2026-10-17 00:21:55 | Low | 2 |
| 2026-10-16 00:12:47 | Low | 2 |
| 2026-10-15 00:28:05 | Low | 2 |
| 2026-10-14 00:06:47 | Low | 2 |
| 2026-10-13 00:23:45 | Low | 2 |