def rule(event):
    if any(
        [
            all(
                [
                    event.deep_get("ParentImage", default="").endswith("\\notepad++.exe"),
                    event.deep_get("Image", default="").endswith("\\cmd.exe"),
                ]
            ),
            all(
                [
                    event.deep_get("ParentImage", default="").endswith("\\rdpinit.exe"),
                    event.deep_get("Image", default="").endswith("\\notepad++.exe"),
                ]
            ),
        ]
    ):
        return True
    return False
