{"Name":"os","ID":"go.mondoo.com/cnquery/v9/providers/os","Version":"13.8.0","ConnectionTypes":["local","ssh","tar","docker-snapshot","vagrant","docker-container","docker-image","docker-file","docker-registry","container-registry","registry-image","filesystem","winrm","device"],"CrossProviderTypes":null,"Connectors":[{"Name":"local","Use":"local","Short":"your local system","Long":"Use the local provider to query your local system. This is the default provider. There's no need to specify local in a command.  \n\nExamples:\n  cnspec shell\n  cnspec scan\n  cnspec scan -o json \u003e FILENAME.json\n","Flags":[{"Long":"sudo","Default":"false","Desc":"Elevate privileges with sudo","Type":1,"ConfigEntry":"sudo.active"},{"Long":"id-detector","Desc":"User override for platform ID detection mechanism","Type":3,"Option":1}],"Discovery":["container","container-images"]},{"Name":"ssh","Use":"ssh user@host","Short":"a remote system via SSH","Long":"Use the ssh provider to query remote systems using SSH.  \n\nExamples:\n  cnspec scan ssh USER@IP-ADDRESS --ask-pass\n  cnspec shell ssh USER@IP-ADDRESS --ask-pass\n","MinArgs":1,"MaxArgs":1,"Flags":[{"Long":"sudo","Default":"false","Desc":"Elevate privileges with sudo","Type":1},{"Long":"insecure","Default":"false","Desc":"Disable SSH hostkey verification","Type":1},{"Long":"ask-pass","Default":"false","Desc":"Prompt for connection password","Type":1,"ConfigEntry":"-"},{"Long":"password","Short":"p","Desc":"Set the connection password for SSH","Type":3,"Option":8,"ConfigEntry":"-"},{"Long":"identity-file","Short":"i","Desc":"Select a file from which to read the identity (private key) for public key authentication","Type":3},{"Long":"id-detector","Desc":"User override for platform ID detection mechanism","Type":3,"Option":1}]},{"Name":"winrm","Use":"winrm user@host","Short":"a remote system via WinRM","Long":"Use the winrm provider to query remote systems using WinRM.  \n\nExamples:\n  cnspec scan winrm USER@HOST --ask-pass\n  cnspec shell winrm USER@HOST --ask-pass\n","MinArgs":1,"MaxArgs":1,"Flags":[{"Long":"insecure","Default":"false","Desc":"Disable TLS/SSL checks","Type":1},{"Long":"ask-pass","Default":"false","Desc":"Prompt for connection password","Type":1},{"Long":"password","Short":"p","Default":"false","Desc":"Set the connection password for SSH","Type":3,"Option":8,"ConfigEntry":"-"},{"Long":"id-detector","Desc":"User override for platform ID detection mechanism","Type":3,"Option":1}]},{"Name":"vagrant","Use":"vagrant host","Short":"a Vagrant host","Long":"Use the vagrant provider to query Vagrant virtual machines.  \n\nExamples:\n  cnspec scan vagrant HOST\n  cnspec shell vagrant HOST\n","MinArgs":1,"MaxArgs":1,"Flags":[{"Long":"sudo","Default":"false","Desc":"Elevate privileges with sudo","Type":1},{"Long":"id-detector","Desc":"User override for platform ID detection mechanism","Type":3,"Option":1}]},{"Name":"container","Use":"container","Short":"a running container or container image","Long":"Use the container provider to query running containers or container images.  \n\nExamples:\n  cnspec scan container ubuntu:latest\n  cnspec shell container ubuntu:latest\n","MinArgs":1,"MaxArgs":2,"Flags":[{"Long":"sudo","Default":"false","Desc":"Elevate privileges with sudo","Type":1,"ConfigEntry":"sudo.active"},{"Long":"id-detector","Desc":"User override for platform ID detection mechanism","Type":3,"Option":1},{"Long":"disable-cache","Default":"false","Desc":"Disable the in-memory cache for images. WARNING: This significantly slows scans.","Type":1},{"Long":"container-proxy","Desc":"HTTP proxy to use for container pulls","Type":3}],"Discovery":["container","container-images"]},{"Name":"docker","Use":"docker","Short":"a running Docker container, Docker image, or Dockerfile","Long":"Use the docker provider to query running Docker containers or container images in public or private container registries using their registry name. Or scan a Dockerfile by specifying its path. \n\nExamples:\n  cnspec scan docker \u003cDOCKER-CONTAINER-ID\u003e\n  cnspec scan docker file \u003cFILEPATH\u003e\n  cnspec scan docker ubuntu:latest\n  cnspec scan docker elastic/elasticsearch:7.2.0\n  cnspec scan docker gcr.io/google-containers/ubuntu:22.04\n  cnspec scan docker registry.access.redhat.com/ubi8/ubi\n","MinArgs":1,"MaxArgs":2,"Flags":[{"Long":"sudo","Default":"false","Desc":"Elevate privileges with sudo.","Type":1,"ConfigEntry":"sudo.active"},{"Long":"id-detector","Desc":"User override for platform ID detection mechanism","Type":3,"Option":1},{"Long":"disable-cache","Default":"false","Desc":"Disable the in-memory cache for images. WARNING: This significantly slows scans.","Type":1},{"Long":"container-proxy","Desc":"HTTP proxy to use for container pulls","Type":3}],"Discovery":["container","container-images"]},{"Name":"filesystem","Use":"filesystem PATH [flags]","Short":"a mounted file system target","Long":"Use the filesystem provider to query mounted file systems. \n\nExamples:\n  cnspec scan filesystem \u003cMOUNT-PATH-TO-FILE-SYSTEM\u003e\n  cnspec shell fs \u003cMOUNT-PATH-TO-FILE-SYSTEM\u003e\n","MaxArgs":1,"Flags":[{"Long":"path","Desc":"Path to a local file or directory for the connection to use","Type":3,"Option":2}],"Aliases":["fs"]},{"Name":"device","Use":"device","Short":"a block device target","Long":"Use the device provider to query block devices. \n\nExamples:\n  cnspec scan device --lun \u003cLOGICAL-UNIT-NUMBER\u003e\n  cnspec shell device --device-name \u003cNAME-OF-LINUX-DEVICE\u003e\n","Flags":[{"Long":"lun","Desc":"The logical unit number of the block device. Do not use with --device-name or --serial-number","Type":3,"Option":1},{"Long":"device-name","Desc":"The target device, e.g., /dev/sda. Supported only for Linux scanning. Do not use together with --lun or --serial-number","Type":3,"Option":3},{"Long":"device-names","Desc":"The target devices, e.g., /dev/sda. Supported only for Linux scanning. Do not use together with --lun or --serial-number","Type":4,"Option":1},{"Long":"serial-number","Desc":"The serial number of the block device. Supported only for Windows scanning. Do not use together with --device-name or --lun","Type":3,"Option":1},{"Long":"mount-all-partitions","Desc":"Mount all partitions of the block device","Type":1,"Option":1},{"Long":"skip-attempt-expand-partitions","Desc":"Skip attempt on trying to discover the fstab file on the device","Type":1,"Option":1},{"Long":"include-mounted","Desc":"Include mounted block devices in the scan","Type":1,"Option":1},{"Long":"keep-mounted","Desc":"Keep mounted block devices mounted after the scan","Type":1,"Option":1},{"Long":"platform-ids","Desc":"List of platform IDs to inject to the asset","Type":4,"Option":1}]}],"AssetUrlTrees":[{"path_segments":["technology=os"],"key":"family","values":{"*":{"key":"platform","values":{"*":{"key":"version","values":{"*":null},"title":"Version"}},"title":"Platform"}},"title":"OS Family"},{"path_segments":["technology=container"],"key":"kind","values":{"*":{"references":["technology=os"]}},"title":"Container Kind"},{"path_segments":["technology=iac","category=dockerfile"]}]}