Documentation
- Getting Started Configuration
- OpenID & LDAP
- Custom TLS Certificate
- Custom OS Images
- FlashStore
- Extra Files
- Network Interface Bonding
- Static routes
- Multipath disks
- Accessing your Cluster
- CephFS
- MDS Notifications
- CephFS Guard
- RBD
- S3
- S3 Multisite
- NVMe over Fabrics
- SMB
- NFS
- Ceph Keys
- AI Agents (MCP)
- Updating croit
- Replacing OSDs
- Replacing NIC
- PG numbers
- Updating Ceph
- Migrating or restoring croit container
- Backups
- Audit log
CephFS Guard
CephFS Guard watches a CephFS file system for ransomware and other destructive activity, records what it finds, and can react on its own by snapshotting the file system and evicting the client responsible. It is built into croit: enable it per file system, pick the servers it runs on, and triage what it catches from the croit UI.
NOTE
Experimental feature. CephFS Guard is an experimental feature, please use it with caution.
CephFS Guard is also a croit-exclusive feature, available only on croit Enhanced OS images. It relies on the change-notification interface of the croit-built MDS, which is not part of upstream Ceph, so it cannot run on Core images.
How it works
CephFS Guard watches the file system as it changes and reacts on its own:
- Watch: every file and directory change on the protected file system is seen as it happens.
- Detect: independent detectors score the recent event stream, each looking for a different signature of a ransomware run.
- Aggregate: a detection is raised when the highest score among the detectors that triggered crosses the threshold.
- React: CephFS Guard records the detection and, as you chose, takes a snapshot of the file system and disconnects or blocks the client responsible.
- Report: croit groups the detections into an incident, lists it on the Incidents tab, and raises a Task Advisor warning until you triage it.
Detectors
| Detector | What it looks for |
|---|---|
| Extension Change | Files renamed to extensions used by known ransomware families. |
| Filename Change | Rename operations whose new names match ransomware naming patterns. |
| Bulk Operations | The sheer operation rate of a mass-encryption run. |
| Ransom Note | Creation of files that look like ransom notes. |
| Encryption (High Entropy) | A surge of random-looking file content, the hallmark of encryption. |
| Timeline Analysis | The multi-phase behavioural pattern of an encryption run. |
| Snapshot Removal | A client deleting a CephFS snapshot. On by default. |
| Custom File Patterns | A client changing many files whose path matches your own patterns. Off by default. |
Enabling CephFS Guard
CephFS Guard needs your cluster to run a croit Enhanced OS image that ships cephfs-guard 2611.1 or newer. croit refuses to enable it on a node with an older image and names the version it needs.
Open File Storage → CephFS Guard, then on the Volumes tab:
- Select the file system and click Enable CephFS Guard.
- Choose the servers to deploy CephFS Guard services on.
- Choose the network interface each service listens on. This is the address the MDS sends change events to, so pick an interface reachable from the MDS.
A server hosts one service per file system, so the same server can protect several file systems at once.
Configuring detection and response
Select a guarded file system on the Volumes tab. Detectors turns each detector on or off, and Actions sets what the guard does on a detection. Edit holds the trusted clients, the users the guard never scores, and the webhooks alerts are sent to. Health shows the state of each service.
Custom file patterns
Turn on Custom File Patterns to protect files that matter to you, such as invoices or
CAD drawings. Add one regular expression per row under File patterns, up to 64. Each is
matched against the full file path, so anchor it with ^ and $ where needed, for example
INV-\d+\.pdf$ or ^/projects/.*\.dwg$. The detector alerts when one client changes at
least five distinct matching files within ten seconds. It does nothing until you add a pattern.
Trusted clients
Activity by the Ceph users listed under Trusted clients is never scored by any detector.
Use this only for dedicated service users such as a mirror or backup daemon, whose normal
traffic looks like ransomware. Never list a gateway user (NFS, SMB): a compromised gateway
would then go unnoticed. Enter the user name with or without the client. prefix.
CephFS Guard always trusts the admin user while Snapshot Removal is on, because croit's
scheduled snapshot rotation deletes expired snapshots as that user and would otherwise
raise an alert every time.
Actions
| Action | Default | What it does |
|---|---|---|
| Snapshot | Off | Takes a CephFS snapshot of the file system root when a detection fires, named cephfs-guard-<timestamp>. Rate-limited to one snapshot per 15 minutes, and snapshots are kept (no automatic cleanup). |
| Client access after a detection | Keep access | What happens to the client behind the detection: Keep access (alert only) records the detection and alerts, and the client keeps access. Disconnect (evict) disconnects the client, which can reconnect within seconds. Block for 72 hours (blocklist) locks the client out of the cluster for 72 hours, or until you remove it from the blocklist. |
IMPORTANT
Out of the box CephFS Guard detects and alerts but does not intervene: Snapshot is off and clients keep access. Change this once you are confident in the detection rate on your workload: a false positive with disconnecting or blocking on disconnects or locks out a real client, and a block also cuts off any legitimate workload sharing that client.
Alerting webhooks
Add the URLs you want to be notified on, each with its own timeout (for example 5s).
CephFS Guard sends every detection to all of them, so you hear about an attack without
watching the croit UI.
Each notification is an HTTP POST with a Content-Type: application/json body:
{
"timestamp": "2026-07-28T09:14:22Z",
"detector_name": "extension-change",
"client_id": 4128,
"session_id": "0f3c1d9a-2b4e-4c77-9a11-6d2e5f8c3b90",
"confidence": 0.87,
"reason": "24 of 31 files renamed to suspicious extensions within 10s",
"total_files": 31,
"suspicious_files": 24,
"suspicious_percent": 77.4,
"sample_paths": [
"/projects/finance/q3-report.xlsx.locked",
"/projects/finance/budget.docx.locked"
],
"suggested_actions": ["log", "alert", "snapshot"]
}
| Field | Description |
|---|---|
timestamp |
When the detection was raised, RFC 3339. |
detector_name |
Which detector fired, e.g. extension-change, file-entropy. |
client_id |
The CephFS client behind the activity. |
session_id |
The client's session, to correlate with Ceph logs. |
confidence |
Combined confidence, 0.0 to 1.0. |
reason |
Human-readable summary of what the detector saw. |
total_files |
Files the detector considered. |
suspicious_files |
How many of them looked malicious. |
suspicious_percent |
suspicious_files as a percentage of total_files. |
sample_paths |
A sample of the affected paths, not the full list. |
suggested_actions |
What CephFS Guard recommends: log, alert, snapshot, block. These are recommendations from the detector; what actually happens is what you enabled under Actions. |
Triaging incidents
The Incidents tab lists what CephFS Guard has found, latest activity first. An incident groups the detections of one client on one file system. It stays open while detections keep arriving and closes once the client goes quiet; later activity opens a new incident.
An incident a user has not triaged yet is Ongoing or New. A file system with such an incident reports Degraded even when all its services are healthy, and croit raises a Task Advisor warning. Both clear once every incident is triaged.
| Status | Meaning |
|---|---|
| Ongoing | Not yet looked at, and detections are still arriving. |
| New | Not yet looked at, and the client has gone quiet. |
| Acknowledged | Seen and handled. |
| False positive | Not an attack. Useful for spotting workloads that trip a detector. |
| Important | Marked for someone to re-examine, with a red dot in the list. |
Select one or more incidents to triage them with Acknowledge, Flag as False Positive or Flag as Important. Details shows what the detectors saw, Clients lists the clients behind them, and Delete removes incidents for good.
Monitoring the services
The Volumes tab's status column aggregates a file system's services:
| Status | Meaning |
|---|---|
| Healthy | Every service is running and reporting healthy, and no incident is untriaged. |
| Degraded | A service is unhealthy, or an incident is still untriaged. |
| No Services | Enabled, but no service is deployed. |
| Disabled | CephFS Guard is not enabled for this file system. |
Verifying your setup
Run this on a client with the file system mounted. It writes a batch of files and renames them the way ransomware does, which trips the Extension Change detector:
mkdir -p /mnt/cephfs/guard-test && cd /mnt/cephfs/guard-test
for i in $(seq 1 30); do head -c 4096 /dev/urandom > "file$i.dat"; done
for i in $(seq 1 30); do mv "file$i.dat" "file$i.dat.locked"; done
The incident appears on the Incidents tab within a few seconds.
Use a scratch directory: with the snapshot or eviction action enabled, a test detection triggers the real response.
