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.3.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.3-py3-none-any.whl (55.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: clawdstrike-0.1.3.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.3.tar.gz
Algorithm Hash digest
SHA256 e4e5cf60df4581466209bd2662805483ad23dcf3d66c051a023f07b6379c9f12
MD5 6e07786bd7388d31a8acaf6f7cfc12e4
BLAKE2b-256 e8fa778e5fd43f389552fdf33ea6ac016d0e48610182c8e92e20552cf5efcc96

See more details on using hashes here.

File details

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

File metadata

  • Download URL: clawdstrike-0.1.3-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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 35cbbec4f57f27e52930b0c45b86685d235f14f70125f2fced2ba4e63123e999
MD5 a1cec5dbe1d898a8a1aabcda4b7fcf5e
BLAKE2b-256 14bb5c4a2d05f568a790973e6ffc75241c016dc25269733e18d54b349d4fedad

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