def rule(event):
    if all(
        [
            event.deep_get("EventID", default="") == 4663,
            any(
                [
                    "\\Microsoft\\Teams\\Cookies" in event.deep_get("ObjectName", default=""),
                    "\\Microsoft\\Teams\\Local Storage\\leveldb"
                    in event.deep_get("ObjectName", default=""),
                ]
            ),
            not "\\Microsoft\\Teams\\current\\Teams.exe"
            in event.deep_get("ProcessName", default=""),
        ]
    ):
        return True
    return False
