Last active
June 4, 2021 16:38
-
-
Save scudette/994ea2012ee64fd8863d2546e407d689 to your computer and use it in GitHub Desktop.
Artifact to check for GDPR Compliance
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Custom.GDPRCheck | |
| parameters: | |
| - name: Rules | |
| type: csv | |
| default: | | |
| id,Key,Value,ExpectedValue,Title | |
| 14503,HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Lsa,LimitBlankPasswordUse,1,"Ensure 'Accounts: Limit local account use of blank passwords to console logon only' is set to 'Enabled'" | |
| 14503,HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Print\Providers\LanMan Print Services\Servers,AddPrinterDrivers,1,"Ensure 'Devices: Prevent users from installing printer drivers' is set to 'Enabled'" | |
| sources: | |
| - precondition: | |
| SELECT OS From info() where OS = 'windows' | |
| query: | | |
| SELECT *, ActualValue = ExpectedValue AS OK FROM foreach(row=Rules, | |
| query={ | |
| SELECT id, get(field=Value) AS ActualValue, ExpectedValue, Title | |
| FROM read_reg_key(globs=Key) | |
| }) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment