Billy H
07/28/2025, 1:19 PMUnthread
07/28/2025, 2:09 PMBilly H
07/28/2025, 2:10 PMBilly H
07/29/2025, 7:41 PMUnthread
07/30/2025, 4:08 PMBilly H
07/30/2025, 4:09 PMUnthread
07/30/2025, 4:10 PMBilly H
07/30/2025, 4:38 PMscript_execution_timeout
is 3600 seconds
#!/bin/sh
# This is the bootstrap script to get the machine to a desired state
#######################################################################
# Install EDR Endpoint Protection
# Download EDR installer
curl -o /tmp/EDR_installer.zip <https://sanitizedurlgoeshere/EDRInstall.zip>
# Unzip the installer silently
unzip /tmp/EDR_installer.zip -d /tmp/EDR_installer > /dev/null
# Run the installer
EDR_DIR="/tmp/EDR_installer"
chmod a+x $EDR_DIR/EDR\ <http://Installer.app/Contents/MacOS/EDR\|Installer.app/Contents/MacOS/EDR\> Installer
chmod a+x $EDR_DIR/EDR\ <http://Installer.app/Contents/MacOS/tools/com.EDR.bootstrap.helper|Installer.app/Contents/MacOS/tools/com.EDR.bootstrap.helper>
$EDR_DIR/EDR\ <http://Installer.app/Contents/MacOS/EDR\|Installer.app/Contents/MacOS/EDR\> Installer --quiet
# Cleanup
rm -rf /tmp/EDR_installer.zip /tmp/EDR_installer
echo "EDR installation complete!"
#######################################################################
# Install Password Manager
echo "Installing Password Manager..."
sudo /usr/local/bin/catalog -i com.password.manager -s
# Install ticket software
echo "Installing ticket software is not installed..."
sudo /usr/local/bin/catalog -i com.ticket.software -s
#######################################################################
# if arm64, install Rosetta for compatibility
arch_value=$(arch)
if [ "$arch_value" == "arm64" ]; then
echo "ARM64 architecture detected. Installing Rosetta..."
sudo /usr/sbin/softwareupdate --install-rosetta --agree-to-license
fi
# install cli tool from github
URL="<https://api.github.com/repos/sanitized/app/releases?q=cli/latest>"
curl -s $URL | awk -F\" '/browser_download_url.*app-cli-macos-.*\.pkg/ {print $(NF-1)}' | sort -V | tail -n 1 | xargs -I {} curl -o /tmp/app.pkg -L {}
sudo installer -pkg /tmp/app.pkg -target /
rm /tmp/app.pkg
echo "Exiting."
exit 0
Unthread
07/31/2025, 2:40 PMBilly H
07/31/2025, 2:41 PMUnthread
07/31/2025, 2:42 PMUnthread
08/04/2025, 3:51 PMBilly H
08/04/2025, 5:27 PMBilly H
08/06/2025, 2:30 PMBilly H
08/06/2025, 2:32 PMAugust 06, 2025 at 10:17 {"component":"http","host_id":42,"ip_addr":"REDACTED","level":"debug","method":"POST","took":"1.077584ms","ts":"2025-08-06T14:18:02.456617876Z","uri":"/api/v1/osquery/distributed/read","x_for_ip_addr":"REDACTED"}
August 06, 2025 at 10:17 {"component":"http","host_id":42,"ip_addr":"REDACTED","level":"debug","method":"POST","took":"2.369552ms","ts":"2025-08-06T14:17:52.241070929Z","uri":"/api/v1/osquery/distributed/read","x_for_ip_addr":"REDACTED"}
August 06, 2025 at 10:17 {"component":"http","host_id":42,"ip_addr":"REDACTED","level":"debug","method":"POST","took":"1.004502ms","ts":"2025-08-06T14:17:41.988139413Z","uri":"/api/v1/osquery/distributed/read","x_for_ip_addr":"REDACTED"}
August 06, 2025 at 10:17 {"component":"http","host_id":42,"ip_addr":"REDACTED","level":"debug","method":"POST","took":"2.660085ms","ts":"2025-08-06T14:17:39.405575153Z","uri":"/api/fleet/orbit/scripts/request","x_for_ip_addr":"REDACTED"}
August 06, 2025 at 10:17 {"component":"http","host_id":42,"ip_addr":"REDACTED","level":"debug","method":"POST","took":"11.440506ms","ts":"2025-08-06T14:17:39.382938757Z","uri":"/api/fleet/orbit/config","x_for_ip_addr":"REDACTED"}
August 06, 2025 at 10:17 {"component":"http","host_id":42,"ip_addr":"REDACTED","level":"debug","method":"POST","took":"964.973µs","ts":"2025-08-06T14:17:31.864397159Z","uri":"/api/v1/osquery/distributed/read","x_for_ip_addr":"REDACTED"}
August 06, 2025 at 10:17 {"component":"http","host_id":42,"ip_addr":"REDACTED","level":"debug","method":"POST","took":"1.304436ms","ts":"2025-08-06T14:17:21.76735293Z","uri":"/api/v1/osquery/distributed/read","x_for_ip_addr":"REDACTED"}
August 06, 2025 at 10:17 {"component":"http","host_id":42,"ip_addr":"REDACTED","level":"debug","method":"POST","took":"1.016221ms","ts":"2025-08-06T14:17:11.616518707Z","uri":"/api/v1/osquery/distributed/read","x_for_ip_addr":"REDACTED"}
August 06, 2025 at 10:17 {"component":"http","host_id":42,"ip_addr":"REDACTED","level":"debug","method":"POST","took":"6.046733ms","ts":"2025-08-06T14:17:10.919171347Z","uri":"/api/v1/osquery/config","x_for_ip_addr":"REDACTED"}
August 06, 2025 at 10:17 {"component":"http","host_id":42,"ip_addr":"REDACTED","level":"debug","method":"POST","took":"25.795536ms","ts":"2025-08-06T14:17:09.733369469Z","uri":"/api/fleet/orbit/scripts/result","x_for_ip_addr":"REDACTED"}
August 06, 2025 at 10:17 {"execution_id":"56ed5f41-903e-40e4-a037-fbc0410844db","host_uuid":"13E7E207-55A2-59D6-A03D-FF16B68CD09A","level":"debug","msg":"setup experience script result updated","ts":"2025-08-06T14:17:09.722530519Z"}
August 06, 2025 at 10:17 {"component":"http","host_id":42,"ip_addr":"REDACTED","level":"debug","method":"POST","took":"159.73569ms","ts":"2025-08-06T14:17:09.563809157Z","uri":"/api/fleet/orbit/setup_experience/status","x_for_ip_addr":"REDACTED"}
August 06, 2025 at 10:17 {"component":"http","host_id":42,"ip_addr":"REDACTED","level":"debug","method":"POST","took":"11.543702ms","ts":"2025-08-06T14:17:09.384008707Z","uri":"/api/fleet/orbit/config","x_for_ip_addr":"REDACTED"}
Billy H
08/06/2025, 2:40 PM{
"err": "error posting to <https://REDACTED.execute-api.us-east-1.amazonaws.com/automations>: 400. \"Unsupported event type or missing data.\"",
"level": "error",
"msg": "fire activity webhook to <https://REDACTED.execute-api.us-east-1.amazonaws.com/automations>",
"ts": "2025-08-06T14:17:24.107409022Z"
}
Unthread
08/06/2025, 4:06 PMBilly H
08/06/2025, 4:11 PMRelease device manually
is disabled.Unthread
08/08/2025, 2:28 PMBilly H
08/08/2025, 4:59 PMBilly H
08/08/2025, 5:01 PMBilly H
08/08/2025, 5:44 PMBilly H
08/08/2025, 8:44 PMorbit.stdout.log
file was empty. Still working on getting the log when the setup experience hangsBilly H
08/08/2025, 8:45 PMBilly H
08/08/2025, 8:47 PMreceived notification to run scripts
Those are all automated scripts that are getting run from failing policies that the machines have when they are newBilly H
08/08/2025, 9:03 PM2025-08-08T12:08:02-07:00 INF checking setup experience status
2025-08-08T12:08:03-07:00 INF swiftDialog started
2025-08-08T12:08:03-07:00 INF setup experience: checking for pending statuses
2025-08-08T12:08:03-07:00 INF setup experience: rendering software and script UI
2025-08-08T12:08:03-07:00 INF setup experience: no change in status for bootstrap.sh
2025-08-08T12:08:26-07:00 INF saving script result da247c98-8ac1-4451-8491-7981e5095f02 with exit code 0
2025-08-08T12:08:26-07:00 INF running scripts [da247c98-8ac1-4451-8491-7981e5095f02] succeeded
2025-08-08T12:08:32-07:00 INF checking setup experience status
2025-08-08T12:08:33-07:00 INF swiftDialog started
2025-08-08T12:08:33-07:00 INF setup experience: checking for pending statuses
2025-08-08T12:08:33-07:00 INF setup experience: rendering software and script UI
unsuccessful:
2025-08-08T13:07:59-07:00 INF checking setup experience status
2025-08-08T13:07:59-07:00 INF received notification to run scripts [d50c5993-f7fd-4337-bb19-d096ba4bdd14]
2025-08-08T13:07:59-07:00 INF swiftDialog started
2025-08-08T13:07:59-07:00 INF setup experience: checking for pending statuses
2025-08-08T13:07:59-07:00 INF setup experience: rendering software and script UI
2025-08-08T13:07:59-07:00 INF setup experience: no change in status for bootstrap.sh
2025-08-08T13:08:05-07:00 INF saving script result d50c5993-f7fd-4337-bb19-d096ba4bdd14 with exit code 0
2025-08-08T13:08:05-07:00 INF running scripts [d50c5993-f7fd-4337-bb19-d096ba4bdd14] succeeded
Billy H
08/12/2025, 1:14 PMUnthread
08/12/2025, 2:43 PMBilly H
08/12/2025, 2:44 PMBilly H
08/19/2025, 4:01 PMUnthread
08/19/2025, 4:08 PMBilly H
08/19/2025, 4:23 PMBilly H
08/26/2025, 6:09 PMUnthread
08/27/2025, 4:03 PMBilly H
08/27/2025, 4:47 PMBilly H
08/27/2025, 5:33 PMUnthread
08/28/2025, 3:58 PM