Skip to main content

ONTAP Multi-Admin Verification with AD, GLPI, Mattermost and Wazuh

Someone who steals a storage admin’s password doesn’t start by encrypting files. They delete the snapshots, switch off ransomware protection, and then switch off whatever would have stopped them. On ONTAP, one account with the admin role can do all of that.

ONTAP multi-admin verification (MAV) closes that gap: the commands you choose (volume delete, snapshot delete, turning off ransomware protection, changing MAV itself) are held until a second admin approves them. It’s built into ONTAP 9.11.1 and later, it costs nothing to turn on, and it belongs in any ONTAP hardening checklist.

But approval only works when the approver knows what they’re looking at. ONTAP shows a request like volume snapshot delete -vserver svm_files -volume projects -snapshot weekly.2026-11-29_0015, fourteen times over, and that’s it. It doesn’t say whether there’s a change ticket, whether this is the window, or whether the command came from the admin jump host or from a laptop in finance. And it sends no event when a request is created, so approvers only find out if they go and look.

This guide connects MAV to the tools a real IT team already runs:

  • Active Directory: every admin logs in to ONTAP with their own account, so every request and every approval has a name on it.
  • GLPI (ITSM): the request names its change ticket, and a small bridge checks that the change is approved, the window is open, and the volume and the person match.
  • Wazuh (SIEM): ONTAP’s audit log shows where each command came from, and a pattern of requests without a change becomes a level-14 alert.
  • Mattermost (chat): the approvers get a card with all of that, and an @mention.

Red Mattermost card from the ontap-approvals bot mentioning @k.ek and @s.lind: Alex Berg wants to delete all 14 snapshots on volume projects with no approved change, sent from FIN-LT-042 instead of an admin jump host

The bridge has no Approve button, on purpose. Approval happens in System Manager or the ONTAP CLI, under the approver’s own AD account. If a chat bot can approve, the bot is your second admin.

Everything here was built and tested end to end in my homelab (ONTAP Select 9.19.1, GLPI 11, Mattermost 12.1, Wazuh 4.14), with both scenarios at the end run for real. The code and config files are in the ontap-mav-bridge repository on GitHub.

This guide assumes you already run ONTAP, an AD domain, GLPI, Mattermost and Wazuh, and that you’re comfortable with the ONTAP CLI. If you followed my earlier guide on sending ONTAP ransomware alerts to Wazuh and Mattermost, you can reuse the same Wazuh decoders.


How it fits together

Architecture diagram: the storage admin’s protected command is held by the ONTAP cluster, which sends its audit log to Wazuh; ontap-mav-bridge polls ONTAP read-only, checks the change in GLPI and the source host in Wazuh, and posts a card to Mattermost that @mentions the approver, who approves or vetoes in ONTAP

  1. A storage admin runs a protected command. ONTAP holds it and creates an approval request.
  2. ONTAP’s audit log goes to Wazuh over syslog, with the user and the source address of every command.
  3. ontap-mav-bridge polls ONTAP’s list of requests, with a read-only account.
  4. It reads the change number from the request comment and checks the change in GLPI.
  5. It asks the Wazuh indexer where the command came from.
  6. It posts a card in a Mattermost channel.
  7. The card @mentions the members of the ONTAP approval group.
  8. An approver approves or vetoes in ONTAP (System Manager or CLI), signed in with their own AD account.
  9. The bridge sees the outcome, updates the card, and writes it back: a follow-up on the change, or a security incident in GLPI, plus an event in Wazuh.

The bridge only makes outbound connections. It has no listener, and nothing on ONTAP changes because of it.

What you need

ComponentTested withNotes
ONTAP9.19.1MAV needs 9.11.1 or later. AD logins need a storage VM joined to the domain.
Active DirectoryWindows ServerOne account per admin
GLPI11.0REST API (apirest.php) enabled. Optional: without it the card still works, without the change checks.
Wazuh4.14Manager reachable from ONTAP on TCP 514, indexer reachable from the bridge. Optional.
Mattermost12.1 (Team Edition)System admin access to create a bot
Bridge hostLinux, Python 3.9+Any small VM or container. Outbound HTTPS to ONTAP, Mattermost, GLPI and the Wazuh indexer.

Names used in this guide (change them to yours):

Name in this guide
Clustercluster1
AD domainCORP
Storage VM to protectsvm_files
Requester (storage admin)CORP\a.berg, Alex Berg
ApproversCORP\s.lind, Sam Lind (security officer), and CORP\k.ek, Kim Ek (infrastructure lead)
Admin jump hostADM-JUMP-01

The people are fictional, and the screenshots come from my lab, where the storage VM is called corp_fs.


Step 1: ONTAP, every admin with their own AD account

MAV is about two different people. That only means something if ONTAP knows who is who, so the first step is to stop sharing admin.

ONTAP can authenticate cluster logins against AD through a domain tunnel, using a storage VM that is already joined to the domain:

cluster1::> security login domain-tunnel create -vserver svm_files

cluster1::> security login create -user-or-group-name CORP\a.berg -application ssh  -authentication-method domain -role admin
cluster1::> security login create -user-or-group-name CORP\a.berg -application http -authentication-method domain -role admin

Do the same for CORP\s.lind and CORP\k.ek. http covers System Manager and the REST API, which is where approvers will usually work.

Tip: ONTAP can also map an AD group to a role, so you don’t have to add people one by one. I tested per-user logins. The approval group in step 2 lists people by name either way.


Step 2: ONTAP, turn on multi-admin verification

2a. Who can approve

cluster1::> security multi-admin-verify approval-group create -name storage-approvers -approvers CORP\s.lind,CORP\k.ek

A requester can never approve their own request, so with two approvers and one required approval, any of the three can make a request and one of the others has to agree. If you add -email, ONTAP mails the group itself when a request is created. That needs a mail server in event config, and it’s a plain mail without any context. The bridge does the context part.

2b. What needs approval

Protect the commands that destroy data or recovery points:

cluster1::> security multi-admin-verify rule create -operation "volume delete"                           -query "-vserver svm_files"
cluster1::> security multi-admin-verify rule create -operation "volume snapshot delete"                  -query "-vserver svm_files"
cluster1::> security multi-admin-verify rule create -operation "volume snapshot autodelete modify"       -query "-vserver svm_files"
cluster1::> security multi-admin-verify rule create -operation "security anti-ransomware volume disable" -query "-vserver svm_files"
cluster1::> security multi-admin-verify rule create -operation "security anti-ransomware volume pause"   -query "-vserver svm_files"

-query scopes a rule. Leave it out to protect the command on every storage VM. Not every command can be a rule: volume offline, for example, can’t. ONTAP also ships built-in rules that protect MAV’s own settings, so turning MAV off needs an approval too. That’s the part an attacker can’t get around.

2c. Switch it on

cluster1::> security multi-admin-verify modify -approval-groups storage-approvers -required-approvers 1 -approval-expiry 1h -execution-expiry 1h -enabled true
cluster1::> security multi-admin-verify rule show

Order matters. Create the rules first. Once MAV is enabled, adding, changing or deleting a rule or an approval group needs an approval as well.

What it looks like for the admin

A protected command now fails and leaves a request behind:

cluster1::> volume snapshot delete -vserver svm_files -volume projects -snapshot weekly.2026-11-29_0015

Error: command failed on vserver "svm_files" volume "projects" snapshot
       "weekly.2026-11-29_0015": The security multi-admin-verify request (index
       3) is auto-generated and requires approval.

Interactively, ONTAP first asks whether to create the request. For a planned change it’s cleaner to file the request up front, with the change number in the comment. That’s what the bridge reads:

cluster1::> security multi-admin-verify request create -operation "volume delete" -query "-vserver svm_files -volume old_archive" -comment "CHG 1043"

Approvers find the requests in System Manager under Events & jobs > Multi-admin requests:

System Manager Multi-admin requests page listing pending Volume Snapshot Delete requests 1 to 5 for volume projects, each requested by CORP\a.berg

After approval, the requester runs the command again and it goes through. In the CLI an approver can also use request approve -index N -execute-on-approval true. System Manager’s Approve button has no such option.


Step 3: ONTAP, a read-only account and the audit log

3a. An account for the bridge

The bridge reads requests, rules, approval groups and volumes. Nothing else:

cluster1::> security login role create -role mav_reader -cmddirname "security multi-admin-verify" -access readonly
cluster1::> security login role create -role mav_reader -cmddirname "volume" -access readonly
cluster1::> security login create -user-or-group-name mav_bridge -application http -authentication-method password -role mav_reader

The account can’t approve, veto, delete or change anything, and it can’t log in over SSH.

3b. Audit log to Wazuh

cluster1::> cluster log-forwarding create -destination wazuh.example.com -port 514 -protocol tcp-unencrypted -facility user

The audit log has a line for every command, held or not, with the user and the address it came from. That’s how the bridge knows the snapshot deletes came from a finance laptop. Use tcp-encrypted if your syslog receiver does TLS.


Step 4: Wazuh, decode and correlate

On the Wazuh manager, accept syslog on TCP 514 (a <remote> block in ossec.conf with <protocol>tcp</protocol> and ONTAP’s addresses in <allowed-ips>). Then copy four files from the repo’s wazuh/ folder:

FileGoes toWhat it is
ontap_decoders.xml/var/ossec/etc/decoders/ONTAP EMS and audit log decoders (the same file as in my ransomware guide)
ontap_decoders_mav.xml/var/ossec/etc/decoders/the bridge’s JSON events
ontap_rules.xml/var/ossec/etc/rules/base ONTAP rules (audit log: 100519, 100520)
ontap_rules_mav.xml/var/ossec/etc/rules/the MAV rules below
chown wazuh:wazuh /var/ossec/etc/decoders/ontap_*.xml /var/ossec/etc/rules/ontap_*.xml
/var/ossec/bin/wazuh-control restart

The MAV rules:

RuleLevelFires on
1005306ONTAP held a protected command for approval
1005315approval request created
1005326request approved
1005339request vetoed
10053412attempt to weaken MAV itself (MITRE T1562)
10053510someone retried a command that was vetoed
100536, 1005374, 3any protected command (the bridge uses these to find the source address)
1005403any bridge event
1005414request matches an approved change
10054212destructive request without an approved change (T1490, T1078)
100543143 of those from the same account within 10 minutes: possible compromised storage admin
100544, 10054510, 5the bridge saw a veto, or an approved request executed

Rule 100543 is the one to page someone for. One request without a change can be a mistake. Three in a row from the same account is a pattern.

Two gotchas. Wazuh loads rule files in name order, and the MAV rules build on 100519/100520, so the file must sort after ontap_rules.xml: hence ontap_rules_mav.xml, not ontap_mav_rules.xml. And Wazuh’s JSON decoder renames a field called user to dstuser, which is why the bridge sends the account as requester.

The bridge also reads from the Wazuh indexer (port 9200): it searches the audit alerts for the command behind each request. Give it a user that can only read wazuh-alerts-*.


Step 5: Mattermost, a bot and a channel

  1. System Console > Integrations > Bot Accounts: enable bot account creation.
  2. Integrations > Bot Accounts > Add Bot Account: for example ontap-approvals, role Member. Copy the access token.
  3. Create a channel, for example #storage-changes. Add the bot, the approvers and the storage team. Copy the channel ID (channel name > View Info).

The bridge @mentions the members of the ONTAP approval group, so their Mattermost usernames should match their AD account names (CORP\k.ek becomes @k.ek). If they don’t, set MM_MENTION to a fixed list. The card shows the requester’s full name and position from their Mattermost profile.

The bot only posts and edits its own posts. It has no buttons, so Mattermost never calls back into anything.


Step 6: GLPI, change tickets the bridge can check

The bridge uses GLPI’s REST API (apirest.php):

  1. Setup > General > API: enable the REST API and login with an external token. Add an API client limited to the bridge host’s address, and copy its app token.
  2. Create a user for the bridge (for example mav-bridge) with a profile that can read changes, change tasks, approvals and users, and can create tickets and follow-ups. In the user’s settings, generate the API token.

What the bridge checks for a request with CHG 1043 in its comment:

CheckPasses when
Approvedthe change’s approval is Granted and its status is Accepted, Test or Qualification
Windowa task on the change has a planned start and end around now
Volumethe change’s title or description mentions the volume in the request
Personthe requester is a requester or technician on the change
Host(from Wazuh) the command came from one of ADMIN_HOSTS

The card is green only when every check passes. Each check is shown separately, so an approver can still approve a red card. The bridge informs, it doesn’t decide.

Write-back:

  • Executed: a follow-up on the change: what ONTAP ran, who asked, who approved, the ONTAP request numbers.
  • Vetoed without a valid change: a security incident, one per account. More vetoed requests from the same account within the hour are added to it.

Step 7: the bridge

ontap-mav-bridge.py is one Python file, about 450 lines, and its only dependency is requests.

Install

sudo useradd --system --home /opt/ontap-mav-bridge ontap-mav
sudo mkdir -p /opt/ontap-mav-bridge /etc/ontap-mav-bridge
sudo python3 -m venv /opt/ontap-mav-bridge/venv
sudo /opt/ontap-mav-bridge/venv/bin/pip install requests
sudo cp ontap-mav-bridge.py /opt/ontap-mav-bridge/
sudo cp bridge.env.example /etc/ontap-mav-bridge/bridge.env
sudo cp ontap-mav-bridge.service /etc/systemd/system/

Edit /etc/ontap-mav-bridge/bridge.env:

ONTAP_HOST=cluster1.example.com
ONTAP_USER=mav_bridge
ONTAP_PASSWORD=...
ONTAP_VERIFY=/etc/ontap-mav-bridge/ontap-ca.pem
SM_URL=https://cluster1.example.com/

MM_URL=https://chat.example.com
MM_BOT_TOKEN=...
MM_CHANNEL_ID=...

GLPI_URL=https://itsm.example.com
GLPI_APP_TOKEN=...
GLPI_USER_TOKEN=...
GLPI_TIMEZONE=Europe/Stockholm

WAZUH_INDEXER_URL=https://wazuh.example.com:9200
WAZUH_INDEXER_USER=mav-bridge
WAZUH_INDEXER_PASSWORD=...
WAZUH_VERIFY=/etc/ontap-mav-bridge/wazuh-ca.pem
SYSLOG_TARGET=wazuh.example.com:514

ADMIN_HOSTS=ADM-JUMP-01,ADM-JUMP-02
HOST_NAMES=192.0.2.10=ADM-JUMP-01

HOST_NAMES is only needed for addresses without reverse DNS. Then:

sudo chmod 600 /etc/ontap-mav-bridge/bridge.env
sudo chown -R ontap-mav: /etc/ontap-mav-bridge
sudo systemctl enable --now ontap-mav-bridge
journalctl -u ontap-mav-bridge -f

Requests that already exist when the bridge first starts get no card. Its state (open cards, open incidents) is kept in /var/lib/ontap-mav-bridge/state.json, so a restart doesn’t post everything again.

What it does with a request

  • Groups requests. volume snapshot delete -snapshot * creates one request per snapshot. The bridge collects requests from the same person, for the same operation, volume and comment, and posts one card (“Delete ALL 14 snapshots on volume projects”).
  • Plain words. “Turn off ransomware protection on volume projects” instead of security anti-ransomware volume disable -vserver ..., plus the volume’s current snapshot count and ransomware protection state, and the MITRE ATT&CK technique an attacker would be using.
  • Treats request text as untrusted. Whoever types the command controls the snapshot names and the comment. The bridge escapes them before they go into the card or into GLPI.
  • Updates the card when the request is approved, vetoed, executed or withdrawn: green, amber or grey, with who decided.

Scenario 1: a stolen admin password

Alex Berg’s password has been phished. The attacker logs in to ONTAP as Alex, from a laptop in finance (FIN-LT-042), and tries the three things that would make a ransomware attack stick:

cluster1::> volume snapshot delete -vserver svm_files -volume projects -snapshot *
...
Error: command failed on vserver "svm_files" volume "projects" snapshot
       "weekly.2026-11-29_0015": The security multi-admin-verify request (index
       3) is auto-generated and requires approval.
...
0 entries were acted on.

cluster1::> security anti-ransomware volume disable -vserver svm_files -volume projects
Error: command failed: The security multi-admin-verify request (index 15) is
       auto-generated and requires approval.

cluster1::> security multi-admin-verify modify -enabled false
Error: command failed: The security multi-admin-verify request (index 16) is
       auto-generated and requires approval.

Nothing was deleted: 14 snapshot requests, one for ransomware protection, one for MAV itself. The approvers get three red cards, one per attempt (the first is at the top of this article):

The other two look the same: “Turn off ransomware protection on volume projects” and the attempt to turn off MAV itself.

At the same time, Wazuh sees three destructive requests without a change from the same account and raises the level-14 alert. The attempt to switch off MAV is a separate level-12 alert:

Wazuh alert list: rule 100534 level 12 for the attempt to weaken multi-admin verification, two rule 100542 level 12 alerts for destructive requests without an approved change from FIN-LT-042, rule 100543 level 14 possible compromised storage admin, and three rule 100544 veto events

Details of Wazuh rule 100543 at level 14: CORP\a.berg made 3 destructive ONTAP requests without a change, with MITRE IDs T1078 Valid Accounts and T1490 Inhibit System Recovery

Sam Lind, the security officer, opens System Manager with Sam’s own AD account, selects all the requests and rejects them:

System Manager Reject requests dialog listing the Volume Snapshot Delete requests on volume projects from CORP\a.berg

Reject is a veto. The attacker tries again and gets nowhere:

cluster1::> volume snapshot delete -vserver svm_files -volume projects -snapshot *

Error: command failed on vserver "svm_files" volume "projects" snapshot
       "manual.2026-11-17_144859": The security multi-admin-verify request
       (index 1) has been vetoed. You must delete it and create a new
       verification request. To delete, run "security multi-admin-verify
       request delete 1".

The cards turn amber, with who vetoed and a link to the incident:

The snapshot card after the veto: amber, Vetoed by Sam Lind, Security incident 5310 opened in GLPI

The bridge has opened a security incident in GLPI with every vetoed request in it, and a clear next step:

GLPI incident 5310, Storage admin account a.berg made destructive requests without a change, with follow-ups by mav-bridge for vetoed requests 1 to 16 sent from FIN-LT-042 and the advice to treat the account as compromised

Afterwards: all 14 snapshots still on the volume, ransomware protection still on, MAV still on.


Scenario 2: a planned delete

The same controls on a normal day. CHG 1043, “Decommission volume old_archive”, was approved in GLPI by Kim Ek, with a maintenance window. Alex files the request from the admin jump host, with the change number:

cluster1::> security multi-admin-verify request create -operation "volume delete" -query "-vserver svm_files -volume old_archive" -comment "CHG 1043"

Every check passes, so the card is green, and Kim gets the @mention:

Green Mattermost card: Alex Berg wants to delete volume old_archive and it matches an approved change, with all five checks passed for CHG 1043, the change window, the volume, the requester and ADM-JUMP-01

Kim approves it in System Manager:

System Manager Approve request dialog for Volume Delete on volume old_archive requested by CORP\a.berg

Alex unmounts, offlines and deletes the volume. The delete now goes through (into ONTAP’s recovery queue, as always). The card turns to Done:

The same card after execution: Done, Delete volume old_archive, approved by Kim Ek and logged on CHG 1043 in GLPI

The change ticket documents itself, with what ran, who asked and who approved:

GLPI change 1043, Decommission volume old_archive, with the granted approval, the maintenance window task and a mav-bridge follow-up saying ONTAP ran volume delete after multi-admin approval by Kim Ek

And Wazuh has the whole trail, from ONTAP’s own audit log and the bridge:

Wazuh events for the planned delete: request created, matches approved CHG 1043, approved by CORP\k.ek, executed, and the protected volume delete command from the audit log


Things I learned along the way

  • ONTAP sends no event when a request is created. There’s no EMS event to hook a webhook to, so the bridge polls /api/security/multi-admin-verify/requests. Its fields include approved_users, user_vetoed, comment, create_time and state.
  • A wildcard makes one request per object. -snapshot * on a volume with 14 snapshots is 14 requests. Without grouping, the approvers would get 14 cards.
  • The audit log line of a held command carries the source address (and “requires approval” in its result). That’s how a request gets a host name.
  • A vetoed request blocks retries of the same command until the requester deletes it. And only the requester can delete their own pending request: even the cluster admin gets an error. Keep that in mind for your runbooks.
  • Request numbers are reused. Finished requests disappear after a while, and their numbers come back. The bridge keys requests on number + creation time.
  • System Manager’s Approve doesn’t execute. The requester runs the command again after approval. The CLI’s request approve -execute-on-approval true does execute.
  • Turning MAV off needs an approval. Plan your lab teardown: keep two approvers around until MAV is off.
  • Wazuh renames a JSON field called user to dstuser, and loads rule files in name order. Both cost me a test run.

Before you go to production

  • Use certificates you trust everywhere (*_VERIFY set to your CA bundles). The bridge warns at startup when a check is off.
  • Give the Wazuh indexer user read access to wazuh-alerts-* only. In my lab the bridge used a broader account.
  • Keep bridge.env readable by the service user only. The ONTAP account is read-only, but the GLPI token can create tickets.
  • Decide what your approvers do with a red card. The bridge shows the facts. The decision, and the account that makes it, stay human.
  • Add rule 100543 (and 100534) to your paging or ticketing. Those are the ones that mean “someone is in an admin account who shouldn’t be”.
  • Write down how to turn MAV off in an emergency. It needs an approval, by design.

Lab notes: built and tested on ONTAP 9.19.1 (ONTAP Select in my homelab), GLPI 11.0.12, Mattermost 12.1 Team Edition and Wazuh 4.14.10, with a Windows AD domain. Both scenarios were run for real against the published version of the bridge. The attacker’s laptop and the jump host are lab machines with those names, and the people are fictional. The bridge is a sample, not a NetApp product. Review it and test it in your own environment before you rely on it.

comments powered by Disqus