acsc_e8_office_hardening
: A module which enforces https://github.com/benjamin-robertson/acsc_e8_office_hardening/blob/main/PROTECT%20-%20Microsoft%20Office%20Macro%20Sacsc_e8_office_hardening::clear_unused_registry_values
: Private classacsc_e8_office_hardening::disable_flash
: Private classacsc_e8_office_hardening::macros
: Private classacsc_e8_office_hardening::mount_default_user_hive
: Private classacsc_e8_office_hardening::trusted_locations
: Private classacsc_e8_office_hardening::unmount_default_user_hive
: Private class
acsc_e8_office_hardening::delete_trusted_location
: Private typeacsc_e8_office_hardening::delete_user_registry_value
: Private typeacsc_e8_office_hardening::set_trusted_location
: Private typeacsc_e8_office_hardening::user_registry_value
: Private type
A module which enforces https://github.com/benjamin-robertson/acsc_e8_office_hardening/blob/main/PROTECT%20-%20Microsoft%20Office%20Macro%20Security%20(October%202021).pdf
lint:ignore:140chars
include acsc_e8_office_hardening
The following parameters are available in the acsc_e8_office_hardening
class:
Data type: Boolean
Disable flash content. Default: false
Default value: false
Data type: Boolean
Disable macros, Default: true
Default value: true
Data type: Integer
Set the interval to set the default ntuser macro settings in hours. Default: 1
Default value: 24
Data type: Enum['all_macros_disabled','macros_from_trusted_locations','signed_macros_only','clear_macro_settings']
Macro settings to enforce, for details see ACSC publication. Default: clear_macro_settings
Default value: 'clear_macro_settings'
Data type: Variant[Undef,Hash[String,Hash,1,20]]
Set trusted location. See example in readme. Default: undef
Default value: undef
Clear unused registry values when switching between office macro modes
class { 'acsc_e8_office_hardening::clear_unused_registry_values':
system_setting => $facts['office_macro_last_run'],
configured_setting => $macro_setting,
}
The following parameters are available in the acsc_e8_office_hardening::clear_unused_registry_values
class:
Data type: String
Current system macro setting
Data type: String
Configured system macro setting
Disables flash within office
include acsc_e8_office_hardening::disable_flash
The following parameters are available in the acsc_e8_office_hardening::disable_flash
class:
Data type: Hash
registry values to set
Configured office macro settings for office. Private class
include acsc_e8_office_hardening::macros
The following parameters are available in the acsc_e8_office_hardening::macros
class:
Data type: String
set office macro setting
Default value: 'clear_macro_settings'
Mounts the default user ntuser.dat file located under c:\user\default\ntuser.dat Mounts under HKU\user_default Private class
include acsc_e8_office_hardening::mount_default_user_hive
Creates trusted locations for office Private class
include acsc_e8_office_hardening::trusted_locations
The following parameters are available in the acsc_e8_office_hardening::trusted_locations
class:
Data type: Hash
Hash of trusted locations. See readme for example
Mounts the default user ntuser.dat file located under c:\user\default\ntuser.dat Mounts under HKU\user_default Private class
include acsc_e8_office_hardening::unmount_default_user_hive
Delete trusted location if unmanaged by Pupppet We handle up to 20 custom locations
acsc_e8_office_hardening::delete_trusted_location { "location${delelete_index}":}
Defined type which deletes registry value for each HKEY_CURRENT_USER on a machine.
acsc_e8_office_hardening::user_registry_value { 'key_name': }
The following parameters are available in the acsc_e8_office_hardening::delete_user_registry_value
defined type:
Data type: String
key name to delete
Creates trusted location for office files. This must be used in conjuntion with the macros_from_trusted_locations option. Otherwise it will have affect.
acsc_e8_office_hardening::set_trusted_location { 'namevar': }
The following parameters are available in the acsc_e8_office_hardening::set_trusted_location
defined type:
Data type: String
File path to permit
Data type: Optional[Variant[String,Undef]]
Date set. Default: undef
Default value: undef
Data type: Optional[Variant[String,Undef]]
Description of path. Default: undef
Default value: undef
Data type: Boolean
Permit sub directory under that path. Default: false
Default value: false
Defined type which sets registry value for each HKEY_CURRENT_USER on a machine.
acsc_e8_office_hardening::user_registry_value { 'namevar': }
The following parameters are available in the acsc_e8_office_hardening::user_registry_value
defined type:
Data type: String
key name
Data type: Hash
Key details, hash containing value, type and data for registry value