9593d90385
Breaking change. Tool name, binary name, function/type names,
constant names, env vars, header guards, file paths, and GitHub
repo URL all rebrand IAMROOT → SKELETONKEY.
Changes:
- All "IAMROOT" → "SKELETONKEY" (constants, env vars, enum
values, docs, comments)
- All "iamroot" → "skeletonkey" (functions, types, paths, CLI)
- iamroot.c → skeletonkey.c
- modules/*/iamroot_modules.{c,h} → modules/*/skeletonkey_modules.{c,h}
- tools/iamroot-fleet-scan.sh → tools/skeletonkey-fleet-scan.sh
- Binary "iamroot" → "skeletonkey"
- GitHub URL KaraZajac/IAMROOT → KaraZajac/SKELETONKEY
- .gitignore now expects build output named "skeletonkey"
- /tmp/iamroot-* tmpfiles → /tmp/skeletonkey-*
- Env vars IAMROOT_MODPROBE_PATH etc. → SKELETONKEY_*
New ASCII skeleton-key banner (horizontal key icon + ANSI Shadow
SKELETONKEY block letters) replaces the IAMROOT banner in
skeletonkey.c and README.md.
VERSION: 0.3.1 → 0.4.0 (breaking).
Build clean on Debian 6.12.86. `skeletonkey --version` → 0.4.0.
All 24 modules still register; no functional code changes — pure
rename + banner refresh.
92 lines
2.9 KiB
YAML
92 lines
2.9 KiB
YAML
name: build
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
pull_request:
|
|
branches: [main]
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
cc: [gcc, clang]
|
|
flavor: [default, debug]
|
|
name: build (${{ matrix.cc }} / ${{ matrix.flavor }})
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: install build deps
|
|
run: |
|
|
sudo apt-get update -qq
|
|
sudo apt-get install -y --no-install-recommends \
|
|
build-essential clang make linux-libc-dev
|
|
|
|
- name: show compiler
|
|
run: ${{ matrix.cc }} --version
|
|
|
|
- name: build
|
|
env:
|
|
CC: ${{ matrix.cc }}
|
|
run: |
|
|
if [ "${{ matrix.flavor }}" = "debug" ]; then
|
|
make debug
|
|
else
|
|
make
|
|
fi
|
|
|
|
- name: sanity — skeletonkey --version
|
|
run: ./skeletonkey --version
|
|
|
|
- name: sanity — skeletonkey --list
|
|
run: ./skeletonkey --list
|
|
|
|
- name: sanity — skeletonkey --scan (no exploit; just detect)
|
|
run: ./skeletonkey --scan --no-color || true
|
|
# exit code may be nonzero (vulnerable host = exit 2, missing
|
|
# precond = exit 4) — that's diagnostic data, not CI failure
|
|
|
|
- name: sanity — --detect-rules auditd
|
|
run: ./skeletonkey --detect-rules --format=auditd | head -50
|
|
|
|
- name: sanity — --detect-rules sigma
|
|
run: ./skeletonkey --detect-rules --format=sigma | head -50
|
|
|
|
# Static build job: ensures the project links cleanly when -static is
|
|
# requested. Useful for deployment to minimal containers / fleet scans
|
|
# where shared-libc availability isn't guaranteed.
|
|
static-build:
|
|
runs-on: ubuntu-latest
|
|
name: static-build
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- name: install build deps
|
|
run: |
|
|
sudo apt-get update -qq
|
|
sudo apt-get install -y --no-install-recommends \
|
|
build-essential make linux-libc-dev libc6-dev
|
|
- name: make static
|
|
# Glibc static linking pulls in NSS at runtime which breaks
|
|
# getpwnam; the legacy DIRTYFAIL Makefile noted this. For now,
|
|
# we allow this job to fail loudly so we know if a regression
|
|
# makes the regular dynamic build also break, but we don't
|
|
# gate the merge on it. Migrate to musl-gcc when we want a
|
|
# truly portable static binary.
|
|
continue-on-error: true
|
|
run: make static && ls -la skeletonkey
|
|
|
|
# Phase 4 followup (placeholder): kernel-VM matrix. Each entry runs
|
|
# the binary against a VM running a specific (vulnerable or patched)
|
|
# kernel and asserts the correct detect() verdict + exploit behavior.
|
|
# Requires self-hosted runners or a paid VM service; not enabled yet.
|
|
#
|
|
# kernel-vm-matrix:
|
|
# strategy:
|
|
# matrix:
|
|
# distro: [ubuntu-22.04, debian-11, alma-9, fedora-40]
|
|
# kernel: [5.10.50, 5.13.0, 5.15.30, 6.1.x, 6.12.x]
|
|
# runs-on: [self-hosted, kvm-host]
|
|
# ...
|