def rule(event):
    if all(
        [
            any(
                [
                    event.deep_get("TargetFilename", default="").endswith(".AAA"),
                    event.deep_get("TargetFilename", default="").endswith(".ZZZ"),
                ]
            ),
            not event.deep_get("TargetFilename", default="").endswith(
                "\\Wireshark\\radius\\dictionary.alcatel-lucent.aaa"
            ),
        ]
    ):
        return True
    return False
