Skip to main content

Dreadnode SDK

Project description

Logo

Dreadnode Strikes SDK

PyPI - Python Version PyPI - Version GitHub License Tests Pre-Commit Renovate


Strikes is a platform for building, experimenting with, and evaluating AI security agent code.

  • Experiment + Tasking + Observability in a single place that's lightweight and scales.
  • Track your data with parameters, inputs, and outputs all connected to your tasks.
  • Log your artifacts — data, models, files, and folders — to track data of your Dreadnode runs, enabling easy reuse and reproducibility.
  • Measure everything with metrics throughout your code and anywhere you need them.
  • Scale your code from a single run to thousands.
import dreadnode as dn
import rigging as rg

from .tools import reversing_tools

dn.configure()

@dataclass
class Finding:
    name: str
    severity: str
    description: str
    exploit_code: str

@dn.scorer(name="Score Finding")
async def score_finding(finding: Finding) -> float:
    if finding.severity == "critical":
        return 1.0
    elif finding.severity == "high":
        return 0.8
    else:
        return 0.2

@dn.task(scorers=[score_finding])
@rg.prompt(tools=[reversing_tools])
async def analyze_binary(binary: str) -> list[Finding]:
    """
    Analyze the binary for vulnerabilities.
    """
    ...

with dn.run(tags=["reverse-engineering"]):
    binary = "c2/downloads/service.exe"

    dn.log_params(
        model="gpt-4",
        temperature=0.5,
        binary=binary
    )

    findings = await analyze_binary(binary)

    dn.log_metric("findings", len(findings))

Installation

We publish every version to PyPi:

pip install -U dreadnode

If you want to build from source:

poetry install

See our installation guide for more options.

Getting Started

Read through our introduction guide in the docs.

Examples

Check out dreadnode/example-agents to find your favorite use case.

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

dreadnode-1.0.4.tar.gz (43.6 kB view details)

Uploaded Source

Built Distribution

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

dreadnode-1.0.4-py3-none-any.whl (50.1 kB view details)

Uploaded Python 3

File details

Details for the file dreadnode-1.0.4.tar.gz.

File metadata

  • Download URL: dreadnode-1.0.4.tar.gz
  • Upload date:
  • Size: 43.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for dreadnode-1.0.4.tar.gz
Algorithm Hash digest
SHA256 ec20a8d562243cd7d5feabb4778547843a5e36d5725411e6e6c3ff51c819361d
MD5 10df234207c0215458dddbad60f79532
BLAKE2b-256 e443772c8c98e85da9761870ab4dbc19cc6707c429406c5e73dc1723398c3881

See more details on using hashes here.

Provenance

The following attestation bundles were made for dreadnode-1.0.4.tar.gz:

Publisher: publish.yaml on dreadnode/sdk

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file dreadnode-1.0.4-py3-none-any.whl.

File metadata

  • Download URL: dreadnode-1.0.4-py3-none-any.whl
  • Upload date:
  • Size: 50.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for dreadnode-1.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 310ae80273453583eaeb2b9bb3558a2017e8f7cbbcf4627051f443fd4f0c00ef
MD5 2a2ed588dac60d4173957e0fb55c21f0
BLAKE2b-256 6144f7ed81cc9fde001ecc09d5ce1fcd1caa0c6ceebd1b4d58fd3f9d193f8615

See more details on using hashes here.

Provenance

The following attestation bundles were made for dreadnode-1.0.4-py3-none-any.whl:

Publisher: publish.yaml on dreadnode/sdk

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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