Skip to main content

AI-powered Python fuzzer using LiteLLM and Atheris to automatically generate and execute fuzzing harnesses.

Project description

AtherisLiteLLM:

This project creates a LLM-assisted Python fuzzing harness generator designed to leverage large language models via LiteLLM to automatically build fuzzing harnesses for target Python functions and classes. It uses Google’s Atheris fuzzing engine to dynamically generate and test code, with the aim of uncovering bugs or vulnerabilities in software.

Usage:

atherislitellm
--src-dir /path/to/code
--output-dir /path/to/logs
--model google/gemini-1.5-flash
--prompts-path /path/to/prompts.yaml
--prompt base
--api-key your_api_key_here (optional if env var is set)
--extra-model-prompts project=my-project
--debug
--smell

Arguments:

  • -s, --src-dir: Path to the Python source directory to fuzz.
  • -o, --output-dir: Where to store crash logs and generated harnesses.
  • -m, --model: LiteLLM model string (e.g., gemini/gemini-1.5-flash, openai/gpt-4).
  • -pp, --prompts-path: Path to prompts.yaml config file.
  • -p, --prompt: Prompt ID from prompts.yaml to use (default: base).
  • -k, --api-key: API key string (optional if environment variable is set).
  • -e, --extra-mode-prompts: Extra vendor-specific parameters as key=value pairs.
  • -d, --debug: Enable debug/verbose mode.
  • -sm, --smell: Enable code smell filtering via Radon.

Workflow:

  1. Resolve API key (environment variable or raw string) and verify model via LiteLLM.
  2. Discover .py files; parse target functions and classes.
  3. (Optional) Filter by maintainability index using Radon.
  4. Build prompt with Atheris docs + target code; send to the LLM via LiteLLM.
  5. Save generated harnesses into a timestamped run directory.

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

atherislitellm-0.2.12.tar.gz (10.6 kB view details)

Uploaded Source

Built Distribution

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

atherislitellm-0.2.12-py3-none-any.whl (14.1 kB view details)

Uploaded Python 3

File details

Details for the file atherislitellm-0.2.12.tar.gz.

File metadata

  • Download URL: atherislitellm-0.2.12.tar.gz
  • Upload date:
  • Size: 10.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for atherislitellm-0.2.12.tar.gz
Algorithm Hash digest
SHA256 a3d9688b2d59c3c43bab07d945b64fea62d17029e3cdd3c7d7b68cd779b78111
MD5 d8e0bf478908e902403d67bc7c3d9f2d
BLAKE2b-256 66fca0bc756d01aa188e32f31b314dc3d9868336d9e9fbf644236e3ff52841cc

See more details on using hashes here.

Provenance

The following attestation bundles were made for atherislitellm-0.2.12.tar.gz:

Publisher: publish.yml on mariobx/AtherisLiteLLM

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

File details

Details for the file atherislitellm-0.2.12-py3-none-any.whl.

File metadata

File hashes

Hashes for atherislitellm-0.2.12-py3-none-any.whl
Algorithm Hash digest
SHA256 7bb77c38e028d6f1b5eede4b38ef5b6e5e5869deb427fb97bb8d6d7d68731fb7
MD5 b3db20d9d02a708ecce1d1d72d15e2d3
BLAKE2b-256 c85e89fe2bcde905340cfed4336210068a6a965ee8819fe8365f2202365cccf9

See more details on using hashes here.

Provenance

The following attestation bundles were made for atherislitellm-0.2.12-py3-none-any.whl:

Publisher: publish.yml on mariobx/AtherisLiteLLM

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