Skip to content

Instantly share code, notes, and snippets.

@scudette
Last active June 4, 2021 16:38
Show Gist options
  • Select an option

  • Save scudette/994ea2012ee64fd8863d2546e407d689 to your computer and use it in GitHub Desktop.

Select an option

Save scudette/994ea2012ee64fd8863d2546e407d689 to your computer and use it in GitHub Desktop.
Artifact to check for GDPR Compliance
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