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

Apache-2.0

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.2.tar.gz (91.5 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.2-py3-none-any.whl (55.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: clawdstrike-0.1.2.tar.gz
  • Upload date:
  • Size: 91.5 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.2.tar.gz
Algorithm Hash digest
SHA256 dd4d2e5787b366742326fe52b1fff8540fec3372a2e1ebd8d94cb3d4ff900f18
MD5 b46e17179d19406436f55fc4dde53b71
BLAKE2b-256 33f5ffddda8707bcdef6c990c41d5a530eb1a43151490d302a04163ec8f32cb4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: clawdstrike-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 55.4 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 1a3e3297e6da08ab170651a724d27bb4b4ade3d155ac00ce3ea52d88897be5a0
MD5 de912492c77859f2d449d068633a3ddf
BLAKE2b-256 0de0441c478da8bc25050b2949abbd0bd7e78f9957460e8dff15af0a90cb5493

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