What does SecurityModeCommand do in 5G NR?

It commands the UE to activate the selected AS security algorithms for NR RRC signaling.

Who sends SecurityModeCommand?

The gNB sends SecurityModeCommand to the UE.

Is SecurityModeCommand an RRC or NAS message?

This page covers the NR RRC SecurityModeCommand defined in TS 38.331, not the NAS Security Mode Command from TS 24.501.

What is the most important IE in SecurityModeCommand?

securityConfigSMC, especially securityAlgorithmConfig, is the most important part because it tells the UE which algorithms to activate.

What comes after SecurityModeCommand?

A successful path leads to SecurityModeComplete, and later protected RRC signaling such as RRCReconfiguration.

Is SecurityModeCommand ciphered?

No. The message is integrity protected but not ciphered.

Why would SecurityModeCommand fail?

Typical reasons include integrity verification failure, unsupported or inconsistent algorithm handling, or broader security activation issues.