5140(S, F): A network share object was accessed.
Applies to
- Windows 10
- Windows Server 2016
Event Description:
This event generates every time network share object was accessed.
This event generates once per session, when first access attempt was made.
NoteВ В For recommendations, see Security Monitoring Recommendations for this event.
Event XML:
Required Server Roles: None.
Minimum OS Version: Windows Server 2008, Windows Vista.
Event Versions:
- 0 — Windows Server 2008, Windows Vista.
Field Descriptions:
Subject:
- Security ID [Type = SID]: SID of account that requested access to network share object. Event Viewer automatically tries to resolve SIDs and show the account name. If the SID cannot be resolved, you will see the source data in the event.
NoteВ В A security identifier (SID) is a unique value of variable length used to identify a trustee (security principal). Each account has a unique SID that is issued by an authority, such as an Active Directory domain controller, and stored in a security database. Each time a user logs on, the system retrieves the SID for that user from the database and places it in the access token for that user. The system uses the SID in the access token to identify the user in all subsequent interactions with Windows security. When a SID has been used as the unique identifier for a user or group, it cannot ever be used again to identify another user or group. For more information about SIDs, see Security identifiers.
Account Name [Type = UnicodeString]: the name of the account that requested access to network share object.
Account Domain [Type = UnicodeString]: subject’s domain or computer name. Formats vary, and include the following:
Domain NETBIOS name example: CONTOSO
Lowercase full domain name: contoso.local
Uppercase full domain name: CONTOSO.LOCAL
For some well-known security principals, such as LOCAL SERVICE or ANONYMOUS LOGON, the value of this field is “NT AUTHORITY”.
For local user accounts, this field will contain the name of the computer or device that this account belongs to, for example: “Win81”.
Logon ID [Type = HexInt64]: hexadecimal value that can help you correlate this event with recent events that might contain the same Logon ID, for example, “4624: An account was successfully logged on.”
Network Information:
Object Type [Type = UnicodeString]: The type of an object that was accessed during the operation. Always “File” for this event.
The following table contains the list of the most common Object Types:
Directory | Event | Timer | Device |
---|---|---|---|
Mutant | Type | File | Token |
Thread | Section | WindowStation | DebugObject |
FilterCommunicationPort | EventPair | Driver | IoCompletion |
Controller | SymbolicLink | WmiGuid | Process |
Profile | Desktop | KeyedEvent | Adapter |
Key | WaitablePort | Callback | Semaphore |
Job | Port | FilterConnectionPort | ALPC Port |
- Windows 10
- Windows Server 2016
- Security ID [Type = SID]: SID of account that requested the “modify network share object” operation. Event Viewer automatically tries to resolve SIDs and show the account name. If the SID cannot be resolved, you will see the source data in the event.
Source Address [Type = UnicodeString]: source IP address from which access was performed.
IPv6 address or ::ffff:IPv4 address of a client.
::1 or 127.0.0.1 means localhost.
Source Port [Type = UnicodeString]: source TCP or UDP port which was used from remote or local machine to request the access.
Share Information:
Share Name [Type = UnicodeString]: the name of accessed network share. The format is: \\*\SHARE_NAME.
Share Path [Type = UnicodeString]: the full system (NTFS) path for accessed share. The format is: \\??\PATH. Can be empty, for example for Share Name: \\*\IPC$.
Access Request Information:
Access Mask [Type = HexInt32]: the sum of hexadecimal values of requested access rights. See “Table 13. File access codes.” for different hexadecimal values for access rights. Has always “0x1” value for this event.
Accesses [Type = UnicodeString]: the list of access rights which were requested by Subject\Security ID. These access rights depend on Object Type. Has always “ReadData (or ListDirectory)” value for this event.
Security Monitoring Recommendations
For 5140(S, F): A network share object was accessed.
If you have high-value computers for which you need to monitor all access to all shares or specific shares (“Share Name”), monitor this event. For example, you could monitor share C$ on domain controllers.
Monitor this event if the Network Information\Source Address is not from your internal IP range.
Monitor this event if the Network Information\Source Address should not be able to connect with the specific computer (Computer:).
If you need to monitor access attempts to local shares from a specific IP address (“Network Information\Source Address”), use this event.
If you need to monitor for specific Access Types (for example, ReadData or WriteData), for all or specific shares (“Share Name”), monitor this event for the “Access Type.”
5143(S): A network share object was modified.
Applies to
Event Description:
This event generates every time network share object was modified.
NoteВ В For recommendations, see Security Monitoring Recommendations for this event.
Event XML:
Required Server Roles: None.
Minimum OS Version: Windows Server 2008 R2, Windows 7.
Event Versions: 0.
Field Descriptions:
Subject:
NoteВ В A security identifier (SID) is a unique value of variable length used to identify a trustee (security principal). Each account has a unique SID that is issued by an authority, such as an Active Directory domain controller, and stored in a security database. Each time a user logs on, the system retrieves the SID for that user from the database and places it in the access token for that user. The system uses the SID in the access token to identify the user in all subsequent interactions with Windows security. When a SID has been used as the unique identifier for a user or group, it cannot ever be used again to identify another user or group. For more information about SIDs, see Security identifiers.
Account Name [Type = UnicodeString]: the name of the account that requested the “modify network share object” operation.
Account Domain [Type = UnicodeString]: subject’s domain or computer name. Formats vary, and include the following:
Domain NETBIOS name example: CONTOSO
Lowercase full domain name: contoso.local
Uppercase full domain name: CONTOSO.LOCAL
For some well-known security principals, such as LOCAL SERVICE or ANONYMOUS LOGON, the value of this field is “NT AUTHORITY”.
For local user accounts, this field will contain the name of the computer or device that this account belongs to, for example: “Win81”.
Logon ID [Type = HexInt64]: hexadecimal value that can help you correlate this event with recent events that might contain the same Logon ID, for example, “4624: An account was successfully logged on.”
Share Information:
Object Type [Type = UnicodeString]: The type of an object that was modified. Always “Directory” for this event.
The following table contains the list of the most common Object Types:
Directory | Event | Timer | Device |
---|---|---|---|
Mutant | Type | File | Token |
Thread | Section | WindowStation | DebugObject |
FilterCommunicationPort | EventPair | Driver | IoCompletion |
Controller | SymbolicLink | WmiGuid | Process |
Profile | Desktop | KeyedEvent | Adapter |
Key | WaitablePort | Callback | Semaphore |
Job | Port | FilterConnectionPort | ALPC Port |
Share Name [Type = UnicodeString]: the name of the modified share object. The format is: \\*\SHARE_NAME
Share Path [Type = UnicodeString]: the full system (NTFS) path for the added share object. The format is: \\??\PATH. Can be empty, for example for Share Name: \\*\IPC$.
Old Remark [Type = UnicodeString]: the old value of network share “Comments:” field. Has “N/A” value if it is not set.
New Remark [Type = UnicodeString]: the new value of network share “Comments:” field. Has “N/A” value if it is not set.
Old MaxUsers [Type = HexInt32]: old hexadecimal value of “Limit the number of simultaneous user to:” field. Has “0xFFFFFFFF” value if the number of connections is unlimited.
New Maxusers [Type = HexInt32]: new hexadecimal value of “Limit the number of simultaneous user to:” field. Has “0xFFFFFFFF” value if the number of connections is unlimited.
Old ShareFlags [Type = HexInt32]: old hexadecimal value of “Offline Settings” caching settings window flags.
- O: = Owner. SID of specific security principal, or reserved (pre-defined) value, for example: BA (BUILTIN_ADMINISTRATORS), WD (Everyone), SY (LOCAL_SYSTEM), etc. See the list of possible values in the table below:
- G: = Primary Group.
- D: = DACL Entries.
- S: = SACL Entries.
- rights: A hexadecimal string which denotes the access mask or reserved value, for example: FA (File All Access), FX (File Execute), FW (File Write), etc.
- object_guid: N/A
- inherit_object_guid: N/A
- account_sid: SID of specific security principal, or reserved value, for example: AN (Anonymous), WD (Everyone), SY (LOCAL_SYSTEM), etc. See the table above for more details.
New ShareFlags [Type = HexInt32]: new hexadecimal value of “Offline Settings” caching settings window flags.
Old SD [Type = UnicodeString]: the old Security Descriptor Definition Language (SDDL) value for network share security descriptor.
New SD [Type = UnicodeString]: the new Security Descriptor Definition Language (SDDL) value for network share security descriptor.
NoteВ В The Security Descriptor Definition Language (SDDL) defines string elements for enumerating information contained in the security descriptor.
Value | Description | Value | Description |
---|---|---|---|
«AO» | Account operators | «PA» | Group Policy administrators |
«RU» | Alias to allow previous Windows 2000 | «IU» | Interactively logged-on user |
«AN» | Anonymous logon | «LA» | Local administrator |
«AU» | Authenticated users | «LG» | Local guest |
«BA» | Built-in administrators | «LS» | Local service account |
«BG» | Built-in guests | «SY» | Local system |
«BO» | Backup operators | «NU» | Network logon user |
«BU» | Built-in users | «NO» | Network configuration operators |
«CA» | Certificate server administrators | «NS» | Network service account |
«CG» | Creator group | «PO» | Printer operators |
«CO» | Creator owner | «PS» | Personal self |
«DA» | Domain administrators | «PU» | Power users |
«DC» | Domain computers | «RS» | RAS servers group |
«DD» | Domain controllers | «RD» | Terminal server users |
«DG» | Domain guests | «RE» | Replicator |
«DU» | Domain users | «RC» | Restricted code |
«EA» | Enterprise administrators | «SA» | Schema administrators |
«ED» | Enterprise domain controllers | «SO» | Server operators |
«WD» | Everyone | «SU» | Service logon user |
DACL/SACL entry format: entry_type:inheritance_flags(ace_type;ace_flags;rights;object_guid;inherit_object_guid;account_sid)
«P” — SDDL_PROTECTED, Inheritance from containers that are higher in the folder hierarchy are blocked.
«AI» — SDDL_AUTO_INHERITED, Inheritance is allowed, assuming that «P» Is not also set.
«AR» — SDDL_AUTO_INHERIT_REQ, Child objects inherit permissions from this object.
«A» — ACCESS ALLOWED
«D» — ACCESS DENIED
«OA» — OBJECT ACCESS ALLOWED: only applies to a subset of the object(s).
«OD» — OBJECT ACCESS DENIED: only applies to a subset of the object(s).
«AU» — SYSTEM AUDIT
«A» — SYSTEM ALARM
«OU» — OBJECT SYSTEM AUDIT
«OL» — OBJECT SYSTEM ALARM
«CI» — CONTAINER INHERIT: Child objects that are containers, such as directories, inherit the ACE as an explicit ACE.
«OI» — OBJECT INHERIT: Child objects that are not containers inherit the ACE as an explicit ACE.
«NP» — NO PROPAGATE: only immediate children inherit this ace.
«IO» — INHERITANCE ONLY: ace doesn’t apply to this object, but may affect children via inheritance.
«ID» — ACE IS INHERITED
«SA» — SUCCESSFUL ACCESS AUDIT
«FA» — FAILED ACCESS AUDIT
Value | Description | Value | Description |
---|---|---|---|
Generic access rights | Directory service access rights | ||
«GA» | GENERIC ALL | «RC» | Read Permissions |
«GR» | GENERIC READ | «SD» | Delete |
«GW» | GENERIC WRITE | «WD» | Modify Permissions |
«GX» | GENERIC EXECUTE | «WO» | Modify Owner |
File access rights | «RP» | Read All Properties | |
«FA» | FILE ALL ACCESS | «WP» | Write All Properties |
«FR» | FILE GENERIC READ | «CC» | Create All Child Objects |
«FW» | FILE GENERIC WRITE | «DC» | Delete All Child Objects |
«FX» | FILE GENERIC EXECUTE | «LC» | List Contents |
Registry key access rights | «SW» | All Validated Writes | |
«KA» | «LO» | «LO» | List Object |
«K» | KEY READ | «DT» | Delete Subtree |
«KW» | KEY WRITE | «CR» | All Extended Rights |
«KX» | KEY EXECUTE |
Security Monitoring Recommendations
For 5143(S): A network share object was modified.