swiftGuard monitors USB, Bluetooth, Wi-Fi and power changes on your Mac. Choose which devices and networks to trust, then configure a countdown, an optional email notification with a webcam photo, and a local response from the menu bar. A disconnected device or a network change can also serve as a signal.
Want to understand how it works rather than take my word for it? The WHITEPAPER explains the architecture, threat model and limitations in detail.
- Features
- Why should you care?
- Screenshots
- Installation
- Usage
- Privacy and network access
- Development
- Roadmap
- Project status
- Security and code quality
- Community
- Credits
- License
- Monitoring: Continuously observe USB, Bluetooth, Wi-Fi and power changes.
- Whitelisting: Approve trusted devices or networks and configure dead-man switches.
- Mitigation: Choose a countdown and power response like shut down or screen locking, with optional email notification, webcam photo and file shredding.
- Customizable: Configure biometric authentication, hotkeys and countdown sounds.
- Lightweight: Designed to consume minimal system resources for optimal performance and battery life.
- Discrete: Operates in the macOS system tray, minimizing interruptions.
A few reasons you might use swiftGuard:
- Anti-forensic measures: An unattended Mac can be vulnerable to someone connecting a device, including a mouse jiggler intended to keep a session active. swiftGuard can react to observed, unapproved device changes.
- Data exfiltration: You do not want someone adding or copying documents to or from your computer via USB.
- Public environments: In a library, café or another shared space, device and network changes may be useful signals when you cannot keep your Mac under constant observation. The Silk Road laptop seizure illustrates why an unlocked computer can be vulnerable in a public place.
- A removable presence signal: A trusted USB device can be configured as a dead-man switch. If it disconnects, swiftGuard can start a countdown and request your selected response.
- Managed environments: Monitoring may complement existing physical security procedures, including on a Mac used as a server, but it does not establish regulatory compliance or replace access controls.
Tip: Attach a USB device via a cord to yourself and configure it as a dead-man switch. If you are robbed or otherwise separated from your Mac, swiftGuard will issue the configured response.
Screenshots coming soon.
Guided installation: Save install.sh to Downloads,
then run bash ~/Downloads/install.sh in the macOS Terminal.
It selects the right package, verifies the download and guides you through
installation. See the script guide for
requirements and signing-key verification.
To download and verify manually:
-
Download: Open GitHub Releases and download
swiftGuard-arm64.pkgfor Apple Silicon orswiftGuard-x86_64.pkgfor Intel. Check Apple menu → About This Mac if you are unsure which Mac you have. -
Verify (recommended): Download the matching
SHA256SUMSandSHA256SUMS.ascalongside the package. Download the release public key from keys.openpgp.org and save it asswiftguard-release-key.asc. Its full fingerprint isF452 A252 1A91 043C A02D 4C06 5BE3 C31E F9DF CEA7. This download is separate from GitHub, but a keyserver does not establish the owner's identity: independently authenticate the fingerprint before using the key. With GnuPG installed, and all files in Downloads, for example:cd ~/Downloads gpg --import ~/Downloads/swiftguard-release-key.asc gpg --fingerprint gpg --verify SHA256SUMS.asc SHA256SUMS shasum -a 256 -c --ignore-missing SHA256SUMS
The key filename is an example. Check that the signature belongs to the independently authenticated key and that your selected package reports
OK; the checksum file can list both architectures. If verification fails or the key cannot be authenticated, do not install. See the step-by-step verification guide. -
Install: Log in as the person who will use swiftGuard, open the PKG and follow Installer's prompts, including administrator authorization. The PKG is not Apple Developer ID signed or notarized; the app and helper are self-signed. If macOS blocks the verified PKG or app, review the warning and look for Open Anyway under System Settings → Privacy & Security. The PKG and app may require separate approval. See how to open it safely; do not override malware, revoked, damaged or modified-file warnings.
-
Open: Start swiftGuard from Applications.
-
Set up: Follow the first-launch guide. Review your devices, sensors and responses before enabling protection: an unapproved connected device can start an incident immediately.
Verification is optional but recommended; without it, you cannot establish that a download is authentic and unmodified. See the INSTALL for a full installation guide, compatibility, Keychain and Wi-Fi permissions, updates and troubleshooting.
Open swiftGuard from the menu bar and tailor monitoring to your setup:
- Devices: Review connected devices and approve only identities you trust. You can also designate a trusted USB device as a dead-man switch.
- Sensors: Choose which interfaces to monitor: USB, Bluetooth, Wi-Fi and power changes.
- Responses: Set a countdown and choose a local power response, like shutting down or sleeping the Mac. Email notifications, file shredding and a webcam photo are optional.
- Enable protection: If an incident starts, use the configured authentication method to defuse the countdown (if enabled). Pausing protection does not cancel an active countdown, but allows you to approve a device or network change without triggering a response.
- Events: Review detected changes and reported response outcomes.
Helper-backed responses require the helper; a configured action is not proof that it succeeded. Settings and approvals are encrypted and authenticated; event history is stored separately and is neither encrypted nor tamper-proof. See the RUNTIME-REFERENCE for details.
Automatic update checks are off by default and can be enabled in Settings.
A manual Check now also contacts GitHub. Each check sends one HTTPS request
to GitHub's release API; GitHub receives your IP address and a fixed
browser-style User-Agent header, not your installed app version, settings
or device data. When enabled, checks run at startup and roughly
weekly while the app remains open. Updates are not downloaded or installed
automatically. Existing saved update settings are preserved.
Wi-Fi: macOS requires Location Services permission to read the Wi-Fi network name (SSID). swiftGuard does not request coordinates or send your geographic location. Without permission, Wi-Fi monitoring is incomplete.
Email and camera: Email is optional and uses the SMTP server you configure. If you also enable a webcam photo, the photo can be attached to a notification. Opening a release page uses your browser. The INSTALL explains each permission and network connection.
Keep both directories together under src/: the production builder and helper
build use files from their sibling directory.
src/swiftguard/: application, installation, development and security documentation.src/swiftguardhelper/: helper source, protocol, deployment and operational requirements.
Normal and --dev source launches monitor real hardware; they are not isolated
previews. Use the isolated tests and fixtures described in the
DEVELOPMENT-REFERENCE, and consult the
CONTRIBUTING before proposing changes.
For a local release build, set up the build prerequisites and run
./build.command from the repository root. Missing Python build and analysis
environments are created automatically; Python 3.15 and the other system
prerequisites must already be installed. See the
BUILD-REFERENCE for signing requirements
and the files the build modifies. Building does not install the application, it just
creates a .pkg installer in the dist/ directory.
| Now | Next | Later |
|---|---|---|
| Add Linux support | Add more translations | Independent professional security review |
| Expand regression coverage and improve fuzzing | Auto update/guided upgrading (currently: notifying) | Apple Developer ID signing and notarization |
| Improve Code Quality | Add user defined local (counter) actions | CI/CD |
The WHITEPAPER describes the threat model and design
limits. Release builds run isolated Python and Rust tests with coverage,
format Python with Ruff, and report findings from Ruff security rules, Pysa,
PMD CPD and Trivy. Separate development checks include Ruff linting, mypy
type checking and Rust's cargo fmt and Clippy. See the
DEVELOPMENT-REFERENCE and
helper README for commands. As automated checks
are not a substitute for independent security review, I am open to collaboration
with security researchers and plan to engage a professional security review in
the future.
Bug reports, documentation improvements, translations and code contributions are welcome. If you would like to support the project, see FUNDING for options.
- Bug Report: If you are experiencing an issue while using the application, please create an issue.
- Feature Request: Make this project better by submitting a feature request.
- Documentation: Improve our documentation by adding a wiki page.
- Community Support: Help others on GitHub Discussions.
- Security Report: Privately report critical security issues via our template.
- Pull Request: If you want to contribute code, please review the contribution guide, fork the repository, make your changes, and submit a pull request.
Thank you to everyone who gives feedback, contributes features and improves the code and project!
swiftGuard was heavily inspired by usbkill by Hephaestos and BusKill by Michael Altfield. I want to thank both and all the other great contributors of usbkill and Buskill for their great work, inspiration and feedback. I firmly believe in the principles of the open source community, which call for the sharing and enhancement of one another work. See ACKNOWLEDGEMENTS for third-party software and license notices.
swiftGuard is available under the GNU GPL-3.0-only © Lennart Haack.
See LICENSE for the full text and ACKNOWLEDGEMENTS for third-party licenses.