cng.sys

Cryptography Next Generation System Driver

System DriverSafeSecurity/Crypto
CPU Usage
0-3%
Memory
5-20 MB
Location
C:\Windows\System32\drivers
Publisher
Microsoft

Quick Answer

cng.sys is a legitimate Windows cryptography driver. It runs as part of the Cryptography API: Next Generation to support secure operations and key management.

Is it a Virus?
✔ NO - Safe
Must be in C:\Windows\System32\drivers\cng.sys
Warning
Kernel driver, expected
Core kernel component; multiple threads may load during cryptographic operations
Can I Disable?
✔ NO
Disabling is not recommended and can destabilize security features

What is cng.sys?

cng.sys is the Windows Cryptography Next Generation system driver responsible for providing cryptographic services. It operates in kernel space to support secure keys, RNG, and crypto providers across Windows components and applications. It also interacts with TPM hardware when available and coordinates with OS security features to protect data in transit and at rest.

cng.sys implements the Cryptography API: Next Generation provider interfaces in kernel space, enabling Windows services to perform encryption, decryption, and key management efficiently. It coordinates with TPM and software providers, ensuring secure cryptographic operations across the OS.

Quick Fact: The CNG driver supports hardware-backed keys via TPM on supported hardware.

Types of cng.sys Processes

Is cng.sys Safe?

Yes, cng.sys is safe when it's the legitimate file from Microsoft downloaded with Windows updates.

Is cng.sys a Virus or Malware?

The real cng.sys is NOT a virus. Malware may impersonate system drivers; always verify location and signature.

How to Tell if cng.sys is Legitimate or Malware

  1. File Location: Must be in C:\Windows\System32\drivers\cng.sys. Any other path is suspicious.
  2. Digital Signature: Right-click cng.sys in File Explorer -> Properties -> Digital Signatures. Should show a Microsoft signature.
  3. Resource Usage: Kernel drivers typically use minimal user-mode CPU; check via System Information or PerfMon for anomalies.
  4. Behavior: Should be loaded by the OS during boot and participate in cryptographic operations; unexpected frequent load may indicate tampering.

Red Flags: If cng.sys is located outside System32\drivers, lacks a valid signature, or triggers frequent crashes, run System File Checker (sfc /scannow) and DISM (DISM /Online /Cleanup-Image /RestoreHealth).

Why Is cng.sys Running on My PC?

cng.sys runs as part of Windows cryptography infrastructure to enable secure operations across the OS and apps, including TLS, code signing, and DPAPI.

Reasons it's running:

Can I Disable or Remove cng.sys?

No, you should not disable cng.sys. It is a core OS driver required for cryptographic functionality and system security.

How to Stop cng.sys

How to Reset Windows Crypto Services

Common Problems: Cryptography Driver Issues

If cng.sys is behaving unexpectedly, refer to these common crypto-driver problems and fixes.

Common Causes & Solutions

Quick Fixes:
1. Run sfc /scannow and DISM to repair system integrity
2. Check Windows Update status and install all updates
3. Run Windows Defender or your antivirus full scan
4. Review Event Viewer for crypto-related errors
5. Ensure TPM is enabled and firmware is up to date

Frequently Asked Questions

Is cng.sys a virus?

No, the legitimate cng.sys from Microsoft is a kernel driver used for cryptographic services. Verify location: C:\Windows\System32\drivers\cng.sys with a valid signature.

Why is cng.sys using system resources?

As a kernel driver, it operates in response to cryptographic requests from Windows components and apps. Normal usage is typically low; spikes may indicate legitimate activity or issues with crypto providers.

Can I disable cng.sys to improve performance?

No. Disabling a core cryptography driver can break security features. Instead, investigate specific cryptographic workloads or update drivers and Windows.

How do I verify cng.sys integrity?

Check its path (C:\Windows\System32\drivers\cng.sys), verify digital signature from Microsoft, and optionally compute sha256 with certutil -hashfile.

Where is cng.sys located?

C:\Windows\System32\drivers\cng.sys is the standard location. If found elsewhere, it may be malware.

What should I do if cng.sys crashes?

Collect event logs, run sfc /scannow, update Windows, and consider a repair install if crashes persist.

Related Processes