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.10.tar.gz (10.7 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.10-py3-none-any.whl (14.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: atherislitellm-0.2.10.tar.gz
  • Upload date:
  • Size: 10.7 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.10.tar.gz
Algorithm Hash digest
SHA256 c6594c6fbd9ed584e9bef60aa9c973e23c9e6ae7db09bf407f201aff95e0e2d6
MD5 916c0c0a6b0b2670ddf0ff3b4b0ffc14
BLAKE2b-256 8e0020d7cb86e4a2e3e08cf1fc772fa7b0f77edfff93b68beba13e8c5824ace8

See more details on using hashes here.

Provenance

The following attestation bundles were made for atherislitellm-0.2.10.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.10-py3-none-any.whl.

File metadata

File hashes

Hashes for atherislitellm-0.2.10-py3-none-any.whl
Algorithm Hash digest
SHA256 49bf27754481a9e57f79edb957d57f0eb4b5518ebba90615e91adca2e1589d96
MD5 d82ba7a025aea7c4a6bfb0124934b94d
BLAKE2b-256 66d778f939a0a3f7e6c4c9d4a10f6ed8b4552ebd67ffac96c793d9106db7f905

See more details on using hashes here.

Provenance

The following attestation bundles were made for atherislitellm-0.2.10-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