The cross-harness, self-improving memory layer for AI agents. Join our community: https://discord.com/invite/zdNChS2fBu
Go agent-ai-cliagent-harnessesagent-securitybrowser-extensionciclaude-codecloudcodexcursordetection-engineeringjevknowledge-basememorymobile-device-managementobservabilitysecuritysecurity-information-and-event-managementsecurity-toolstelemetrytraces
update docs and packaging
Justin D'Souza1b018f1d0c7c
diff --git a/docs/mdm/jamf.mdx b/docs/mdm/jamf.mdxindex f05acdad..791d1aac 100644--- a/docs/mdm/jamf.mdx+++ b/docs/mdm/jamf.mdx@@ -98,7 +98,7 @@ cd ..sh packaging/macos/build-pkg.sh```-Set `PKG_SIGN_IDENTITY` to sign with `pkgbuild`, and set `NOTARYTOOL_PROFILE` to submit and staple the package with Apple's notary service.+Set `BEACON_APP_SIGN_IDENTITY` to sign payload binaries with a Developer ID Application certificate, set `PKG_SIGN_IDENTITY` to sign the package with `pkgbuild`, and set `NOTARYTOOL_PROFILE` to submit and staple the package with Apple's notary service.## Inventory with extension attributesdiff --git a/docs/mdm/jamf/claude.mdx b/docs/mdm/jamf/claude.mdxindex 8e0bc99a..1ba612c4 100644--- a/docs/mdm/jamf/claude.mdx+++ b/docs/mdm/jamf/claude.mdx@@ -43,12 +43,13 @@ When building from source, pass a Vector binary into the package build:```bashBEACON_VECTOR_BIN=/path/to/vector \+BEACON_APP_SIGN_IDENTITY="Developer ID Application: Example Team" \PKG_SIGN_IDENTITY="Developer ID Installer: Example Team" \NOTARYTOOL_PROFILE="notarytool-profile" \sh packaging/macos/build-pkg.sh```-`PKG_SIGN_IDENTITY` signs the package with `pkgbuild`. `NOTARYTOOL_PROFILE` submits the package to Apple notary service and staples the result.+`BEACON_APP_SIGN_IDENTITY` signs the payload binaries with hardened runtime. `PKG_SIGN_IDENTITY` signs the package with `pkgbuild`. `NOTARYTOOL_PROFILE` submits the package to Apple notary service and staples the result.## AWS Setupdiff --git a/packaging/macos/README.md b/packaging/macos/README.mdindex 57a0a039..9fd7095d 100644--- a/packaging/macos/README.md+++ b/packaging/macos/README.md@@ -49,9 +49,10 @@ cd ..sh packaging/macos/build-pkg.sh```-Set `PKG_SIGN_IDENTITY` to sign with `pkgbuild`, and set-`NOTARYTOOL_PROFILE` to submit and staple the package with Apple's notary-service.+Set `BEACON_APP_SIGN_IDENTITY` to sign payload binaries with a Developer ID+Application certificate, set `PKG_SIGN_IDENTITY` to sign the package with a+Developer ID Installer certificate, and set `NOTARYTOOL_PROFILE` to submit and+staple the package with Apple's notary service.## Manual Installdiff --git a/packaging/macos/build-pkg.sh b/packaging/macos/build-pkg.shindex dbed70a9..fd6c52a3 100755--- a/packaging/macos/build-pkg.sh+++ b/packaging/macos/build-pkg.sh@@ -25,6 +25,13 @@ copy_file() {cp "$1" "$2"}+sign_binary() {+ if [ -z "${BEACON_APP_SIGN_IDENTITY:-}" ]; then+ return 0+ fi+ codesign --force --timestamp --options runtime --sign "$BEACON_APP_SIGN_IDENTITY" "$1"+}+if [ ! -x "$BEACON_BIN" ]; thenecho "beacon binary not found or not executable: $BEACON_BIN" >&2echo "Build it first, for example: (cd cli/beacon && make build)" >&2@@ -82,6 +89,13 @@ chmod 755 "$PKG_ROOT/opt/beacon/scripts/install-endpoint.sh" "$PKG_ROOT/opt/beacfind "$PKG_ROOT/opt/beacon/jamf" -type f -name '*.sh' -exec chmod 755 {} \;find "$PKG_ROOT/opt/beacon/fleet" -type f -name '*.sh' -exec chmod 755 {} \;chmod 755 "$PKG_SCRIPTS/postinstall" "$PKG_SCRIPTS/preinstall"++sign_binary "$PKG_ROOT/opt/beacon/bin/beacon"+sign_binary "$PKG_ROOT/opt/beacon/bin/beacon-otelcol"+if [ -n "$VECTOR_BIN" ]; then+ sign_binary "$PKG_ROOT/opt/beacon/bin/vector"+fi+find "$PKG_ROOT" -name '._*' -deleteif command -v xattr >/dev/null 2>&1; thenfind "$PKG_ROOT" "$PKG_SCRIPTS" -exec xattr -c {} \; 2>/dev/null || truediff --git a/packaging/macos/pkgbuild.md b/packaging/macos/pkgbuild.mdindex f54e7578..c8e87528 100644--- a/packaging/macos/pkgbuild.md+++ b/packaging/macos/pkgbuild.md@@ -59,6 +59,7 @@ sh packaging/macos/build-pkg.shCreate a signed package:```bash+BEACON_APP_SIGN_IDENTITY="Developer ID Application: Example Corp (TEAMID)" \PKG_SIGN_IDENTITY="Developer ID Installer: Example Corp (TEAMID)" \sh packaging/macos/build-pkg.sh```@@ -66,6 +67,7 @@ PKG_SIGN_IDENTITY="Developer ID Installer: Example Corp (TEAMID)" \Create, submit, and staple a signed/notarized package:```bash+BEACON_APP_SIGN_IDENTITY="Developer ID Application: Example Corp (TEAMID)" \PKG_SIGN_IDENTITY="Developer ID Installer: Example Corp (TEAMID)" \NOTARYTOOL_PROFILE="beacon-notary-profile" \sh packaging/macos/build-pkg.shdiff --git a/packaging/macos/test-endpoint-scripts.sh b/packaging/macos/test-endpoint-scripts.shindex 55e65a3a..078b2ca1 100644--- a/packaging/macos/test-endpoint-scripts.sh+++ b/packaging/macos/test-endpoint-scripts.sh@@ -24,6 +24,91 @@ for script in "$ROOT_DIR"/packaging/macos/scripts/* "$ROOT_DIR"/packaging/macos/esacdone+PKG_TEST_BIN="$TMP_DIR/pkg-bin"+PKG_TEST_ROOT="$TMP_DIR/pkg-root"+PKG_TEST_OUT="$TMP_DIR/pkg-out"+PKG_TEST_LOG="$TMP_DIR/pkgbuild.log"+PKG_CODESIGN_LOG="$TMP_DIR/codesign.log"+mkdir -p "$PKG_TEST_BIN" "$PKG_TEST_ROOT/cli/beacon" "$PKG_TEST_ROOT/collector-builder/dist/beacon-otelcol/darwin_arm64" "$PKG_TEST_OUT"+cat >"$PKG_TEST_ROOT/cli/beacon/beacon" <<'STUB'+#!/bin/sh+echo beacon+STUB+cat >"$PKG_TEST_ROOT/collector-builder/dist/beacon-otelcol/darwin_arm64/beacon-otelcol" <<'STUB'+#!/bin/sh+echo beacon-otelcol+STUB+cat >"$PKG_TEST_ROOT/vector" <<'STUB'+#!/bin/sh+echo vector+STUB+chmod +x "$PKG_TEST_ROOT/cli/beacon/beacon" "$PKG_TEST_ROOT/collector-builder/dist/beacon-otelcol/darwin_arm64/beacon-otelcol" "$PKG_TEST_ROOT/vector"+cat >"$PKG_TEST_BIN/git" <<'STUB'+#!/bin/sh+echo test-version+STUB+cat >"$PKG_TEST_BIN/go" <<'STUB'+#!/bin/sh+case "$1 $2" in+ "env GOOS")+ echo darwin+ ;;+ "env GOARCH")+ echo arm64+ ;;+ *)+ exit 1+ ;;+esac+STUB+cat >"$PKG_TEST_BIN/pkgbuild" <<'STUB'+#!/bin/sh+printf '%s\n' "$*" > "$PKG_TEST_LOG"+out=""+for arg in "$@"; do+ out="$arg"+done+mkdir -p "$(dirname "$out")"+printf 'pkg\n' > "$out"+STUB+cat >"$PKG_TEST_BIN/codesign" <<'STUB'+#!/bin/sh+printf '%s\n' "$*" >> "$PKG_CODESIGN_LOG"+STUB+chmod +x "$PKG_TEST_BIN/git" "$PKG_TEST_BIN/go" "$PKG_TEST_BIN/pkgbuild" "$PKG_TEST_BIN/codesign"++PATH="$PKG_TEST_BIN:$PATH" \+OUT_DIR="$PKG_TEST_OUT" \+BEACON_BIN="$PKG_TEST_ROOT/cli/beacon/beacon" \+BEACON_COLLECTOR="$PKG_TEST_ROOT/collector-builder/dist/beacon-otelcol/darwin_arm64/beacon-otelcol" \+BEACON_VECTOR_BIN="$PKG_TEST_ROOT/vector" \+BEACON_APP_SIGN_IDENTITY="Developer ID Application: Example Corp (TEAMID)" \+PKG_SIGN_IDENTITY="Developer ID Installer: Example Corp (TEAMID)" \+PKG_TEST_LOG="$PKG_TEST_LOG" \+PKG_CODESIGN_LOG="$PKG_CODESIGN_LOG" \+"$PKG_BUILD_SCRIPT" >/dev/null++if [ "$(wc -l < "$PKG_CODESIGN_LOG" | tr -d ' ')" != "3" ]; then+ echo "expected codesign to sign beacon, beacon-otelcol, and vector" >&2+ exit 1+fi+if ! grep -q -- '--options runtime' "$PKG_CODESIGN_LOG"; then+ echo "codesign missing hardened runtime option" >&2+ exit 1+fi+if ! grep -q -- '--timestamp' "$PKG_CODESIGN_LOG"; then+ echo "codesign missing timestamp option" >&2+ exit 1+fi+if ! grep -q 'Developer ID Application: Example Corp (TEAMID)' "$PKG_CODESIGN_LOG"; then+ echo "codesign missing app signing identity" >&2+ exit 1+fi+if ! grep -q 'Developer ID Installer: Example Corp (TEAMID)' "$PKG_TEST_LOG"; then+ echo "pkgbuild missing installer signing identity" >&2+ exit 1+fi+STUB_BIN="$TMP_DIR/beacon-stub"STUB_LOG="$TMP_DIR/argv.log"cat >"$STUB_BIN" <<'STUB'