def rule(event):
    if all(
        [
            any(
                [
                    event.deep_get("Image", default="").endswith("/system_profiler"),
                    "system_profiler" in event.deep_get("CommandLine", default=""),
                ]
            ),
            any(
                [
                    "SPApplicationsDataType" in event.deep_get("CommandLine", default=""),
                    "SPHardwareDataType" in event.deep_get("CommandLine", default=""),
                    "SPNetworkDataType" in event.deep_get("CommandLine", default=""),
                    "SPUSBDataType" in event.deep_get("CommandLine", default=""),
                ]
            ),
        ]
    ):
        return True
    return False
