# Cis Ubuntu1204 V110 11 2

> Remove OS Information from Login Warning Banners

- Skill: `cyberstrikeus/cis-ubuntu1204-v110-11-2` (Agent Skill)
- Install (CLI): `npx skillmds@latest add cyberstrikeus/cis-ubuntu1204-v110-11-2`
- Raw SKILL.md: https://api.skillmd.com/api/skills/cyberstrikeus/cis-ubuntu1204-v110-11-2/raw
- Safety review: PASS (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: cyberstrikeus (https://skillmd.com/u/cyberstrikeus)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/cyberstrikeus/cis-ubuntu1204-v110-11-2

---


# 11.2 Remove OS Information from Login Warning Banners (Scored)

## Profile Applicability

- Level 1

## Description

Unix-based systems have typically displayed information about the OS release and patch level upon logging in to the system. This information can be useful to developers who are developing software for a particular OS platform. If `mingetty(8)` supports the following options, they display operating system information:

- `\m` - machine architecture (`uname -m`)
- `\r` - operating system release (`uname -r`)
- `\s` - operating system name
- `\v` - operating system version (`uname -v`)

## Rationale

Displaying OS and patch level information in login banners also has the side effect of providing detailed system information to attackers attempting to target specific exploits of a system. Authorized users can easily get this information by running the `uname -a` command once they have logged in.

## Audit Procedure

### Using Command Line

Perform the following commands to check if OS information is set to be displayed in the system login banners:

```bash
egrep '(\\v|\\r|\\m|\\s)' /etc/issue
egrep '(\\v|\\r|\\m|\\s)' /etc/motd
egrep '(\\v|\\r|\\m|\\s)' /etc/issue.net
```

## Expected Result

No output should be returned from any of the commands, indicating that no OS information escape sequences are present in the banner files.

## Remediation

### Using Command Line

Edit the `/etc/motd`, `/etc/issue` and `/etc/issue.net` files and remove any lines containing `\m`, `\r`, `\s` or `\v`.

## Default Value

The default Ubuntu banner files may contain OS information escape sequences.

## References

- CIS Ubuntu 12.04 LTS Server Benchmark v1.1.0

## Profile

Level 1 - Scored

