Commit graph

1615 commits

Author SHA1 Message Date
Paweł Krawczyk
66bd1f0aec
Add CVE-2021-33909 mitigations (#466)
* Add CVE-2021-33909 mitigations

kernel.unprivileged_bpf_disabled: 1
kernel.unprivileged_userns_clone: 0

The first one is also used by Tails.

Signed-off-by: Paweł Krawczyk <616047+kravietz@users.noreply.github.com>

* Clean up whitespaces

Signed-off-by: Paweł Krawczyk <616047+kravietz@users.noreply.github.com>
2021-07-22 16:32:41 +02:00
dev-sec CI
327b1a84c8 update changelog 2021-07-22 08:20:09 +00:00
Maik Stübner
714a34fa55
Allow configuration of password remember in pam (#467)
* Add Configuration of password remember
and set default to 60

see Telekom 2021.07-01 SoC 3.01 Req 25 and SoC 3.65 Req46

Signed-off-by: Maik Stuebner <Maik.Stuebner@t-systems.com>

* set default for password remember back to 5

Signed-off-by: Maik Stuebner <Maik.Stuebner@t-systems.com>

* readme default for password remember back to 5

Signed-off-by: Maik Stuebner <Maik.Stuebner@t-systems.com>
2021-07-22 10:18:01 +02:00
dev-sec CI
488441a7dc update changelog 2021-07-16 07:43:08 +00:00
Leo Gallucci
585f1dc227
Add SUB_UID_MIN/MAX/COUNT, SUB_GID_MIN/MAX/COUNT (#463)
* add SUB_UID_MIN/MAX/COUNT, SUB_GID_MIN/MAX/COUNT

Similar reason as #461

> If /etc/subuid exists, the commands useradd and newusers (unless the user already have subordinate user IDs)
> allocate SUB_UID_COUNT unused user IDs from the range SUB_UID_MIN to SUB_UID_MAX for each new user.
> The default values for SUB_UID_MIN, SUB_UID_MAX, SUB_UID_COUNT are respectively 100000, 600100000 and 65536.

Signed-off-by: Leo Gallucci <elgalu3@gmail.com>

* document SUB_UID_MIN/MAX/COUNT, etc

Signed-off-by: Leo Gallucci <elgalu3@gmail.com>
2021-07-16 09:41:37 +02:00
dev-sec CI
2c5cf45573 update changelog 2021-07-13 14:09:08 +00:00
schurzi
5618655ce5
Merge pull request #465 from dev-sec/rndmh3ro-patch-1
update metadata to include community.mysql deps
2021-07-13 16:07:27 +02:00
Sebastian Gumprich
da50f20860
update metadata to include community.mysql deps 2021-07-13 14:08:27 +02:00
dev-sec CI
c87ac4425c update changelog 2021-07-12 13:33:37 +00:00
Leo Gallucci
f92d193d3d
add os_auth_uid_max, os_auth_gid_max (#461)
Signed-off-by: Leo Gallucci <elgalu3@gmail.com>
2021-07-12 15:32:02 +02:00
dev-sec CI
a075af2f31 update galaxy.yml with new version 2021-07-08 11:35:18 +00:00
dev-sec CI
50f362602f update changelog 2021-07-01 09:26:58 +00:00
蚯蚓
27c6b93d04
add "when" statements in hardening.yml(#453) (#455)
* add "when" statements in hardening.yml(#453)

Signed-off-by: jqiuyin <943571574@qq.com>

* add "when" statements in hardening.yml(#453)

Signed-off-by: jqiuyin <943571574@qq.com>

* add "when" statements in hardening.yml(#453)

Signed-off-by: jqiuyin <943571574@qq.com>
2021-07-01 11:25:14 +02:00
dev-sec CI
e733906aec update changelog 2021-06-30 11:24:37 +00:00
Sebastian Gumprich
4ca4f09453
Cleanup old OS-support and simplify vars (#458)
* use os_family instead of distribution for debian systems

Signed-off-by: rndmh3ro <github@gumpri.ch>

* remove tasks related to rhel6 or debian 6

Signed-off-by: rndmh3ro <github@gumpri.ch>
2021-06-30 13:09:46 +02:00
Sebastian Gumprich
72ec118a6d
add rocky linux 8 tests and make sure that all relevant tasks are execd (#457)
* add rocky linux 8 tests and make sure that all relevant tasks are executed

Signed-off-by: rndmh3ro <github@gumpri.ch>

* fix missing quote

Signed-off-by: rndmh3ro <github@gumpri.ch>
2021-06-30 13:09:12 +02:00
dev-sec CI
2a43ad9cc6 update changelog 2021-06-30 09:06:30 +00:00
Sebastian Gumprich
9cefddd949
make sha rounds configurable and increase no of rounds (#452)
* make sha rounds configurable and increase no of rounds

Fixes #365

Signed-off-by: rndmh3ro <github@gumpri.ch>

* Prettified Code!

* make password rounds configurable in pam system-auth

Signed-off-by: rndmh3ro <github@gumpri.ch>

* change wording of sha rounds documentation

Co-authored-by: schurzi <Martin.Schurz@t-systems.com>

Co-authored-by: schurzi <Martin.Schurz@t-systems.com>
2021-06-30 10:41:59 +02:00
dev-sec CI
c769db4221 update changelog 2021-06-30 08:13:51 +00:00
Sherwin Daganato
350b5891d1
Add support for Rocky Linux 8 (#454)
Signed-off-by: Sherwin Daganato <sherwin@daganato.com>
2021-06-30 10:12:07 +02:00
dev-sec CI
d6cd67d908 update changelog 2021-06-29 11:10:34 +00:00
schurzi
29e10e5c3b
add tag always to os dependent vars task (#456)
when our collection is used with tags, the os dependent variables are
not resolved. This task should run every time, so the behaviour is
correct.

Signed-off-by: Martin Schurz <Martin.Schurz@t-systems.com>
2021-06-29 13:07:25 +02:00
dev-sec CI
d72db6037c update changelog 2021-06-23 09:29:55 +00:00
Colin Adler
8cbeeff501
Use include_tasks for os_hardening/main.yml (#451)
When `import_tasks` is used, the task `Fetch OS dependent variables`
always runs, even when excluded by an upstream tag.

When `Fetch OS dependent variables` runs while excluded via tags, it
will always fail with the following.

```
fatal: [alpha]: FAILED! => {"msg": "No file was found when using first_found. Use errors='ignore' to allow this task to be skipped if no files are found"}
```

This brings os_hardening's main.yml in line with ssh_hardening's
main.yml, which doesn't have this issue.

Signed-off-by: Colin Adler <colin@coder.com>
2021-06-23 11:28:08 +02:00
dev-sec CI
cf6b6e6562 update changelog 2021-05-26 18:15:40 +00:00
Sebastian Gumprich
41cd8485cb
enable ipv6 globally (#450)
Signed-off-by: Sebastian Gumprich <sebastian.gumprich@t-systems.com>
2021-05-26 20:13:45 +02:00
dev-sec CI
be2523e5fb update galaxy.yml with new version 2021-05-24 20:16:19 +00:00
dev-sec CI
c4ba0763ae update changelog 2021-05-24 19:14:00 +00:00
schurzi
2597854735
Merge pull request #449 from lduesing/enable_ipv6
Removed sysctl that tries to disable IPv6
2021-05-24 21:12:14 +02:00
Lars Düsing
0beeb3ee03 Removed sysctl that tries to disable IPv6. #416
Signed-off-by: Lars Düsing <lars@camelotsweb.de>
2021-05-24 13:33:38 +02:00
dev-sec CI
735c905f71 update changelog 2021-05-05 21:02:55 +00:00
schurzi
eb28ebe298
Merge pull request #448 from dev-sec/limit_labels
limit changelog labels to role names
2021-05-05 23:01:12 +02:00
Martin Schurz
8dbeae7b39 limit changelog labels to role names
Signed-off-by: Martin Schurz <Martin.Schurz@t-systems.com>
2021-05-05 22:53:20 +02:00
dev-sec CI
0ce08455ef update changelog 2021-05-05 19:08:21 +00:00
schurzi
66b0fa28e5
Merge pull request #446 from rndmh3ro/fixing
add back labels to changelog
2021-05-05 21:06:41 +02:00
rndmh3ro
07a0943c5a Prettified Code! 2021-04-30 12:50:12 +00:00
alimli
4f42e0d396
ssh_allow_tcp_forwarding remote option added (#447)
Signed-off-by: Haldun ALIMLI <haldun.alimli@upandrunning.cloud>

Co-authored-by: Haldun ALIMLI <haldun.alimli@upandrunning.cloud>
2021-04-30 14:49:42 +02:00
Sebastian Gumprich
45711874e6 test release workflow with labels
Signed-off-by: Sebastian Gumprich <sebastian.gumprich@t-systems.com>
2021-04-29 07:46:06 +02:00
dev-sec CI
e9f23f0eac update changelog 2021-04-28 08:37:30 +00:00
Iain R. Learmonth
93c489d3b2
Adds dependency on ansible.posix and community.general (#415)
* galaxy.yml: Adds dependency on ansible.posix (Fixes: #414)

This is required by the OS hardening role, which uses the mount module.

* add community.general dependency

Co-authored-by: Sebastian Gumprich <rndmh3ro@users.noreply.github.com>
2021-04-28 10:35:46 +02:00
dev-sec CI
180acf9540 update changelog 2021-04-28 07:53:52 +00:00
Martin Neubert
0324273dce
Check for MariaDB Version when selecting users without passwords (#444)
* added version check for MariaDB in Query

MariaDB Uses the authentication_string field since 10.4.0, added this in version check in query for users to delete

Signed-off-by: Martin Neubert <martin.neubert@t-systems.com>

* Update roles/mysql_hardening/tasks/mysql_secure_installation.yml

Co-authored-by: Sebastian Gumprich <rndmh3ro@users.noreply.github.com>

* Update roles/mysql_hardening/tasks/mysql_secure_installation.yml

Co-authored-by: Sebastian Gumprich <rndmh3ro@users.noreply.github.com>

Co-authored-by: Sebastian Gumprich <rndmh3ro@users.noreply.github.com>
2021-04-28 09:52:09 +02:00
dev-sec CI
22f1802d97 update galaxy.yml with new version 2021-04-27 19:27:03 +00:00
dev-sec CI
f9945c41de update changelog 2021-04-27 19:18:34 +00:00
Martin Neubert
284943b699
USER and HOST should be quoted (#443)
USER and HOST should be quoted to avoid errors in drop user statement

Signed-off-by: Martin Neubert <martin.neubert@t-systems.com>
2021-04-27 21:16:50 +02:00
Paul Seidler
b12ee4d23b
ssh: Client HostKeyAlgorithms configuration variable (#442)
* ssh: Client HostKeyAlgorithms configuration variable

Introduce a new variable ssh_client_host_key_algorithms to be able to configure
it for the client like for the server.
This fixes #441

Signed-off-by: Paul Seidler <705535+sepek@users.noreply.github.com>

* sshd: Adapt the ssh_host_key_algorithms description

Linking to the latest version may lead to a broken config so be a bit more
  dynamic

Signed-off-by: Paul Seidler <705535+sepek@users.noreply.github.com>
2021-04-23 15:54:30 +02:00
dev-sec CI
0f30ebf753 update changelog 2021-04-09 06:17:17 +00:00
Sina Tak Tehrani
4313d6fbfb
fixed a typo in comments (#439)
Signed-off-by: Sina Tak Tehrani <ssttehrani@gmail.com>
2021-04-09 08:15:11 +02:00
dev-sec CI
45f15aa08b update galaxy.yml with new version 2021-04-01 20:15:31 +00:00
dev-sec CI
07c2931f1d update changelog 2021-04-01 20:07:17 +00:00