Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

blackshield-sdk

Latest version: v0.3.2

Overview

Last scanned
30 Nov 2026
Published
30 Nov 2026
PyPI package Publisher: ccho
3 Versions
270 Downloads

Scan summary

blackshield-sdk was last scanned on 30 Nov 2026 at version 0.3.2. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 3 versions; the latest was published on 30 Nov 2026.
  • Findings: No rules fired in version 0.3.2.
  • Downloads: 270 downloads.

Versions

3 versions published
Versions and the rules that fired in each
VersionPublishedStatus
0.3.2 LATEST 30 Nov 2026 No rules fired
0.3.1 8 Nov 2026 No rules fired
0.3.0 6 Nov 2026 No rules fired

No rules fired in 0.3.2

Findings

Findings for v0.3.2. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

The score describes 0.3.2; other versions have their own rules, not their own score.

README

The publisher’s own README, as collected from the registry.

BlackShield SDKs

BlackShield provides developer SDKs for programmatic interaction with the security platform:

  • BlackShield Go SDK (github.com/blackshield-security/blackshield-go): The primary, zero-runtime-dependency SDK recommended for cloud-native production workloads, Kubernetes operators, Terraform/OpenTofu providers, CI/CD pipelines, and high-throughput telemetry streaming (per ADR-0004).
  • BlackShield TypeScript SDK (@blackshield/sdk on npm): Next.js Server Components, Edge Middleware, and Model Context Protocol (MCP) AI Agent integration.
  • BlackShield Java SDK (com.blackshield.security:blackshield-sdk-java on Maven Central): Enterprise Java 17+ HTTP client with Spring Boot auto-configuration.
  • BlackShield Python SDK (blackshield-sdk on PyPI): Maintained for data science notebooks, scripting workflows, and backwards compatibility.

For release engineering, registry accounts, token formats, and Jenkins CI/CD distribution, see the SDK Publishing Guide.


BlackShield Python SDK

Official Python SDK for the BlackShield Security Platform.

Installation

pip install blackshield-sdk

Quick Start

import blackshield

client = blackshield.BlackShield(api_key="bsk_live_...")

# List critical findings
page = client.findings.list(severity=["critical", "high"], page_size=10)
for f in page.items:
    print(f"{f.severity.value} | {f.title}")

# Get a specific finding
finding = client.findings.get("550e8400-e29b-41d4-a716-446655440000")

# Update finding status
client.findings.update_status(finding.id, status="in_progress", reason="Investigating")

Async Usage

import asyncio
from blackshield import AsyncBlackShield

async def main():
    async with AsyncBlackShield(api_key="bsk_live_...") as client:
        page = await client.findings.list(severity=["critical"])
        for f in page.items:
            print(f.title)

asyncio.run(main())

Available Resources

Resource Description Example
client.findings List, get, update findings client.findings.list(severity=["critical"])
client.ingestion Ingest findings & assets client.ingestion.ingest_findings([...])
client.dashboard Stats, trends, usage client.dashboard.stats()
client.compliance Compliance overview & controls client.compliance.overview(framework="SOC2")
client.reports Summaries & CSV/PDF exports client.reports.export_findings_csv()
client.easm External attack surface client.easm.overview()
client.threat_intel Blocklist & indicator lookup client.threat_intel.lookup(indicator="1.2.3.4")
client.connectors Connector health monitoring client.connectors.freshness()
client.api_keys API key management client.api_keys.create(label="CI")
client.policies Policy guardrails & custom Rego client.policies.list_packs()
client.security_reviews Guided security reviews & templates client.security_reviews.get_default_template()
client.audit Tenant audit logs & evidence export client.audit.query(limit=50)
client.alerts Alerts & alert sync integrations client.alerts.list(severity=["critical"])
client.identity Identity, OIDC & mapping configs client.identity.list_oidc()
client.remediation Remediation & compensating controls client.remediation.get_policy("default")
client.ai_gateway AI Gateway client & usage logs client.ai_gateway.list_clients()
client.ai_assets AI asset inventory & ingestion client.ai_assets.list(approval_status="unapproved")
client.ai_integrations Tenant AI provider configuration client.ai_integrations.preflight("openai", **config)
client.assertions Security assertion suites & runs client.assertions.activate(suite_id)
client.customer_notifications Notification templates & delivery runs client.customer_notifications.runs()
client.dast Bounded DAST scans & findings client.dast.get_scan(job_id)
client.oauth_apps OAuth app and grant governance client.oauth_apps.grants(status="pending_review")
client.threat_modeling Hosted threat-model sessions & exports client.threat_modeling.create_session(title="Review")

The 0.2.3 release candidate adds appliance inventory and policy operations, identity sessions, agent operations, SIEM entities and statistics, and ingestion submission responses that accept either id or job_id. These operations have matching synchronous and asynchronous clients. Publish and verify this candidate before updating a lab's SDK lock; an existing 0.2.2 installation does not include these additions.

Version 0.2.2 preserves the 0.2.0 surface and accepts both the legacy job_id and current id ingestion job status fields. It also includes the 0.2.1 durable EASM verification outcomes, explicit challenge rotation, and synchronous/asynchronous AI provider configuration deletion. Version 0.2.0 added EASM asset-verification operations, AI Gateway client updates/deactivation, OAuth token exchange and governed chat completions. Reports v2 and Threat Intelligence v2 are part of the supported public surface. All new resources have matching synchronous and asynchronous implementations.

Official packages are released only by the Jenkins Publish SDK stage after the Python 3.10–3.13 matrix and repository security gates pass. The stage publishes an immutable PyPI version and fingerprints its wheel checksum; it does not depend on a GitHub workflow, release, or tag.

Ingestion

from blackshield.types.ingestion import UnifiedFinding, AffectedResource, SourceMeta

finding = UnifiedFinding(
    finding_type="vulnerability",
    title="CVE-2024-1234 in openssl 3.0.8",
    severity="critical",
    cve_id="CVE-2024-1234",
    affected_resource=AffectedResource(
        resource_type="container_image",
        resource_id="sha256:abc123",
        resource_name="myapp:latest",
    ),
    source=SourceMeta(scanner="trivy", scanner_version="0.50.0"),
    dedup_key="vuln:CVE-2024-1234:sha256:abc123",
)

result = client.ingestion.ingest_findings([finding])
print(f"Job ID: {result.job_id}, Status: {result.status}")

# Poll for completion
job = client.ingestion.get_job(result.job_id)
print(f"Created: {job.created}, Updated: {job.updated}")

Error Handling

import blackshield

try:
    finding = client.findings.get("nonexistent-id")
except blackshield.NotFoundError:
    print("Finding not found")
except blackshield.RateLimitError as e:
    print(f"Rate limited, retry after {e.retry_after}s")
except blackshield.AuthenticationError:
    print("Invalid API key")
except blackshield.BlackShieldError as e:
    print(f"API error: {e}")

Configuration

client = blackshield.BlackShield(
    api_key="bsk_live_...",
    base_url="https://api.blackshield.chaplau.com",  # or self-hosted URL
    timeout=60.0,       # request timeout in seconds
    max_retries=3,       # automatic retries on 429/5xx
)

Development

cd sdk
pip install -e ".[dev]"
pytest -v --cov=blackshield
ruff check .
mypy .

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • pypi-releases blackshield-sdk

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Powered by Read the latest findings

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

Critical Apache HTTP Server Flaw Exposes Web Servers to RCE (1)
CVE

CVE-2026-119618: Critical Apache HTTP Server Flaw Exposes Web Servers to Remote Code Execution

Copy of Template Design OX Blog (3)
Research

Ruby2Shell: Ruby Memory Corruption Flaws Expose Applications to Remote Code Execution, But is it an Actual Risk?

The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Vulnerability Insights

The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?

Frame 2085668439 (1)
Group 1261154229