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.13.tar.gz (10.9 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.13-py3-none-any.whl (14.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: atherislitellm-0.2.13.tar.gz
  • Upload date:
  • Size: 10.9 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.13.tar.gz
Algorithm Hash digest
SHA256 e287cea22e7f85bf678f5386462905521edd8897a5e64f0bec456f8840212579
MD5 df66fc32613d84d8f8fc378ca3924556
BLAKE2b-256 8d6595773932cb13ced52c7c53af449943f86c6d8202fc468775f1f1cf1c8bf8

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for atherislitellm-0.2.13-py3-none-any.whl
Algorithm Hash digest
SHA256 ed64aa30596edf9f18352bcc660da4d503ee3f2f0361262a3e11b13b53bc2356
MD5 04c59660bd04ead6808a7b7a8adf4198
BLAKE2b-256 f6d57bb69739188e8dabecbb7b5a1571bafa62df1ddc6ba17f4c1b1dc1109ecc

See more details on using hashes here.

Provenance

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