# Cis GCP Cos 1.1.5

> Ensure noexec option set on /tmp partition

- Skill: `cyberstrikeus/cis-gcp-cos-1-1-5` (Agent Skill)
- Install (CLI): `npx skillmds@latest add cyberstrikeus/cis-gcp-cos-1-1-5`
- Raw SKILL.md: https://api.skillmd.com/api/skills/cyberstrikeus/cis-gcp-cos-1-1-5/raw
- Safety review: PASS (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: DevOps & Infra
- Author: cyberstrikeus (https://skillmd.com/u/cyberstrikeus)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/cyberstrikeus/cis-gcp-cos-1-1-5

---


# 1.1.5 Ensure noexec option set on /tmp partition (Automated)

## Description

The `noexec` mount option specifies that the filesystem cannot contain executable binaries.

## Rationale

Since the `/tmp` filesystem is only intended for temporary file storage, set this option to ensure that users cannot run executable binaries from `/tmp`.

## Audit Procedure

Verify that the `noexec` option is set if a `/tmp` partition exists.
Run the following command and verify that nothing is returned:

```bash
# mount | grep -E '\s/tmp\s' | grep -v noexec
```

## Expected Result

The command should return no output, confirming that the `noexec` option is set on the `/tmp` partition.

## Remediation

Run the following command to remount `/tmp`:

```bash
# mount -o remount,noexec /tmp
```

**Note:** `/etc` is stateless on Container-Optimized OS. Therefore, `/etc` cannot be used to make these changes persistent across reboots. The steps mentioned above needs to be performed after every boot.

## CIS Controls

| Controls Version | Control                                                                                                                                                                                       | IG 1 | IG 2 | IG 3 |
| ---------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---- | ---- | ---- |
| v8               | 2.3 Address Unauthorized Software - Ensure that unauthorized software is either removed from use on enterprise assets or receives a documented exception. Review monthly, or more frequently. | x    | x    | x    |
| v7               | 2.6 Address unapproved software - Ensure that unauthorized software is either removed or the inventory is updated in a timely manner.                                                         | x    | x    | x    |

## Profile

Level 1 - Server | Automated

