Skip to content

aur-scanner 3.0.0

Latest

Choose a tag to compare

@HxHippy HxHippy released this 10 Nov 16:29
· 12 commits to main since this release
v3.0.0
67d88d3

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-line echo "..." of a plain literal (for example sudo systemctl enable ... instructions) is reported as the Medium META-008 instead.
  • 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 diff after upgrading reports nothing spurious.
  • Library users: aur-scanner-core's AnalysisContext and ParsedPkgbuild gained 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, and OBF-020 reports 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_64 with SKIP) are now scanned, or reported when they can't be.
  • Change detection: diff missed a repeated rule and scriptlets named through install=.
  • 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