Skip to content

Commit

Permalink
Select rules for ANSSI R37
Browse files Browse the repository at this point in the history
These rules are better fit for R37 than R38.
R37 is about binaries designed to be used with setuid or setgid bits.
R38 is about reducing number of binaries with setuid root.
  • Loading branch information
yuumasato committed Jan 19, 2021
1 parent 6013bc0 commit 76aede9
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions controls/anssi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -590,8 +590,17 @@ controls:

- id: R37
level: minimal
title: Executables with setuid and/or setgid bits
# rules: TBD
title: Executables with setuid and setgid bits
notes: >-
Only programs specifically designed to be used with setuid or setgid bits can have these privilege bits set.
This requirement considers apropriate for setuid and setgid bits the binaries that are installed from
recognized and authorized repositories (covered in R15).
The remediation resets the sticky bit to intended value by vendor/developer, any finding after remediation
should be reviewed.
automated: yes
rules:
- file_permissions_unauthorized_suid
- file_permissions_unauthorized_sgid

- id: R38
level: enhanced
Expand All @@ -600,9 +609,7 @@ controls:
Setuid executables should be as small as possible. When it is expected
that only the administrators of the machine execute them, the setuid bit
must be removed and prefer them commands like su or sudo, which can be monitored
rules:
- file_permissions_unauthorized_suid
- file_permissions_unauthorized_sgid
# rules: TBD

- id: R39
level: intermediary
Expand Down

0 comments on commit 76aede9

Please sign in to comment.