Windows API reference
CryptEncrypt
Encrypts data with a symmetric key, the workhorse of file encryption.
- Library
- Advapi32.dll
- Category
- Crypto, Ransomware
- Suspicion
- high
- MITRE ATT&CK
- T1486 Data Encrypted for Impact
Detection summary
No reviewed Sysmon/ETW event identifies CryptEncrypt; ransomware behavior must be inferred from file and process effects.
- Sysmon: No Sysmon event mapped
- ETW: No ETW provider mapped
- Notes: Correlate EDR crypto API telemetry with Sysmon 11 file writes, rapid renames and extension changes, and ransom-note or backup-tampering behavior. The API is also common in benign software, so never treat it as a verdict.
Sources and documentation
- Microsoft Learn documentation (direct documentation)
- MITRE ATT&CK T1486: Data Encrypted for Impact
- Microsoft Sysmon events
Last reviewed: . Page metadata generated .
Legitimate use
Browsers, VPNs, messengers, installers, password managers and games.
Related APIs
- CryptDecrypt — Advapi32.dll
- CryptGenKey — Advapi32.dll