Skip to content
This repository was archived by the owner on Feb 14, 2022. It is now read-only.

Commit 25cb197

Browse files
author
Maximilian Hertstein
committed
Update password generation in hardening-linux-server
The algorithm used to generate passwords was based on the date function This function is a unreliable source for passsword-generation as the out- put is predictable. We have replaced the function with one that is based on /dev/urandom. This leds to better and more secure passwords.
1 parent 0f9649f commit 25cb197

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,10 @@ The roles are tested for hardening of the following Linux versions:
9898
- **Ansible (Linux)**: Change for IPTables requirements (Req-46 to 49) for IPv6 support.
9999
- **Ansible (SSH)**: Added new requirement (Req-6) to configure host key algorithms.
100100

101+
### v1.2.1 (07.08.2020)
102+
103+
- **Security Vulnerability (Linux)**: Fixed an issue where passwords generated by our scripts were weak and guessable.
104+
101105
## References
102106

103107
Telekom Security - Security Requirements:

hardening-linux-server/tasks/linux(01)basic-hardening.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -633,7 +633,7 @@
633633
- os_config_root_password
634634

635635
- name: req-024.2 generate a secret root password
636-
shell: date +%s | sha256sum | base64 | head -c 20
636+
shell: cat /dev/urandom | tr -dc '[:graph:]' | head -c20
637637
register: root_password
638638
changed_when: false
639639
when:

0 commit comments

Comments
 (0)