amazon-ecs-init

maintainer nckslvrmn · 0 votes · scanned 2026-08-03 00:08:14.047287
MEDIUM
View on AUR ↗
Why flagged The package downloads a prebuilt binary .deb from an AWS S3 bucket (amazon-ecs-agent-us-east-1). This is actually Amazon's official distribution channel for the ECS agent/init package — Amazon publishes these artifacts to their own S3 buckets as part of the official release pipeline, so this is not a personal or unofficial host. However, the package installs prebuilt binaries (ECS agent daemon, volume plugin, systemd services) extracted from a .deb without source compilation, and uses only an MD5 checksum (weak, collision-prone) rather than SHA256. The prepare() step also only extracts data.tar.xz without first extracting the .deb container properly (missing the ar extraction step), which is slightly broken but the deb may already be partially extracted. The core concern is that prebuilt binaries from any host — even an official one — represent a supply-chain risk if the S3 bucket were compromised or the object replaced, and MD5 provides inadequate integrity protection. This is a real medium-severity concern: executed binaries from a non-GitHub/non-source host with weak checksums, even if the host is plausibly official.

Triggered rules

MEDIUM source=() URL on a non-standard host 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:12 source=(https://s3.us-east-1.amazonaws.com/amazon-ecs-agent-us-east-1/${pkgname}-${pkgver}-${pkgrel}.amd64.deb)
MEDIUM AI review llm_review

An AI model (anthropic/claude-4.6-sonnet-20260217) reviewed this and agrees it is MEDIUM (confidence 72%): The package downloads a prebuilt binary .deb from an AWS S3 bucket (amazon-ecs-agent-us-east-1). This is actually Amazon's official distribution channel for the ECS agent/init package — Amazon publishes these artifacts to their own S3 buckets as part of the official release pipeline, so this is not a personal or unofficial host. However, the package installs prebuilt binaries (ECS agent daemon, volume plugin, systemd services) extracted from a .deb without source compilation, and uses only an MD5 checksum (weak, collision-prone) rather than SHA256. The prepare() step also only extracts data.tar.xz without first extracting the .deb container properly (missing the ar extraction step), which is slightly broken but the deb may already be partially extracted. The core concern is that prebuilt binaries from any host — even an official one — represent a supply-chain risk if the S3 bucket were compromised or the object replaced, and MD5 provides inadequate integrity protection. This is a real medium-severity concern: executed binaries from a non-GitHub/non-source host with weak checksums, even if the host is plausibly official.

PKGBUILD

1 offending line(s) highlighted
1# Maintainer: nckslvrmn <nckslvrmn@gmail.com>
2pkgname=amazon-ecs-init
3pkgver=1.82.3
4pkgrel=1
5pkgdesc="Amazon ECS Init"
6arch=('x86_64')
7url="https://github.com/aws/amazon-ecs-init"
8license=('APACHE')
9groups=()
10depends=('glibc')
11provides=("${pkgname}")
12source=(https://s3.us-east-1.amazonaws.com/amazon-ecs-agent-us-east-1/${pkgname}-${pkgver}-${pkgrel}.amd64.deb)
13md5sums=('99fb1e1812ff2999af9f2275590641e6')
14noextract=()
15
16prepare() {
17 cd "$srcdir"
18 tar -xf data.tar.xz
19}
20
21package() {
22 cd "$srcdir"
23
24 install -dm755 "$pkgdir"/usr/
25 cp -R "${srcdir}"/usr/ "${pkgdir}"
26
27 install -dm755 "$pkgdir"/etc/ecs/
28 cp -R "${srcdir}"/etc/ecs/ "${pkgdir}/etc/"
29
30 install -dm755 "$pkgdir"/var/
31 cp -R "${srcdir}"/var/ "${pkgdir}"
32
33 install -Dm644 \
34 "$srcdir"/lib/systemd/system/amazon-ecs-volume-plugin.service \
35 "$pkgdir"/usr/lib/systemd/system/amazon-ecs-volume-plugin.service
36
37 install -Dm644 \
38 "$srcdir"/lib/systemd/system/amazon-ecs-volume-plugin.socket \
39 "$pkgdir"/usr/lib/systemd/system/amazon-ecs-volume-plugin.socket
40
41 install -Dm644 \
42 "$srcdir"/lib/systemd/system/ecs.service \
43 "$pkgdir"/usr/lib/systemd/system/ecs.service
44
45}
46

Scan history

Scanned at (UTC)SeverityRules
2026-08-03 00:08:14 MEDIUM 2
2026-08-02 00:16:08 MEDIUM 2
2026-08-01 00:11:18 MEDIUM 2
2026-07-31 00:14:10 MEDIUM 2
2026-07-30 00:17:23 MEDIUM 2
2026-07-29 00:25:53 MEDIUM 2
2026-07-28 00:07:28 MEDIUM 2
2026-07-27 00:24:32 MEDIUM 2
2026-07-26 00:07:32 MEDIUM 2
2026-07-25 00:13:44 MEDIUM 2
2026-07-24 00:02:28 MEDIUM 2
2026-07-23 00:14:47 MEDIUM 2
2026-07-22 00:29:32 MEDIUM 2
2026-07-21 00:24:15 MEDIUM 2
2026-07-20 00:19:49 MEDIUM 2
2026-07-19 00:17:08 MEDIUM 2
2026-07-18 00:14:48 MEDIUM 2
2026-07-17 00:06:16 MEDIUM 2
2026-07-16 00:05:41 MEDIUM 2
2026-07-15 00:09:25 MEDIUM 2

Report a package

Reports go to the AURWatch maintainer (one person) and are read by hand. No login required.

0 / 4000
Your suggestion