File: security.md

package info (click to toggle)
mir 2.25.2-2
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 22,080 kB
  • sloc: cpp: 192,777; xml: 13,784; ansic: 8,207; python: 1,304; sh: 794; makefile: 258
file content (46 lines) | stat: -rw-r--r-- 1,730 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# Security

This document aims to explore in depth the security considerations around Mir
based compositors.

## Threat model

Mir is a C++ library for building compositors, not a product itself. As such,
when discussing the threat model for Mir, it is useful to discuss it in terms
of an actual product that is built on Mir. With this in mind, we will define
the threat model of **Ubuntu Frame** in this document.

### Ubuntu Frame threat model diagram

Ubuntu Frame is published as a snap. As such, the threat model for frame assumes
that the snap is secure, and proceeds to outline the frame snap's interactions
with the outside world.

**Diagram**: A flowchart depicting the security barriers between components in Ubuntu Frame.

```{mermaid} ubuntu_frame_threat_model.mmd
```

(security-event-logging)=

## Security event logging

The following events will be logged to standard error in [the OWASP format](https://github.com/OWASP/CheatSheetSeries/blob/master/cheatsheets/Logging_Vocabulary_Cheat_Sheet.md):

- `sys_startup` on startup:
  ```json
  {"datetime": "YYYY-MM-DDThh:mm:ssZ", "appid": "<program>", "event": "sys_startup", "level": "WARN", "description": "Mir is starting up" }
  ```
- `sys_shutdown` on shutdown:
  ```json
  {"datetime": "YYYY-MM-DDThh:mm:ssZ", "appid": "<program>", "event": "sys_shutdown", "level": "WARN", "description": "Mir is shutting down" }
  ```
- `sys_crash` on unhandled error or fatal signal received:
  ```json
  {"datetime": "YYYY-MM-DDThh:mm:ssZ", "appid": "<program>", "event": "sys_crash", "level": "WARN", "description": "Fatal signal received" }
  ```

## Cryptography

There is no cryptography used in Mir, no direct dependency on en/decryption,
hashing or digital signatures.