3.8 Restrict Core Dumps to Protected Directory

Information

The action described in this section creates a protected directory to store core dumps and also causes the system to create a log entry whenever a regular process dumps core.

Rationale:

Core dumps, particularly those from set-UID and set-GID processes, may contain sensitive data.

Solution

To implement the recommendation, run the following commands:

# chmod 700 /var/share/cores

# coreadm -g /var/share/cores/core_%n_%f_%u_%g_%t_%p
-e log -e global -e global-setid
-d process -d proc-setid

If the local site chooses, dumping of core files can be completely disabled with the following command:

# coreadm -d global -d global-setid -d process -d proc-setid

See Also

https://workbench.cisecurity.org/benchmarks/4777

Item Details

Category: MEDIA PROTECTION

References: 800-53|MP-6, CSCv7|13.2

Plugin: Unix

Control ID: 3cf55c44f516ba0f3a7fc36b8fb2273ab4ace1b8820bd12128ed7f2fc00d5118