def rule(event):
    if all(
        [
            any(
                [
                    "%%4417" in event.deep_get("AccessList", default=""),
                    "%%4418" in event.deep_get("AccessList", default=""),
                ]
            ),
            event.deep_get("EventID", default="") in [4656, 4663],
            "\\Microsoft\\Windows Defender\\Exclusions\\"
            in event.deep_get("ObjectName", default=""),
        ]
    ):
        return True
    return False
