Skip to main content

SMB events that can be audited

ONTAP can audit certain SMB events, including certain file and folder access events, certain logon and logoff events, and central access policy staging events. Knowing which access events can be audited is helpful when interpreting results from the event logs.

The following additional SMB events can be audited in ONTAP 9.5 and later:

Event ID (EVT/EVTX)EventDescriptionCategory
4670Object permissions were changedOBJECT ACCESS: Permissions changed.File Access
4907Object auditing settings were changedOBJECT ACCESS: Audit settings changed.File Access
4913Object Central Access Policy was changedOBJECT ACCESS: CAP changed.File Access

The following SMB events can be audited in ONTAP 9.5 and later:

Event ID (EVT/EVTX)EventDescriptionCategory
540/4624An account was successfully logged onLOGON/LOGOFF: Network (CIFS) logon.Logon and Logoff
529/4625An account failed to log onLOGON/LOGOFF: Unknown user name or bad password.Logon and Logoff
530/4625An account failed to log onLOGON/LOGOFF: Account logon time restriction.Logon and Logoff
531/4625An account failed to log onLOGON/LOGOFF: Account currently disabled.Logon and Logoff
532/4625An account failed to log onLOGON/LOGOFF: User account has expired.Logon and Logoff
533/4625An account failed to log onLOGON/LOGOFF: User cannot log on to this computer.Logon and Logoff
534/4625An account failed to log onLOGON/LOGOFF: User not granted logon type here.Logon and Logoff
535/4625An account failed to log onLOGON/LOGOFF: User's password has expired.Logon and Logoff
537/4625An account failed to log onLOGON/LOGOFF: Logon failed for reasons other than above.Logon and Logoff
539/4625An account failed to log onLOGON/LOGOFF: Account locked out.Logon and Logoff
538/4634An account was logged offLOGON/LOGOFF: Local or network user logoff.Logon and Logoff
560/4656Open Object/Create ObjectOBJECT ACCESS: Object (file or directory) open.File Access
563/4659Open Object with the Intent to DeleteOBJECT ACCESS: A handle to an object (file or directory) was requested with the Intent to Delete.File Access
564/4660Delete ObjectOBJECT ACCESS: Delete Object (file or directory). ONTAP generates this event when a Windows client attempts to delete the object (file or directory).File Access
567/4663Read Object/Write Object/Get Object Attributes/Set Object AttributesOBJECT ACCESS: Object access attempt (read, write, get attribute, set attribute).
Note
For this event, ONTAP audits only the first SMB read and first SMB write operation (success or failure) on an object. This prevents ONTAP from creating excessive log entries when a single client opens an object and performs many successive read or write operations to the same object.
File Access
NA/4664Hard linkOBJECT ACCESS: An attempt was made to create a hard link.File Access
NA/4818Proposed central access policy does not grant the same access permissions as the current central access policyOBJECT ACCESS: Central Access Policy Staging.File Access
NA/NA Data ONTAP Event ID 9999Rename ObjectOBJECT ACCESS: Object renamed. This is an ONTAP event. It is not currently supported by Windows as a single event.File Access
NA/NA Data ONTAP Event ID 9998Unlink ObjectOBJECT ACCESS: Object unlinked. This is an ONTAP event. It is not currently supported by Windows as a single event.File Access

Additional information about Event 4656

The HandleID tag in the audit XML event contains the handle of the object (file or directory) accessed. The HandleID tag for the EVTX 4656 event contains different information depending on whether the open event is for creating a new object or for opening an existing object:

  • If the open event is an open request to create a new object (file or directory), the HandleID tag in the audit XML event shows an empty HandleID (for example: <Data Name="HandleID">00000000000000;00;00000000;00000000</Data> ).

    The HandleID is empty because the OPEN (for creating a new object) request gets audited before the actual object creation happens and before a handle exists. Subsequent audited events for the same object have the right object handle in the HandleID tag.

  • If the open event is an open request to open an existing object, the audit event will have the assigned handle of that object in the HandleID tag (for example: <Data Name="HandleID">00000000000401;00;000000ea;00123ed4</Data> ).