File tree Expand file tree Collapse file tree 3 files changed +46
-0
lines changed Expand file tree Collapse file tree 3 files changed +46
-0
lines changed Original file line number Diff line number Diff line change @@ -1199,6 +1199,7 @@ See :ref:`setting_configuration_values` for detailed documentation on setting
1199
1199
Kconfig configuration values. The :ref: `initial-conf ` section on the same page
1200
1200
explains how the initial configuration is derived. See
1201
1201
:ref: `configuration_options ` for a complete list of configuration options.
1202
+ See :ref: `hardening ` for security information related with Kconfig options.
1202
1203
1203
1204
The other pages in the :ref: `Kconfig section of the manual <kconfig >` are also
1204
1205
worth going through, especially if you planning to add new configuration
Original file line number Diff line number Diff line change
1
+ .. _hardening :
2
+
3
+ Hardening Tool
4
+ ##############
5
+
6
+ Zephyr contains several optional features that make the overall system
7
+ more secure. As we take advantage of hardware features, many of these
8
+ options are platform specific and besides it, some of them are unknown
9
+ by developers.
10
+
11
+ To address this problem, Zephyr provides a tool that helps to check an
12
+ application configuration option list against a list of hardening
13
+ preferences defined by the **Security Group **. The tool can identify the build
14
+ target and based on that provides suggestions and recommendations on how to
15
+ optimize the configuration for security.
16
+
17
+ Usage
18
+ *****
19
+
20
+ After configure of your application, change directory to the build folder and:
21
+
22
+ .. code-block :: console
23
+
24
+ # ninja build system:
25
+ $ ninja hardenconfig
26
+ # make build system:
27
+ $ make hardenconfig
28
+
29
+ The output should be similar to the one bellow:
30
+
31
+ .. code-block :: console
32
+
33
+
34
+ name | current | recommended || check result
35
+ ===================================================================================================================
36
+ CONFIG_HW_STACK_PROTECTION | n | y || FAIL
37
+ CONFIG_BOOT_BANNER | y | n || FAIL
38
+ CONFIG_PRINTK | y | n || FAIL
39
+ CONFIG_EARLY_CONSOLE | y | n || FAIL
40
+ CONFIG_OVERRIDE_FRAME_POINTER_DEFAULT | n | y || FAIL
41
+ CONFIG_DEBUG_INFO | y | n || FAIL
42
+ CONFIG_TEST_RANDOM_GENERATOR | y | n || FAIL
43
+ CONFIG_BUILD_OUTPUT_STRIPPED | n | y || FAIL
44
+ CONFIG_STACK_SENTINEL | n | y || FAIL
Original file line number Diff line number Diff line change @@ -13,3 +13,4 @@ for ensuring security is addressed within the Zephyr project.
13
13
security-overview.rst
14
14
secure-coding.rst
15
15
sensor-threat.rst
16
+ hardening-tool.rst
You can’t perform that action at this time.
0 commit comments