aws-ecs-cli
Triggered rules
external_download_not_in_source
curl/wget fetches a URL on a non-allowlisted host that is not part of source=(), so it is not checksum-verified by makepkg.
-
PKGBUILD:4
_md5sum=$(curl -s https://s3.amazonaws.com/amazon-ecs-cli/ecs-cli-linux-amd64-latest.md5)
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:4
_md5sum=$(curl -s https://s3.amazonaws.com/amazon-ecs-cli/ecs-cli-linux-amd64-latest.md5)
llm_review
An AI model (anthropic/claude-4.6-sonnet-20260217) reviewed this and agrees it is MEDIUM (confidence 85%): This PKGBUILD downloads a prebuilt binary from Amazon's S3 bucket (amazon-ecs-cli) and executes it. Several real concerns exist: (1) The source URL uses '-latest' rather than a versioned/pinned URL, meaning the downloaded binary can change at any time without the PKGBUILD being updated. (2) The MD5 checksum is fetched at build time from the same host as the binary itself, so a compromised host could serve both a malicious binary and a matching MD5 — the checksum provides zero integrity guarantee against a compromised upstream. (3) The binary is executed during the build phase (pkgver() runs it) before any independent verification. However, the S3 bucket 'amazon-ecs-cli' is the official AWS distribution channel for the ECS CLI tool (documented in AWS official docs), so the host itself is not 'unofficial' or 'personal'. The real risk is the rolling '-latest' URL with a self-referential checksum pattern, which is a genuine supply-chain concern: any update AWS pushes (or any compromise of that S3 bucket) would be silently picked up and executed. This is a medium-severity supply-chain risk due to the executed binary with no independent integrity verification, even though the host is official.
PKGBUILD
1 offending line(s) highlighted#Submitter: Ian Ker-Seymer <i.kerseymer@gmail.com>
#Maintainer: Julian Xhokaxhiu <info at julianxhokaxhiu dot com>
_md5sum=$(curl -s https://s3.amazonaws.com/amazon-ecs-cli/ecs-cli-linux-amd64-latest.md5)
pkgname=aws-ecs-cli
pkgver=1.21.0
pkgrel=1
pkgdesc="The Amazon EC2 Container Service (Amazon ECS) command line interface (CLI) provides high-level commands to simplify creating, updating, and monitoring clusters and tasks from a local development environment."
makedepends=('curl')
arch=('x86_64')
options=(!strip)
source=("ecs-cli-$_md5sum::https://s3.amazonaws.com/amazon-ecs-cli/ecs-cli-linux-amd64-latest")
url="https://github.com/aws/amazon-ecs-cli"
license=("Apache")
md5sums=("$_md5sum")
pkgver() {
cd "$srcdir"
chmod +x "ecs-cli-$_md5sum"
./ecs-cli-$_md5sum -v | sed -rn 's/ecs-cli version ([0-9\.]+) \(\w+\)/\1/p'
}
package() {
cd "$srcdir"
chmod +x "ecs-cli-$_md5sum"
install -Dm755 "ecs-cli-$_md5sum" "$pkgdir/usr/bin/ecs-cli"
}
Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 2026-08-03 00:08:14 | MEDIUM | 3 |
| 2026-08-02 00:16:08 | MEDIUM | 3 |
| 2026-08-01 00:11:18 | MEDIUM | 3 |
| 2026-07-31 00:14:10 | MEDIUM | 3 |
| 2026-07-30 00:17:23 | MEDIUM | 3 |
| 2026-07-29 00:25:53 | MEDIUM | 3 |
| 2026-07-28 00:07:28 | MEDIUM | 3 |
| 2026-07-27 00:24:32 | MEDIUM | 3 |
| 2026-07-26 00:07:32 | MEDIUM | 3 |
| 2026-07-25 00:13:44 | MEDIUM | 3 |
| 2026-07-24 00:02:28 | MEDIUM | 3 |
| 2026-07-23 00:14:47 | MEDIUM | 3 |
| 2026-07-22 00:29:32 | MEDIUM | 3 |
| 2026-07-21 00:24:15 | MEDIUM | 3 |
| 2026-07-20 00:19:49 | MEDIUM | 3 |
| 2026-07-19 00:17:08 | MEDIUM | 3 |
| 2026-07-18 00:14:48 | MEDIUM | 3 |
| 2026-07-17 00:06:16 | MEDIUM | 3 |
| 2026-07-16 00:05:41 | MEDIUM | 3 |
| 2026-07-15 00:09:25 | MEDIUM | 3 |