def rule(event):
    if all(
        [
            any(
                [
                    "-i" in event.deep_get("CommandLine", default=""),
                    "/install" in event.deep_get("CommandLine", default=""),
                    "-a" in event.deep_get("CommandLine", default=""),
                    "/add-driver" in event.deep_get("CommandLine", default=""),
                    ".inf" in event.deep_get("CommandLine", default=""),
                ]
            ),
            event.deep_get("Image", default="").endswith("\\pnputil.exe"),
        ]
    ):
        return True
    return False
