Repository navigation
3.0.0 — security release
Install or upgrade: paru -S aur-scanner (or yay -S aur-scanner). The tag is GPG-signed and the AUR packages verify it (validpgpkeys).
3.0.0 closes several ways a crafted package could hide code from 2.2.2 and earlier, and the scanner now reports what it cannot model instead of trusting it. Every 2.x user should upgrade. Advisories with full details will follow.
Upgrading from 2.x
- Expect new findings. About 25 codes are new, and printed text can no longer hide a High or Critical finding. A few packages that installed quietly under 2.2.2 now stop at the prompt: review the finding and confirm, or build deliberately with
aur-scan install --force. A one-lineecho "..."of a plain literal (for examplesudo systemctl enable ...instructions) is reported as the MediumMETA-008instead. - The whole package directory is scanned, not only the files the PKGBUILD names.
- The example rule no longer loads; it moved to
/usr/share/aur-scanner/example-rule.toml. - History keys changed. 2.x records are still read, so the first
diffafter upgrading reports nothing spurious. - Library users:
aur-scanner-core'sAnalysisContextandParsedPkgbuildgained fields.
Security
- Shell-lexing blind spots: a fake heredoc or a comment ending in
\could hide the rest of a file. Printed text can no longer hide a High or Critical finding, and more pipe-to-shell sinks are recognised. - Obfuscated command names: empty insertions (
n$()pm), parameter-expansion operators,$"..."quoting and package-manager options before the subcommand evaded detection. They are resolved now, andOBF-020reports what can't be. - Scriptlets scanned as ordinary files:
install=in split packages and in unusual forms wasn't resolved the way makepkg resolves it. Scriptlet typing no longer depends on it. - Files never read: committed archives, binary-looking files, subdirectories and arch-specific arrays (
source_x86_64withSKIP) are now scanned, or reported when they can't be. - Change detection:
diffmissed a repeated rule and scriptlets named throughinstall=. - Denial of service: inputs that ran for minutes are bounded, and a crash in any stage fails closed for that package only.
Added
New detection for live writes to authorized_keys, AI coding-assistant config, pacman hooks, udev rules, /etc/hosts and git fsmonitor/hooksPath; shipped and generated hooks and udev rules; build-time npm installs; Tor; and references above the package directory.
Fixed
False positives removed on real packages: CHK-006 from unexpanded {,.sig} lists (1password, cursor-bin, openssl-1.1, rustdesk and others), CHK-005 where binaries are pinned in arch-specific arrays, and SRC-005 on packages whose sources are only arch-specific.
Full notes: CHANGELOG.md