{"id":22004807,"url":"https://github.com/revsic/agent-fuzz","last_synced_at":"2025-03-23T06:24:05.640Z","repository":{"id":257060091,"uuid":"857219417","full_name":"revsic/agent-fuzz","owner":"revsic","description":"Python implementation of LLM Agent-based fuzz-driver generation ","archived":false,"fork":false,"pushed_at":"2024-09-18T09:40:30.000Z","size":29,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-09-18T12:39:56.517Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/revsic.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-09-14T04:35:34.000Z","updated_at":"2024-09-18T09:40:33.000Z","dependencies_parsed_at":"2024-09-18T12:38:46.846Z","dependency_job_id":null,"html_url":"https://github.com/revsic/agent-fuzz","commit_stats":null,"previous_names":["revsic/agent-fuzz"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/revsic%2Fagent-fuzz","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/revsic%2Fagent-fuzz/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/revsic%2Fagent-fuzz/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/revsic%2Fagent-fuzz/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/revsic","download_url":"https://codeload.github.com/revsic/agent-fuzz/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245063226,"owners_count":20554890,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-30T00:17:16.725Z","updated_at":"2025-03-23T06:24:05.605Z","avatar_url":"https://github.com/revsic.png","language":"Python","readme":"# agent-fuzz\nPython implementation of LLM Agent-based fuzz-driver generation \n\n## Usage\n\nFor mac\n```bash\nbrew install universal-ctags\nbrew install global\nbrew install llvm\nbrew install graphviz\n```\n\nFor Ubuntu\n```bash\nsudo apt-get install -y global universal-ctags graphviz llvm\n```\n\nInstall the agentfuzz\n```bash\ngit clone https://github.com/revsic/agent-fuzz\ncd agent-fuzz \u0026\u0026 pip install .\n```\n\nPrepare the project, reference sample [benchmark/cjson/build](./benchmark/cjson/build.sh) script.\n```bash\ncd benchmark/cjson\nbash build.sh\n# project structure\n# | workspace\n#   | src (required)\n#     | cJSON (repo)\n#   | build\n#   | lib (required)\n#     | libcjson.a\n#   | include (optional)\n#     | cJSON.h\n#   | corpus (optional)\n#   | dict (optional)\n#     | json.dict\n```\n\nRun the agentic harness generator, reference sample [benchmark/cjson/config](./benchmark/cjson/config.yaml)\n```bash\ncd benchmark/cjson\nOPENAI_API_KEY=$YOUR_API_KEY_HERE python -m agentfuzz \\\n    --language c/cpp \\\n    --workdir workspace/agentfuzz \\\n    --config config.yaml\n```\n\nRun the benchmarks.\n```bash\ncd experiments\n# cjson\nOPENAI_API_KEY=$YOUR_API_KEY_HERE python baseline.py --target=cjson\n# libpcap\nOPENAI_API_KEY=$YOUR_API_KEY_HERE python baseline.py --target=libpcap\n```\n\n## Roadmap\n\n### OSS-Fuzz Build Script supports\n\nBenchmark\n\n- [x] cJSON\n- [x] libpcap\n- [x] libxml2\n- [x] libtiff\n- [x] libaom\n- [x] zlib\n- [x] c-ares\n- [x] lcms\n\n### Fuzz-driver generation loop\n\nStatic analysis\n\n- [x] Clang AST parser supports\n- [x] Collect API function/type gadgets\n- [ ] Infer input constraints \n- [ ] Literal analysis, FDP supports\n- [x] Critical path extraction\n\nDynamic analysis\n\n- [x] Compile the harness\n- [x] Run the fuzzer\n- [x] Compute the branch coverage\n\nFP Elimination\n- [x] Runtime fuzzing validation: 60sec for cov growth, 600sec for corpus pool\n- [x] Runtime coverapge validation: critical path check\n- [x] Corpus reusage\n\nAgentic Fuzz-driver generation\n\n- [x] Initial generation pipeline\n- [x] Energy measure supports (ref:PromptFuzz)\n- [ ] Density measure supports\n- [x] API scheduler\n- [ ] Fuzzer-run / harness-generation scheduler\n- [x] Agentic fuzz-driver generation\n- [x] State load and dump supports\n- [ ] Fuzzer fuser\n- [x] Multiprocessing Support\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frevsic%2Fagent-fuzz","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frevsic%2Fagent-fuzz","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frevsic%2Fagent-fuzz/lists"}