def rule(event):
    if all(
        [
            "\\PROCEXP" in event.deep_get("TargetFilename", default=""),
            event.deep_get("TargetFilename", default="").endswith(".sys"),
            not any(
                [
                    event.deep_get("Image", default="").endswith("\\procexp.exe"),
                    event.deep_get("Image", default="").endswith("\\procexp64.exe"),
                ]
            ),
        ]
    ):
        return True
    return False
