> 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/reference/projects/mutamad_security.md). Agents can also search and read this documentation through its [MCP server](https://ispectra.gitbook.io/mutamad/~gitbook/mcp).

# Mutamad Security

The security baseline of a Mutamad site: password policies, lockout, idle logout, security headers and a Content Security Policy.

{% hint style="info" %}
**Machine name:** `mutamad_security` · **Type:** General project · **In Mutamad:** Applied on every Mutamad site
{% endhint %}

The security baseline of a Mutamad site.

Accounts and login: password policies, account lockout, idle logout, no username enumeration, and a site administrator who assigns every job role but administrator.

The site: security headers and a Content Security Policy (Security Kit and Permissions-Policy), private uploads by default, no error output to visitors, anti-automation on login and public forms (ALTCHA, Honeypot, Antibot), flood unblocking and cheap 404s.

Aligned to NCA ECC-2:2024 2-2 and 2-15.

<figure><img src="https://171036656-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FQSekKpxOCXC1q6G2NRy9%2Fuploads%2Fgit-blob-97c1e37fdfbae348ae919341d9626213fcbb3f7b%2Flogin-en.jpg?alt=media" alt="The sign-in page, with ALTCHA spam protection that runs in the visitor&#x27;s browser."><figcaption><p>The sign-in page, with ALTCHA spam protection that runs in the visitor's browser.</p></figcaption></figure>

## Requirements

* Drupal 11.4
* [Mutamad Roles](https://www.drupal.org/project/mutamad_roles)
* [ALTCHA](https://www.drupal.org/project/altcha)
* [Antibot](https://www.drupal.org/project/antibot)
* [Automated Logout](https://www.drupal.org/project/autologout)
* [CAPTCHA](https://www.drupal.org/project/captcha)
* [Fast 404](https://www.drupal.org/project/fast_404)
* [Flood control](https://www.drupal.org/project/flood_control)
* [Honeypot](https://www.drupal.org/project/honeypot)
* [Login Security](https://www.drupal.org/project/login_security)
* [Password Policy](https://www.drupal.org/project/password_policy)
* [Permissions Policy](https://www.drupal.org/project/permissionspolicy)
* [Role Delegation](https://www.drupal.org/project/role_delegation)
* [Security Kit](https://www.drupal.org/project/seckit)
* [Username Enumeration Prevention](https://www.drupal.org/project/username_enumeration_prevention)
* a private file path

## Installation

Mutamad is in alpha. A site started from the [Mutamad project template](https://www.drupal.org/project/mutamad_project) is ready for it; on any other Drupal 11.4 site, allow alpha releases first:

```bash
composer config minimum-stability alpha
composer config prefer-stable true
```

Set a private file path in `settings.php` first, outside the web root: `$settings['file_private_path'] = '../private';`

```bash
composer require drupal/mutamad_security
drush recipe ../recipes/mutamad_security
```

## Links

* [Project page on drupal.org](https://www.drupal.org/project/mutamad_security)
* [README](https://git.drupalcode.org/project/mutamad_security/-/blob/1.0.x/README.md): every setting, and why
* [Changelog](https://git.drupalcode.org/project/mutamad_security/-/blob/1.0.x/CHANGELOG.md)
* [Issue queue](https://www.drupal.org/project/issues/mutamad_security)
