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

Uploaded Python 3

File details

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

File metadata

  • Download URL: atherislitellm-0.2.5.tar.gz
  • Upload date:
  • Size: 10.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for atherislitellm-0.2.5.tar.gz
Algorithm Hash digest
SHA256 5082c4ecc23a82a06c2f3cb08e1b62395d3972e6b6834c5bca63afa2fa5c37cf
MD5 f7a294e02167f571b10fa49eb0500158
BLAKE2b-256 95311f0fa9d545047cf8358148c80d22958d5ad936ce6b3d31239565e54ed423

See more details on using hashes here.

File details

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

File metadata

  • Download URL: atherislitellm-0.2.5-py3-none-any.whl
  • Upload date:
  • Size: 14.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for atherislitellm-0.2.5-py3-none-any.whl
Algorithm Hash digest
SHA256 161c507e17c0f33f46339e7d1e8678dd2abe4ce654db63600203f9f1dc9717f3
MD5 8188c58e2b3be3f106e171cecdea8021
BLAKE2b-256 6643e15e2c15e1e4969a961b1a4e0bdb0c551d1c9965f980904118d4fc6cd885

See more details on using hashes here.

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