Skip to main content

Python SDK for clawdstrike security verification

Project description

clawdstrike

Python SDK for Clawdstrike security verification.

Installation

pip install clawdstrike

Usage

from clawdstrike import Policy, PolicyEngine, GuardAction, GuardContext

# Load policy from YAML
policy = Policy.from_yaml_file("policy.yaml")
engine = PolicyEngine(policy)

# Check actions
context = GuardContext(cwd="/app")
result = engine.is_allowed(
    GuardAction.file_access("/app/src/main.py"),
    context,
)

Features

  • Pure Python implementation of 5 guards:
    • ForbiddenPathGuard
    • EgressAllowlistGuard
    • SecretLeakGuard
    • PatchIntegrityGuard
    • McpToolGuard
  • Policy engine with YAML configuration
  • Receipt signing and verification with Ed25519
  • Experimental native bindings (not yet published)

Native bindings (experimental)

This repo includes a Rust/PyO3 module at packages/sdk/hush-py/hush-native, but it is not packaged for PyPI yet.

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

clawdstrike-0.1.1.tar.gz (78.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

clawdstrike-0.1.1-py3-none-any.whl (25.8 kB view details)

Uploaded Python 3

File details

Details for the file clawdstrike-0.1.1.tar.gz.

File metadata

  • Download URL: clawdstrike-0.1.1.tar.gz
  • Upload date:
  • Size: 78.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.12

File hashes

Hashes for clawdstrike-0.1.1.tar.gz
Algorithm Hash digest
SHA256 29f582a53ec447e3256673118576d8f8bdc3cb21153a52ea96f7297611cd24dd
MD5 e8b99d00b44691beb7b7b26ea0863244
BLAKE2b-256 49c1fdeab777c6d96276f50ace25f9b0270c44ee762dc24aac00fdc367888eb2

See more details on using hashes here.

File details

Details for the file clawdstrike-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: clawdstrike-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 25.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.12

File hashes

Hashes for clawdstrike-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 18407bdcc1c63e58e9854852721463fc7b862a6887db089dbb32770500284760
MD5 28fe39b1c917bba4fa79fca53a471bf0
BLAKE2b-256 d09ea023ea63636f84aee71bccc15a66c2d860510399fa0cd160fc55f3213ce0

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page