> For the complete documentation index, see [llms.txt](https://ispectra.gitbook.io/mutamad/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://ispectra.gitbook.io/mutamad/compliance/nca-ecc.md). Agents can also search and read this documentation through its [MCP server](https://ispectra.gitbook.io/mutamad/~gitbook/mcp).

# NCA controls

NCA ECC-2:2024 and DCC-1:2022 controls, the projects that implement them, and how each is checked.

Control numbers follow NCA's published **ECC-2:2024**. The *Checks* column counts the `mutamad-verify` checks tagged with that control.

## Essential Cybersecurity Controls (ECC-2:2024)

### 2-2 Identity and Access Management

| Control | What Mutamad does                                                                                                                                                                                                      | Project                                                                       | Checks |
| ------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ------ |
| 2-2     | Three job roles; registration closed; role delegation without the administrator role                                                                                                                                   | `mutamad_roles`, `mutamad_security`                                           | 10     |
| 2-2-3   | Password policies per role; lockout; 15-minute idle logout; session cookie ends with the browser, 12-hour limit, strict IDs; account protection (User Protect)                                                         | `mutamad_security`, `mutamad_admin`, project template                         | 21     |
| 2-2-3-1 | User identification: named accounts, created only by the App Admin or administrator                                                                                                                                    | `mutamad_security`                                                            | 4      |
| 2-2-3-2 | Multi-factor authentication (authenticator app, recovery codes) required for every staff role: editors, reviewers, App Admins and administrators                                                                       | `mutamad_crypto`                                                              | 8      |
| 2-2-3-3 | **Segregation of duties and least privilege**: an editor never publishes; Canvas changes and translations published by a reviewer; optional second-reviewer rule; developer pages and update tools kept from job roles | `mutamad_workflow`, `mutamad_canvas_controls`, content types, `mutamad_admin` | 31     |

### 2-5 Networks Security Management

| Control | What Mutamad does                                                                        | Project                    | Checks |
| ------- | ---------------------------------------------------------------------------------------- | -------------------------- | ------ |
| 2-5-3-3 | No outbound feeds from a government network: Drupal news and announcements feeds removed | `mutamad`, `mutamad_admin` | 1      |

### 2-7 Data and Information Protection

| Control | What Mutamad does                                                                                                           | Project                              | Checks |
| ------- | --------------------------------------------------------------------------------------------------------------------------- | ------------------------------------ | ------ |
| 2-7-2   | Private files outside the web root, private by default; a private file cannot be downloaded anonymously (checked over HTTP) | project template, `mutamad_security` | 5      |

### 2-8 Cryptography

| Control | What Mutamad does                                                                                                                                             | Project          | Checks |
| ------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------- | ------ |
| 2-8-3-2 | Keys generated per site, 256 bits, outside the database and web root; AES-256 (Real AES); keys managed by the administrator only; salt outside the repository | `mutamad_crypto` | 5      |

### 2-10 Vulnerabilities Management

| Control      | What Mutamad does                                                                                                                             | Project                                              | Checks |
| ------------ | --------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------- | ------ |
| 2-10, 2-10-3 | Security updates checked by cron; update tools for the emergency administrator only; no unattended updates; PHP floor; `composer audit` in CI | `mutamad_admin`, `mutamad_logging`, project template | 6      |

### 2-12 Event Logs and Monitoring Management

| Control  | What Mutamad does                                                                                                    | Project                                                | Checks |
| -------- | -------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------ | ------ |
| 2-12     | Admin audit trail; workflow audit trail; revisions; database log restricted to the App Admin; scheduled-task history | `mutamad_admin`, `mutamad_workflow`, `mutamad_logging` | 7      |
| 2-12-3-3 | Every log entry to syslog as JSON (`LOCAL0`, `mutamad`) for the SIEM                                                 | `mutamad_logging`, project template                    | 4      |
| 2-12-3-5 | Log retention: 100,000 database entries; the SIEM's copy is the record                                               | `mutamad_logging`                                      | 1      |

### 2-15 Web Application Security

| Control  | What Mutamad does                                                                                                                                                                                                                                                                                                     | Project                                                                 | Checks |
| -------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------- | ------ |
| 2-15     | Content Security Policy with documented exceptions; framing, referrer and permissions policies; origin check; errors hidden; `X-Powered-By` removed; `update.php` closed; trusted hosts; anti-automation; username enumeration prevented; Fast 404; security.txt; filtered rich text, Full HTML for the administrator | `mutamad_security`, `mutamad_editor`, `mutamad_forms`, project template | 34     |
| 2-15-3-3 | HSTS                                                                                                                                                                                                                                                                                                                  | `mutamad_security`                                                      | 1      |

## Data Cybersecurity Controls (DCC-1:2022)

| Control                  | What Mutamad does                                                                        | Status          | Checks |
| ------------------------ | ---------------------------------------------------------------------------------------- | --------------- | ------ |
| 1-2 Data classification  | Design ready; not in 1.0                                                                 | **Not claimed** | 1      |
| 6-2 Secure data disposal | Trash: deleted items kept until purged by the App Admin only; never purged automatically | Provided        | 4      |

## How to read a check

Each check prints its label with its tag. For example:

```
  Cryptography and MFA (mutamad_crypto)
    ✓ ECC 2-2-3-2 MFA on
    ✓ ECC 2-2-3-2 MFA uses an authenticator app
    ✓ ECC 2-2-3-2 MFA required for every staff role
```

To see every check for one control:

```bash
ddev mutamad-verify | grep "2-2-3-3"
```

{% hint style="info" %}
The official compliance matrix (BRD requirement by requirement) is maintained with the project. Ask iSpectra for the current version.
{% endhint %}
