Windows API reference
NetShareAdd
Creates or modifies an SMB share.
- Library
- Netapi32.dll
- Category
- Lateral Movement, Persistence
- Suspicion
- high
- MITRE ATT&CK
- Not mapped
Detection summary
NetShareAdd is not directly logged; monitor share configuration changes and subsequent SMB access instead.
- Sysmon: No Sysmon event mapped
- ETW: No ETW provider mapped
- Notes: Correlate Sysmon 12/13 registry changes for LanmanServer share configuration with Sysmon 3 and 17/18 access events. Use EDR API telemetry for the call and treat the import as context.
Sources and documentation
- Microsoft Learn documentation (direct documentation)
- Microsoft Sysmon events
Last reviewed: . Page metadata generated .
Legitimate use
IT administration, backup, deployment and monitoring tools.
Related APIs
- NetShareEnum — Netapi32.dll
- NetShareDel — Netapi32.dll