Multiple choice technology security

Which are the default codecs supported to help encode characters to be safely used on OS command shells

  1. Unix Codec

  2. Windows Codec

  3. Unix and Windows Codec

  4. Linux Codec

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

The security API provides codecs for both Unix and Windows command shells to ensure proper character encoding across different operating systems. This cross-platform support allows developers to safely encode shell commands regardless of the deployment environment. Option A and B are incomplete, while Linux is typically covered under Unix codecs.

AI explanation

Command injection defenses need shell-specific escaping because Unix shells and Windows shells treat different characters as special (e.g. backslashes, quotes, &, |). This API therefore ships a codec for each target shell rather than a single generic one, so safely encoding a value for "OS command shells" in general requires both the Unix and Windows codecs.