Skip to content

About

Anti-forensic macOS tray application designed to safeguard your system by monitoring USB, Bluetooth, Wi-Fi and power changes on your Mac.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

477 stars

Watchers

33 watching

Forks

    swiftGuard

Physical-security monitoring for macOS

Last updated Main branch CI status Codacy code quality Source version 1.0.0
macOS 14 and later; supported from macOS 26 App size: 146.2 MiB GPL-3.0-only license
English | Deutsch

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.

Donate with PayPal Buy me a coffee

 

Contents

 

Features

  • 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.

 

Why should you care?

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

Screenshots coming soon.

 

Installation

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:

  1. Download: Open GitHub Releases and download swiftGuard-arm64.pkg for Apple Silicon or swiftGuard-x86_64.pkg for Intel. Check Apple menu → About This Mac if you are unsure which Mac you have.

  2. Verify (recommended): Download the matching SHA256SUMS and SHA256SUMS.asc alongside the package. Download the release public key from keys.openpgp.org and save it as swiftguard-release-key.asc. Its full fingerprint is F452 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.

  3. 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.

  4. Open: Start swiftGuard from Applications.

  5. 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.

 

Usage

Open swiftGuard from the menu bar and tailor monitoring to your setup:

  1. Devices: Review connected devices and approve only identities you trust. You can also designate a trusted USB device as a dead-man switch.
  2. Sensors: Choose which interfaces to monitor: USB, Bluetooth, Wi-Fi and power changes.
  3. 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.
  4. 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.
  5. 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.

 

Privacy and network access

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.

 

Development

Keep both directories together under src/: the production builder and helper build use files from their sibling directory.

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.

 

Roadmap

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

 

Security and code quality

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.

 

Community

Bug reports, documentation improvements, translations and code contributions are welcome. If you would like to support the project, see FUNDING for options.

 

Contributors

Thank you to everyone who gives feedback, contributes features and improves the code and project!

swiftGuard contributors

 

Credits

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.

 

License

swiftGuard is available under the GNU GPL-3.0-only © Lennart Haack.

See LICENSE for the full text and ACKNOWLEDGEMENTS for third-party licenses.

About

Anti-forensic macOS tray application designed to safeguard your system by monitoring USB, Bluetooth, Wi-Fi and power changes on your Mac.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

477 stars

Watchers

33 watching

Forks

Releases

Used by

Contributors

Languages