Metadata-Version: 2.4
Name: owasp-openshield
Version: 0.4.0
Summary: OpenShield Azure security posture scanner CLI
License-Expression: MIT
Project-URL: Homepage, https://owasp.github.io/openshield/
Project-URL: Documentation, https://github.com/OWASP/openshield/blob/dev/docs/cli.md
Project-URL: Source, https://github.com/OWASP/openshield
Project-URL: Issues, https://github.com/OWASP/openshield/issues
Keywords: azure,cloud-security,cspm,security-scanner,owasp
Classifier: Development Status :: 3 - Alpha
Classifier: Environment :: Console
Classifier: Intended Audience :: System Administrators
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.11
Classifier: Topic :: Security
Requires-Python: >=3.11
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: azure-identity<2,>=1.25
Requires-Dist: azure-mgmt-storage<22,>=21
Requires-Dist: azure-mgmt-network<26,>=25
Requires-Dist: azure-mgmt-compute<31,>=30
Requires-Dist: azure-mgmt-resource<24,>=23
Requires-Dist: azure-mgmt-resourcegraph<9,>=8
Requires-Dist: azure-mgmt-sql<4,>=3
Requires-Dist: azure-mgmt-cosmosdb<11,>=10
Requires-Dist: azure-mgmt-redis<15,>=14
Requires-Dist: azure-mgmt-keyvault<11,>=10
Requires-Dist: azure-mgmt-rdbms<11,>=10
Requires-Dist: azure-mgmt-authorization<5,>=4
Requires-Dist: azure-mgmt-web<8,>=7
Requires-Dist: azure-mgmt-monitor<7,>=6
Requires-Dist: azure-mgmt-security<8,>=7
Requires-Dist: azure-mgmt-securityinsight<2,>=1
Requires-Dist: azure-mgmt-loganalytics<15,>=14
Requires-Dist: azure-mgmt-dns<9,>=8
Requires-Dist: azure-mgmt-containerservice<42,>=41
Requires-Dist: azure-mgmt-recoveryservices<5,>=4
Requires-Dist: azure-mgmt-postgresqlflexibleservers<2,>=1.0.0b1
Requires-Dist: azure-mgmt-containerregistry<16,>=15
Requires-Dist: azure-keyvault-certificates<5,>=4
Requires-Dist: azure-keyvault-keys<5,>=4
Requires-Dist: azure-devops<8,>=7.1.0b4
Requires-Dist: kubernetes<37,>=36
Requires-Dist: msrest<1,>=0.7
Requires-Dist: requests<3,>=2.34
Requires-Dist: prometheus-client<1,>=0.19
Dynamic: license-file

# OpenShield Azure scanner CLI

OpenShield is an open-source cloud security posture scanner for Azure. The `owasp-openshield` Python distribution provides the standalone `openshield` command. It runs the packaged Azure rules locally and prints findings in text or JSON. The dashboard, API, worker, AI agent, and MCP server are separate deployment components available in the source repository.

> **Package name:** Install `owasp-openshield`, then run `openshield`. The separate `openshield` distribution on PyPI belongs to an unrelated antivirus project.

## Quick start

Python 3.11 or later is required.

```sh
python -m pip install owasp-openshield==0.4.0
openshield --version
az login
openshield scan --subscription-id YOUR-AZURE-SUBSCRIPTION-UUID
openshield scan --subscription-id YOUR-AZURE-SUBSCRIPTION-UUID --format json
```

`AZURE_SUBSCRIPTION_ID` can replace the flag. The CLI uses Azure's `DefaultAzureCredential` chain, checks access to the subscription, and then runs the packaged rules. Give the identity read permissions to the subscription and any additional Graph or DevOps APIs used by the rules you rely on.

Results with findings exit `0` when the engine completed. Invalid configuration, authentication or subscription access failure, and incomplete rule execution exit `2`. Both report formats show failed rule IDs. Packaged remediation playbooks are references only; the CLI never executes them.

Many legacy rules do not yet provide complete per-resource evaluation evidence. A completed zero-finding run is not proof that every resource is compliant. Handle scan output as sensitive operational data because findings can contain Azure resource identifiers and configuration evidence.

Read the [full CLI guide](https://github.com/OWASP/openshield/blob/main/docs/cli.md), [source](https://github.com/OWASP/openshield), [security policy](https://github.com/OWASP/openshield/blob/main/.github/SECURITY.md), and [release verification guide](https://github.com/OWASP/openshield/blob/main/docs/release-verification.md).
