Skip to content

aeppo v0.4.0

Choose a tag to compare

@emanuellzoe emanuellzoe released this 18 Nov 14:18
fd672ef

Highlights

aeppo now scans shell scripts and GitHub Actions workflows, the two places a cloned repository most often hides something dangerous.

Shell scripts

Covers .sh, .bash, .zsh, .ksh, and extensionless files with a shell shebang.

ID Detects
SH001 Download piped into an interpreter: curl … | sh, | bash -s, | python3, source <(curl …), eval "$(curl …)"
SH002 Reverse shells: bash -i >& /dev/tcp/…, nc -e /bin/sh, socat … exec:sh, mkfifo + nc
SH003 Encoded payload decoded and run: base64 -d | sh
SH004 Persistence via authorized_keys or cron
SH005 Shell startup file changes (low severity; installers do this)

GitHub Actions

Covers .github/workflows/*.yml and action.yml.

ID Detects
GHA001 pull_request_target checking out pull-request code (pwn request)
GHA002 Untrusted context (issue/PR title or body, comments, head_ref, commit messages) expanded inside run: / script:
GHA003 Action not pinned to a full commit SHA: low for actions/* and github/*, medium for third-party
GHA004 permissions: write-all (high on externally triggered workflows)

Benign shapes stay quiet: wait-for-it /dev/tcp health checks, downloads to a file, curl … \| python3 -m json.tool, values passed through env:, and checkouts of github.sha.

Upgrading

  • Traversal now enters .github/workflows, so your workflows are scanned too.
  • Tag-pinned official actions are reported at low. Use --min-severity medium to hide them, or pin them to SHAs.
- uses: emanuellzoe/aeppo@fd672ef037993a8c050e891af2da209d3bc725f7 # v0.4.0

Full changelog: v0.3.3...v0.4.0