def rule(event):
    if all(
        [
            event.deep_get("TargetFilename", default="").startswith(
                "C:\\Windows\\System32\\spool\\drivers\\color\\"
            ),
            any(
                [
                    event.deep_get("TargetFilename", default="").endswith(".dll"),
                    event.deep_get("TargetFilename", default="").endswith(".exe"),
                    event.deep_get("TargetFilename", default="").endswith(".sys"),
                ]
            ),
        ]
    ):
        return True
    return False
