def rule(event):
    if all(
        [
            "\\SOFTWARE\\Policies\\Microsoft\\Windows\\System"
            in event.deep_get("ScriptBlockText", default=""),
            any(
                [
                    "GroupPolicyRefreshTimeDC" in event.deep_get("ScriptBlockText", default=""),
                    "GroupPolicyRefreshTimeOffsetDC"
                    in event.deep_get("ScriptBlockText", default=""),
                    "GroupPolicyRefreshTime" in event.deep_get("ScriptBlockText", default=""),
                    "GroupPolicyRefreshTimeOffset" in event.deep_get("ScriptBlockText", default=""),
                    "EnableSmartScreen" in event.deep_get("ScriptBlockText", default=""),
                    "ShellSmartScreenLevel" in event.deep_get("ScriptBlockText", default=""),
                ]
            ),
        ]
    ):
        return True
    return False
