Skip to main content


This Script is part of the Common Scripts Pack.#

Checks if the Docker container running this script has been hardened according to the recommended settings located here.

Script Data#

Script Typepython3
Cortex XSOAR Version5.0.0+


Argument NameDescription
memoryThe amount of memory to check. This is specified in bytes or append MB/GB for Mega/Giga bytes. The default is 1 GB.
memory_checkThe memory check type to perform: cgroup - check memory cgroup configuration, allocate - try allocating actual memory and verify that the allocation fails. Note the allocate test on some configurations may cause the container to be killed by the linux memory manager and the whole test will then time out.
pidsThe maximum number of PIDs to check.
fds_softThe soft file descriptor limit to check.
fds_hardThe hard file descriptor limit to check.
cpusThe number of CPUs limit to check.
network_checkThe network check to perform. cloud_metadata - check that access is blocked to cloud metadata server, host_machine - check that access is blocked to the host machine on the default gateway IP, all - perform all network tests.


There are no outputs for this script.


  • Network Host Check: The network host check only checks available access on the default gateway's IP using an https request to port 443. There still may be access available to the host network either on a different IP or port and this check will not detect it.