def rule(event):
    if all(
        [
            "/python3" in event.deep_get("Image", default=""),
            any(
                [
                    event.deep_get("TargetFilename", default="").endswith(
                        "/.config/sysmon/sysmon.py"
                    ),
                    event.deep_get("TargetFilename", default="").endswith(
                        "/.config/systemd/user/sysmon.service"
                    ),
                ]
            ),
        ]
    ):
        return True
    return False
