Send macOS SAP Privileges events to your SIEM
Each time someone gains or gives up admin rights through SAP Privileges on a Mac, your SIEM can get a record of it. There are three ways to send it, from a setting in Privileges itself to a full oversight tool.
This guide is about the macOS app SAP Privileges, not the security of SAP's business software.
Three ways to get the events out
| Route | What you run | What reaches your SIEM | Checked against the admin group |
|---|---|---|---|
| Privileges' own remote logging | Nothing extra: a setting in your Privileges profile | A syslog line in Privileges' own format, or a JSON webhook | No |
| altiward-forwarder | A relay you host, or a hook on each Mac | OCSF records in Splunk, Sentinel or syslog | No: each record is the Mac's own report |
| Altiward | A server and console, and an agent on each Mac | The same OCSF records, plus findings such as rights past expiry and admins nobody granted | Yes |
1. Privileges' own remote logging
Since version 1.5.0, Privileges can report each change itself. Add RemoteLogging to the profile that sets corp.sap.privileges. ServerType is syslog or webhook, and ServerAddress is the syslog host or the webhook's URL. Syslog goes to port 514, or 6514 with UseTLS. QueueUnsentEvents (2.4.0 or later) keeps events Privileges couldn't send, 20 by default, and sends them again the next time someone changes their rights through Privileges.
<key>RemoteLogging</key>
<dict>
<key>ServerType</key>
<string>syslog</string>
<key>ServerAddress</key>
<string>syslog.example.com</string>
<key>SyslogOptions</key>
<dict>
<key>UseTLS</key>
<true/>
</dict>
<key>QueueUnsentEvents</key>
<true/>
</dict>
With ServerType set to webhook, Privileges posts JSON like this example from SAP's documentation. custom_data holds whatever you put in WebhookCustomData, and delayed is true for an event sent from the queue.
{
"admin": true,
"custom_data": {
"name": "Testuser's Mac",
"serial": "XYZ1234567"
},
"delayed": false,
"event": "corp.sap.privileges.granted",
"expires": "2024-11-28T07:40:59Z",
"machine": "E60E8CCB-32F1-4495-A436-BD1939C2BC32",
"reason": "",
"timestamp": "2024-11-28T07:20:59Z",
"user": "testuser"
}
Two limits decide whether this is enough on its own:
- The webhook can't carry a token. Splunk's HTTP Event Collector and Sentinel's Logs Ingestion API both need one, so the webhook needs something in between to receive it.
- Syslog arrives in Privileges' own format. If a syslog receiver already feeds your SIEM, this is the simplest route, but you write the parsing yourself.
2. altiward-forwarder: OCSF into Splunk or Sentinel
altiward-forwarder is free and open source. It turns each Privileges event into an OCSF record and sends it to Splunk, Sentinel or syslog. It works in one of two ways:
- A relay you host takes Privileges' webhook, checks each Mac's client certificate and stores the event on disk before it answers. Relay quick start.
- A hook on each Mac, which Privileges runs after each change, sends the record straight to your SIEM. There's no relay to host, but each Mac holds a token for your SIEM. Hook quick start.
Each grant becomes an OCSF User Access Management record (class_uid 3005). Trimmed, it looks like this:
{
"class_uid": 3005,
"activity_id": 1,
"activity_name": "Assign Privileges",
"time": 1792506383000,
"user": { "name": "jdoe" },
"device": { "uid": "8A1B2C3D-4E5F-6A7B-8C9D-0E1F2A3B4C5D" },
"privileges": ["admin"],
"message": "jdoe was granted admin rights on 8A1B2C3D-… via SAP Privileges: Installing a printer driver",
"metadata": { "product": { "name": "Altiward Forwarder" } },
"unmapped": {
"altiward": {
"event_type": "elevation.granted",
"reason": "Installing a printer driver",
"expires_time": 1792506683000,
"reported_by": "privileges_webhook",
"verified": false
}
}
}
Every record says verified: false, because it's what the Mac reported and nothing checks it. A local admin can stop Privileges from reporting.
3. Altiward: checked against the admin group
The Altiward agent reads each Mac's admin group and compares it with the grants Privileges reported and your permanent-admin list. The server sends the same OCSF records, plus findings for what doesn't match, and a daily record of each Mac's admin group and each change to it, so your SIEM keeps who held admin after the console's own history is removed. CEF is also available for syslog. You choose the destination; no session evidence goes to Altiward.
| Destination | How Altiward sends events | Setup and examples |
|---|---|---|
| Splunk | HTTP Event Collector (HEC) | Splunk integration and starter dashboard |
| Microsoft Sentinel | Logs Ingestion API | Sentinel setup and workbook |
| Syslog receiver | TLS or TCP, as OCSF JSON or CEF | Syslog configuration |
Configure the server using Connect your SIEM in the install guide. Events wait in the server's Postgres outbox until the destination accepts them, so a SIEM outage delays delivery.
To check a session end to end:
- Request temporary admin through SAP Privileges on an enrolled Mac. Give a reason you can recognise.
- Find the session in the Altiward console. Check the user, Mac, recorded reason, grant time and expiry.
- Revoke the session while the Mac can reach the server, then confirm that its admin rights have ended.
- Find the corresponding events in your SIEM and compare them with the console record.
Then decide which findings need a response:
- Admin rights without a recorded grant: check the account's purpose and your permanent-admin list.
- Detected changes during a session: correlate new local accounts or other persistence changes with your security telemetry.
- Rights past expiry: check your configured expiry policy and the recorded outcome. Alerting is the default; removing rights requires enforcement to be enabled.
- Missing check-ins: investigate a loss of visibility. The finding does not establish why the Mac stopped reporting. It names who was in the Mac's admin group at its last check-in. With Intune connected, a Mac that Intune still hears from is reported within hours, at High, because its agent may have been removed or stopped.
The console and SIEM walkthrough shows example records, and the event schema has the full contract.
Find elevations in Splunk and Sentinel
The forwarder and Altiward write to the same places: Sentinel's AltiwardOCSF_CL table and Splunk's altiward:ocsf sourcetype. So these searches, from altiward-siem, list every grant from either one, with its reason, expiry and which product reported it.
sourcetype="altiward:ocsf" class_uid=3005 activity_id=1
| table _time host device.uid user.name unmapped.altiward.reason unmapped.altiward.expires_time metadata.product.name message
AltiwardOCSF_CL
| where ClassUid == 3005 and ActivityId == 1
| project TimeGenerated, DeviceSerial, DeviceUid = tostring(Ocsf.device.uid), UserName,
Reason = tostring(Ocsf.unmapped.altiward.reason),
Expires = unixtime_milliseconds_todatetime(tolong(Ocsf.unmapped.altiward.expires_time)),
ReportedBy = tostring(Ocsf.metadata.product.name), Message
| order by TimeGenerated desc
Forwarder webhook events name the Mac only by its hardware UUID, so DeviceSerial is empty for them. altiward-siem also has alerts, such as more than 10 elevations by one user in 7 days and one user's admin time per day over a limit. Each says whether it works with forwarder events or needs Altiward.
Sources
- SAP, Managing Privileges: RemoteLogging, Privileges wiki
- SAP, Example_RemoteLogging.mobileconfig
- Altiward, altiward-forwarder README and altiward-siem README
How it works follows an example session and revocation, and shows the OCSF event behind a finding.