> ## Documentation Index
> Fetch the complete documentation index at: https://docs.macstadium.com/llms.txt
> Use this file to discover all available pages before exploring further.

# What should I do if my Mac was compromised?

> Steps to take if a MacStadium bare metal Mac was compromised, such as by a crypto miner or unauthorized login: rotate credentials, save your data, and request a rebuild.

Rebuild it. Malware such as crypto miners usually installs its own launch daemons, SSH keys, or firewall rules, and a macOS update doesn't remove them, so a cleaned-up Mac can't be trusted. A full wipe and reinstall is the only safe option. Save the data you need, then have MacStadium wipe the Mac and install a clean copy of macOS.

**1. Rotate credentials**

Change any passwords, keys, and tokens that were stored on the Mac or used from it, such as code signing certificates, CI tokens, and cloud keys. Don't enter new credentials on the compromised Mac.

**2. Copy off the data you need**

Connect over SSH and copy your data off with `scp` or `sftp`. Copy only data you need. Don't copy applications, scripts, launch agents or daemons, or other executable or configuration files unless you've verified them, because they may carry the compromise to your next Mac.

Any data you keep from a compromised Mac may also be infected. Scan it before you use it anywhere else.

If you can't sign in, ask MacStadium Support in a ticket. The data center can reset the admin password from Recovery so you can sign in over SSH. If FileVault is on, you'll need its recovery key.

**3. Request a wipe and reinstall**

[Open a ticket](https://docs.macstadium.com/macstadium/support/service-desk-guide.md#open-a-ticket-for-a-specific-mac) for the Mac and ask MacStadium to wipe it and reinstall macOS. Say which current, patched macOS version you want, and confirm in the ticket that you authorize the wipe.

If you need more time before the wipe, say so in the ticket, and MacStadium holds the Mac until you confirm.

## What MacStadium can and can't do

MacStadium hosts and maintains the hardware and network. You're responsible for securing macOS, your accounts, and your data on the Mac. On a compromised Mac, Support can hold it, help you regain access, and wipe and reinstall it. MacStadium doesn't investigate incidents on customer Macs, and doesn't provide forensics, disk images, or network logs.

## Related

* If the compromise came through Screen Sharing, see [CVE-2026-65400](https://docs.macstadium.com/CVE-2026-65400.md) for how to tell whether your Mac was exposed and how to reconnect safely afterward.
* To lock down how your Mac is reached, see [Connecting to your Mac for the first time](https://docs.macstadium.com/iaas/bare-metal-macs/connecting-to-your-mac-for-the-first-time.md).


## Related topics

- [How do I disable SIP on my Mac?](https://docs.macstadium.com/iaas/iaas-faqs/how-do-i-disable-sip-on-my-mac.md)
- [Disabling Activation Lock and Find My on Mac](https://docs.macstadium.com/iaas/bare-metal-macs/2018-mac-mini-deactivation-process.md)
- [How do I find the hardware serial number for my service?](https://docs.macstadium.com/iaas/iaas-faqs/how-do-i-find-the-hardware-serial-number-for-my-service.md)
- [Update regarding CVE-2026-65400](https://docs.macstadium.com/CVE-2026-65400.md)
- [Fix a declined credit card on MacStadium](https://docs.macstadium.com/macstadium/billing/credit-card-declined.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.