{"id":19844342,"url":"https://github.com/byterocket/c4udit","last_synced_at":"2025-10-07T13:07:39.068Z","repository":{"id":43914851,"uuid":"451480801","full_name":"byterocket/c4udit","owner":"byterocket","description":"Static analyzer for solidity contracts based on regexs specifically crafted for code4rena contests","archived":false,"fork":false,"pushed_at":"2022-02-02T21:55:03.000Z","size":22,"stargazers_count":237,"open_issues_count":0,"forks_count":38,"subscribers_count":6,"default_branch":"main","last_synced_at":"2025-09-23T23:48:31.091Z","etag":null,"topics":["analyzer","audit","ethereum","evm","research","security","solidity"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/byterocket.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}},"created_at":"2022-01-24T13:44:18.000Z","updated_at":"2025-08-16T12:24:35.000Z","dependencies_parsed_at":"2022-08-12T10:51:51.759Z","dependency_job_id":null,"html_url":"https://github.com/byterocket/c4udit","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/byterocket/c4udit","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/byterocket%2Fc4udit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/byterocket%2Fc4udit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/byterocket%2Fc4udit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/byterocket%2Fc4udit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/byterocket","download_url":"https://codeload.github.com/byterocket/c4udit/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/byterocket%2Fc4udit/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278778974,"owners_count":26044259,"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","status":"online","status_checked_at":"2025-10-07T02:00:06.786Z","response_time":59,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["analyzer","audit","ethereum","evm","research","security","solidity"],"created_at":"2024-11-12T13:03:35.762Z","updated_at":"2025-10-07T13:07:39.033Z","avatar_url":"https://github.com/byterocket.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=center\u003e\u003ccode\u003ec4udit\u003c/code\u003e\u003c/h1\u003e\n\n## Introduction\n\n`c4udit` is a static analyzer for solidity contracts based on regular\nexpressions specifically crafted for [Code4Rena](https://code4rena.com) contests.\n\nIt is capable of finding low risk issues and gas optimization documented in the\n[c4-common-issues](https://github.com/byterocket/c4-common-issues) repository.\n\nNote that `c4udit` uses [c4-common-issues](https://github.com/byterocket/c4-common-issues)'s issue identifiers.\n\n## Installation\n\nFirst you need to have the Go toolchain installed. You can find instruction [here](https://go.dev/doc/install).\n\nThen install `c4udit` with:\n```\n$ go install github.com/byterocket/c4udit@latest\n```\n\nTo just build the binary:\n```\n$ git clone https://github.com/byterocket/c4udit\n$ cd c4udit/\n$ go build .\n```\nNow you should be able to run `c4udit` with:\n```\n$ ./c4udit\n```\n\n## Usage\n\n```\nUsage:\n\tc4udit [flags] [files...]\n\nFlags:\n\t-h    Print help text.\n\t-s    Save report as file.\n```\n\n## Example\n\nRunning `c4udit` against the `examples` directory:\n```\n$ ./c4udit examples/\nFiles analyzed:\n- examples/Test.sol\n\nIssues found:\n G001:\n  examples/Test.sol::4 =\u003e uint256 a = 0;\n  examples/Test.sol::12 =\u003e for (uint256 i = 0; i \u003c array.length; i++) {\n\n G002:\n  examples/Test.sol::12 =\u003e for (uint256 i = 0; i \u003c array.length; i++) {\n\n G007:\n  examples/Test.sol::6 =\u003e string b = \"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\";\n\n G008:\n  examples/Test.sol::13 =\u003e i = i / 2;\n\n L001:\n  examples/Test.sol::16 =\u003e token.transferFrom(msg.sender, address(this), 100);\n\n L003:\n  examples/Test.sol::1 =\u003e pragma solidity ^0.8.0;\n```\n\nUsing the `-s` flag, `c4udit` will create a report in markdown format.\nFor an example check out the report in the `examples` directory [here](./examples/c4udit-report.md).\n\n\n## License\n\nNote that this tool is licensed as [free software](./LICENSE)!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbyterocket%2Fc4udit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbyterocket%2Fc4udit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbyterocket%2Fc4udit/lists"}